/* ============================================================
   Dikr Quran — Design System  (dikr blue + iOS aesthetics)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Scheherazade+New:wght@400;700&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Brand blue */
  --blue:          #46bfff;
  --blue-dark:     #1aaae8;
  --blue-darker:   #0d88c4;
  --blue-bg:       rgba(70, 191, 255, 0.10);
  --blue-border:   rgba(70, 191, 255, 0.28);
  --blue-glow:     rgba(70, 191, 255, 0.18);

  /* iOS system colours */
  --sys-bg:        #f2f2f7;   /* systemGray6 */
  --sys-bg2:       #e5e5ea;   /* systemGray5 */
  --page-bg:       #ffffff;
  --page-text:     #1c1c1e;   /* label */
  --text-sec:      #6e6e73;   /* secondaryLabel */
  --text-ter:      #aeaeb2;   /* tertiaryLabel */
  --separator:     rgba(60, 60, 67, 0.12);

  /* Page anatomy */
  --page-border:   var(--blue);
  --line:          var(--blue);

  /* Typography */
  --font-quran:    'Scheherazade New', 'Amiri', Georgia, serif;
  --font-ui:       'Amiri', -apple-system, 'Segoe UI', sans-serif;
  --size-quran:    26px;
  --lh-quran:      2.5;

  /* Motion */
  --ease-ios:      cubic-bezier(0.4, 0, 0.2, 1);
  --dur:           0.32s;
}

/* Dark mode */
body.dark {
  --sys-bg:        #1c1c1e;
  --sys-bg2:       #2c2c2e;
  --page-bg:       #111111;
  --page-text:     #f2f2f7;
  --text-sec:      #aeaeb2;
  --text-ter:      #6e6e73;
  --separator:     rgba(255,255,255,0.10);
  --blue-border:   rgba(70, 191, 255, 0.22);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: var(--font-ui);
  background: var(--sys-bg);
  color: var(--page-text);
  min-height: 100vh;
  direction: rtl;
  transition: background var(--dur) var(--ease-ios), color var(--dur) var(--ease-ios);
  -webkit-font-smoothing: antialiased;
}

/* ── GLASSMORPHISM HEADER ───────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(200%) blur(22px);
  -webkit-backdrop-filter: saturate(200%) blur(22px);
  border-bottom: 0.5px solid rgba(70, 191, 255, 0.22);
  box-shadow:
    0 0.5px 0 rgba(70, 191, 255, 0.15),
    0 2px 16px rgba(70, 191, 255, 0.08);
  transition: background var(--dur);
}

body.dark .site-header {
  background: rgba(28, 28, 30, 0.82);
  border-bottom-color: rgba(70, 191, 255, 0.15);
  box-shadow: 0 0.5px 0 rgba(70, 191, 255, 0.12), 0 2px 20px rgba(0,0,0,0.4);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* ── Header home link ───────────────────────────────────────── */
.header-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.header-home-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-sec);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  transition: background 0.18s, color 0.18s;
}
.header-home-link i { font-size: 12px; }
.header-home-link:hover,
.header-home-link.active {
  background: var(--blue-bg);
  color: var(--blue-dark);
}
body.dark .header-home-link:hover,
body.dark .header-home-link.active {
  color: var(--blue);
  background: rgba(70,191,255,0.12);
}

/* ── Logo ──────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 22%;   /* iOS app icon style */
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(70,191,255,0.30), 0 0 0 0.5px rgba(70,191,255,0.2);
}

.logo-text {
  font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: -0.3px;
}
body.dark .logo-text { color: var(--blue); }


/* ── Header actions ─────────────────────────────────────────── */
.header-actions { display: flex; gap: 8px; justify-content: flex-end; }

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--blue-border);
  background: var(--blue-bg);
  color: var(--blue-dark);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.15s;
}
.btn-icon:hover { background: rgba(70,191,255,0.2); transform: scale(1.05); }
body.dark .btn-icon { color: var(--blue); }

/* ── Main ───────────────────────────────────────────────────── */
.main-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

/* ── Top bar ────────────────────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 2px;
}

.page-meta { display: flex; gap: 8px; }

.meta-badge {
  background: var(--blue);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-family: var(--font-quran);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(70,191,255,0.3);
}

.font-controls { display: flex; gap: 6px; }

.btn-font {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--blue-border);
  background: var(--blue-bg);
  color: var(--blue-dark);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-quran);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
.btn-font:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
body.dark .btn-font { color: var(--blue); }

/* ── Book wrapper ───────────────────────────────────────────── */
.book-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* ── Nav arrows ─────────────────────────────────────────────── */
.nav-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(70,191,255,0.4);
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  flex-shrink: 0;
}
.nav-arrow:hover:not(:disabled) {
  background: var(--blue-dark);
  transform: scale(1.07);
  box-shadow: 0 6px 20px rgba(70,191,255,0.5);
}
.nav-arrow:disabled {
  background: var(--sys-bg2);
  color: var(--text-ter);
  box-shadow: none;
  cursor: not-allowed;
}

/* ── Quran page ─────────────────────────────────────────────── */
.quran-page {
  flex: 1;
  max-width: 620px;
  min-height: 800px;
  background: var(--page-bg);
  border-radius: 4px 10px 10px 4px;
  box-shadow:
    0 10px 40px rgba(0,0,0,0.18),
    0 2px 8px rgba(0,0,0,0.10),
    inset 4px 0 12px rgba(70,191,255,0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity var(--dur) var(--ease-ios), transform var(--dur) var(--ease-ios);
}

/* Spine shadow */
.quran-page::before {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 8px;
  background: linear-gradient(to left, rgba(70,191,255,0.10), transparent);
  pointer-events: none;
  z-index: 2;
}

/* Page curl */
.quran-page::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--sys-bg) 50%, transparent 50%);
  pointer-events: none;
  z-index: 2;
}
body.dark .quran-page::after {
  background: linear-gradient(135deg, #0a0a0a 50%, transparent 50%);
}

/* Page flip animations */
.quran-page.flip-out { animation: flipOut var(--dur) var(--ease-ios) forwards; }
.quran-page.flip-in  { animation: flipIn  var(--dur) var(--ease-ios) forwards; }

@keyframes flipOut {
  0%   { opacity: 1; transform: rotateY(0) translateX(0); }
  100% { opacity: 0; transform: rotateY(-12deg) translateX(-24px); }
}
@keyframes flipIn {
  0%   { opacity: 0; transform: rotateY(12deg) translateX(24px); }
  100% { opacity: 1; transform: rotateY(0) translateX(0); }
}

/* ── Gold → Blue decorative border ──────────────────────────── */
.page-frame {
  margin: 12px;
  border: 1.5px solid var(--blue);
  border-radius: 3px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0.99; /* stacking context for corners */
}

/* Corner ornaments */
.page-frame::before,
.page-frame::after {
  content: '✦';
  position: absolute;
  font-size: 11px;
  color: var(--blue);
  line-height: 1;
  background: var(--page-bg);
  padding: 0 4px;
}
.page-frame::before { top: -7px; right: 8px; }
.page-frame::after  { bottom: -7px; left: 8px; }

.page-frame-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  position: relative;
}
.page-frame-inner::before,
.page-frame-inner::after {
  content: '✦';
  position: absolute;
  font-size: 11px;
  color: var(--blue);
  line-height: 1;
  background: var(--page-bg);
  padding: 0 4px;
}
.page-frame-inner::before { top: -19px; left: 8px; }
.page-frame-inner::after  { bottom: -19px; right: 8px; }

/* ── Page header ────────────────────────────────────────────── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--blue);
  font-family: var(--font-quran);
  font-size: 13px;
  color: var(--blue-dark);
  direction: rtl;
}
body.dark .page-header { color: var(--blue); border-bottom-color: rgba(70,191,255,0.35); }
body.dark .page-frame  { border-color: rgba(70,191,255,0.35); }

/* Clickable surah label in page header */
.surah-label-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-quran);
  font-size: 13px;
  color: var(--blue-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 4px;
  border-radius: 6px;
  transition: background 0.15s;
}
.surah-label-btn:hover { background: var(--blue-bg); }
body.dark .surah-label-btn { color: var(--blue); }

/* ── Page body / Quran text ─────────────────────────────────── */
.page-body {
  flex: 1;
  padding: 14px 0 8px;
  overflow: hidden;
}

.quran-text {
  font-family: var(--font-quran);
  font-size: var(--size-quran);
  line-height: var(--lh-quran);
  color: var(--page-text);
  direction: rtl;
  text-align: justify;
  word-spacing: 3px;
}

/* Verse end marker circle */
.verse-end {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  font-size: 0.52em;
  font-family: var(--font-quran);
  color: var(--blue-dark);
  margin: 0 4px;
  vertical-align: middle;
  line-height: 1;
  position: relative;
  top: -2px;
  background: transparent;
}
body.dark .verse-end { color: var(--blue); border-color: rgba(70,191,255,0.6); }

/* ── Surah heading block ─────────────────────────────────────── */
.surah-heading {
  text-align: center;
  margin: 14px 0 10px;
  direction: rtl;
}

.surah-diamond {
  text-align: center;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 8px;
  margin: 4px 0;
  line-height: 1;
}

.surah-heading-box {
  display: inline-block;
  border: 1.5px solid var(--blue);
  border-radius: 4px;
  padding: 8px 32px;
  position: relative;
  background: linear-gradient(180deg, rgba(70,191,255,0.04) 0%, transparent 100%);
  min-width: 240px;
}

.surah-heading-box::before,
.surah-heading-box::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1.5px;
  background: var(--blue);
  opacity: 0.5;
}
.surah-heading-box::before { right: -30px; }
.surah-heading-box::after  { left:  -30px; }

.surah-name-ar {
  font-family: var(--font-quran);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-dark);
  display: block;
  line-height: 1.5;
}
body.dark .surah-name-ar { color: var(--blue); }

.surah-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-sec);
  margin-top: 2px;
}

/* Bismillah separator */
.bismillah-line {
  text-align: center;
  font-family: var(--font-quran);
  font-size: 22px;
  color: var(--blue-dark);
  margin: 10px 0 12px;
  direction: rtl;
}
body.dark .bismillah-line { color: var(--blue); }

/* ── Page footer ────────────────────────────────────────────── */
.page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 6px;
  border-top: 1px solid var(--blue);
  gap: 12px;
  direction: rtl;
}
body.dark .page-footer { border-top-color: rgba(70,191,255,0.35); }

.page-number {
  font-family: var(--font-quran);
  font-size: 15px;
  color: var(--blue-dark);
  font-weight: 700;
  min-width: 40px;
  text-align: center;
}
body.dark .page-number { color: var(--blue); }

.footer-ornament {
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 5px;
  opacity: 0.7;
}

/* ── Bottom controls ────────────────────────────────────────── */
.bottom-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border: 1.5px solid var(--blue);
  border-radius: 24px;
  background: transparent;
  color: var(--blue-dark);
  font-family: var(--font-quran);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-nav:hover:not(:disabled) {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(70,191,255,0.35);
}
.btn-nav:disabled { opacity: 0.35; cursor: not-allowed; }
body.dark .btn-nav { color: var(--blue); }

.page-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-quran);
  font-size: 15px;
  color: var(--text-sec);
  direction: rtl;
}

.page-jump input {
  width: 58px;
  height: 34px;
  border: 1.5px solid var(--blue-border);
  border-radius: 8px;
  text-align: center;
  font-family: var(--font-quran);
  font-size: 16px;
  background: var(--page-bg);
  color: var(--page-text);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.page-jump input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(70,191,255,0.15);
}

/* ── Loading & error ────────────────────────────────────────── */
.loading-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--blue);
  font-family: var(--font-quran);
  font-size: 18px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(70,191,255,0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff3b30;
  font-family: var(--font-quran);
  font-size: 18px;
  padding: 20px;
  text-align: center;
}

/* ── SIDE MENU ──────────────────────────────────────────────── */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 198;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-ios);
  backdrop-filter: blur(2px);
}
.menu-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 340px;
  max-width: 92vw;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-left: 0.5px solid rgba(70,191,255,0.2);
  box-shadow: -6px 0 40px rgba(0,0,0,0.15);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.34s var(--ease-ios);
  overflow: hidden;
}
.side-menu.open { transform: translateX(0); }

body.dark .side-menu {
  background: rgba(28, 28, 30, 0.94);
  border-left-color: rgba(70,191,255,0.15);
}

/* Menu header */
.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
  border-bottom: 0.5px solid var(--separator);
  flex-shrink: 0;
}

.side-menu-title {
  font-family: var(--font-quran);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  direction: rtl;
}
body.dark .side-menu-title { color: var(--blue); }

.side-menu-title i { color: var(--blue); font-size: 16px; }

.close-menu-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--sys-bg2);
  color: var(--text-sec);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.close-menu-btn:hover { background: var(--blue); color: #fff; }

/* Search bar */
.search-wrapper {
  position: relative;
  padding: 12px 14px 10px;
  flex-shrink: 0;
  border-bottom: 0.5px solid var(--separator);
}

.search-icon {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-ter);
  font-size: 13px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid var(--blue-border);
  background: var(--sys-bg);
  color: var(--page-text);
  font-family: var(--font-quran);
  font-size: 15px;
  padding: 0 38px 0 14px;
  direction: rtl;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(70,191,255,0.15);
}
.search-input::placeholder { color: var(--text-ter); }
body.dark .search-input { background: var(--sys-bg2); }

/* Surah list */
.surah-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 0 20px;
  direction: rtl;
}

.surah-list::-webkit-scrollbar { width: 4px; }
.surah-list::-webkit-scrollbar-track { background: transparent; }
.surah-list::-webkit-scrollbar-thumb { background: rgba(70,191,255,0.3); border-radius: 4px; }

/* Surah item */
.surah-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  direction: rtl;
  transition: background 0.15s;
  border-bottom: 0.5px solid transparent;
}
.surah-item:hover  { background: var(--blue-bg); }
.surah-item.active { background: rgba(70,191,255,0.12); }
.surah-item.disabled { cursor: default; opacity: 0.45; }
.surah-item.disabled:hover { background: transparent; }

/* Surah number badge */
.surah-num {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: var(--blue-bg);
  border: 1.5px solid var(--blue-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-quran);
  font-size: 13px;
  color: var(--blue-dark);
  font-weight: 700;
}
body.dark .surah-num { color: var(--blue); }

.surah-item.active .surah-num,
.surah-item:hover .surah-num {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.surah-item.disabled .surah-num { border-color: var(--separator); }

/* Surah names */
.surah-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.surah-item-name-ar {
  font-family: var(--font-quran);
  font-size: 16px;
  color: var(--page-text);
  font-weight: 700;
  line-height: 1.3;
}

.surah-item-name-en {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-sec);
  direction: ltr;
  text-align: right;
}

/* Surah stats */
.surah-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex-shrink: 0;
}

.surah-type-badge {
  font-family: var(--font-ui);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}
.surah-type-badge.makki {
  background: rgba(70,191,255,0.12);
  color: var(--blue-dark);
}
.surah-type-badge.madani {
  background: rgba(52,199,89,0.12);
  color: #22863a;
}
body.dark .surah-type-badge.makki { color: var(--blue); }
body.dark .surah-type-badge.madani { color: #4cdb79; }

.surah-verse-count {
  font-family: var(--font-quran);
  font-size: 10px;
  color: var(--text-ter);
  text-align: center;
  width: 100%;
}

/* Soon badge */
.soon-badge {
  font-family: var(--font-ui);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--sys-bg2);
  color: var(--text-ter);
}

/* No results */
.no-results {
  text-align: center;
  padding: 40px 20px;
  font-family: var(--font-quran);
  font-size: 16px;
  color: var(--text-sec);
  direction: rtl;
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(28, 28, 30, 0.88);
  color: #fff;
  font-family: var(--font-quran);
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s var(--ease-ios);
  z-index: 300;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
body.dark .toast { background: rgba(70,191,255,0.92); color: #fff; }

/* ── Footer ─────────────────────────────────────────────────── */
/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--page-bg);
  border-top: 0.5px solid var(--separator);
  direction: rtl;
  margin-top: 32px;
}
body.dark .site-footer {
  background: var(--sys-bg2);
  border-top-color: rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 20px;
}

/* ── Top row ── */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 20px;
  flex-wrap: wrap;
}

/* Logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.footer-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 22%;
  box-shadow: 0 2px 8px rgba(70,191,255,0.22);
}
.footer-logo-wordmark {
  font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  font-size: 19px;
  line-height: 1;
  direction: ltr;
}
.footer-logo-wordmark strong {
  font-weight: 800;
  color: #1a3a58;
}
body.dark .footer-logo-wordmark strong { color: #e0eaf5; }
.footer-logo-wordmark span {
  font-weight: 700;
  color: var(--blue);
}

/* Nav links */
.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-link {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-sec);
  text-decoration: none;
  padding: 2px 0;
  position: relative;
  transition: color 0.18s;
}
.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 1px;
  background: var(--blue);
  transition: width 0.22s var(--ease-ios);
}
.footer-link:hover { color: var(--blue-dark); }
.footer-link:hover::after { width: 100%; left: 0; right: auto; }
body.dark .footer-link:hover { color: var(--blue); }

.footer-sep {
  color: var(--text-ter);
  font-size: 13px;
  user-select: none;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.18s var(--ease-ios), box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.social-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}
.social-btn.instagram {
  background: radial-gradient(circle at 28% 110%,
    #fdf497 0%, #fd5949 40%, #d6249f 65%, #285AEB 100%);
}
.social-btn.whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}
.social-btn.app-store {
  background: linear-gradient(135deg, #111 0%, #333 100%);
}
.social-btn.google-play {
  background: linear-gradient(135deg, #4285F4 0%, #34A853 50%, #FBBC05 75%, #EA4335 100%);
}

/* ── Verse divider ── */
.footer-verse-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 14px;
  direction: rtl;
}
.footer-verse-line {
  flex: 1;
  height: 0.5px;
  background: linear-gradient(to left, transparent, var(--separator));
}
.footer-verse-line:last-child {
  background: linear-gradient(to right, transparent, var(--separator));
}
.footer-verse {
  font-family: var(--font-quran);
  font-size: 15px;
  color: var(--text-ter);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Copyright ── */
.footer-copy {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-ter);
  direction: rtl;
  letter-spacing: 0.02em;
}

/* ── Footer responsive ── */
@media (max-width: 680px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 22px 0 16px;
    text-align: center;
  }
  .footer-links { gap: 4px; justify-content: center; }
  .footer-verse  { font-size: 13px; }
  .footer-verse-row { gap: 8px; margin: 2px 0 10px; }
}

/* ── QUICK CATEGORY NAV ─────────────────────────────────────── */
.quick-nav {
  position: sticky;
  top: 60px;          /* sits just below the 60px header */
  z-index: 90;
  background: rgba(242, 242, 247, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 0.5px solid rgba(70, 191, 255, 0.14);
  direction: rtl;
}
body.dark .quick-nav {
  background: rgba(28, 28, 30, 0.88);
}

/* Collapsible scroll area */
.quick-nav-wrap {
  overflow: hidden;
  max-height: 62px;
  opacity: 1;
  transition: max-height 0.34s var(--ease-ios), opacity 0.22s var(--ease-ios);
  position: relative;
}
.quick-nav.collapsed .quick-nav-wrap {
  max-height: 0;
  opacity: 0;
}

/* Horizontal scroll strip */
.quick-nav-scroll {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 10px 16px 10px 52px; /* extra left padding for the fade */
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  direction: rtl;
}
.quick-nav-scroll::-webkit-scrollbar { display: none; }

/* Left-edge fade → indicates more content */
.qnav-fade {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 52px;
  background: linear-gradient(to right, rgba(242,242,247,1) 30%, transparent);
  pointer-events: none;
  z-index: 1;
  transition: background 0.3s;
}
body.dark .qnav-fade {
  background: linear-gradient(to right, rgba(28,28,30,1) 30%, transparent);
}

/* Scroll arrow buttons — mouse/desktop only */
.qnav-arrow {
  display: none; /* hidden until media query enables them */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--sys-sep);
  box-shadow: 0 2px 10px rgba(0,0,0,.13);
  color: var(--text-sec);
  font-size: 11px;
  cursor: pointer;
  z-index: 4;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, color .15s, border-color .15s, box-shadow .15s;
  flex-shrink: 0;
}
/* show the buttons only for mouse users */
@media (hover: hover) and (pointer: fine) {
  .qnav-arrow { display: flex; }
}
.qnav-arrow.visible {
  opacity: 1;
  pointer-events: auto;
}
.qnav-arrow:hover {
  color: var(--blue-dark);
  border-color: var(--blue);
  box-shadow: 0 3px 12px rgba(70,191,255,.25);
}
/* RTL: "next" (see more items) lives on the LEFT edge, "prev" on the RIGHT */
.qnav-arrow-next { left: 8px; }
.qnav-arrow-prev { right: 8px; }
body.dark .qnav-arrow { background: var(--sys-bg2); border-color: rgba(255,255,255,.1); }
body.dark .qnav-arrow:hover { border-color: var(--blue); color: var(--blue); }

/* Individual item pill */
.qnav-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--page-bg);
  border: 1px solid rgba(70, 191, 255, 0.18);
  color: var(--page-text);
  font-family: var(--font-quran);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: background 0.18s, border-color 0.18s, color 0.18s,
              box-shadow 0.18s, transform 0.15s;
  cursor: pointer;
  line-height: 1.4;
}
.qnav-item:hover {
  background: var(--blue-bg);
  border-color: var(--blue);
  color: var(--blue-dark);
  box-shadow: 0 3px 10px rgba(70, 191, 255, 0.22);
  transform: translateY(-1px);
}
.qnav-item.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 3px 12px rgba(70, 191, 255, 0.4);
}
body.dark .qnav-item {
  background: var(--sys-bg2);
  border-color: rgba(70, 191, 255, 0.14);
  color: var(--page-text);
}
body.dark .qnav-item:hover {
  background: rgba(70, 191, 255, 0.12);
  color: var(--blue);
}

/* Always-visible main nav row (المصحف · السور · الأجزاء) */
.qnav-main-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 16px 6px;
  border-top: 0.5px solid rgba(70, 191, 255, 0.10);
  direction: rtl;
}
.qnav-main-item {
  display: inline-flex;
  align-items: center;
  padding: 5px 18px;
  border-radius: 20px;
  background: var(--page-bg);
  border: 1px solid rgba(70, 191, 255, 0.18);
  color: var(--page-text);
  font-family: var(--font-quran);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: background 0.18s, border-color 0.18s, color 0.18s,
              box-shadow 0.18s, transform 0.15s;
  cursor: pointer;
}
.qnav-main-item:hover {
  background: var(--blue-bg);
  border-color: var(--blue);
  color: var(--blue-dark);
  box-shadow: 0 3px 10px rgba(70, 191, 255, 0.22);
  transform: translateY(-1px);
}
.qnav-main-item.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 3px 12px rgba(70, 191, 255, 0.4);
}
body.dark .qnav-main-row { border-top-color: rgba(70, 191, 255, 0.08); }
body.dark .qnav-main-item {
  background: var(--sys-bg2);
  border-color: rgba(70, 191, 255, 0.14);
  color: var(--page-text);
}
body.dark .qnav-main-item:hover {
  background: rgba(70, 191, 255, 0.12);
  color: var(--blue);
}

/* Toggle / collapse bar */
.quick-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 3px 0 4px;
  background: none;
  border: none;
  border-top: 0.5px solid rgba(70, 191, 255, 0.1);
  cursor: pointer;
  color: var(--text-ter);
  font-size: 11px;
  font-family: var(--font-ui);
  transition: background 0.15s, color 0.15s;
  direction: ltr; /* keep icon + label order consistent */
}
.quick-nav-toggle:hover {
  background: rgba(70, 191, 255, 0.06);
  color: var(--blue);
}
.qnav-toggle-label {
  font-size: 10px;
  letter-spacing: 0.03em;
}
.qnav-chevron {
  font-size: 10px;
  transition: transform 0.34s var(--ease-ios);
}
.quick-nav.collapsed .qnav-chevron {
  transform: rotate(180deg);
}

/* Mobile sticky top offset */
@media (max-width: 680px) {
  .quick-nav { top: 54px; }
  .qnav-item { font-size: 13px; padding: 5px 13px; }
  .quick-nav-scroll { gap: 6px; padding: 8px 12px 8px 48px; }
}

/* ── JUZ BOTTOM SHEET ───────────────────────────────────────── */
.juz-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.18), 0 -1px 0 rgba(70,191,255,0.15);
  z-index: 200;
  display: flex;
  flex-direction: column;
  max-height: 72vh;
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.juz-sheet.open { transform: translateY(0); }

body.dark .juz-sheet {
  background: rgba(28, 28, 30, 0.96);
  box-shadow: 0 -4px 40px rgba(0,0,0,0.5), 0 -1px 0 rgba(70,191,255,0.12);
}

/* Drag handle */
.juz-handle-wrap {
  display: flex;
  justify-content: center;
  padding: 10px 0 2px;
  cursor: grab;
  flex-shrink: 0;
}
.juz-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--separator);
}
body.dark .juz-handle { background: rgba(255,255,255,0.15); }

/* Sheet header */
.juz-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px 12px;
  border-bottom: 0.5px solid var(--separator);
  flex-shrink: 0;
  direction: rtl;
}
.juz-sheet-title {
  font-family: var(--font-quran);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.juz-sheet-title i { color: var(--blue); font-size: 16px; }
body.dark .juz-sheet-title { color: var(--blue); }

/* Card grid */
.juz-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 16px 20px 32px;
  overflow-y: auto;
  direction: rtl;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}
.juz-grid::-webkit-scrollbar { width: 3px; }
.juz-grid::-webkit-scrollbar-thumb { background: var(--blue-border); border-radius: 3px; }

/* Individual juz card */
.juz-card {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1.5px solid var(--blue-border);
  background: var(--blue-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px 4px;
  transition: background 0.18s, border-color 0.18s, transform 0.15s, box-shadow 0.18s;
  direction: rtl;
}
.juz-card:hover:not(.disabled) {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(70,191,255,0.38);
}
.juz-card.active {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(70,191,255,0.4);
}
.juz-card.disabled {
  opacity: 0.32;
  cursor: default;
  border-style: dashed;
}

.juz-card-num {
  font-family: var(--font-quran);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.1;
}
.juz-card.active .juz-card-num,
.juz-card:hover:not(.disabled) .juz-card-num { color: #fff; }
body.dark .juz-card-num { color: var(--blue); }

.juz-card-surah {
  font-family: var(--font-quran);
  font-size: 9px;
  color: var(--text-sec);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.juz-card.active .juz-card-surah,
.juz-card:hover:not(.disabled) .juz-card-surah { color: rgba(255,255,255,0.85); }

/* ── App Promo Banner ───────────────────────────────────────── */
.app-promo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d88c4 0%, #1aaae8 40%, #46bfff 100%);
  padding: 56px 24px;
}

/* Decorative orbs */
.app-promo-bg { position: absolute; inset: 0; pointer-events: none; }
.promo-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(48px);
  background: #fff;
}
.promo-orb-1 { width: 320px; height: 320px; top: -100px; right: -60px; }
.promo-orb-2 { width: 200px; height: 200px; bottom: -60px; left: 10%; }
.promo-orb-3 { width: 140px; height: 140px; top: 40px; left: 38%; opacity: 0.10; }

.app-promo-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  direction: rtl;
}

/* Icon */
.promo-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.22)) drop-shadow(0 2px 8px rgba(0,0,0,0.12));
  transition: transform 0.4s var(--ease-ios);
}
.promo-icon-wrap:hover { transform: translateY(-4px) scale(1.04); }
.promo-icon {
  width: 100px;
  height: 100px;
  border-radius: 22%;
  object-fit: cover;
  display: block;
}

/* Text */
.promo-text {
  flex: 1;
  color: #fff;
  text-align: right;
}
.promo-eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
  margin: 0 0 6px;
}
.promo-title {
  font-family: var(--font-quran);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
}
.promo-brand {
  color: #fff;
  text-shadow: 0 0 18px rgba(255,255,255,0.55);
}
.promo-sub {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.88;
  margin: 0;
  max-width: 400px;
}

/* Badges */
.promo-badges {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.promo-badge-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.28s var(--ease-ios), box-shadow 0.28s var(--ease-ios);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.promo-badge-link:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 28px rgba(0,0,0,0.26);
}
.promo-badge {
  display: block;
  height: 44px;
  width: auto;
  max-width: 160px;
}

/* Dark mode adjustments */
body.dark .app-promo {
  background: linear-gradient(135deg, #0a6699 0%, #1291c9 40%, #2aabee 100%);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 680px) {
  .header-inner { padding: 0 10px; height: 54px; }
  .main-content { padding: 16px 8px 40px; }
  .book-wrapper { gap: 8px; }
  .nav-arrow { width: 38px; height: 38px; font-size: 14px; }
  .quran-page { min-height: 520px; }
  :root { --size-quran: 20px; --lh-quran: 2.3; }
  .page-frame { margin: 8px; }
  .surah-heading-box { min-width: 190px; padding: 6px 20px; }
  .surah-name-ar { font-size: 17px; }
  .btn-nav { padding: 8px 14px; font-size: 14px; }
  .side-menu { width: 100%; max-width: 100%; }
  .juz-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px 14px 28px; }
  .juz-card-num { font-size: 17px; }

  /* Promo banner — mobile */
  .app-promo { padding: 32px 20px 36px; }
  .app-promo-inner {
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
  }
  /* Icon row */
  .promo-icon-wrap { margin-bottom: 16px; }
  .promo-icon { width: 76px; height: 76px; }
  /* Text */
  .promo-text { text-align: center; margin-bottom: 22px; }
  .promo-title { font-size: 24px; margin-bottom: 8px; }
  .promo-sub { max-width: 100%; font-size: 14px; }
  /* Badges — full-width tappable rows */
  .promo-badges {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .promo-badge-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 16px;
    padding: 12px 20px;
    box-shadow: none;
  }
  .promo-badge-link:hover {
    background: rgba(255,255,255,0.22);
    transform: none;
    box-shadow: none;
  }
  .promo-badge { height: 38px; max-width: 200px; }
}

@media (max-width: 420px) {
  :root { --size-quran: 18px; }
  .quran-page { min-height: 440px; }
  .logo-text { display: none; }
  .promo-title { font-size: 21px; }
  .promo-sub { font-size: 13px; }
  .promo-badge { height: 34px; }
}

/* ============================================================
   Home Page Styles
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--sys-bg);
  padding: 72px 24px 80px;
  text-align: center;
}
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.14;
  background: var(--blue);
}
.hero-orb-1 { width: 480px; height: 480px; top: -140px; right: -100px; }
.hero-orb-2 { width: 320px; height: 320px; bottom: -100px; left: -60px; }

.hero-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.hero-bismillah {
  font-family: var(--font-quran);
  font-size: 22px;
  color: var(--blue-dark);
  margin: 0 0 20px;
  opacity: 0.85;
}
body.dark .hero-bismillah { color: var(--blue); }

.hero-title {
  font-family: var(--font-quran);
  font-size: 46px;
  font-weight: 700;
  color: var(--page-text);
  line-height: 1.25;
  margin: 0 0 16px;
}

.hero-sub {
  font-family: var(--font-ui);
  font-size: 17px;
  color: var(--text-sec);
  line-height: 1.7;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 50px;
  transition: transform 0.22s var(--ease-ios), box-shadow 0.22s var(--ease-ios), background 0.18s;
}
.btn-hero:hover { transform: translateY(-2px); }

.btn-hero-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 18px rgba(70, 191, 255, 0.40);
}
.btn-hero-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 8px 28px rgba(70, 191, 255, 0.50);
}

.btn-hero-ghost {
  background: var(--page-bg);
  color: var(--blue-dark);
  border: 1.5px solid var(--blue-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.btn-hero-ghost:hover {
  background: var(--blue-bg);
  border-color: var(--blue);
}
body.dark .btn-hero-ghost { background: var(--sys-bg2); color: var(--blue); }

/* ── Featured verse ─────────────────────────────────────────── */
.verse-section {
  padding: 0 24px 56px;
  max-width: 760px;
  margin: 0 auto;
}

.verse-card {
  background: var(--page-bg);
  border: 1px solid var(--blue-border);
  border-radius: 20px;
  padding: 36px 40px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(70, 191, 255, 0.10);
  position: relative;
  overflow: hidden;
}
.verse-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(70,191,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
body.dark .verse-card { background: var(--sys-bg2); border-color: rgba(70,191,255,0.16); }

.verse-card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--blue-dark);
  background: var(--blue-bg);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}
body.dark .verse-card-label { color: var(--blue); }

.verse-card-text {
  font-family: var(--font-quran);
  font-size: 28px;
  line-height: 1.9;
  color: var(--page-text);
  margin: 0 0 16px;
}

.verse-card-ref {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-ter);
  margin: 0;
}

/* ── Daily cards (Aya + Dhikr of the day) ───────────────────── */
.daily-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.daily-card {
  border-radius: 20px;
  padding: 30px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.daily-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Aya card — soft green tint */
.daily-card-aya {
  background: var(--page-bg);
  border: 1px solid rgba(52,199,89,.28);
  box-shadow: 0 4px 24px rgba(52,199,89,.08);
}
.daily-card-aya::before {
  background: linear-gradient(135deg, rgba(52,199,89,.06) 0%, transparent 60%);
}
body.dark .daily-card-aya {
  background: var(--sys-bg2);
  border-color: rgba(52,199,89,.18);
}
/* Dhikr card — blue tint (matches brand) */
.daily-card-dhikr {
  background: var(--page-bg);
  border: 1px solid var(--blue-border);
  box-shadow: 0 4px 24px rgba(70,191,255,.08);
}
.daily-card-dhikr::before {
  background: linear-gradient(135deg, rgba(70,191,255,.06) 0%, transparent 60%);
}
body.dark .daily-card-dhikr {
  background: var(--sys-bg2);
  border-color: rgba(70,191,255,.18);
}
/* Badge pill */
.daily-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.daily-badge-aya {
  color: #1d9944;
  background: rgba(52,199,89,.12);
}
body.dark .daily-badge-aya { color: #4cd964; }
.daily-badge-dhikr {
  color: var(--blue-dark);
  background: var(--blue-bg);
}
body.dark .daily-badge-dhikr { color: var(--blue); }
/* Text */
.daily-card-text {
  margin: 0 0 12px;
  color: var(--page-text);
}
.daily-quran {
  font-family: var(--font-quran);
  font-size: 26px;
  line-height: 2;
}
.daily-arabic {
  font-family: var(--font-quran);
  font-size: 22px;
  line-height: 2;
}
.daily-card-ref {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-ter);
  margin: 0;
}
.daily-card-info {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.7;
  margin: 8px 0 0;
  font-style: italic;
}
@media (max-width: 600px) {
  .daily-card { padding: 22px 20px; }
  .daily-quran { font-size: 20px; }
  .daily-arabic { font-size: 18px; }
}

/* ── Categories ─────────────────────────────────────────────── */
.categories-section {
  padding: 0 24px 72px;
  max-width: 1080px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}
.section-title {
  font-family: var(--font-quran);
  font-size: 30px;
  font-weight: 700;
  color: var(--page-text);
  margin: 0 0 8px;
}
.section-sub {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-sec);
  margin: 0;
}

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

.cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--page-bg);
  border: 1px solid var(--separator);
  border-radius: 18px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--page-text);
  transition: transform 0.22s var(--ease-ios), box-shadow 0.22s var(--ease-ios),
              border-color 0.18s, background 0.18s;
  position: relative;
  overflow: hidden;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  border-color: var(--blue-border);
  background: var(--page-bg);
}
body.dark .cat-card {
  background: var(--sys-bg2);
  border-color: rgba(255,255,255,0.06);
}
body.dark .cat-card:hover { border-color: rgba(70,191,255,0.22); }

.cat-card.cat-quran {
  border-color: var(--blue-border);
  background: linear-gradient(135deg, rgba(70,191,255,0.08) 0%, var(--page-bg) 100%);
}
body.dark .cat-card.cat-quran {
  background: linear-gradient(135deg, rgba(70,191,255,0.12) 0%, var(--sys-bg2) 100%);
}

.cat-icon-wrap {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--blue-dark);
  transition: background 0.18s;
}
.cat-card:hover .cat-icon-wrap { background: var(--blue); color: #fff; }
body.dark .cat-icon-wrap { color: var(--blue); }
body.dark .cat-card:hover .cat-icon-wrap { background: var(--blue); color: #fff; }

.cat-body { flex: 1; min-width: 0; }
.cat-title {
  font-family: var(--font-quran);
  font-size: 17px;
  font-weight: 700;
  color: var(--page-text);
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-desc {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-sec);
  margin: 0;
  line-height: 1.4;
}
.cat-arrow {
  font-size: 11px;
  color: var(--text-ter);
  flex-shrink: 0;
  transition: color 0.18s, transform 0.18s;
}
.cat-card:hover .cat-arrow { color: var(--blue); transform: translateX(-3px); }

/* ── Home responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .hero { padding: 52px 20px 60px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 15px; }
  .verse-card { padding: 28px 24px; }
  .verse-card-text { font-size: 22px; }
  .categories-section { padding: 0 16px 56px; }
  .categories-grid { grid-template-columns: 1fr; gap: 10px; }
  .header-home-link span { display: none; }
}
@media (max-width: 420px) {
  .hero-title { font-size: 28px; }
  .btn-hero { font-size: 14px; padding: 11px 22px; }
}

/* ============================================================
   Athkar Page Styles
   ============================================================ */

/* ── Page header ────────────────────────────────────────────── */
.athkar-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #0a6fa8 0%, #1aaae8 50%, #46bfff 100%);
  padding: 44px 24px 36px;
  text-align: center;
  color: #fff;
}
.athkar-hero-orb {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0.09;
  filter: blur(60px);
  pointer-events: none;
}
.athkar-hero-orb-1 { width: 340px; height: 340px; top: -120px; right: -80px; }
.athkar-hero-orb-2 { width: 220px; height: 220px; bottom: -80px; left: 5%; }

.athkar-hero-icon {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.92;
}
.athkar-hero-title {
  font-family: var(--font-quran);
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 6px;
}
.athkar-hero-sub {
  font-family: var(--font-ui);
  font-size: 14px;
  opacity: 0.82;
  margin: 0 0 24px;
}

/* ── Overall progress bar ───────────────────────────────────── */
.athkar-overall {
  position: relative;
  background: rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 12px 18px;
  max-width: 400px;
  margin: 0 auto 4px;
  backdrop-filter: blur(8px);
}
.athkar-overall-label {
  font-family: var(--font-ui);
  font-size: 13px;
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.athkar-overall-count { font-size: 15px; font-weight: 700; }
.athkar-overall-track {
  height: 6px;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  overflow: hidden;
}
.athkar-overall-fill {
  height: 100%;
  background: #fff;
  border-radius: 4px;
  width: 0%;
  transition: width 0.4s var(--ease-ios);
}

/* Reset-all button */
.athkar-reset-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.30);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.18s;
}
.athkar-reset-all:hover { background: rgba(255,255,255,0.25); }

/* Khatm Quran hero verse */
.khatm-verse {
  font-family: var(--font-quran);
  font-size: 19px;
  line-height: 2;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  padding: 14px 24px;
  margin: 0 auto 20px;
  max-width: 520px;
  width: fit-content;
  text-align: center;
  display: block;
}
.khatm-verse-ref {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
  text-align: center;
}

/* ── Card list ──────────────────────────────────────────────── */
.athkar-list {
  max-width: 700px;
  margin: 0 auto;
  padding: 28px 20px 72px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Athkar section header ──────────────────────────────────── */
.athkar-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 2px;
  margin-top: 8px;
}
.athkar-section-icon {
  font-size: 18px;
  line-height: 1;
}
.athkar-section-title {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: .01em;
}
body.dark .athkar-section-title { color: var(--blue); }

/* ── Dhikr card ─────────────────────────────────────────────── */
.dhikr-card {
  background: var(--page-bg);
  border: 1px solid var(--separator);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  transition: border-color 0.3s, box-shadow 0.3s;
}
body.dark .dhikr-card {
  background: var(--sys-bg2);
  border-color: rgba(255,255,255,0.07);
  box-shadow: none;
}
.dhikr-card.completed {
  border-color: rgba(52,199,89,0.45);
  box-shadow: 0 4px 22px rgba(52,199,89,0.12);
}
body.dark .dhikr-card.completed { border-color: rgba(52,199,89,0.35); }

/* Bounce animation on completion */
@keyframes dhikr-bounce {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.025); }
  65%  { transform: scale(0.99); }
  100% { transform: scale(1); }
}
.dhikr-card.bounce { animation: dhikr-bounce 0.45s var(--ease-ios); }

/* Card head row */
.dhikr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px 0;
  gap: 8px;
}
.dhikr-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--blue-bg);
  padding: 3px 12px;
  border-radius: 20px;
}
body.dark .dhikr-count-badge { color: var(--blue); }
.dhikr-card.completed .dhikr-count-badge {
  background: rgba(52,199,89,0.12);
  color: #1a9e40;
}
body.dark .dhikr-card.completed .dhikr-count-badge { color: #34c759; }

.dhikr-source {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-ter);
  text-align: left;
}

/* Contextual note */
.dhikr-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 18px 2px;
  padding: 8px 12px;
  background: var(--blue-bg);
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--blue-dark);
  line-height: 1.6;
}
body.dark .dhikr-note { color: var(--blue); }
.dhikr-note i { margin-top: 2px; flex-shrink: 0; font-size: 11px; }

/* Arabic text */
.dhikr-text-wrap { padding: 16px 22px 18px; text-align: center; }
.dhikr-text {
  font-family: var(--font-quran);
  font-size: 21px;
  line-height: 2.15;
  color: var(--page-text);
  margin: 0;
}

/* Dots row (for count ≤ 10) */
.dhikr-dots-row {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 0 22px 12px;
}
.dhikr-dots { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; justify-content: center; }
.dhikr-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sys-bg2);
  transition: background 0.22s, transform 0.22s;
  flex-shrink: 0;
}
body.dark .dhikr-dots .dot { background: rgba(255,255,255,0.12); }
.dhikr-dots .dot.filled {
  background: var(--blue);
  transform: scale(1.18);
}
.dhikr-card.completed .dhikr-dots .dot.filled { background: #34c759; }

/* Progress bar (for count > 10) */
.dhikr-bar-track {
  height: 4px;
  background: var(--sys-bg2);
  margin: 0 22px 10px;
  border-radius: 3px;
  overflow: hidden;
}
body.dark .dhikr-bar-track { background: rgba(255,255,255,0.10); }
.dhikr-bar {
  height: 100%;
  width: 0%;
  background: var(--blue);
  border-radius: 3px;
  transition: width 0.25s var(--ease-ios);
}
.dhikr-card.completed .dhikr-bar { background: #34c759; }

/* Counter / action row */
.dhikr-counter-area {
  border-top: 0.5px solid var(--separator);
  display: flex;
  align-items: stretch;
}
.dhikr-reset-btn {
  flex-shrink: 0;
  width: 50px;
  background: none;
  border: none;
  border-left: 0.5px solid var(--separator);
  cursor: pointer;
  color: var(--text-ter);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.dhikr-reset-btn:hover { color: #ff3b30; background: rgba(255,59,48,0.06); }

.dhikr-tap-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 16px;
  background: none;
  border: none;
  cursor: pointer;
  direction: rtl;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.dhikr-tap-btn:hover  { background: var(--blue-bg); }
.dhikr-tap-btn:active { background: rgba(70,191,255,0.18); }
.dhikr-card.completed .dhikr-tap-btn { cursor: default; }
.dhikr-card.completed .dhikr-tap-btn:hover { background: rgba(52,199,89,0.06); }

.dhikr-tap-label {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-sec);
}
.dhikr-card.completed .dhikr-tap-label { color: #34c759; }

.dhikr-counter-num {
  font-family: var(--font-quran);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-dark);
  min-width: 70px;
  text-align: center;
}
body.dark .dhikr-counter-num { color: var(--blue); }
.dhikr-card.completed .dhikr-counter-num { color: #34c759; }

/* ── Athkar responsive ──────────────────────────────────────── */
@media (max-width: 680px) {
  .athkar-hero { padding: 36px 20px 28px; }
  .athkar-hero-title { font-size: 24px; }
  .athkar-list { padding: 20px 14px 60px; gap: 12px; }
  .dhikr-text { font-size: 19px; }
  .dhikr-counter-num { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════════
   ASMA AL-HUSNA — 99 Names Grid
   ══════════════════════════════════════════════════════════════ */
.asma-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.asma-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.asma-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 16px 12px 14px;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .18s var(--ease-ios),
              box-shadow .18s var(--ease-ios),
              border-color .18s var(--ease-ios),
              background .18s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  user-select: none;
}
.asma-card:active { transform: scale(.96); }
.asma-card:hover  { box-shadow: 0 4px 16px rgba(70,191,255,.15); }

.asma-card.done {
  border-color: rgba(52,199,89,.5);
  background: rgba(52,199,89,.07);
}
body.dark .asma-card.done { background: rgba(52,199,89,.10); }

.asma-num {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-ter);
  line-height: 1;
}
.asma-card.done .asma-num { color: #34c759; }

.asma-name {
  font-family: var(--font-quran);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.3;
  margin-bottom: 6px;
  display: block;
}
body.dark .asma-name { color: var(--blue); }
.asma-card.done .asma-name { color: #34c759; }

.asma-meaning {
  font-family: var(--font-ui);
  font-size: 11.5px;
  color: var(--text-sec);
  line-height: 1.4;
  display: block;
}
.asma-card.done .asma-meaning { color: rgba(52,199,89,.8); }

.asma-done-check {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 12px;
  color: #34c759;
  opacity: 0;
  transition: opacity .2s;
}
.asma-card.done .asma-done-check { opacity: 1; }

/* progress row above grid */
.asma-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 14px;
}
.asma-progress-label {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-sec);
  white-space: nowrap;
}
.asma-progress-count {
  font-family: var(--font-quran);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-dark);
}
body.dark .asma-progress-count { color: var(--blue); }
.asma-progress-track {
  flex: 1;
  height: 6px;
  background: var(--sys-fill);
  border-radius: 99px;
  overflow: hidden;
}
.asma-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 99px;
  width: 0%;
  transition: width .4s var(--ease-ios);
}
.asma-reset-btn {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-ter);
  background: none;
  border: 1px solid var(--sys-sep);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .15s, border-color .15s;
}
.asma-reset-btn:hover { color: #ff3b30; border-color: #ff3b30; }

@media (max-width: 680px) {
  .asma-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .asma-name  { font-size: 18px; }
  .asma-meaning { font-size: 10.5px; }
  .asma-card  { padding: 14px 8px 12px; }
}
@media (max-width: 400px) {
  .asma-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════════
   MANASIK AL-HAJ — Step Guide
   ══════════════════════════════════════════════════════════════ */
.manasik-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.manasik-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* vertical connector line */
.manasik-timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  bottom: 32px;
  right: 23px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue) 0%, rgba(70,191,255,.15) 100%);
  border-radius: 2px;
}

.manasik-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 0 0 20px 0;
  position: relative;
  direction: rtl;
}

.manasik-step-num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  font-family: var(--font-quran);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(70,191,255,.35);
}

.manasik-step-card {
  flex: 1;
  background: var(--card-bg);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border: 1.5px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.manasik-step-card:hover {
  border-color: rgba(70,191,255,.3);
  box-shadow: 0 4px 18px rgba(70,191,255,.12);
}

.manasik-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}

.manasik-step-title {
  font-family: var(--font-quran);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-pri);
  line-height: 1.3;
}

.manasik-step-date {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--blue-bg);
  border-radius: 8px;
  padding: 3px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}
body.dark .manasik-step-date { color: var(--blue); }

.manasik-step-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.manasik-step-desc {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.75;
  margin: 0;
}

.manasik-tip {
  margin-top: 10px;
  background: var(--blue-bg);
  border-radius: 10px;
  padding: 10px 13px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--blue-dark);
  line-height: 1.6;
  border-right: 3px solid var(--blue);
}
body.dark .manasik-tip { color: var(--blue); background: rgba(70,191,255,.08); }

@media (max-width: 680px) {
  .manasik-section { padding: 20px 14px 60px; }
  .manasik-timeline::before { right: 21px; }
  .manasik-step-num { width: 42px; height: 42px; font-size: 16px; }
  .manasik-step-title { font-size: 17px; }
  .manasik-step-desc { font-size: 13.5px; }
}

/* ══════════════════════════════════════════════════════════════
   ISLAMIC QUIZ GAME
   ══════════════════════════════════════════════════════════════ */
.quiz-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* ── Start / End screens ── */
.quiz-screen {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.quiz-screen-icon { font-size: 56px; margin-bottom: 16px; }
.quiz-screen-title {
  font-family: var(--font-quran);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-pri);
  margin-bottom: 10px;
}
.quiz-screen-sub {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 28px;
}
.quiz-btn-start {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 40px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(70,191,255,.35);
  transition: transform .18s var(--ease-ios), box-shadow .18s;
}
.quiz-btn-start:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(70,191,255,.4); }
.quiz-btn-start:active { transform: scale(.97); }

/* ── Score display (end screen) ── */
.quiz-score-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 24px rgba(70,191,255,.4);
}
.quiz-score-num {
  font-family: var(--font-quran);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
.quiz-score-of {
  font-family: var(--font-ui);
  font-size: 12px;
  opacity: .85;
}
.quiz-grade {
  font-family: var(--font-quran);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.quiz-grade.excellent { color: #34c759; }
.quiz-grade.good      { color: var(--blue-dark); }
.quiz-grade.ok        { color: #ff9500; }
.quiz-grade.weak      { color: #ff3b30; }

/* ── Progress bar ── */
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.quiz-progress-track {
  flex: 1;
  height: 6px;
  background: var(--sys-fill);
  border-radius: 99px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 99px;
  transition: width .4s var(--ease-ios);
}
.quiz-progress-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sec);
  white-space: nowrap;
}

/* ── Question card ── */
.quiz-card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 24px 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  margin-bottom: 14px;
}
.quiz-cat-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-dark);
  background: var(--blue-bg);
  border-radius: 8px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
body.dark .quiz-cat-badge { color: var(--blue); }

.quiz-question {
  font-family: var(--font-quran);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-pri);
  line-height: 1.55;
  margin: 0;
}

/* ── Options ── */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-opt {
  font-family: var(--font-quran);
  font-size: 16px;
  background: var(--sys-bg);
  border: 1.5px solid var(--sys-sep);
  border-radius: 14px;
  padding: 13px 16px;
  cursor: pointer;
  text-align: right;
  color: var(--text-pri);
  transition: background .15s, border-color .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}
.quiz-opt:hover:not(:disabled) {
  border-color: var(--blue);
  background: var(--blue-bg);
}
.quiz-opt:active:not(:disabled) { transform: scale(.98); }
.quiz-opt:disabled { cursor: default; }

.quiz-opt.correct {
  border-color: #34c759;
  background: rgba(52,199,89,.10);
  color: #1a7a30;
}
body.dark .quiz-opt.correct { color: #34c759; background: rgba(52,199,89,.14); }

.quiz-opt.wrong {
  border-color: #ff3b30;
  background: rgba(255,59,48,.08);
  color: #c0392b;
}
body.dark .quiz-opt.wrong { color: #ff6b6b; background: rgba(255,59,48,.12); }

.quiz-opt-letter {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sys-sep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-sec);
  transition: background .15s, color .15s;
}
.quiz-opt.correct .quiz-opt-letter { background: #34c759; color: #fff; }
.quiz-opt.wrong   .quiz-opt-letter { background: #ff3b30; color: #fff; }

/* ── Feedback ── */
.quiz-feedback {
  font-family: var(--font-ui);
  font-size: 13.5px;
  border-radius: 12px;
  padding: 11px 14px;
  margin-top: 14px;
  line-height: 1.6;
  display: none;
}
.quiz-feedback.show { display: block; }
.quiz-feedback.correct-fb { background: rgba(52,199,89,.10); color: #1a7a30; }
.quiz-feedback.wrong-fb   { background: rgba(255,59,48,.08);  color: #c0392b; }
body.dark .quiz-feedback.correct-fb { color: #34c759; background: rgba(52,199,89,.14); }
body.dark .quiz-feedback.wrong-fb   { color: #ff6b6b; background: rgba(255,59,48,.12); }

/* ── Next button ── */
.quiz-btn-next {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  display: none;
  transition: opacity .15s;
  box-shadow: 0 4px 14px rgba(70,191,255,.3);
}
.quiz-btn-next.show { display: block; }
.quiz-btn-next:hover { opacity: .92; }

@media (max-width: 680px) {
  .quiz-wrap { padding: 16px 14px 60px; }
  .quiz-card { padding: 20px 16px; }
  .quiz-question { font-size: 18px; }
  .quiz-opt { font-size: 15px; padding: 12px 14px; }
  .quiz-screen { padding: 28px 20px; }
}

/* ══════════════════════════════════════════════════════════════
   TASBEEH COUNTER
   ══════════════════════════════════════════════════════════════ */
.tasbih-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* ── Picker ── */
.tasbih-picker-card {
  width: 100%;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  overflow: hidden;
  position: relative;
}
.tasbih-picker-title {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-ter);
  text-align: center;
  padding: 12px 0 0;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tasbih-picker-outer {
  position: relative;
  height: 156px;
  overflow: hidden;
}
/* top/bottom fade */
.tasbih-picker-outer::before,
.tasbih-picker-outer::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 52px;
  z-index: 2;
  pointer-events: none;
}
.tasbih-picker-outer::before {
  top: 0;
  background: linear-gradient(to bottom, var(--card-bg) 10%, transparent);
}
.tasbih-picker-outer::after {
  bottom: 0;
  background: linear-gradient(to top, var(--card-bg) 10%, transparent);
}
/* selection bar */
.tasbih-picker-bar {
  position: absolute;
  top: 52px;
  left: 16px; right: 16px;
  height: 52px;
  background: var(--blue-bg);
  border-radius: 12px;
  border: 1.5px solid rgba(70,191,255,.3);
  z-index: 1;
  pointer-events: none;
}
.tasbih-picker-scroll {
  position: relative;
  z-index: 3;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 52px 0;
}
.tasbih-picker-scroll::-webkit-scrollbar { display: none; }
.tasbih-picker-item {
  height: 52px;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-family: var(--font-quran);
  font-size: 15px;
  color: var(--text-ter);
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: color .15s, font-size .15s, font-weight .15s;
  -webkit-tap-highlight-color: transparent;
}
.tasbih-picker-item.selected {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
}
body.dark .tasbih-picker-item.selected { color: var(--blue); }

/* ── SVG ring tap button ── */
.tasbih-ring-wrap {
  position: relative;
  width: 250px;
  height: 250px;
  flex-shrink: 0;
}
.tasbih-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.tasbih-ring-bg {
  fill: none;
  stroke: var(--sys-fill);
  stroke-width: 10;
}
.tasbih-ring-fill {
  fill: none;
  stroke: url(#tasbihGrad);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset .25s var(--ease-ios);
}
.tasbih-ring-fill.complete { stroke: #34c759; }

.tasbih-tap-btn {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--card-bg);
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,.11),
              0 2px 8px rgba(70,191,255,.14);
  transition: transform .12s var(--ease-ios),
              box-shadow .12s var(--ease-ios),
              background .3s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.tasbih-tap-btn:active {
  transform: scale(.92);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.tasbih-tap-btn.complete { background: rgba(52,199,89,.07); }

.tasbih-count {
  font-family: var(--font-quran);
  font-size: 64px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1;
  transition: color .3s;
  letter-spacing: -2px;
}
body.dark .tasbih-count { color: var(--blue); }
.tasbih-tap-btn.complete .tasbih-count { color: #34c759; }

.tasbih-progress-text {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-ter);
  transition: color .3s;
}
.tasbih-tap-btn.complete .tasbih-progress-text { color: #34c759; font-weight: 600; }

.tasbih-tap-hint {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-ter);
  margin-top: 2px;
}
.tasbih-tap-btn.complete .tasbih-tap-hint { display: none; }

/* rounds badge */
.tasbih-rounds {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 20px;
  padding: 4px 14px;
  white-space: nowrap;
  display: none;
  margin-top: -10px;
}
.tasbih-rounds.show { display: block; }

/* ── target chips ── */
.tasbih-target-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}
.tasbih-target-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-ter);
  width: 100%;
  text-align: center;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: -2px;
}
.tasbih-target-chip {
  font-family: var(--font-quran);
  font-size: 15px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 22px;
  border: 1.5px solid var(--sys-sep);
  background: var(--card-bg);
  color: var(--text-sec);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.tasbih-target-chip:active { transform: scale(.95); }
.tasbih-target-chip.active {
  border-color: var(--blue);
  background: var(--blue-bg);
  color: var(--blue-dark);
}
body.dark .tasbih-target-chip.active { color: var(--blue); }

/* ── stats row ── */
.tasbih-stats {
  display: flex;
  gap: 12px;
  width: 100%;
}
.tasbih-stat-card {
  flex: 1;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.tasbih-stat-val {
  font-family: var(--font-quran);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-dark);
  display: block;
  line-height: 1.1;
}
body.dark .tasbih-stat-val { color: var(--blue); }
.tasbih-stat-lbl {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-ter);
  display: block;
  margin-top: 3px;
}

/* ── reset button ── */
.tasbih-reset-btn {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  padding: 13px;
  border-radius: 14px;
  border: 1.5px solid var(--sys-sep);
  background: var(--card-bg);
  color: var(--text-sec);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color .15s, border-color .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.tasbih-reset-btn:hover { color: #ff3b30; border-color: #ff3b30; }

/* ── completion flash ── */
@keyframes tasbih-flash {
  0%   { box-shadow: 0 0 0 0    rgba(52,199,89,.55); }
  60%  { box-shadow: 0 0 0 32px rgba(52,199,89,0);   }
  100% { box-shadow: 0 0 0 0    rgba(52,199,89,0);   }
}
.tasbih-tap-btn.flash { animation: tasbih-flash .55s ease-out; }

@media (max-width: 400px) {
  .tasbih-ring-wrap { width: 220px; height: 220px; }
  .tasbih-count { font-size: 56px; }
  .tasbih-picker-item { font-size: 14px; }
  .tasbih-picker-item.selected { font-size: 17px; }
}


/* ═══════════════════════════════════════════════
   PRAYER TIMES PAGE
   ═══════════════════════════════════════════════ */

.pt-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Location card ── */
.pt-location-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.pt-location-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pt-location-icon {
  font-size: 16px;
  color: var(--blue-dark);
  flex-shrink: 0;
}
.pt-city-name {
  flex: 1;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-pri);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-change-btn {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--blue-bg);
  border: none;
  border-radius: 10px;
  padding: 5px 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity .15s;
}
.pt-change-btn:hover { opacity: .75; }
.pt-locate-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--sys-sep);
  background: var(--sys-fill);
  color: var(--text-sec);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s, color .15s;
}
.pt-locate-btn:hover { border-color: var(--blue); color: var(--blue-dark); }

/* Search */
.pt-search-wrap {
  margin-top: 12px;
  position: relative;
}
.pt-search-inner {
  position: relative;
}
.pt-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-ter);
  font-size: 13px;
  pointer-events: none;
}
.pt-search-input {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--sys-sep);
  background: var(--sys-fill);
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-pri);
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s;
}
.pt-search-input:focus { border-color: var(--blue); }
.pt-search-input::placeholder { color: var(--text-ter); }

.pt-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--card-bg);
  border-radius: 14px;
  border: 1.5px solid var(--sys-sep);
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
  overflow: hidden;
  z-index: 100;
  max-height: 260px;
  overflow-y: auto;
}
.pt-suggestion-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: right;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-pri);
  background: none;
  border: none;
  border-bottom: 1px solid var(--sys-sep);
  cursor: pointer;
  transition: background .12s;
}
.pt-suggestion-item:last-child { border-bottom: none; }
.pt-suggestion-item:hover,
.pt-suggestion-item:focus { background: var(--blue-bg); outline: none; }
.pt-suggestion-empty {
  padding: 14px 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-ter);
  text-align: center;
}

/* ── Welcome state ── */
.pt-welcome {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 36px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.pt-welcome-icon { font-size: 48px; margin-bottom: 12px; }
.pt-welcome-title {
  font-family: var(--font-quran);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-pri);
  margin-bottom: 8px;
}
.pt-welcome-sub {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-sec);
  margin: 0 0 20px;
}
.pt-welcome-btn {
  background: var(--blue-dark);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 28px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .12s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pt-welcome-btn:active { transform: scale(.96); opacity: .85; }

/* ── Date card ── */
.pt-date-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 14px 18px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.pt-hijri-date {
  font-family: var(--font-quran);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-pri);
  margin-bottom: 4px;
  line-height: 1.5;
}
.pt-greg-date {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-ter);
}

/* ── Countdown card ── */
.pt-countdown-card {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0066cc 100%);
  border-radius: 20px;
  padding: 20px 20px 16px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(10,132,255,.3);
  color: #fff;
}
.pt-countdown-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 4px;
}
.pt-countdown-prayer {
  font-family: var(--font-quran);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.pt-countdown-time {
  font-family: var(--font-ui);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.pt-countdown-bar-wrap {
  background: rgba(255,255,255,.2);
  border-radius: 99px;
  height: 4px;
  overflow: hidden;
}
.pt-countdown-bar {
  height: 100%;
  background: #fff;
  border-radius: 99px;
  transition: width 1s linear;
  width: 0;
}

/* ── Prayer rows ── */
.pt-prayers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pt-prayer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1.5px solid var(--sys-sep);
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.pt-prayer-row.is-current {
  border-color: var(--blue);
  background: var(--blue-bg);
  box-shadow: 0 4px 16px rgba(70,191,255,.18);
}
.pt-prayer-row.is-next {
  border-color: rgba(70,191,255,.4);
}
.pt-prayer-icon {
  font-size: 20px;
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}
.pt-prayer-name {
  flex: 1;
  font-family: var(--font-quran);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-pri);
}
.pt-prayer-badge {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}
.pt-prayer-badge.current-badge {
  background: var(--blue-dark);
  color: #fff;
}
.pt-prayer-badge.next-badge {
  background: rgba(70,191,255,.18);
  color: var(--blue-dark);
  border: 1px solid rgba(70,191,255,.4);
}
.pt-prayer-time {
  font-family: var(--font-quran);
  font-size: 19px;
  font-weight: 700;
  color: var(--blue-dark);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
body.dark .pt-prayer-time { color: var(--blue); }

/* ── Adjustment panel ── */
.pt-adj-card {
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.pt-adj-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sec);
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
}
.pt-adj-toggle:hover { color: var(--text-pri); }
.pt-adj-toggle > span { display: flex; align-items: center; gap: 8px; }
.pt-adj-chevron {
  font-size: 11px;
  transition: transform .25s var(--ease-ios);
  flex-shrink: 0;
}
.pt-adj-list {
  border-top: 1px solid var(--sys-sep);
  padding: 8px 0;
}
.pt-adj-row {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  gap: 10px;
}
.pt-adj-name {
  flex: 1;
  font-family: var(--font-quran);
  font-size: 15px;
  color: var(--text-pri);
}
.pt-adj-controls {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--sys-fill);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--sys-sep);
}
.pt-adj-btn {
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s;
  -webkit-tap-highlight-color: transparent;
}
.pt-adj-btn:active { background: var(--blue-bg); }
.pt-adj-val {
  min-width: 36px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-pri);
  border-right: 1px solid var(--sys-sep);
  border-left: 1px solid var(--sys-sep);
  line-height: 34px;
  font-variant-numeric: tabular-nums;
}
.pt-adj-unit {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-ter);
  flex-shrink: 0;
}

/* ── Settings card ── */
.pt-settings-card {
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.pt-settings-section {
  padding: 16px 18px;
}
.pt-settings-divider {
  height: 1px;
  background: var(--sys-sep);
}
.pt-settings-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-ter);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pt-settings-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--sys-sep);
  background: var(--sys-fill);
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-pri);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 30px;
  transition: border-color .15s;
}
.pt-settings-select:focus { border-color: var(--blue); }

.pt-madhab-row {
  display: flex;
  gap: 8px;
}
.pt-madhab-btn {
  flex: 1;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--sys-sep);
  background: var(--sys-fill);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.pt-madhab-btn.active {
  border-color: var(--blue);
  background: var(--blue-bg);
  color: var(--blue-dark);
}
body.dark .pt-madhab-btn.active { color: var(--blue); }

/* ── Responsive ── */
@media (max-width: 380px) {
  .pt-countdown-time { font-size: 32px; }
  .pt-prayer-name    { font-size: 16px; }
  .pt-prayer-time    { font-size: 17px; }
}


/* ═══════════════════════════════════════════════
   LEGAL PAGES (Privacy Policy, Terms, etc.)
   ═══════════════════════════════════════════════ */

.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 100px;
}

/* Language switcher */
.legal-lang-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
}
.legal-lang-btn {
  padding: 7px 22px;
  border-radius: 22px;
  border: 1.5px solid var(--sys-sep);
  background: var(--card-bg);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sec);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.legal-lang-btn.active {
  border-color: var(--blue);
  background: var(--blue-bg);
  color: var(--blue-dark);
}
body.dark .legal-lang-btn.active { color: var(--blue); }

/* English version — use system font, fix list indent for LTR */
#ppEn .legal-section p,
#ppEn .legal-section h2,
#ppEn .legal-section h3,
#ppEn .legal-section li {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#ppEn .legal-section ul {
  padding-left: 20px;
  padding-right: 0;
}
#ppEn .legal-title { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

.legal-header {
  text-align: center;
  margin-bottom: 32px;
}
.legal-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.legal-title {
  font-family: var(--font-quran);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-pri);
  margin: 0 0 8px;
}
.legal-meta {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-ter);
  margin: 0;
}

.legal-body {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--sys-sep);
}
.legal-section:first-child { padding-top: 0; }
.legal-section:last-child  { padding-bottom: 0; border-bottom: none; }

.legal-section h2 {
  font-family: var(--font-quran);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0 0 12px;
}
body.dark .legal-section h2 { color: var(--blue); }

.legal-section h3 {
  font-family: var(--font-quran);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-pri);
  margin: 16px 0 8px;
}

.legal-section p {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-sec);
  margin: 0 0 10px;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  margin: 8px 0 10px;
  padding-right: 20px;
  padding-left: 0;
}
.legal-section ul li {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-sec);
  margin-bottom: 4px;
  list-style-type: disc;
}

.legal-section a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-decoration-color: rgba(70,191,255,.4);
  text-underline-offset: 3px;
  transition: color .15s;
}
.legal-section a:hover { color: var(--blue); }
body.dark .legal-section a { color: var(--blue); }

.legal-section strong { color: var(--text-pri); font-weight: 700; }

@media (max-width: 520px) {
  .legal-body { padding: 20px 18px; }
  .legal-title { font-size: 22px; }
}


/* ═══════════════════════════════════════════════
   ABOUT US PAGE
   ═══════════════════════════════════════════════ */

/* ── Hero ── */
.about-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 52px 24px 48px;
  background: linear-gradient(160deg, var(--blue-bg) 0%, transparent 70%);
}
.about-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: .35;
}
.about-hero-orb-1 {
  width: 280px; height: 280px;
  background: var(--blue);
  top: -80px; right: -60px;
}
.about-hero-orb-2 {
  width: 200px; height: 200px;
  background: #0a84ff;
  bottom: -60px; left: -40px;
}
.about-hero-orb-3 {
  width: 140px; height: 140px;
  background: var(--blue);
  top: 40%; left: 55%;
  opacity: .18;
}
.about-hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(70,191,255,.3);
  margin-bottom: 16px;
  position: relative;
}
.about-hero-name {
  font-family: var(--font-quran);
  font-size: 42px;
  font-weight: 700;
  color: var(--text-pri);
  margin: 0 0 8px;
  position: relative;
}
.about-hero-tagline {
  font-family: var(--font-quran);
  font-size: 17px;
  color: var(--text-sec);
  margin: 0 0 24px;
  position: relative;
}
.about-hero-verse {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-quran);
  font-size: 19px;
  color: var(--blue-dark);
  background: var(--blue-bg);
  border: 1px solid rgba(70,191,255,.25);
  border-radius: 16px;
  padding: 14px 24px;
  position: relative;
}
body.dark .about-hero-verse { color: var(--blue); }
.about-hero-verse-ref {
  font-size: 12px;
  color: var(--text-ter);
  font-family: var(--font-ui);
}

/* ── Main wrap ── */
.about-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Section headers ── */
.about-section-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
body.dark .about-section-eyebrow { color: var(--blue); }
.about-section-title {
  font-family: var(--font-quran);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-pri);
  margin: 0 0 20px;
}

/* ── Story card ── */
.about-story-card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 28px 30px;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
}
.about-story-text p {
  font-family: var(--font-quran);
  font-size: 16px;
  line-height: 2;
  color: var(--text-sec);
  margin: 0 0 14px;
}
.about-story-text p:last-child { margin-bottom: 0; }
.about-story-text strong { color: var(--text-pri); }

/* ── Stats ── */
.about-stats {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0055bb 100%);
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow: 0 6px 24px rgba(10,132,255,.25);
}
.about-stat {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-stat-num {
  font-family: var(--font-quran);
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.about-stat-lbl {
  font-family: var(--font-ui);
  font-size: 11px;
  color: rgba(255,255,255,.75);
}
.about-stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

/* ── Features grid ── */
.about-features-section {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 28px 30px;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
}
.about-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.about-feature-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px solid var(--sys-sep);
  background: var(--sys-fill);
  text-decoration: none;
  transition: border-color .18s, background .18s, transform .15s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.about-feature-card:hover {
  border-color: var(--blue);
  background: var(--blue-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(70,191,255,.15);
}
.about-feature-icon { font-size: 24px; }
.about-feature-name {
  font-family: var(--font-quran);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-pri);
  line-height: 1.4;
}
.about-feature-desc {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-ter);
  line-height: 1.7;
}

/* ── Values ── */
.about-values-section {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 28px 30px;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
}
.about-values-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.about-value-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sys-sep);
}
.about-value-row:first-child { padding-top: 0; }
.about-value-row:last-child  { padding-bottom: 0; border-bottom: none; }
.about-value-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-value-title {
  font-family: var(--font-quran);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-pri);
  margin-bottom: 4px;
}
.about-value-desc {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.8;
}

/* ── Contact CTA card ── */
.about-contact-card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
  border: 1.5px solid rgba(70,191,255,.2);
}
.about-contact-icon { font-size: 36px; margin-bottom: 10px; }
.about-contact-title {
  font-family: var(--font-quran);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-pri);
  margin-bottom: 8px;
}
.about-contact-sub {
  font-family: var(--font-quran);
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.9;
  margin: 0 0 20px;
}
.about-contact-btn {
  display: inline-block;
  background: var(--blue-dark);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 14px;
  text-decoration: none;
  transition: opacity .15s, transform .12s;
}
.about-contact-btn:hover { opacity: .85; }
.about-contact-btn:active { transform: scale(.96); }

/* ── Responsive ── */
@media (max-width: 500px) {
  .about-features-grid { grid-template-columns: 1fr; }
  .about-hero-name     { font-size: 34px; }
  .about-stat-num      { font-size: 24px; }
  .about-story-card,
  .about-features-section,
  .about-values-section { padding: 22px 18px; }
}


/* ═══════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════ */

.ct-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 100px;
}

/* ── Two-column grid ── */
.ct-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

/* ── Info panel ── */
.ct-info-card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 24px 22px;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  position: sticky;
  top: 130px;
}
.ct-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sys-sep);
}
.ct-info-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}
.ct-info-brand {
  font-family: var(--font-quran);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-pri);
}
.ct-info-domain {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-ter);
}
.ct-info-bio {
  font-family: var(--font-quran);
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-sec);
  margin: 0 0 20px;
}
.ct-info-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.ct-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--sys-fill);
  border: 1px solid var(--sys-sep);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.ct-info-item:hover {
  border-color: var(--blue);
  background: var(--blue-bg);
}
.ct-info-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-bg);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.ct-info-item-icon.instagram {
  background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  color: #fff;
}
.ct-info-item-label {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-ter);
}
.ct-info-item-value {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-pri);
}
.ct-response-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(52,199,89,.08);
  border: 1px solid rgba(52,199,89,.25);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: #34c759;
}

/* ── Form card ── */
.ct-form-card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 30px 32px;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  min-height: 480px;
  position: relative;
}
.ct-form-title {
  font-family: var(--font-quran);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-pri);
  margin: 0 0 22px;
}

/* ── Fields ── */
.ct-form { display: flex; flex-direction: column; gap: 16px; }
.ct-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ct-field { display: flex; flex-direction: column; gap: 6px; }
.ct-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sec);
}
.ct-required { color: #ff3b30; margin-right: 2px; }

.ct-input-wrap {
  position: relative;
}
.ct-input-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-ter);
  pointer-events: none;
  transition: color .15s;
}
/* LTR form: icon on the left */
.ct-ltr .ct-input-icon { right: auto; left: 13px; }
.ct-input {
  width: 100%;
  padding: 11px 38px 11px 14px;
  border-radius: 13px;
  border: 1.5px solid rgba(60,60,67,.22);
  background: var(--sys-fill);
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-pri);
  outline: none;
  box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
}
body.dark .ct-input { border-color: rgba(255,255,255,.22); }
/* LTR: icon is on left, so flip padding */
.ct-ltr .ct-input { padding: 11px 14px 11px 38px; }
.ct-input::placeholder { color: var(--text-ter); }
.ct-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(70,191,255,.12);
}
.ct-input:focus + .ct-input-icon,
.ct-input-wrap:focus-within .ct-input-icon { color: var(--blue-dark); }

.ct-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 13px center;
  padding-left: 34px;
}
/* LTR select: arrow on the right */
.ct-select-ltr {
  background-position: right 13px center;
  padding-left: 14px;
  padding-right: 34px;
}
.ct-textarea-ltr { font-family: var(--font-ui); font-size: 14px; }

.ct-textarea-wrap { position: relative; }
.ct-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1.5px solid rgba(60,60,67,.22);
  background: var(--sys-fill);
  font-family: var(--font-quran);
  font-size: 15px;
  color: var(--text-pri);
  outline: none;
  resize: vertical;
  min-height: 130px;
  box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s;
  line-height: 1.8;
}
body.dark .ct-textarea { border-color: rgba(255,255,255,.22); }
.ct-textarea::placeholder { color: var(--text-ter); font-family: var(--font-ui); font-size: 14px; }
.ct-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(70,191,255,.12);
}

/* Field error states */
.has-error .ct-input,
.has-error .ct-textarea {
  border-color: #ff3b30;
  box-shadow: 0 0 0 3px rgba(255,59,48,.1);
}
.ct-field-error {
  font-family: var(--font-ui);
  font-size: 11px;
  color: #ff3b30;
  min-height: 14px;
}
.ct-field-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ct-char-count {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-ter);
}

/* Error banner */
.ct-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 13px;
  background: rgba(255,59,48,.08);
  border: 1px solid rgba(255,59,48,.25);
  font-family: var(--font-ui);
  font-size: 13px;
  color: #ff3b30;
}

/* Submit button */
.ct-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0055cc 100%);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .12s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(10,132,255,.3);
  margin-top: 4px;
}
.ct-submit-btn:hover:not(:disabled) {
  opacity: .9;
  box-shadow: 0 6px 20px rgba(10,132,255,.4);
}
.ct-submit-btn:active:not(:disabled) { transform: scale(.98); }
.ct-submit-btn:disabled { opacity: .65; cursor: not-allowed; }

/* ── Success state ── */
.ct-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  min-height: 380px;
}
.ct-success-icon { margin-bottom: 20px; }
.ct-checkmark {
  width: 72px;
  height: 72px;
}
.ct-checkmark-circle {
  stroke: #34c759;
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: ct-circle-draw .5s ease-out forwards;
}
.ct-checkmark-check {
  stroke: #34c759;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: ct-check-draw .35s .45s ease-out forwards;
}
@keyframes ct-circle-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes ct-check-draw {
  to { stroke-dashoffset: 0; }
}
.ct-success-title {
  font-family: var(--font-quran);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-pri);
  margin-bottom: 10px;
}
.ct-success-sub {
  font-family: var(--font-quran);
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.9;
  margin: 0 0 24px;
}
.ct-send-another {
  background: none;
  border: 1.5px solid var(--sys-sep);
  border-radius: 12px;
  padding: 9px 24px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sec);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.ct-send-another:hover { border-color: var(--blue); color: var(--blue-dark); }

/* ── Responsive ── */
@media (max-width: 680px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-info-card { position: static; }
  .ct-field-row { grid-template-columns: 1fr; }
  .ct-form-card { padding: 22px 18px; }
}
