:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f3e9;
  --bg-2: #efe8d6;
  --surface: #fffdf7;
  --surface2: #f3ecda;
  --ink: #14241e;
  --muted: #5a6b64;
  --green: #1a7a3a;
  --green-2: #0f5c2c;
  --gold: #d4b44a;
  --gold-soft: #f0e0a0;
  --blue: #3d7eb8;
  --line: rgba(13, 59, 46, 0.12);
  --shadow: 0 14px 40px rgba(13, 59, 46, 0.08);
  --shadow-hover: 0 20px 48px rgba(13, 59, 46, 0.12);
  --radius: 16px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "Cormorant Garamond", "Times New Roman", serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071410;
  --bg-2: #0c1f19;
  --surface: #10241d;
  --surface2: #163028;
  --ink: #f4efe3;
  --muted: #a8b8b1;
  --green: #1d6b54;
  --green-2: #2a8a6c;
  --gold: #e0c056;
  --gold-soft: #f0e0a0;
  --line: rgba(232, 212, 139, 0.14);
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 22px 52px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-2); text-decoration: none; }
a:hover { color: var(--gold); }
.hidden { display: none !important; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}
.top-bar {
  background: var(--green);
  color: #f7f3e9;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  flex-wrap: wrap;
}
.top-links { display: flex; gap: 18px; }
.top-links a { color: rgba(247, 243, 233, 0.88); font-weight: 500; }
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  position: relative;
  overflow: visible;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-family: var(--font); font-weight: 600; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.02em; }
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 2px var(--gold);
}
.hero-logo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 22px;
  box-shadow:
    0 10px 32px rgba(13, 59, 46, 0.16),
    0 0 0 3px var(--surface),
    0 0 0 6px var(--gold);
  background: #fff;
}
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; z-index: 50; }
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 8px 11px;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--surface2);
  color: var(--green);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 9px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
}
.lang-switch button.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-menu {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(26, 122, 58, 0.25);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 52px;
  background:
    radial-gradient(circle at 12% 20%, rgba(201, 162, 39, 0.16), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(13, 59, 46, 0.14), transparent 36%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 2 L34 26 L58 30 L34 34 L30 58 L26 34 L2 30 L26 26 Z' fill='none' stroke='%23c9a227' stroke-opacity='0.1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 59, 46, 0.07);
  color: var(--green);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 52ch; margin-bottom: 28px; line-height: 1.65; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(26, 122, 58, 0.2);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s, color 0.15s;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(26, 122, 58, 0.22); }
.btn-primary:hover { background: var(--green-2); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface2); color: var(--green-2); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.section { padding: 52px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.18;
}
.section-head p { color: var(--muted); margin-top: 4px; }

.banners { display: grid; gap: 14px; }
.banner-card {
  position: relative;
  min-height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--green);
  color: #fff;
}
.banner-card img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  background: #0d3b2e;
}
.card .thumb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  min-height: 140px;
}
.card img, .thumb {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  background: var(--surface2);
}
.banner-card span {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-family: var(--display);
  font-size: 1.6rem;
  text-shadow: 0 8px 24px rgba(0,0,0,.45);
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.card { color: inherit; }
a.card:hover { color: inherit; }
@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: color-mix(in srgb, var(--gold) 35%, var(--line));
  }
}
.card:active {
  transform: translateY(0);
}
.card img, .thumb {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  background: var(--surface2);
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kicker { color: var(--gold); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.card h3 { font-size: 1.12rem; line-height: 1.3; }
.card p { color: var(--muted); font-size: 0.92rem; }
.meta { color: var(--muted); font-size: 0.8rem; margin-top: auto; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
}
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }

.search-row { display: flex; gap: 10px; margin-bottom: 18px; }
.search-row input {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: inherit;
}

.article-page { padding: 36px 0 64px; }
.article-hero {
  background: var(--surface2);
  border-radius: 24px;
  margin: 18px 0 24px;
  display: flex;
  justify-content: center;
}
.article-hero img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  border-radius: 24px;
}
.article-body {
  font-size: 1.06rem;
  max-width: 72ch;
  white-space: pre-wrap;
}
.article-body p { margin-bottom: 1em; }

.event-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.event-date {
  background: var(--green);
  color: #fff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
}
.event-date strong { font-size: 1.6rem; line-height: 1; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border-radius: 14px;
  min-height: 120px;
}
.gallery-grid img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  border-radius: 14px;
}
.video-card iframe, .video-card .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  background: #000;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; }
.form-card, .info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
label { display: block; font-weight: 600; margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: inherit;
  margin-bottom: 12px;
}
.empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.site-footer {
  margin-top: 56px;
  background: var(--green);
  color: #f7f3e9;
  padding: 44px 0 24px;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px 28px;
  margin-bottom: 28px;
}
.footer-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.footer-brand p {
  opacity: 0.82;
  font-size: 0.92rem;
  max-width: 36ch;
  line-height: 1.55;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.footer-nav a {
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 2px 0;
}
.footer-nav a:hover { color: #fff; }
.site-footer a { color: var(--gold-soft); }
.footer-copy {
  padding-top: 18px;
  border-top: 1px solid rgba(247, 243, 233, 0.16);
}
.site-footer small { opacity: 0.75; font-size: 0.82rem; }

.maint-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #0d3b2e;
  color: #f7f3e9;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}
.maint-overlay[hidden] { display: none; }
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: var(--green);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: .25s;
  z-index: 90;
}
.toast.show { opacity: 1; transform: none; }
.toast.err { background: #9b1c1c; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 16, 0.86);
  display: grid;
  place-items: center;
  z-index: 70;
  padding: 24px;
}
.lightbox img { max-width: min(960px, 100%); max-height: 86vh; border-radius: 12px; }

@media (max-width: 900px) {
  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--surface);
    z-index: 120;
  }
  .grid-3, .grid-4, .gallery-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-main { flex-wrap: nowrap; align-items: center; }
  .brand { order: 1; flex: 1 1 auto; min-width: 0; font-size: 1.05rem; gap: 8px; }
  .brand-text { min-width: 0; }
  .brand img { width: 42px; height: 42px; }
  .header-actions { order: 2; flex-shrink: 0; z-index: 130; }
  .btn-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 2;
    z-index: 130;
  }
  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    order: 0;
    flex-basis: auto;
    width: min(86vw, 360px);
    max-height: none;
    height: 100%;
    height: 100dvh;
    margin: 0;
    padding: 80px 18px calc(28px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--surface);
    border: none;
    border-left: 1px solid var(--line);
    border-radius: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    box-shadow: -18px 0 48px rgba(13, 59, 46, 0.18);
    z-index: 120;
    transform: translateX(110%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, visibility 0.28s;
  }
  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 1.02rem;
    border-radius: 12px;
  }
  body:has(.nav-links.open)::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(7, 20, 16, 0.46);
    z-index: 110;
  }
  body:has(.nav-links.open) {
    overflow: hidden;
  }
  .event-item { grid-template-columns: 1fr; }
  input, select, textarea {
    font-size: 16px;
    min-height: 48px;
  }
  textarea { min-height: 120px; }
  .chip, .letter-card, .haraka-card { min-height: 44px; }
  .lang-switch button {
    min-width: 40px;
    min-height: 40px;
    touch-action: manipulation;
  }
  .quran-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .quran-toolbar label, .quran-toolbar select { width: 100%; min-width: 0; }
  .quran-toolbar select, .quran-toolbar .btn { width: 100%; min-height: 48px; }
  .form-card, .info-card { padding: 20px 16px; }
  .hero { padding: 40px 0 36px; }
  .hero-actions .btn { min-height: 48px; }
  .section { padding: 36px 0; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .gallery-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
}
.header-social, .footer-social { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.header-social a, .footer-social a { font-weight: 700; }
.footer-social { margin-top: 16px; }
.fb-feed-section[hidden] { display: none !important; }
.fb-feed {
  display: flex;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
}
.fb-feed iframe { max-width: 100%; }
.video-wrap iframe { width: 100%; min-height: 220px; aspect-ratio: 16/9; border: 0; border-radius: 16px; }

.prayer-grid, .prayer-home {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.prayer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}
.prayer-card span { display: block; color: var(--muted); font-size: 0.82rem; }
.prayer-card strong { font-size: 1.25rem; }
.prayer-card.is-next {
  background: var(--green);
  color: #fff;
  border-color: transparent;
}
.prayer-card.is-next span { color: rgba(255,255,255,0.8); }
.prayer-count {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--surface2);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-weight: 600;
}
.prayer-count strong { font-size: 1.4rem; color: var(--green); }
.prayer-home-meta, .lead-text { color: var(--muted); margin: 12px 0 8px; }
.subhead { margin: 28px 0 12px; font-family: var(--display); }
.prayer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 18px;
  margin: 0 0 18px;
}
.prayer-toolbar-home { margin-bottom: 16px; }
.prayer-region {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(100%, 280px);
  margin: 0;
}
.prayer-region span { font-size: 0.85rem; color: var(--muted); }
.prayer-region select {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font: inherit;
  font-weight: 600;
  color: inherit;
}
.prayer-region-hint, .prayer-download-hint {
  flex: 1 1 100%;
  width: 100%;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 8px;
}
@media (max-width: 640px) {
  .prayer-month-bar .btn,
  .prayer-toolbar-home .btn { width: 100%; }
}
.prayer-month-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 8px;
}
.prayer-month-bar .btn, .prayer-toolbar-home .btn {
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}
.prayer-img-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 36, 30, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.prayer-img-sheet {
  width: min(420px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}
.prayer-img-sheet p { color: var(--muted); margin-bottom: 12px; }
.prayer-img-sheet img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 14px;
  -webkit-touch-callout: default;
  pointer-events: auto;
}
.prayer-img-sheet .btn { width: 100%; }
.prayer-img-sheet .btn + .btn { margin-top: 8px; }
.table-scroll { overflow-x: auto; }
.prayer-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.prayer-table th, .prayer-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.prayer-table tr.is-today { background: var(--gold-soft); font-weight: 700; }
.form-card label { display: block; margin: 12px 0 6px; font-weight: 600; }
.form-card input, .form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--surface);
  color: inherit;
}
.hp { position: absolute; left: -9999px; }
.form-err { color: #9b1c1c; margin-top: 8px; }
.form-ok { color: var(--green); margin-top: 8px; }

.quran-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 16px 0 20px;
}
.quran-toolbar label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.quran-toolbar select {
  min-width: 120px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--surface);
  color: inherit;
}
.ayah-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.ayah-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ayah-no { font-weight: 700; color: var(--green); }
.ayah-ar, .hist-ar {
  font-family: "Noto Naskh Arabic", "Amiri", serif;
  font-size: 1.45rem;
  line-height: 2;
  margin: 10px 0;
}
.ayah-tr { color: var(--muted); }
.letter-grid, .haraka-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.letter-card, .haraka-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.letter-glyph { display: block; font-size: 2rem; font-family: "Noto Naskh Arabic", serif; }
.letter-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin: 16px 0;
}
.letter-hero { font-size: 4rem; text-align: center; font-family: "Noto Naskh Arabic", serif; }
.letter-forms { font-size: 1.8rem; text-align: center; }
.learn-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.btn-sm { padding: 6px 10px; font-size: 0.85rem; }

.teach-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
}
.teach-block h3 { font-family: var(--display); font-size: 1.45rem; margin-bottom: 8px; }
.history-card { min-height: 160px; }
.yt-box { margin-bottom: 20px; }
.yt-channel {
  display: inline-block;
  background: var(--green);
  color: #fff !important;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
}
.header-account-btn {
  display: none;
  font-size: 0.78rem;
  padding: 8px 12px;
  min-height: 40px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-account-btn.is-logged { font-weight: 800; }
#accountNavLink.is-logged { font-weight: 800; color: #fff; }

.account-wrap { max-width: 640px; }
.account-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.account-form h4 { margin: 0 0 12px; font-size: 1.05rem; }
.account-h3 { font-family: var(--display); font-size: 1.6rem; margin: 28px 0 10px; }
.account-userbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.account-userbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#accountPhone[href] { color: inherit; font-weight: 600; text-decoration: none; }
#accountPhone[href]:hover { text-decoration: underline; }
.account-status {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 18px;
}
.account-status p { color: var(--muted); margin-top: 6px; }
.account-status.status-pending { border-color: #d4b44a; background: rgba(212, 180, 74, 0.12); }
.account-status.status-blocked { border-color: #9b1c1c; background: rgba(155, 28, 28, 0.08); }
.account-status.status-active { border-color: var(--green); background: rgba(26, 122, 58, 0.08); }
.form-error { color: #9b1c1c; min-height: 1.2em; margin: 0 0 10px; font-size: 0.9rem; }
.field-hint { color: var(--muted); font-size: 0.85rem; margin: -4px 0 12px; }
.file-pick-public {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--surface2);
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.file-pick-public input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.btn-block { width: 100%; }
.account-pending-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.account-pending-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface2);
}
.account-pending-card:not(:has(img)) { grid-template-columns: 1fr; }
.muted { color: var(--muted); }

@media (max-width: 900px) {
  .header-account-btn { display: inline-flex; }
  .prayer-grid, .prayer-home { grid-template-columns: repeat(3, 1fr); }
  .account-tabs { width: 100%; }
  .account-tabs .chip { flex: 1; min-height: 48px; justify-content: center; }
  .prayer-toolbar, .search-row { flex-direction: column; align-items: stretch; }
  .prayer-region select { max-width: none; }
  .form-card .btn { min-height: 48px; width: 100%; }
}
@media (max-width: 640px) {
  .prayer-grid, .prayer-home { grid-template-columns: repeat(2, 1fr); }
}

.prayer-card {
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.event-item { box-shadow: var(--shadow); }
.info-card p { margin-bottom: 14px; line-height: 1.55; }
.info-card p:last-child { margin-bottom: 0; }
.account-tabs .chip { display: inline-flex; align-items: center; }
.quran-toolbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.ayah-card, .teach-block, .letter-detail {
  box-shadow: var(--shadow);
}
