/* =====================================================================
   IslamicLearnings13 — Global Stylesheet
   Premium DARK theme (deep espresso + gold + cream). Mobile-first.
   Every section is dark; gold and white are the accents/text.
   ===================================================================== */

/* ---------- Custom local font: Jameel Noori Nastaleeq ----------
   The file lives in /Font. unicode-range scopes it to Arabic-script
   code points, so it can sit first in the global stack without
   affecting Latin/UI text (which stays on Inter). */
@font-face {
  font-family: "Jameel Noori Nastaleeq";
  src: url("../Font/Jameel%20Noori%20Nastaleeq%20Regular/Jameel%20Noori%20Nastaleeq%20Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}

/* ---------- Quranic font: Amiri Quran (self-hosted from /Font) ----------
   The standard Quranic web font (SIL Open Font License), subset to Arabic.
   Used for verses, duas and Arabic text; falls back to Naskh/Nastaleeq. */
@font-face {
  font-family: "Amiri Quran";
  /* Local file first (exact path/filename inside /Font); Google CDN as a
     safety net so Arabic never falls back to a system font if /Font is not
     served (e.g. a deployment that omitted the folder). */
  src: url("../Font/AmiriQuran/amiri-quran-arabic.woff2") format("woff2"),
       url("https://fonts.gstatic.com/s/amiriquran/v19/_Xmo-Hk0rD6DbUL4_vH8Zp5v5i2ssg.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}

:root {
  /* Dark surfaces */
  --bg-0: #f5f4ef;   /* deepest */
  --bg-1: #faf9f5;   /* base */
  --bg-2: #efece4;   /* raised */
  --bg-3: #ffffff;   /* card */
  --bg-4: #f2efe7;   /* hover / elevated */

  /* Gold accents */
  --gold-800: #8a6a1f;   /* deep bronze -> accent text on light */
  --gold-700: #a9842f;   /* primary gold (links, buttons) */
  --gold-600: #c9a15b;
  --gold-500: #c9a15b;
  --gold-400: #d8bd82;
  --gold-300: #e8d6a8;
  --gold-200: #efe3c6;   /* light chip border */
  --gold-100: #f6efdc;   /* light chip bg */
  --gold-050: #faf6ec;   /* subtle panel bg */

  --ivory: #faf9f5;
  --paper: #ffffff;
  --ink: #2d2b2a;        /* body text (charcoal) */
  --muted: #6b665d;      /* muted text */
  --line: #e3ddd0;       /* borders */
  --line-soft: #ece7db;
  --espresso: #2d2b2a;
  --espresso-2: #3a3733;

  --shadow: 0 18px 44px rgba(45, 43, 42, .10);
  --shadow-sm: 0 8px 22px rgba(45, 43, 42, .07);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --header-h: 76px;

  /* Arabic fonts are listed first but scoped to Arabic code points
     (unicode-range), so Latin/UI text falls through to Inter. */
  --quran: "Amiri Quran", "Noto Naskh Arabic", "Scheherazade New", "Traditional Arabic", serif;
  --font-custom: "Jameel Noori Nastaleeq", "Noto Naskh Arabic", "Scheherazade New", "Traditional Arabic", serif;
  --font: "Amiri Quran", "Jameel Noori Nastaleeq", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --arabic: "Amiri Quran", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", "Scheherazade New", "Traditional Arabic", serif;
}

/* ---------- Arabic / Quranic font utilities ---------- */
/* .font-quran / .font-uthmanic -> the Quranic font (verses, duas, Arabic text) */
/* .font-arabic -> the full Arabic stack (Quranic first, then fallbacks) */
/* .font-custom -> the local Nastaleeq font (Urdu-style) */
.font-quran,
.font-uthmanic { font-family: var(--quran); }
.font-arabic   { font-family: var(--arabic); }
.font-custom   { font-family: var(--font-custom); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-0);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

.pattern-bg {
  background-color: var(--bg-0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c9a15b' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M40 8 L52 20 L64 8 L56 20 L68 32 L56 44 L68 56 L56 44 L44 56 L32 44 L20 56 L28 44 L16 32 L28 20 L16 8 L28 20 Z'/%3E%3Crect x='0' y='0' width='80' height='80'/%3E%3C/g%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--gold-800); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.22; color: var(--ink); margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }

.arabic {
  font-family: var(--arabic);
  font-size: 1.9rem;
  line-height: 2.15;
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;      /* keep Arabic isolated from surrounding LTR text */
  letter-spacing: normal;     /* letter-spacing breaks Arabic letter joining */
  font-feature-settings: normal; /* do not disable ligatures/tashkeel */
  font-variant-ligatures: normal;
  text-rendering: optimizeLegibility;
  color: #3a2f1e;   /* deep warm brown — readable on the cream background */
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* ---------- Section system (each section a distinct dark shade) ---------- */
.sec { padding: 72px 0; position: relative; border-top: 1px solid rgba(201, 161, 91, .10); }
.sec--hero { border-top: 0; }
.sec--featured { background: var(--bg-1); }
.sec--audio    { background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); }
.sec--latest   { background: var(--bg-0); }
.sec--about    { background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); }
.sec--subscribe{ background: linear-gradient(160deg, var(--gold-100), var(--bg-2)); }
.sec--contact  { background: var(--bg-1); }

/* legacy aliases kept for inner pages */
.section { padding: 72px 0; background: var(--bg-0); }
.section--tight { padding: 44px 0; }
.section--paper { background: var(--bg-1); }

.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .16em;
  font-size: .72rem; font-weight: 700; color: var(--gold-800); margin-bottom: .6rem;
}

.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 14px; color: var(--gold-500); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 46px; background: currentColor; opacity: .6; }
.ornament span { font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: 13px 24px;
  border-radius: 999px; font-weight: 700; font-size: .95rem; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background .2s ease, color .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--gold-700); color: #1a1206; }
.btn--primary:hover { background: var(--gold-400); color: #1a1206; }
.btn--gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-700)); color: #1a1206; }
.btn--gold:hover { color: #1a1206; }
.btn--ghost { background: transparent; color: var(--gold-800); border-color: var(--gold-700); }
.btn--ghost:hover { background: var(--gold-100); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--light:hover { background: var(--gold-300); color: #1a1206; }

/* ---------- Ticker (Hijri date + live time) ---------- */
.ticker {
  background: linear-gradient(90deg, var(--gold-200), var(--gold-100) 55%, var(--gold-200));
  color: var(--ink); overflow: hidden; position: relative; z-index: 70;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.ticker__track { display: inline-flex; white-space: nowrap; will-change: transform; animation: ticker-scroll 46s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; padding: 8px 26px; font-size: .84rem; font-weight: 700; letter-spacing: .01em; }
.ticker__item .dot { color: var(--gold-700); }
.ticker__item .ar { font-family: var(--arabic); font-size: 1.05rem; direction: rtl; unicode-bidi: isolate; letter-spacing: normal; }
.ticker__clock { font-variant-numeric: tabular-nums; font-weight: 800; }
.ticker__item--city { display: inline-block; }  /* plain inline flow (no flex gaps between words) */
.ticker__city { font-weight: 800; }
.ticker__time { font-variant-numeric: tabular-nums; }
.ticker__loading { opacity: .85; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #2b2621;   /* rich dark brown header wrapper */
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-height: var(--header-h); padding-block: 12px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; display: grid; place-items: center;
  overflow: hidden; background: linear-gradient(135deg, var(--gold-600), var(--gold-800));
  color: #1a1206; font-size: 1.5rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; gap: 0; line-height: 1; color: var(--ink); font-weight: 800; font-size: 1.06rem; min-width: 0; }
.brand-text small { margin-top: 6px; font-weight: 500; font-size: .66rem; line-height: 1.15; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* on phones the tagline can't fit cleanly — hide it rather than truncate */
@media (max-width: 767px) { .brand-text small { display: none; } }
/* keep the header on a single row on very small screens */
@media (max-width: 400px) {
  .header-inner { gap: 8px 10px; }
  .brand { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; font-size: 1.3rem; }
  .brand-text { font-size: 1rem; }
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); cursor: pointer; align-items: center; justify-content: center; margin-left: auto; }
.nav-toggle span { width: 22px; height: 2px; background: var(--gold-800); transition: .2s; }

/* desktop nav: no overlap, evenly spaced, right aligned */
.primary-nav { flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: auto; }
.nav-list { display: flex; align-items: center; gap: 1px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav-item { position: relative; display: flex; flex: 0 0 auto; }
.nav-list a, .nav-link {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 11px;
  border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .88rem;
  background: none; border: 0; cursor: pointer; font-family: inherit; line-height: 1; white-space: nowrap;
}
.nav-list a:hover, .nav-link:hover { background: var(--gold-100); text-decoration: none; color: var(--ink); }
.nav-list a.active { color: var(--gold-800); background: var(--gold-100); }
.caret { font-size: .62rem; opacity: .7; transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 262px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px;
  list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: .18s; z-index: 5;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { margin: 0; }
.dropdown a { display: block; height: auto; padding: 10px 12px; border-radius: 8px; font-size: .9rem; }
.dd-sep { height: 1px; background: var(--line); margin: 6px 8px; }

/* header socials only on very wide screens to keep the menu uncluttered */
.nav-socials { display: none; align-items: center; gap: 6px; padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--line); }
@media (min-width: 1400px) { .nav-socials { display: flex; } }
.social-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-800); transition: .18s; flex: 0 0 34px; }
.social-icon:hover { background: var(--gold-700); color: #1a1206; text-decoration: none; transform: translateY(-2px); }
.social-icon svg { width: 17px; height: 17px; fill: currentColor; }

/* Dark header: keep text, icons and menu items high-contrast on the brown wrapper */
.site-header .brand-text { color: #f7f4ee; }
.site-header .brand-text small { color: rgba(247, 244, 238, .62); }
.site-header .nav-toggle { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.site-header .nav-toggle span { background: #f7f4ee; }
.site-header .nav-list a, .site-header .nav-link { color: #f0ece3; }
.site-header .nav-list a:hover, .site-header .nav-link:hover { background: rgba(255, 255, 255, .10); color: #ffffff; }
.site-header .nav-list a.active { color: #e6c47e; background: rgba(227, 192, 122, .16); }
.site-header .dropdown { background: #352f28; border-color: rgba(255, 255, 255, .12); box-shadow: 0 18px 44px rgba(0, 0, 0, .35); }
.site-header .dropdown a { color: #f0ece3; }
.site-header .dropdown a:hover { background: rgba(255, 255, 255, .10); color: #ffffff; }
.site-header .dd-sep { background: rgba(255, 255, 255, .14); }
.site-header .nav-socials { border-left-color: rgba(255, 255, 255, .16); }
.site-header .social-icon { background: rgba(255, 255, 255, .10); color: #e6c47e; }
.site-header .social-icon:hover { background: var(--gold-700); color: #1a1206; }

/* extra horizontal breathing room before the final nav item (Contact) — desktop only */
@media (min-width: 1200px) {
  .nav-list > .nav-item--end { margin-left: 18px; }
}

/* ---------- Hero (background image from /Background) ---------- */
.sec--hero {
  color: #fff; overflow: hidden; padding: 0; min-height: 560px;
  display: flex; align-items: center; position: relative;
  background-color: #2d2b2a; /* solid fallback if the image cannot load */
  /* top layer = photo, second layer = vector fallback */
  background-image: url("../Background/Background-1280.jpg"), url("../assets/hero.svg");
  background-size: cover, cover;
  background-position: center 42%, center;
  background-repeat: no-repeat, no-repeat;
}
.sec--hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(38,30,18,.88) 0%, rgba(38,30,18,.66) 46%, rgba(38,30,18,.34) 76%, rgba(38,30,18,.24) 100%),
    linear-gradient(180deg, rgba(38,30,18,.20), rgba(38,30,18,.55));
}
.hero-inner { position: relative; z-index: 2; padding-block: 96px; display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
.sec--hero .hero-bismillah { font-family: var(--quran); font-size: clamp(1.5rem, 4vw, 2.2rem); color: var(--gold-300); margin-bottom: 14px; direction: rtl; unicode-bidi: isolate; letter-spacing: normal; }
.sec--hero h1 { color: #ffffff; text-shadow: 0 2px 22px rgba(0,0,0,.55); }
.sec--hero .lead { font-size: 1.12rem; color: #efe6d0; max-width: 620px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; list-style: none; padding: 0; }
.hero-badges span { background: rgba(255,255,255,.12); border: 1px solid rgba(227,192,122,.5); padding: 6px 14px; border-radius: 999px; font-size: .82rem; color: #fff8e6; }
/* responsive hero image: lighter on phones, sharper on very large screens */
@media (max-width: 720px) {
  .sec--hero { background-image: url("../Background/Background-800.jpg"), url("../assets/hero.svg"); }
  .sec--hero::before {
    background:
      linear-gradient(180deg, rgba(38,30,18,.72), rgba(38,30,18,.62) 40%, rgba(38,30,18,.86));
  }
}
@media (min-width: 1600px) {
  .sec--hero { background-image: url("../Background/Background-1920.jpg"), url("../assets/hero.svg"); }
}
@media (min-width: 2200px) {
  .sec--hero { background-image: url("../Background/Background.jpg"), url("../assets/hero.svg"); }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: minmax(0, 1fr); }
.grid-3 { grid-template-columns: minmax(0, 1fr); }
.card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card--link { display: block; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card--link:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-700); }
.card-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-800); font-size: 1.3rem; margin-bottom: 14px; }

/* ---------- Featured video ---------- */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-facade .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(201,161,91,.96); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.video-facade .play-btn svg { width: 30px; height: 30px; fill: #1a1206; margin-left: 4px; }
.video-facade:hover .play-btn { background: var(--gold-400); }

/* ---------- Audio library (collapsible cascade) ---------- */
.audio-cat { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.audio-cat > summary {
  cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 800; font-size: 1.05rem;
  color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.audio-cat > summary::-webkit-details-marker { display: none; }
.audio-cat > summary::after { content: "▾"; color: var(--gold-700); font-size: 1rem; transition: transform .2s; }
.audio-cat[open] > summary::after { transform: rotate(180deg); }
.audio-cat[open] > summary { border-bottom: 1px solid var(--line); }
.audio-cat > summary:hover { background: var(--bg-4); }
.audio-cat__body { padding: 10px; }
.audio-group { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.audio-group > summary { cursor: pointer; list-style: none; padding: 13px 16px; font-weight: 700; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .95rem; }
.audio-group > summary::-webkit-details-marker { display: none; }
.audio-group > summary::after { content: "▾"; color: var(--gold-600); transition: transform .2s; }
.audio-group[open] > summary::after { transform: rotate(180deg); }
.audio-group > summary:hover { background: var(--bg-3); }
.track-list { list-style: none; margin: 0; padding: 0 8px 8px; }
.track { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.track:hover { background: var(--bg-3); }
.track.playing { background: var(--gold-100); }
.track .t-play { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; border: 0; background: var(--gold-700); color: #1a1206; display: grid; place-items: center; cursor: pointer; }
.track .t-play svg { width: 13px; height: 13px; fill: #1a1206; }
.track.playing .t-play { background: var(--gold-400); }
.track .t-title { font-size: .92rem; color: var(--ink); }

/* generic chip row (used by prayer quick-picks and the tasbih presets) */
.audio-cats, .chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--gold-700); background: var(--bg-2); color: var(--gold-800); border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: .86rem; cursor: pointer; font-family: inherit; }
.chip:hover { background: var(--gold-100); color: var(--ink); }
.chip.active { background: var(--gold-700); border-color: var(--gold-700); color: #1a1206; }

/* mini player */
.miniplayer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; transform: translateY(120%); transition: transform .28s ease; background: var(--bg-1); border-top: 1px solid var(--line); color: var(--ink); box-shadow: 0 -8px 30px rgba(45,43,42,.12); }
.miniplayer.show { transform: translateY(0); }
.miniplayer-inner { max-width: var(--maxw); margin-inline: auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.mp-info { min-width: 0; flex: 1 1 auto; }
.mp-title { font-size: .86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.mp-sub { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-btn { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; border: 0; background: var(--gold-700); color: #1a1206; display: grid; place-items: center; cursor: pointer; }
.mp-btn svg { width: 16px; height: 16px; fill: #1a1206; }
.mp-btn.mp-play { width: 46px; height: 46px; flex-basis: 46px; }
.mp-btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.mp-btn.ghost svg { fill: var(--ink); }
.mp-seek { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; }
.mp-seek input[type=range] { width: 100%; accent-color: var(--gold-500); }
.mp-time { font-size: .72rem; font-variant-numeric: tabular-nums; color: var(--muted); }

/* ---------- Latest videos ---------- */
.yt-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.yt-card { display: block; color: inherit; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }
.yt-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-700); }
.yt-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-thumb .yt-badge { position: absolute; bottom: 8px; right: 8px; background: rgba(10,7,3,.85); color: #fff; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.yt-card .yt-title { padding: 14px 16px; font-size: .92rem; font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-status { text-align: center; color: var(--muted); font-size: .9rem; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.about-portrait { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); display: grid; place-items: center; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait .ph { text-align: center; color: var(--gold-800); padding: 20px; font-size: .85rem; }

/* ---------- Subscribe ---------- */
.subscribe-socials { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.social-pill { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.social-pill:hover { background: var(--gold-700); color: #1a1206; text-decoration: none; }
.social-pill svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); }
.contact-form { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.contact-aside { background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-aside ul { list-style: none; padding: 0; margin: 0; }
.contact-aside li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-width: 0; }
.contact-aside a { overflow-wrap: anywhere; }

/* ---------- Forms (shared) ---------- */
select, input, textarea {
  font-family: inherit; font-size: .95rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2); width: 100%;
}
select:focus, input:focus, textarea:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: #8a7f68; }
option { background: var(--bg-2); color: var(--ink); }

/* ---------- Date / clock panel ---------- */
.datetime-panel { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.dt-item { display: flex; align-items: baseline; gap: 10px; }
.dt-item .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); min-width: 96px; }
.dt-item .value { font-weight: 700; color: var(--gold-800); }

/* ---------- Daily cards ---------- */
.daily-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.daily-card { border-top: 4px solid var(--gold-500); }
.daily-card .arabic { margin: 0 0 14px; }
.daily-card .translation { font-size: 1.02rem; }
.daily-card .source { font-size: .82rem; color: var(--muted); margin-top: 12px; font-weight: 600; }

/* ---------- Prayer times ---------- */
.prayer-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.prayer-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prayer-cell { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.prayer-cell .name { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.prayer-cell .time { font-size: 1.35rem; font-weight: 800; color: var(--gold-800); margin-top: 4px; }
.prayer-meta { font-size: .82rem; color: var(--muted); margin-top: 16px; }
.status-note { font-size: .85rem; color: var(--muted); }

/* ---------- Content article ---------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { margin-top: 2em; padding-bottom: .3em; border-bottom: 2px solid var(--gold-100); }
.prose h3 { margin-top: 1.5em; color: var(--gold-800); }
.step { background: var(--bg-3); border: 1px solid var(--line); border-left: 5px solid var(--gold-500); border-radius: var(--radius-sm); padding: 22px; margin: 0 0 20px; box-shadow: var(--shadow-sm); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-700); color: #1a1206; font-weight: 700; font-size: .9rem; margin-right: 8px; }
.dua { background: var(--gold-050); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin: 14px 0; }
.dua .arabic { font-size: 1.55rem; margin: 0 0 8px; text-align: right; }
.dua .translit { font-style: italic; color: var(--muted); font-size: .92rem; }
.dua .meaning { margin-top: 6px; }
.dua .ref { font-size: .8rem; font-weight: 600; color: var(--gold-800); margin-top: 8px; }
.verify-note { background: #fdf6e3; border: 1px solid #f0e0b8; border-left: 5px solid var(--gold-500); border-radius: var(--radius-sm); padding: 16px 18px; font-size: .92rem; color: #6b5300; margin: 20px 0; }
.verify-note strong { color: #4d3c00; }
.toc { background: var(--gold-050); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.toc h3 { margin-top: 0; font-size: 1rem; }
.toc ol { margin-bottom: 0; }

/* ---------- Books ---------- */
.book-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.book-card { display: flex; gap: 18px; }
.book-cover { flex: 0 0 92px; width: 92px; height: 130px; border-radius: 8px; background: linear-gradient(150deg, var(--gold-300), var(--gold-500)); color: #3a2a0a; display: grid; place-items: center; text-align: center; font-family: var(--arabic); font-size: 1.1rem; padding: 8px; border: 1px solid var(--gold-800); }
.book-meta { font-size: .82rem; color: var(--muted); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-800); background: var(--gold-100); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }

/* ---------- Zakat ---------- */
.zakat-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.zakat-field { margin-bottom: 14px; }
.zakat-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.zakat-field .hint { font-size: .78rem; color: var(--muted); font-weight: 400; }
.zakat-result { background: linear-gradient(160deg, var(--bg-4), var(--bg-2)); border: 1px solid var(--gold-700); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--ink); }
.zakat-result .amount { font-size: 2.2rem; font-weight: 800; color: var(--gold-800); margin: 8px 0; }
.zakat-result .note { font-size: .85rem; color: var(--muted); }
.assumptions { font-size: .86rem; color: var(--muted); }
.assumptions li { margin-bottom: 6px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.post-card { display: flex; flex-direction: column; }
.post-card .tag { align-self: flex-start; }
.post-card h3 { margin-bottom: .4rem; }
.post-card .excerpt { color: var(--muted); font-size: .95rem; }
.post-card .meta { margin-top: auto; padding-top: 12px; font-size: .8rem; color: var(--muted); }
.article-header { max-width: 780px; margin: 0 auto 30px; }
.article-header .meta { color: var(--muted); font-size: .9rem; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--gold-800); }
.article-body { max-width: 780px; margin-inline: auto; }
.article-body h2 { margin-top: 2em; }
.article-body h3 { margin-top: 1.4em; }
.article-body blockquote { border-left: 4px solid var(--gold-500); margin: 1.4em 0; padding: 6px 20px; background: var(--gold-050); font-style: italic; color: var(--ink); }
.article-body .arabic { margin: 1em 0; }
.internal-links { background: var(--gold-050); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-top: 34px; }
.internal-links h3 { margin-top: 0; font-size: 1rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; }
.share-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit; }
.share-btn:hover { background: var(--gold-100); color: var(--gold-800); text-decoration: none; }

/* ---------- Footer (distinct section) ---------- */
.site-footer { background: var(--bg-2); color: var(--muted); padding: 60px 0 28px; border-top: 4px solid var(--gold-700); position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 100%; opacity: .5; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23c9a15b' stroke-opacity='0.08' stroke-width='1'%3E%3Cpath d='M60 10 L74 26 L94 26 L94 46 L110 60 L94 74 L94 94 L74 94 L60 110 L46 94 L26 94 L26 74 L10 60 L26 46 L26 26 L46 26 Z'/%3E%3C/g%3E%3C/svg%3E"); }
.site-footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr); }
.site-footer h4 { color: var(--gold-800); font-size: .92rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: var(--ink); font-size: .92rem; }
.site-footer a:hover { color: var(--gold-700); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.footer-socials .social-icon { background: #fff; color: var(--gold-800); border: 1px solid var(--line); }
.footer-socials .social-icon:hover { background: var(--gold-700); color: #1a1206; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.disclaimer { font-size: .82rem; color: var(--muted); max-width: 640px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold-700); color: #1a1206; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prayer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .datetime-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; padding-block: 120px; }
  .daily-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zakat-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .prayer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .contact-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
}

@media (min-width: 1200px) {
  .footer-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
}

/* Mobile menu: proper hamburger below 1200px so nothing overlaps */
@media (max-width: 1199px) {
  .nav-toggle { display: flex; }
  .header-inner { justify-content: space-between; }
  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    background: #2b2621; border-bottom: 1px solid rgba(255, 255, 255, .10);
    padding: 12px 16px 22px; gap: 4px; transform: translateY(-130%);
    transition: transform .25s ease; box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; overflow-x: hidden;
  }
  .primary-nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav-item { display: block; width: 100%; }
  .nav-list a, .nav-link { display: flex; width: 100%; height: auto; padding: 14px 12px; justify-content: space-between; text-align: left; border-radius: 10px; font-size: 1rem; }
  .has-dropdown.open .caret { transform: rotate(180deg); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid var(--gold-200); border-radius: 0; margin: 2px 0 8px 12px; padding: 0; display: none; min-width: 0; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a { padding: 12px; }
  .nav-socials { display: flex; border-left: 0; padding: 16px 0 0; margin: 10px 0 0; border-top: 1px solid var(--line); justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
}

/* =====================================================================
   Umrah tools & guides  +  new features
   ===================================================================== */

.page-hero { background: linear-gradient(160deg, var(--bg-3), var(--bg-0)); border-bottom: 1px solid var(--line); color: var(--ink); padding: 48px 0; }
.page-hero h1 { color: var(--ink); margin-bottom: .3em; }
.page-hero p { color: var(--muted); max-width: 720px; margin-bottom: 0; }
.page-hero .breadcrumbs, .page-hero .breadcrumbs a { color: var(--gold-800); }
.page-hero .breadcrumbs a:hover { color: var(--gold-700); }

.backlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 18px; }

.tool-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.tool-card { display: block; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.tool-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-700); }
.tool-card .tool-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-800); font-size: 1.5rem; margin-bottom: 14px; }
.tool-card h3 { margin: 0 0 .4rem; }
.tool-card p { color: var(--muted); margin-bottom: 0; font-size: .95rem; }
.tool-card .tool-more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--gold-800); font-size: .88rem; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* duas */
.dua-card { background: var(--bg-3); border: 1px solid var(--line); border-left: 5px solid var(--gold-500); border-radius: var(--radius-sm); padding: 22px; margin: 0 0 20px; box-shadow: var(--shadow-sm); }
.dua-card h3 { margin-top: 0; }
.dua-card .arabic { font-size: 1.7rem; line-height: 2.2; margin: 6px 0 12px; }
.dua-card .translit { font-style: italic; color: var(--muted); }
.dua-card .meaning { margin-top: 8px; }
.dua-card .ref { font-size: .82rem; font-weight: 700; color: var(--gold-800); margin-top: 10px; }

/* live panels */
.panel-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.panel h3 { margin-top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel .city-ar { font-family: var(--quran); color: var(--gold-800); font-size: 1.3rem; direction: rtl; unicode-bidi: isolate; letter-spacing: normal; }
.panel .prayer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.w-temp { font-size: 2.6rem; font-weight: 800; color: var(--gold-800); line-height: 1; }
.w-cond { font-weight: 700; color: var(--ink); margin: 6px 0 14px; }
.w-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.w-meta div { text-align: center; background: var(--gold-050); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.w-meta .k { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.w-meta .v { font-weight: 800; color: var(--gold-800); }

/* qibla */
.qibla-wrap { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .qibla-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.compass { position: relative; width: min(320px, 80vw); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--bg-3), var(--bg-1)); border: 3px solid var(--gold-700); box-shadow: var(--shadow); }
.compass .rose { position: absolute; inset: 0; }
.compass .needle { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .25s ease; }
.compass .needle svg { width: 46%; height: 46%; }
.compass .card-n { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font-weight: 800; color: var(--gold-800); }
.compass .card-s { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-weight: 700; color: var(--muted); }
.qibla-readout { text-align: center; }
.qibla-bearing { font-size: 2.4rem; font-weight: 800; color: var(--gold-800); }
.qibla-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }

/* planner */
.planner { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .planner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }
.countdown { background: linear-gradient(160deg, var(--bg-4), var(--bg-2)); border: 1px solid var(--gold-700); color: var(--ink); border-radius: var(--radius); padding: 26px; text-align: center; }
.countdown .days { font-size: 3rem; font-weight: 800; color: var(--gold-800); line-height: 1; }
.checklist { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.checklist h3 { margin-top: 0; }
.checklist fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.checklist legend { font-weight: 800; color: var(--gold-800); margin-bottom: 6px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; }
.check-item input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold-600); flex: 0 0 18px; }
.progress { height: 10px; background: var(--gold-100); border-radius: 999px; overflow: hidden; margin: 6px 0 14px; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-500), var(--gold-700)); transition: width .25s; }

/* currency */
.fx-card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.fx-row { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 700px) { .fx-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); } }
.fx-result { margin-top: 18px; background: linear-gradient(160deg, var(--bg-4), var(--bg-2)); border: 1px solid var(--gold-700); color: var(--ink); border-radius: var(--radius-sm); padding: 22px; text-align: center; }
.fx-result .big { font-size: 2rem; font-weight: 800; color: var(--gold-800); }
.fx-rate { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.swap-btn { align-self: center; }

/* ---------- 99 Names of Allah ---------- */
.names-search { max-width: 460px; margin: 0 auto 26px; }
.names-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .names-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .names-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.name-card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; display: flex; gap: 14px; align-items: flex-start; transition: border-color .18s, transform .18s; }
.name-card:hover { border-color: var(--gold-700); transform: translateY(-2px); }
.name-card .num { font-size: .72rem; color: var(--gold-700); font-weight: 800; min-width: 26px; padding-top: 6px; }
.name-card .ar { font-family: var(--quran); font-size: 1.9rem; color: var(--ink); line-height: 1.4; direction: rtl; unicode-bidi: isolate; letter-spacing: normal; }
.name-card .tr { color: var(--gold-800); font-weight: 700; }
.name-card .mn { color: var(--muted); font-size: .92rem; }
.names-empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* ---------- Tasbih counter ---------- */
.tasbih { max-width: 560px; margin-inline: auto; text-align: center; }
.tasbih-presets { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.tasbih-dhikr { font-family: var(--arabic); font-size: 2rem; color: var(--gold-800); direction: rtl; margin-bottom: 4px; }
.tasbih-label { color: var(--muted); margin-bottom: 18px; }
.tasbih-count { font-size: clamp(4rem, 18vw, 6rem); font-weight: 800; color: var(--ink); line-height: 1; }
.tasbih-target { color: var(--muted); margin-bottom: 22px; }
.tasbih-btn {
  width: min(220px, 62vw); height: min(220px, 62vw); border-radius: 50%;
  border: 4px solid var(--gold-700); background: radial-gradient(circle at 50% 34%, var(--gold-400), var(--gold-700));
  color: #1a1206; font-size: 1.15rem; font-weight: 800; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .08s ease; user-select: none;
}
.tasbih-btn:active { transform: scale(.96); }
.tasbih-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.tasbih-done { color: var(--gold-800); font-weight: 800; margin-top: 16px; min-height: 1.4em; }

/* ---------- Islamic calendar ---------- */
.cal-converter { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .cal-converter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cal-box { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cal-box h3 { margin-top: 0; }
.cal-out { margin-top: 14px; background: var(--gold-050); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 700; color: var(--gold-800); min-height: 3em; }
.event-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.event-card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.event-card .ev-name { font-weight: 800; color: var(--ink); }
.event-card .ev-hijri { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.event-card .ev-date { color: var(--gold-800); font-weight: 700; margin-top: 8px; }
.event-card .ev-days { color: var(--gold-800); font-size: .85rem; margin-top: 6px; }
