/* =====================================================================
   Al-Zahra Community — public website
   Builds on theme.css tokens (Lapis & Saffron). Signature: the mihrab
   arch and the eight-pointed star, lit by a saffron lamp.
   ===================================================================== */
.az-site { --az-arch: 999px 999px var(--az-r-lg) var(--az-r-lg); --az-star: polygon(50% 0%, 61% 21%, 85% 15%, 79% 39%, 100% 50%, 79% 61%, 85% 85%, 61% 79%, 50% 100%, 39% 79%, 15% 85%, 21% 61%, 0% 50%, 21% 39%, 15% 15%, 39% 21%); }
.az-site main { padding: 0; }
.az-site .container { max-width: 1200px; }
.az-skip { position: absolute; z-index: 2000; inset-inline-start: 1rem; top: .5rem; background: var(--az-saffron); color: #241602; padding: .5rem 1rem; border-radius: var(--az-r-sm); }
.az-ar { font-family: 'Amiri', 'Traditional Arabic', serif !important; }

/* ---------- thin top strip: three calendars + quick contact ---------- */
.az-strip { background: var(--az-lapis-950, #070E1E); color: rgba(255,255,255,.78); font-size: .82rem; }
[data-bs-theme="dark"] .az-strip { background: #050A16; }
.az-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; flex-wrap: wrap; }
.az-strip-dates { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.az-strip-dates i { color: var(--az-saffron); margin-inline-end: .4rem; }
.az-strip-sep { color: var(--az-saffron); font-size: .6rem; }
.az-strip-actions { display: flex; align-items: center; gap: .9rem; }
.az-strip-actions > a { color: rgba(255,255,255,.85); text-decoration: none; }
.az-strip-actions > a:hover { color: #fff; }
.az-strip-actions > a i { margin-inline-end: .35rem; color: var(--az-saffron); }
.az-strip .az-lang a { padding: .15rem .6rem; font-size: .75rem; }
.az-strip .az-icon-btn { width: 30px; height: 30px; font-size: .8rem; }

/* ---------- main navigation bar ---------- */
.az-sitebar { position: sticky; top: 0; z-index: 1030; background: color-mix(in srgb, var(--az-surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--az-line); box-shadow: 0 6px 18px -14px rgba(19,37,74,.45); }
.az-sitebar .navbar { min-height: 76px; padding: 0; }
.az-site-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--az-ink); }
.az-site-logo { width: 52px; height: 52px; display: block; border-radius: 13px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(var(--az-saffron-rgb), .35), 0 6px 16px rgba(14,28,58,.22); }
.az-site-logo picture.az-logo { width: 100%; height: 100%; }
.az-site-logo svg { width: 100%; height: 100%; }
.az-site-name { display: flex; flex-direction: column; line-height: 1.15; }
.az-site-name strong { font-size: 1.08rem; color: var(--az-lapis-900); font-weight: 750; }
[data-bs-theme="dark"] .az-site-name strong { color: var(--az-ink); }
.az-site-name small { font-size: .78rem; color: var(--az-muted); }
.az-site-name small[lang="fa"] { font-family: var(--az-font-fa); }
.az-site-nav .nav-link { position: relative; color: var(--az-ink-2); font-weight: 600; padding: .5rem .85rem !important; border-radius: 999px; transition: color .2s, background-color .2s; }
.az-site-nav .nav-link:hover { color: var(--az-lapis); background: var(--az-lapis-50); }
.az-site-nav .nav-link.active { color: var(--az-lapis-900); }
[data-bs-theme="dark"] .az-site-nav .nav-link.active { color: #fff; }
.az-site-nav .nav-link.active::after { content: ""; position: absolute; inset-inline: 50%; bottom: -2px; width: 8px; height: 8px; transform: translateX(-50%) rotate(45deg); background: var(--az-saffron); border-radius: 1px; }
html[dir="rtl"] .az-site-nav .nav-link.active::after { transform: translateX(50%) rotate(45deg); }
.az-site-cta { display: flex; gap: .5rem; align-items: center; }
.az-btn-donate, .az-btn-login { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; font-weight: 700; padding: .55rem 1.1rem; }
.az-btn-donate { background: var(--az-saffron); color: #241602; border: 0; box-shadow: 0 6px 16px -8px rgba(217,154,43,.8); }
.az-btn-donate:hover, .az-btn-donate.active { background: #E6A93F; color: #241602; transform: translateY(-1px); }
.az-btn-login { border: 1.5px solid var(--az-line-strong); color: var(--az-lapis-900); background: transparent; }
[data-bs-theme="dark"] .az-btn-login { color: var(--az-ink); }
.az-btn-login:hover { border-color: var(--az-lapis); color: var(--az-lapis); background: var(--az-lapis-50); }
.az-sitebar .navbar-toggler { border: 1px solid var(--az-line-strong); color: var(--az-ink); padding: .45rem .65rem; border-radius: var(--az-r-md); }
@media (max-width: 991.98px) {
  .az-sitebar .navbar-collapse { padding: .5rem 0 1rem; }
  .az-site-nav .nav-link.active { background: var(--az-lapis-50); }
  .az-site-nav .nav-link.active::after { display: none; }
  .az-site-cta { padding-top: .75rem; border-top: 1px solid var(--az-line); }
}

.az-site-notice { background: var(--az-saffron-100); color: var(--az-saffron-ink); border-bottom: 1px solid color-mix(in srgb, var(--az-saffron) 40%, transparent); font-weight: 600; }
.az-site-notice .container { display: flex; gap: .65rem; align-items: center; padding-block: .65rem; }

/* ---------- ornaments ---------- */
.az-orn { display: flex; align-items: center; justify-content: center; gap: .9rem; color: var(--az-saffron); margin: 0 auto 1rem; max-width: 18rem; }
.az-orn::before, .az-orn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.az-orn::after { background: linear-gradient(90deg, currentColor, transparent); }
.az-orn span { width: 14px; height: 14px; background: currentColor; clip-path: var(--az-star); }
.az-star { display: inline-grid; place-items: center; width: 4rem; height: 4rem; clip-path: var(--az-star); background: var(--tone-bg, var(--az-lapis-50)); color: var(--tone, var(--az-lapis)); font-size: 1.35rem; flex: none; }

.az-section { padding: 5rem 0; position: relative; }
.az-section-alt { background: var(--az-surface); border-block: 1px solid var(--az-line); }
.az-section-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.az-section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 750; letter-spacing: -.02em; margin-bottom: .75rem; }
html[lang="fa"] .az-section-head h2 { letter-spacing: 0; }
.az-section-head p { color: var(--az-muted); font-size: 1.06rem; margin: 0; }
.az-section-head .az-ar-line { font-size: 1.5rem; color: var(--az-saffron-ink); margin-bottom: .35rem; display: block; }

/* ---------- HERO: night sky, girih, lamp, mihrab ---------- */
.az-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(70% 90% at 78% 30%, rgba(217,154,43,.28) 0%, rgba(217,154,43,0) 55%), linear-gradient(160deg, #1F3A6D 0%, #13254A 55%, #0B1730 100%); isolation: isolate; }
[data-bs-theme="dark"] .az-hero { background: radial-gradient(70% 90% at 78% 30%, rgba(217,154,43,.2) 0%, rgba(217,154,43,0) 55%), linear-gradient(160deg, #182E57 0%, #0E1C3A 55%, #070E1E 100%); }
.az-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--az-pattern); background-size: 96px 96px; opacity: .14;
  -webkit-mask-image: radial-gradient(120% 100% at 20% 40%, #000 20%, transparent 80%); mask-image: radial-gradient(120% 100% at 20% 40%, #000 20%, transparent 80%); }
.az-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; z-index: -1;
  background: radial-gradient(32px 32px at 32px 64px, var(--az-ground) 31px, transparent 32px) 0 0 / 64px 64px repeat-x; }
.az-hero .container { padding-top: 4.5rem; padding-bottom: 6.5rem; }
.az-bismillah { font-family: 'Amiri', serif; font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: #F2C46D; line-height: 1.6; margin-bottom: 1.25rem; text-shadow: 0 0 30px rgba(242,196,109,.35); }
.az-hero h1 { color: #fff !important; font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin-bottom: 1.25rem; text-wrap: balance; }
html[lang="fa"] .az-hero h1 { line-height: 1.45; letter-spacing: 0; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.az-hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 36rem; margin-bottom: 2rem; }
.az-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.az-hero .btn-light { background: #fff; color: #13254A; border: 0; font-weight: 700; border-radius: 999px; padding: .75rem 1.4rem; }
.az-hero .btn-outline-light { border-radius: 999px; padding: .75rem 1.4rem; font-weight: 700; border-width: 1.5px; }
.az-hero .btn-wa { background: #1FA855; color: #fff; border-radius: 999px; padding: .75rem 1.4rem; font-weight: 700; border: 0; }
.az-hero .btn-wa:hover { background: #1A9149; color: #fff; }
.az-hero-places { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2.25rem; color: rgba(255,255,255,.72); font-size: .92rem; }
.az-hero-places i { color: var(--az-saffron); margin-inline-end: .4rem; }

/* the mihrab card */
.az-mihrab { position: relative; max-width: 25rem; margin-inline: auto; padding: 3.25rem 2rem 2rem; border-radius: var(--az-arch); text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border: 1.5px solid rgba(242,196,109,.55);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.03), 0 30px 60px -30px rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.az-mihrab::before { content: ""; position: absolute; inset: 10px; border-radius: var(--az-arch); border: 1px dashed rgba(242,196,109,.35); pointer-events: none; }
.az-mihrab-lamp { position: absolute; top: -1.4rem; left: 50%; transform: translateX(-50%); width: 2.8rem; height: 2.8rem; clip-path: var(--az-star); background: var(--az-saffron); display: grid; place-items: center; color: #241602; box-shadow: 0 0 40px rgba(242,196,109,.8); }
.az-mihrab small { display: block; color: #F2C46D; font-weight: 700; font-size: .85rem; margin-bottom: .6rem; }
.az-mihrab h2 { color: #fff !important; font-size: 1.45rem; margin-bottom: .75rem; line-height: 1.35; }
.az-mihrab-when { font-size: 1rem; color: rgba(255,255,255,.9); }
.az-mihrab-when .az-hijri { display: block; color: rgba(255,255,255,.6); font-size: .85rem; margin-top: .2rem; }
.az-mihrab-where { color: rgba(255,255,255,.75); font-size: .92rem; margin-top: .4rem; }
.az-countdown-row { display: flex; justify-content: center; gap: .5rem; margin: 1.25rem 0 1.4rem; }
.az-countdown-row div { min-width: 3.6rem; padding: .5rem .3rem; border-radius: var(--az-r-md); background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.12); }
.az-countdown-row b { display: block; font-size: 1.4rem; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.az-countdown-row span { font-size: .72rem; color: rgba(255,255,255,.65); }
.az-mihrab .btn { border-radius: 999px; font-weight: 700; }

/* ---------- weekly rhythm cards (arched) ---------- */
.az-rhythm { margin-top: -4.5rem; position: relative; z-index: 2; }
.az-arch-card { --tone: var(--az-lapis); --tone-bg: var(--az-lapis-50); position: relative; height: 100%; background: var(--az-surface); border: 1px solid var(--az-line);
  border-radius: 12rem 12rem var(--az-r-lg) var(--az-r-lg); padding: 2.5rem 1.6rem 1.6rem; text-align: center; box-shadow: var(--az-shadow-2);
  transition: transform .3s var(--az-ease), box-shadow .3s; display: flex; flex-direction: column; }
.az-arch-card:hover { transform: translateY(-6px); box-shadow: var(--az-shadow-3); }
.az-arch-card::after { content: ""; position: absolute; inset: 8px; border-radius: 12rem 12rem calc(var(--az-r-lg) - 6px) calc(var(--az-r-lg) - 6px); border: 1px solid color-mix(in srgb, var(--tone) 18%, transparent); pointer-events: none; }
.az-arch-card .az-star { margin: 0 auto 1rem; }
.az-arch-card h3 { font-size: 1.2rem; font-weight: 750; margin-bottom: .5rem; }
.az-arch-card .az-when { display: inline-flex; gap: .4rem; align-items: center; align-self: center; font-size: .85rem; font-weight: 700; color: var(--tone); background: var(--tone-bg); border-radius: 999px; padding: .25rem .8rem; margin-bottom: .9rem; }
.az-arch-card p { color: var(--az-ink-2); font-size: .95rem; margin-bottom: 1.1rem; }
.az-arch-card .az-more { margin-top: auto; font-weight: 700; color: var(--tone); text-decoration: none; }
.az-arch-card .az-more:hover { text-decoration: underline; }
.az-tone-lapis { --tone: var(--az-lapis); --tone-bg: var(--az-lapis-50); }
.az-tone-tile { --tone: var(--az-tile); --tone-bg: var(--az-tile-100); }

/* ---------- events (date tiles) ---------- */
.az-event-card { display: flex; gap: 1.1rem; padding: 1.1rem; border-radius: var(--az-r-lg); background: var(--az-surface); border: 1px solid var(--az-line);
  text-decoration: none; color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; height: 100%; }
.az-event-card:hover { border-color: color-mix(in srgb, var(--tone, var(--az-lapis)) 55%, transparent); transform: translateY(-3px); box-shadow: var(--az-shadow-2); color: inherit; }
.az-datetile { flex: none; width: 5.2rem; text-align: center; border-radius: 2.6rem 2.6rem var(--az-r-md) var(--az-r-md); background: var(--tone-bg, var(--az-lapis-50)); color: var(--tone, var(--az-lapis)); padding: .85rem .3rem .6rem; align-self: flex-start; }
.az-datetile b { display: block; font-size: 1.9rem; line-height: 1; font-weight: 800; }
.az-datetile span { display: block; font-size: .78rem; font-weight: 700; margin-top: .25rem; }
.az-datetile small { display: block; font-size: .68rem; opacity: .8; margin-top: .2rem; }
.az-event-body { min-width: 0; }
.az-event-body h3 { font-size: 1.08rem; font-weight: 700; margin: .35rem 0 .35rem; line-height: 1.35; }
.az-event-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .85rem; color: var(--az-muted); }
.az-event-meta i { color: var(--tone, var(--az-saffron)); margin-inline-end: .3rem; }
.az-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; padding: .18rem .6rem; border-radius: 999px; background: var(--tone-bg); color: var(--tone); }
.az-chip-news { background: var(--az-saffron-100); color: var(--az-saffron-ink); }

/* ---------- announcements ---------- */
.az-news { display: block; padding: 1.15rem 1.25rem; border-radius: var(--az-r-lg); background: var(--az-surface); border: 1px solid var(--az-line); border-inline-start: 4px solid var(--az-saffron);
  text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.az-news + .az-news { margin-top: .85rem; }
.az-news:hover { transform: translateX(3px); box-shadow: var(--az-shadow-2); color: inherit; }
html[dir="rtl"] .az-news:hover { transform: translateX(-3px); }
.az-news time { font-size: .8rem; color: var(--az-muted); }
.az-news h3 { font-size: 1.02rem; font-weight: 700; margin: .25rem 0 .35rem; }
.az-news p { margin: 0; color: var(--az-ink-2); font-size: .92rem; }
.az-news .az-chip { margin-top: .6rem; }

/* ---------- occasions band ---------- */
.az-occasions { background: linear-gradient(135deg, #0F4F4C, #1F8A85 60%, #23A39C); color: #fff; overflow: hidden; position: relative; isolation: isolate; }
[data-bs-theme="dark"] .az-occasions { background: linear-gradient(135deg, #0A2F2D, #125A56 60%, #17736D); }
.az-occasions::before { content: ""; position: absolute; inset: 0; background-image: var(--az-pattern); background-size: 80px 80px; opacity: .12; z-index: -1; }
.az-occasions h2, .az-occasions .az-section-head p { color: #fff !important; }
.az-occasions .az-section-head p { opacity: .85; }
.az-occasions .az-orn { color: #F2C46D; }
.az-occasion-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; list-style: none; padding: 0; margin: 0; }
.az-occasion-list li { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); font-weight: 600; }
.az-occasion-list li::before { content: ""; width: 9px; height: 9px; clip-path: var(--az-star); background: #F2C46D; }

/* ---------- give band (verse) ---------- */
.az-give { position: relative; overflow: hidden; border-radius: 2rem; padding: 3.5rem clamp(1.5rem, 5vw, 4rem); background: linear-gradient(140deg, #13254A, #1F3A6D); color: #fff; isolation: isolate; }
.az-give::before { content: ""; position: absolute; inset: 0; background-image: var(--az-pattern); background-size: 90px; opacity: .12; z-index: -1; }
.az-give::after { content: ""; position: absolute; width: 22rem; height: 22rem; inset-inline-end: -6rem; top: -6rem; clip-path: var(--az-star); background: rgba(242,196,109,.12); z-index: -1; }
.az-verse { font-family: 'Amiri', serif; font-size: clamp(1.4rem, 2.6vw, 2rem); color: #F2C46D; line-height: 1.9; margin-bottom: .75rem; }
.az-verse-tr { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 40rem; }
.az-verse-ref { display: block; font-size: .82rem; color: rgba(255,255,255,.55); margin-top: .4rem; }
.az-give h2 { color: #fff !important; }

/* ---------- inner page header ---------- */
.az-pagehead { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, #1F3A6D, #13254A 70%); isolation: isolate; padding: 3.5rem 0 4.5rem; }
[data-bs-theme="dark"] .az-pagehead { background: linear-gradient(160deg, #182E57, #0B1730 70%); }
.az-pagehead::before { content: ""; position: absolute; inset: 0; background-image: var(--az-pattern); background-size: 80px 80px; opacity: .12; z-index: -1; }
.az-pagehead::after { content: ""; position: absolute; inset: auto 0 0 0; height: 48px; z-index: -1; background: radial-gradient(24px 24px at 24px 48px, var(--az-ground) 23px, transparent 24px) 0 0 / 48px 48px repeat-x; }
.az-pagehead h1 { color: #fff !important; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: .5rem; }
.az-pagehead p { color: rgba(255,255,255,.8); font-size: 1.08rem; max-width: 40rem; margin: 0; }
.az-crumbs { font-size: .85rem; margin-bottom: .75rem; color: rgba(255,255,255,.65); }
.az-crumbs a { color: #F2C46D; text-decoration: none; }

/* ---------- content blocks ---------- */
.az-prose { font-size: 1.06rem; line-height: 1.8; color: var(--az-ink-2); }
html[lang="fa"] .az-prose { line-height: 2.05; }
.az-prose p { margin-bottom: 1.1rem; }
.az-panel { background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-r-lg); padding: 1.75rem; box-shadow: var(--az-shadow-1); }
.az-panel h2, .az-panel h3 { font-weight: 750; }
.az-panel + .az-panel { margin-top: 1.25rem; }
.az-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.az-facts li { display: flex; gap: .75rem; align-items: flex-start; }
.az-facts li > i { width: 2.25rem; height: 2.25rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--az-lapis-50); color: var(--az-lapis); font-size: .9rem; }
.az-facts small { display: block; color: var(--az-muted); font-size: .78rem; }
.az-ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .5rem .9rem; }
.az-ticks li { display: flex; gap: .55rem; align-items: baseline; }
.az-ticks li::before { content: ""; flex: none; width: 10px; height: 10px; clip-path: var(--az-star); background: var(--tone, var(--az-saffron)); transform: translateY(1px); }

/* programs page */
.az-program { scroll-margin-top: 110px; }
.az-program + .az-program { margin-top: 2rem; }
.az-program-head { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.25rem; }
.az-program-head h2 { font-size: 1.6rem; margin: 0 0 .35rem; }
.az-program-jump { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.az-program-jump a { --tone: var(--az-lapis); --tone-bg: var(--az-lapis-50); display: inline-flex; gap: .5rem; align-items: center; padding: .55rem 1rem; border-radius: 999px; background: var(--az-surface); border: 1px solid var(--az-line); color: var(--az-ink); text-decoration: none; font-weight: 600; }
.az-program-jump a i { color: var(--tone); }
.az-program-jump a:hover { border-color: var(--tone); }

/* values (about) */
.az-value { text-align: center; padding: 1.5rem 1rem; }
.az-value .az-star { margin: 0 auto .9rem; }
.az-value h3 { font-size: 1.05rem; font-weight: 750; margin-bottom: .35rem; }
.az-value p { color: var(--az-muted); font-size: .92rem; margin: 0; }

/* donate */
.az-way { display: flex; gap: 1rem; align-items: flex-start; height: 100%; }
.az-way h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.az-way p { margin: 0; color: var(--az-ink-2); }
.az-copy { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; background: var(--az-sunken); border: 1px dashed var(--az-line-strong); border-radius: var(--az-r-sm); padding: .35rem .7rem; margin-top: .5rem; cursor: pointer; color: var(--az-ink); }
.az-copy:hover { border-color: var(--az-lapis); }

/* forms on the public site */
.az-site .form-control, .az-site .form-select { border-radius: var(--az-r-md); padding: .7rem .9rem; }
.az-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* empty state */
.az-empty { text-align: center; padding: 3rem 1rem; color: var(--az-muted); border: 1px dashed var(--az-line-strong); border-radius: var(--az-r-lg); }
.az-empty .az-star { margin: 0 auto 1rem; }

/* ---------- footer ---------- */
.az-site-footer { margin-top: 0; background: #0B1730; color: rgba(255,255,255,.72); position: relative; isolation: isolate; }
[data-bs-theme="dark"] .az-site-footer { background: #050A16; }
.az-site-footer::before { content: ""; position: absolute; inset: 0; background-image: var(--az-pattern); background-size: 80px; opacity: .05; z-index: -1; }
.az-footer-salawat { text-align: center; font-family: 'Amiri', serif; font-size: clamp(1.15rem, 2.2vw, 1.55rem); color: #F2C46D; padding: 2rem 1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.az-site-footer .container { padding-top: 2.5rem; }
.az-site-footer h3 { color: #fff !important; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.az-site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.az-site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.az-site-footer a:hover { color: #F2C46D; }
.az-site-brand-footer .az-site-name strong { color: #fff; }
.az-footer-contact li { display: flex; gap: .6rem; align-items: baseline; }
.az-footer-contact i { color: var(--az-saffron); width: 1rem; }
.az-social { display: flex; gap: .5rem; }
.az-social a { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.az-social a:hover { background: var(--az-saffron); color: #241602; }
.az-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding: 1.25rem 0 1.5rem; margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.az-footer-bottom i { margin-inline-end: .4rem; }

/* motion: one reveal on scroll, nothing else moves on its own */
@media (prefers-reduced-motion: no-preference) {
  .az-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--az-ease), transform .7s var(--az-ease); }
  .az-reveal.is-in { opacity: 1; transform: none; }
}
@media (max-width: 767.98px) {
  .az-section { padding: 3.5rem 0; }
  .az-hero .container { padding-top: 3rem; padding-bottom: 5.5rem; }
  .az-rhythm { margin-top: -3rem; }
}
@media print { .az-strip, .az-sitebar, .az-site-footer, .az-fab { display: none !important; } .az-hero, .az-pagehead { color: #000; background: none; } }

/* light mihrab (on the page background) */
.az-mihrab-light { background: var(--az-surface); border-color: color-mix(in srgb, var(--az-saffron) 60%, transparent); color: var(--az-ink-2); box-shadow: var(--az-shadow-2); backdrop-filter: none; padding-block: 4rem 2.5rem; }
.az-mihrab-light::before { border-color: color-mix(in srgb, var(--az-saffron) 40%, transparent); }
.az-zahra-name { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--az-lapis-900); line-height: 1.8; }
[data-bs-theme="dark"] .az-zahra-name { color: #F2C46D; }
.az-occasion-list-light li { background: var(--az-pomegranate-100); border-color: color-mix(in srgb, var(--az-pomegranate) 25%, transparent); color: var(--az-ink); }
.az-occasion-list-light li::before { background: var(--az-pomegranate); }
.az-tone-saffron { --tone: var(--az-saffron-ink); --tone-bg: var(--az-saffron-100); }
.az-tone-pomegranate { --tone: var(--az-pomegranate); --tone-bg: var(--az-pomegranate-100); }
html[dir="ltr"] .az-hero .az-bismillah, html[dir="ltr"] .az-give .az-verse { text-align: left; }
.az-zahra-name { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.az-copy { max-width: 100%; overflow-wrap: anywhere; text-align: start; }
.az-way > div { min-width: 0; }
.az-panel.az-ticks, .az-panel.az-facts { padding: 1.5rem; }

/* ================= Logo in the About block ================= */
.az-mihrab-logo { padding-top: 2.25rem; }
.az-hero-logo { display: block; width: min(15rem, 80%); aspect-ratio: 1; margin: 0 auto 1.1rem; border-radius: 28px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(var(--az-saffron-rgb), .45), 0 22px 44px -18px rgba(14,28,58,.55); }

/* ================= Duas on the home page ================= */
.az-dua-home { background: var(--az-surface); border-block: 1px solid var(--az-line); }
.az-dua-today { --dt-arch: 50% 50% var(--az-r-lg) var(--az-r-lg) / 7.5rem 7.5rem var(--az-r-lg) var(--az-r-lg); position: relative; height: 100%; padding: 3rem 2.5rem 1.75rem; border-radius: var(--dt-arch); text-align: center; color: #fff; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #22407A 0%, var(--az-lapis-900, #13254A) 55%, #0A1630 100%); box-shadow: 0 24px 50px -28px rgba(10,22,48,.9); }
.az-dua-today::before { content: ""; position: absolute; inset: 10px; border-radius: var(--dt-arch); border: 1px dashed rgba(242,196,109,.4); pointer-events: none; }
.az-dua-today::after { content: ""; position: absolute; inset: 0; background-image: var(--az-pattern); background-size: 96px; opacity: .08; pointer-events: none; }
.az-dua-today > * { position: relative; z-index: 1; }
.az-dua-today small { display: inline-flex; align-items: center; gap: .4rem; color: #F2C46D; font-weight: 700; font-size: .85rem; margin-top: 1rem; }
.az-dua-today .az-ar { font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 2.05; margin: 1rem 0 .75rem; color: #fff; }
.az-dua-meaning { color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.8; max-width: 30rem; margin: 0 auto 1.25rem; }
.az-dua-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem; }
.az-dua-foot .az-chip { background: rgba(242,196,109,.16); color: #F2C46D; }
.az-dua-foot .az-more { color: #fff; font-weight: 700; text-decoration: none; }
.az-dua-foot .az-more:hover { color: #F2C46D; }
.az-dua-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; }
.az-dua-tile { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: var(--az-r-lg); background: var(--az-ground); border: 1px solid var(--az-line);
  color: var(--az-ink); text-decoration: none; transition: border-color .2s, transform .2s var(--az-ease), box-shadow .2s; }
.az-dua-tile:hover { border-color: rgba(var(--az-saffron-rgb), .8); transform: translateY(-2px); box-shadow: var(--az-shadow-2); color: var(--az-ink); }
.az-dua-ico { width: 2.75rem; height: 2.75rem; flex: none; display: grid; place-items: center; clip-path: var(--az-star); background: var(--az-saffron-100); color: var(--az-saffron-ink); }
.az-dua-tile-text { display: flex; flex-direction: column; min-width: 0; }
.az-dua-tile strong { font-size: 1rem; line-height: 1.35; }
.az-dua-tile small { color: var(--az-muted); font-size: .8rem; }
.az-duas-page .dua-shell { padding: 0; }

/* ================= Gallery ================= */
.az-album-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.az-album-tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--az-line-strong);
  color: var(--az-ink-2); font-weight: 600; font-size: .92rem; text-decoration: none; background: var(--az-surface); }
.az-album-tabs a span { font-size: .75rem; color: var(--az-muted); font-weight: 700; }
.az-album-tabs a:hover { border-color: var(--az-lapis); color: var(--az-lapis); }
.az-album-tabs a.active { background: var(--az-lapis-fill, var(--az-lapis)); border-color: transparent; color: #fff; }
.az-album-tabs a.active span { color: #F2C46D; }
.az-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); grid-auto-rows: 12rem; grid-auto-flow: dense; gap: .75rem; }
.az-gallery-home-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 11rem; }
.az-gallery-home-grid .az-photo:first-child { grid-column: span 2; grid-row: span 2; }
.az-photo { position: relative; display: block; overflow: hidden; border-radius: var(--az-r-md); background: var(--az-sunken); }
.az-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--az-ease); }
.az-photo:hover img, .az-photo:focus-visible img { transform: scale(1.05); }
.az-photo-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 1.75rem .8rem .6rem; color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.35;
  background: linear-gradient(180deg, transparent, rgba(7,14,30,.82)); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.az-photo:hover .az-photo-cap, .az-photo:focus-visible .az-photo-cap { opacity: 1; transform: none; }
@media (hover: none) { .az-photo-cap { opacity: 1; transform: none; } }
@media (max-width: 767.98px) {
  .az-gallery-grid, .az-gallery-home-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 9rem; }
}

/* Photo viewer */
.az-lightbox { position: fixed; inset: 0; z-index: 2050; display: grid; grid-template-columns: 4rem 1fr 4rem; align-items: center; background: rgba(5,10,22,.94); }
.az-lightbox[hidden] { display: none; }
.az-lightbox figure { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; max-height: 100vh; padding: 3.5rem 0 1.5rem; }
.az-lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.az-lightbox figcaption { color: #fff; text-align: center; margin-top: .9rem; }
.az-lightbox figcaption strong { display: block; font-size: 1.02rem; }
.az-lightbox figcaption span { color: rgba(255,255,255,.65); font-size: .85rem; }
.az-lb-nav, .az-lb-close { border: 0; background: rgba(255,255,255,.1); color: #fff; width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center; justify-self: center; }
.az-lb-nav:hover, .az-lb-close:hover { background: rgba(242,196,109,.9); color: #241602; }
.az-lb-prev { grid-column: 1; grid-row: 1; } .az-lb-next { grid-column: 3; grid-row: 1; }
.az-lb-close { position: absolute; top: 1rem; inset-inline-end: 1rem; }
@media (max-width: 575.98px) { .az-lightbox { grid-template-columns: 2.6rem 1fr 2.6rem; } .az-lb-nav { width: 2.3rem; height: 2.3rem; } }

/* ================= Online Quran ================= */
.quran-app { --q-size: 2rem; --q-font: 'Amiri Quran', 'Amiri', 'Scheherazade New', serif; --q-paper: #FFFDF7; --q-frame: #C9A256; }
.quran-app[data-font="scheherazade"] { --q-font: 'Scheherazade New', 'Amiri Quran', serif; }
[data-bs-theme="dark"] .quran-app { --q-paper: #141B2B; --q-frame: #8F7440; }
.q-ar { font-family: var(--q-font) !important; font-size: var(--q-size); line-height: 2.35; color: var(--az-ink); text-align: justify; text-align-last: right; margin: 0; word-spacing: .05em; }
.q-num { display: inline-block; font-size: .78em; color: var(--az-saffron-ink); margin-inline: .25em; white-space: nowrap; }
[data-bs-theme="dark"] .q-num { color: #F2C46D; }
.q-sajda { color: var(--az-pomegranate, #B3402F); margin-inline-start: .2em; }

/* toolbar */
.q-bar { position: sticky; top: 77px; z-index: 1020; background: color-mix(in srgb, var(--az-surface) 96%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--az-line); }
.q-bar .container { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; padding-block: .5rem; }
.q-home { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--az-lapis-fill, var(--az-lapis)); color: #F2C46D; text-decoration: none; flex: none; }
.q-nav { display: flex; align-items: center; gap: .3rem; }
.q-nav select { max-width: 12rem; }
.q-nav-sm select { min-width: 7.2rem; max-width: 9rem; }
.q-pagebox input { width: 4.6rem; text-align: center; }
.q-pagebox span { color: var(--az-muted); font-size: .85rem; white-space: nowrap; }
.q-tools { display: flex; align-items: center; gap: .35rem; margin-inline-start: auto; }
.q-btn { width: 2.2rem; height: 2.2rem; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--az-line-strong); background: var(--az-surface); color: var(--az-ink-2); }
.q-btn:hover { border-color: var(--az-saffron); color: var(--az-saffron-ink); }
.q-search input { width: 12rem; }
@media (max-width: 991.98px) { .q-bar { top: 69px; } .q-nav select { max-width: 9rem; } }
@media (max-width: 575.98px) { .q-nav-sm { display: none !important; } .q-tools { margin-inline-start: 0; } }

/* page sheet */
.q-read { padding: 1.5rem 0 3rem; }
.q-sheet { max-width: 54rem; margin: 0 auto; background: var(--q-paper); border-radius: 18px; padding: 1.25rem clamp(1rem, 3vw, 2.5rem) 1rem;
  box-shadow: 0 0 0 1px var(--az-line), 0 0 0 7px color-mix(in srgb, var(--q-frame) 18%, transparent), 0 24px 50px -30px rgba(14,28,58,.45); }
@media (max-width: 767.98px) { .q-ar { text-align: right; text-align-last: auto; line-height: 2.2; } .q-sheet { padding-inline: .9rem; border-radius: 12px; } .quran-app[data-mode="mushaf"] .q-verses { text-align: right; text-align-last: auto; } }
.q-sheet-head { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; color: var(--az-muted); padding-bottom: .6rem; border-bottom: 1px solid color-mix(in srgb, var(--q-frame) 45%, transparent); margin-bottom: .5rem; }
.q-sheet-foot { text-align: center; color: var(--az-muted); font-size: .9rem; border-top: 1px solid color-mix(in srgb, var(--q-frame) 45%, transparent); padding-top: .6rem; margin-top: .75rem; }
.q-surah-head { margin: 1.25rem 0 .75rem; text-align: center; }
.q-surah-frame { position: relative; padding: .8rem 1rem; border-radius: 14px; background: linear-gradient(135deg, var(--az-lapis-fill, #13254A), #22407A); color: #fff;
  box-shadow: inset 0 0 0 2px rgba(242,196,109,.55), inset 0 0 0 6px rgba(242,196,109,.12); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; }
.q-surah-name { font-family: var(--q-font) !important; color: #F2C46D !important; font-size: 1.7rem; margin: 0; font-weight: 400; }
.q-surah-meta { font-size: .78rem; color: rgba(255,255,255,.78); }
.q-surah-frame > .q-surah-meta:first-child { text-align: start; } .q-surah-frame > .q-surah-meta:last-child { text-align: end; }
.q-basmala { font-family: var(--q-font); font-size: calc(var(--q-size) * .95); color: var(--az-ink); margin-top: .75rem; }
@media (max-width: 575.98px) { .q-surah-frame { grid-template-columns: 1fr; } .q-surah-frame > .q-surah-meta { text-align: center !important; } }

.q-verse { position: relative; padding: .9rem .25rem; border-bottom: 1px dashed color-mix(in srgb, var(--q-frame) 35%, transparent); scroll-margin-top: 150px; border-radius: 10px; transition: background-color .3s; }
.q-verse:last-child { border-bottom: 0; }
.q-verse:target { background: rgba(var(--az-saffron-rgb), .12); }
.q-verse.is-playing { background: rgba(var(--az-saffron-rgb), .16); box-shadow: inset 3px 0 0 var(--az-saffron); }
.q-trs { margin-top: .35rem; }
.q-tr { margin: .35rem 0 0; font-size: 1rem; line-height: 1.9; color: var(--az-ink-2); }
.q-tr[lang="fa"] { font-family: var(--az-font-fa); text-align: right; }
.q-tr small { color: var(--az-muted); font-size: .75rem; }
.q-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; margin-top: .45rem; opacity: .55; transition: opacity .2s; }
.q-verse:hover .q-actions, .q-verse:focus-within .q-actions { opacity: 1; }
.q-actions button, .q-actions a { border: 0; background: none; color: var(--az-ink-2); padding: .25rem .45rem; border-radius: 8px; font-size: .85rem; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.q-actions button:hover, .q-actions a:hover { background: var(--az-lapis-50); color: var(--az-lapis); }
.q-ref { font-size: .78rem; color: var(--az-muted); margin-inline-end: .35rem; font-variant-numeric: tabular-nums; }
@media (hover: none) { .q-actions { opacity: 1; } }

/* Mushaf layout: continuous text, buttons on tap */
.quran-app[data-mode="mushaf"] .q-verses { direction: rtl; text-align: justify; text-align-last: center; }
.quran-app[data-mode="mushaf"] .q-verse { display: inline; padding: 0; border: 0; border-radius: 4px; }
.quran-app[data-mode="mushaf"] .q-verse .q-ar { display: inline; }
.quran-app[data-mode="mushaf"] .q-trs, .quran-app[data-mode="mushaf"] .q-actions { display: none; }
.quran-app[data-mode="mushaf"] .q-verse.is-open .q-actions { display: flex; position: absolute; z-index: 5; background: var(--az-surface); border: 1px solid var(--az-line); border-radius: 10px; box-shadow: var(--az-shadow-2); padding: .2rem; opacity: 1; direction: ltr; }
html[dir="rtl"] .quran-app[data-mode="mushaf"] .q-verse.is-open .q-actions { direction: rtl; }
.quran-app[data-mode="mushaf"] .q-surah-head { display: block; }
html[dir="ltr"] .quran-app[data-mode="mushaf"] .q-surah-head { direction: ltr; }

.q-pager { max-width: 54rem; margin: 1.25rem auto 0; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.q-pager-num { color: var(--az-muted); font-size: .9rem; }
.q-khatm-note { max-width: 54rem; margin: 0 auto 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .75rem 1rem; border-radius: 14px;
  background: linear-gradient(135deg, #1F6F64, #2C8A7C); color: #fff; }

/* player */
.q-player { position: fixed; inset-inline: 0; bottom: 0; z-index: 1040; background: var(--az-lapis-950, #0B1530); color: #fff; box-shadow: 0 -8px 24px rgba(0,0,0,.3); }
.q-player .container { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-block: .55rem; }
.q-player .q-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.q-player .q-btn:hover { background: #F2C46D; color: #241602; }
.q-now { flex: 1 1 8rem; font-weight: 600; font-size: .9rem; color: #F2C46D; }
.q-player select { width: auto; }
body.q-has-player { padding-bottom: 4.5rem; }
body.q-has-player .az-fab { bottom: 5.5rem; }

/* index */
.q-hero { position: relative; text-align: center; color: #fff; padding: 3rem 0 2.5rem; background: radial-gradient(120% 90% at 50% 0%, #22407A, var(--az-lapis-900, #13254A) 60%, #0A1630); isolation: isolate; }
.q-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--az-pattern); background-size: 96px; opacity: .12; }
.q-hero-ar { font-family: 'Amiri Quran', 'Amiri', serif; font-size: clamp(1.5rem, 3.5vw, 2.3rem); color: #F2C46D; }
.q-hero-ar { line-height: 2; }
.q-hero-tr { color: rgba(255,255,255,.75); margin: .6rem 0 1rem; }
.q-hero-tr span { font-size: .85rem; }
.q-hero h1 { color: #fff !important; font-weight: 750; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.25rem; }
.q-bigsearch { max-width: 42rem; margin: 0 auto; display: flex; align-items: center; gap: .5rem; background: #fff; border-radius: 999px; padding: .35rem .35rem .35rem 1.1rem; box-shadow: 0 14px 40px -18px rgba(0,0,0,.7); }
html[dir="rtl"] .q-bigsearch { padding: .35rem 1.1rem .35rem .35rem; }
.q-bigsearch i { color: var(--az-muted); }
.q-bigsearch input { flex: 1; border: 0; outline: 0; background: transparent; color: #1B2333; min-width: 0; padding: .4rem 0; }
.q-gopage { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; color: rgba(255,255,255,.8); font-size: .9rem; }
.q-gopage input { width: 6.5rem; }
.q-card { background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-r-lg); padding: 1rem 1.15rem; }
.q-bookmarks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.q-bookmarks li { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.q-bookmarks a { text-decoration: none; }
.q-tabs .nav-link { border-radius: 999px; color: var(--az-ink-2); font-weight: 600; }
.q-tabs .nav-link.active { background: var(--az-lapis-fill, var(--az-lapis)); color: #fff; }
.q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .6rem; }
.q-grid-sm { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.q-surah { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border: 1px solid var(--az-line); border-radius: var(--az-r-md); background: var(--az-surface); color: var(--az-ink); text-decoration: none; transition: border-color .2s, transform .2s var(--az-ease); }
.q-surah:hover { border-color: rgba(var(--az-saffron-rgb), .8); transform: translateY(-1px); color: var(--az-ink); }
.q-surah-no { width: 2.3rem; height: 2.3rem; flex: none; display: grid; place-items: center; clip-path: var(--az-star); background: var(--az-saffron-100); color: var(--az-saffron-ink); font-weight: 700; font-size: .82rem; }
.q-surah-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.q-surah-txt small { color: var(--az-muted); font-size: .76rem; }
.q-surah-ar { font-family: 'Amiri Quran', 'Amiri', serif; font-size: 1.15rem; color: var(--az-lapis); white-space: nowrap; }
[data-bs-theme="dark"] .q-surah-ar { color: #F2C46D; }
.q-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.q-chips a { display: inline-flex; gap: .4rem; align-items: center; padding: .35rem .8rem; border-radius: 999px; background: var(--az-saffron-100); color: var(--az-saffron-ink); text-decoration: none; font-weight: 600; font-size: .88rem; }
.q-results { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.q-result { display: block; padding: .9rem 1.1rem; border: 1px solid var(--az-line); border-radius: var(--az-r-md); background: var(--az-surface); color: var(--az-ink); text-decoration: none; }
.q-result:hover { border-color: rgba(var(--az-saffron-rgb), .8); color: var(--az-ink); }
.q-result-ref { display: block; font-size: .8rem; color: var(--az-saffron-ink); font-weight: 700; margin-bottom: .2rem; }
.q-result .q-ar { --q-size: 1.45rem; display: block; line-height: 2.1; }
.q-result-tr { display: block; color: var(--az-ink-2); margin-top: .25rem; }
.q-result mark { background: rgba(var(--az-saffron-rgb), .35); padding: 0 .1em; border-radius: 3px; color: inherit; }
.q-toast { position: fixed; bottom: 5.5rem; left: 50%; translate: -50% 0; background: var(--az-lapis-950, #0B1530); color: #fff; padding: .55rem 1rem; border-radius: 999px; font-size: .88rem; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 2000; }
.q-toast.show { opacity: 1; }
@media print { .q-bar, .q-player, .q-actions, .q-pager, .az-sitebar, .az-strip, .az-site-footer { display: none !important; } .q-sheet { box-shadow: none; } }

/* ================= Quran Khatm ================= */
.k-progress { position: relative; overflow: hidden; color: #fff; border-radius: var(--az-r-lg); padding: 1.6rem 1.5rem 1.3rem; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #2C8A7C 0%, #1F6F64 45%, #0F3F3A 100%); box-shadow: 0 24px 50px -28px rgba(10,48,44,.9); }
.k-progress::after { content: ""; position: absolute; inset: 0; background-image: var(--az-pattern); background-size: 96px; opacity: .08; pointer-events: none; }
.k-progress > * { position: relative; z-index: 1; }
.k-progress small { display: inline-flex; align-items: center; gap: .4rem; color: #F2C46D; font-weight: 700; font-size: .85rem; }
.k-progress h2 { color: #fff !important; font-size: 1.35rem; margin: .4rem 0 .5rem; }
.k-niyyah { color: rgba(255,255,255,.85); font-size: .95rem; margin: 0 auto .9rem; max-width: 26rem; }
.k-niyyah i { color: #F2C46D; margin-inline-end: .4rem; }
.k-ring { --p: 0; width: 9.5rem; height: 9.5rem; margin: .5rem auto 1rem; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#F2C46D calc(var(--p) * 1%), rgba(255,255,255,.14) 0); }
.k-ring span { width: 7.6rem; height: 7.6rem; border-radius: 50%; background: #164E47; display: grid; place-content: center; }
.k-ring b { font-size: 1.8rem; line-height: 1; color: #fff; }
.k-ring small { color: rgba(255,255,255,.7); font-weight: 500; justify-content: center; }
.k-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 0; }
.k-stats div { background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.12); border-radius: var(--az-r-md); padding: .45rem .6rem; }
.k-stats dt { font-weight: 500; font-size: .75rem; color: rgba(255,255,255,.7); }
.k-stats dd { margin: 0; font-weight: 700; }
.k-id, .k-me { background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-r-lg); padding: 1.5rem; }
.k-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.k-h { color: var(--az-ink-2); }
.k-pages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.k-page { display: flex; align-items: center; gap: .75rem; padding: .65rem .85rem; border: 1px solid var(--az-line); border-radius: var(--az-r-md); background: var(--az-ground); }
.k-page .form-check-input { width: 1.35rem; height: 1.35rem; margin: 0; flex: none; }
.k-page-txt { flex: 1; display: flex; flex-direction: column; cursor: pointer; margin: 0; }
.k-page-txt small { color: var(--az-muted); }
.k-page.is-done { opacity: .75; }
.k-pages-sm .k-page { padding: .4rem .7rem; }
.k-past { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.k-past li { display: flex; flex-direction: column; }
.k-past small { color: var(--az-muted); }

/* Home: Quran + Khatm */
.az-quran-home { background: linear-gradient(180deg, var(--az-ground), var(--az-surface)); }
.az-qcard { height: 100%; display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem; border-radius: var(--az-r-lg); text-decoration: none; color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.az-qcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--az-pattern); background-size: 96px; opacity: .1; }
.az-qcard-quran { background: radial-gradient(120% 90% at 0% 0%, #22407A, var(--az-lapis-900, #13254A) 60%, #0A1630); }
.az-qcard-khatm { background: radial-gradient(120% 90% at 100% 0%, #2C8A7C, #1F6F64 55%, #0F3F3A); }
.az-qcard h3 { color: #fff !important; font-size: 1.35rem; margin: 0; }
.az-qcard p { color: rgba(255,255,255,.82); margin: 0; }
.az-qcard .az-qcard-ar { font-family: 'Amiri Quran', 'Amiri', serif; color: #F2C46D; font-size: 1.5rem; line-height: 1.9; }
.az-qcard .btn { align-self: flex-start; margin-top: auto; }
.az-qbar { height: .55rem; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.az-qbar span { display: block; height: 100%; background: #F2C46D; border-radius: inherit; }
.az-qcard-stats { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .88rem; color: rgba(255,255,255,.85); }

.az-site-drop { border-radius: var(--az-r-md); border: 1px solid var(--az-line); box-shadow: var(--az-shadow-2); padding: .4rem; }
.az-site-drop .dropdown-item { border-radius: 8px; display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; font-weight: 600; color: var(--az-ink-2); }
.az-site-drop .dropdown-item i { color: var(--az-saffron); width: 1.1rem; text-align: center; }
.az-site-drop .dropdown-item.active, .az-site-drop .dropdown-item:active { background: var(--az-lapis-50); color: var(--az-lapis-900); }
@media (min-width: 992px) { .az-site-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; } }
