/* ============================================================
   Al-Nur Jame Masjid — আল-নূর জামে মসজিদ
   v2 design system — clean · light · emerald + restrained gold
   Light is the default theme; dark applies only when the user
   toggles it. Fixed-dark surfaces (hero, footer, table heads)
   use literal colors so no theme can break their contrast.
   ============================================================ */

:root {
  /* semantic tokens (flipped by dark theme) */
  --bg: #F7F9F8;
  --surface: #FFFFFF;
  --surface-2: #EFF4F1;
  --ink: #16241E;
  --body-c: #3C4C44;
  --muted: #66766D;
  --line: #E2E9E5;
  --green: #0E7A5E;
  --green-strong: #0A5B46;
  --green-soft: #E4F2EC;
  --gold: #B98A24;
  --gold-strong: #96700F;
  --gold-soft: #F7EFDA;
  --gold-bright: #E3BC5F;
  --shadow-sm: 0 1px 2px rgba(20, 40, 32, 0.05);
  --shadow-md: 0 8px 26px -10px rgba(20, 40, 32, 0.14);
  --shadow-lg: 0 22px 48px -16px rgba(10, 35, 27, 0.22);

  /* fixed (theme-independent) deep surfaces */
  --deep-1: #06281F;
  --deep-2: #0A3B2D;
  --deep-3: #0F5540;
  --on-deep: rgba(255, 255, 255, 0.92);
  --on-deep-dim: rgba(255, 255, 255, 0.68);
  --gold-on-deep: #E9C878;

  --font-body: 'Hind Siliguri', 'Noto Serif Bengali', sans-serif;
  --font-head: 'Noto Serif Bengali', serif;
  --font-arabic: 'Amiri', serif;
  --radius: 14px;
  --radius-lg: 20px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23E9C878' stroke-width='1' opacity='0.4'%3E%3Cpath d='M48 8 58 38 88 48 58 58 48 88 38 58 8 48 38 38Z'/%3E%3Ccircle cx='48' cy='48' r='10'/%3E%3C/g%3E%3C/svg%3E");
}

:root[data-theme="dark"] {
  --bg: #0F1613;
  --surface: #161F1A;
  --surface-2: #1C2721;
  --ink: #EAF0EA;
  --body-c: #C3CEC6;
  --muted: #8DA094;
  --line: #263129;
  --green: #35A583;
  --green-strong: #6BC2A5;
  --green-soft: #17322A;
  --gold: #D9B45C;
  --gold-strong: #E3C374;
  --gold-soft: #2A2413;
  --gold-bright: #E3BC5F;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 26px -10px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 22px 48px -16px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--body-c);
  background: var(--bg);
  overflow-x: hidden;
  transition: background 0.25s, color 0.25s;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--gold-strong); }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: 84px; }

.arabic { font-family: var(--font-arabic); direction: rtl; line-height: 2; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 20px; }

.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-deep {
  background: linear-gradient(155deg, var(--deep-1), var(--deep-2) 55%, var(--deep-3));
  color: var(--on-deep);
  position: relative;
}
.section-deep::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--pattern); background-size: 96px; opacity: 0.06;
  pointer-events: none;
}
.section-deep > * { position: relative; }
.section-deep h2, .section-deep h3 { color: #fff; }
.section-deep p { color: var(--on-deep-dim); }

/* ── Skip link ─────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold-bright); color: #1B2B24;
  padding: 10px 18px; border-radius: 0 0 10px 0; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ── Section headings ──────────────────────────────────── */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--gold-strong); text-transform: uppercase; margin-bottom: 10px;
}
.eyebrow::before, .eyebrow::after { content: ''; width: 24px; height: 1.5px; background: var(--gold-bright); border-radius: 2px; }
.section-deep .eyebrow { color: var(--gold-on-deep); }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); }
.section-head p { color: var(--muted); }
.section-deep .section-head p { color: var(--on-deep-dim); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 26px; border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none; line-height: 1.4;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(135deg, #E9C878, #C99B2F);
  color: #241B05;
  box-shadow: 0 6px 16px -6px rgba(185, 138, 36, 0.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgba(185, 138, 36, 0.65); color: #241B05; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-strong); color: #fff; transform: translateY(-2px); }
:root[data-theme="dark"] .btn-green { background: #0E7A5E; }
:root[data-theme="dark"] .btn-green:hover { background: #0FA37C; }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-outline-light { border-color: rgba(255,255,255,0.4); color: #fff; background: rgba(255,255,255,0.06); }
.btn-outline-light:hover { background: rgba(255,255,255,0.14); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.92rem; border-radius: 10px; }

/* ── Ticker ────────────────────────────────────────────── */
.ticker { background: var(--deep-1); color: var(--on-deep-dim); font-size: 0.84rem; padding: 7px 0; }
.ticker .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ticker-next strong { color: var(--gold-on-deep); font-weight: 600; }
@media (max-width: 560px) {
  .ticker { font-size: 0.76rem; }
  .ticker .container { justify-content: center; text-align: center; }
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--surface); }
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--ink); line-height: 1.3; display: block; }
.brand-sub { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.04em; display: block; line-height: 1.3; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 13px; border-radius: 10px; font-weight: 600;
  color: var(--body-c); font-size: 0.97rem; white-space: nowrap;
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.active { color: var(--green); background: var(--green-soft); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 9px; }

.lang-switch {
  display: inline-flex; border: 1.5px solid var(--line); background: var(--surface);
  border-radius: 10px; overflow: hidden; font-size: 0.83rem; font-weight: 700;
}
.lang-switch button {
  border: 0; background: transparent; padding: 6px 12px; cursor: pointer;
  color: var(--muted); font-family: var(--font-body); font-weight: 700;
}
.lang-switch button.active { background: var(--green); color: #fff; }

.theme-toggle {
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
  width: 37px; height: 37px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); flex-shrink: 0; padding: 0;
  transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: var(--gold-strong); border-color: var(--gold-bright); }
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

.hamburger { display: none; border: 0; background: transparent; cursor: pointer; padding: 8px; color: var(--ink); }

@media (max-width: 1020px) {
  .main-nav { display: none; }
  .hamburger { display: inline-flex; }
  .header-donate { display: none; }
}

/* Mobile drawer */
.mobile-menu { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.mobile-menu .backdrop { position: absolute; inset: 0; background: rgba(8, 20, 15, 0.55); opacity: 0; transition: opacity 0.25s; }
.mobile-menu .drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
  background: var(--surface); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform 0.28s ease;
  display: flex; flex-direction: column; padding: 20px; overflow-y: auto;
}
.mobile-menu.open { pointer-events: auto; }
.mobile-menu.open .backdrop { opacity: 1; }
.mobile-menu.open .drawer { transform: translateX(0); }
.drawer-close { align-self: flex-end; border: 0; background: var(--surface-2); border-radius: 10px; width: 36px; height: 36px; cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.mobile-nav-link { padding: 11px 8px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--body-c); font-size: 1rem; }
.mobile-nav-link.active { color: var(--green); }
.drawer .btn { margin-top: 16px; }

/* ── Hero (home) ───────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(233, 200, 120, 0.16), transparent 60%),
    linear-gradient(160deg, var(--deep-1) 0%, var(--deep-2) 55%, var(--deep-3) 100%);
  color: #fff;
}
.hero-stars {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(1.3px 1.3px at 22px 34px, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(1px 1px at 68% 18%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1.2px 1.2px at 42% 62%, rgba(233,200,120,0.65), transparent 60%),
    radial-gradient(1px 1px at 84% 44%, rgba(255,255,255,0.45), transparent 60%);
  background-size: 340px 280px; background-repeat: repeat;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.4; } to { opacity: 0.9; } }
.hero-skyline { display: none; }
.hero-inner { position: relative; z-index: 2; padding: 66px 0 108px; text-align: center; }
.hero-inner > * { opacity: 0; animation: pageIn 0.7s ease forwards; }
.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.14s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.22s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.3s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.38s; }
.hero-inner > *:nth-child(6) { animation-delay: 0.46s; }
.hero-inner > *:nth-child(7) { animation-delay: 0.54s; }
.hero .bismillah {
  font-family: var(--font-arabic); font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  color: var(--gold-on-deep); margin-bottom: 16px; display: block;
}
.hero-loc {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 16px; border-radius: 999px; font-size: 0.86rem; margin-bottom: 14px;
  color: var(--on-deep);
}
.hero-clock { display: flex; justify-content: center; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; color: var(--gold-on-deep); font-size: 0.92rem; margin-bottom: 8px; }
.hero-clock strong { font-size: 1.18rem; letter-spacing: 0.04em; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 3.05rem); font-weight: 800; margin-bottom: 14px; line-height: 1.35; letter-spacing: -0.01em; }
.hero h1 .gold { color: var(--gold-on-deep); }
.hero-sub { max-width: 640px; margin: 0 auto 28px; color: var(--on-deep-dim); font-size: clamp(1rem, 2vw, 1.12rem); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(155deg, var(--deep-1), var(--deep-2) 60%, var(--deep-3));
  color: #fff; padding: 48px 0 54px;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: var(--pattern); background-size: 100px; opacity: 0.06; }
.page-hero > .container, .page-hero > .container-narrow { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 10px; }
.page-hero p { color: var(--on-deep-dim); max-width: 700px; margin: 0 auto; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 0.84rem; color: rgba(255,255,255,0.55); margin-bottom: 12px; }
.breadcrumb a { color: var(--gold-on-deep); }

@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
main { animation: pageIn 0.45s ease both; }

/* ── Cards & grids ─────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--green) 30%, var(--line)); }
.card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); margin-bottom: 14px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* ── Today card ────────────────────────────────────────── */
.today-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; margin-top: -64px; position: relative; z-index: 5;
}
.today-head {
  background: linear-gradient(140deg, var(--deep-2), var(--deep-3));
  color: #fff; padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; position: relative;
}
.today-head::before { content: ''; position: absolute; inset: 0; background-image: var(--pattern); background-size: 84px; opacity: 0.07; }
.today-head > div { position: relative; }
.today-date-line { font-size: 0.94rem; color: var(--on-deep); }
.today-hijri { color: var(--gold-on-deep); font-weight: 600; }
.countdown-box { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.countdown-label { font-size: 0.8rem; color: var(--on-deep-dim); }
.countdown-prayer { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--gold-on-deep); }
.cd-ring-box { position: relative; width: 118px; height: 118px; margin-top: 6px; }
.cd-ring { width: 100%; height: 100%; display: block; }
.cd-ring circle { fill: none; stroke-width: 6; }
.cd-ring .ring-bg { stroke: rgba(255, 255, 255, 0.15); }
.cd-ring .ring-fg { stroke: url(#ringGrad); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset 1s linear; }
.countdown-time { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; letter-spacing: 0.03em; }
.cd-ring-box .countdown-time { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.98rem; }
@media (max-width: 560px) {
  .today-head { justify-content: center; text-align: center; }
  .countdown-box { align-items: center; }
}

.times-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); background: var(--surface); }
.time-tile { padding: 18px 8px 16px; text-align: center; border-right: 1px solid var(--line); position: relative; }
.time-tile:last-child { border-right: 0; }
.time-tile .t-name { font-weight: 600; font-size: 0.9rem; color: var(--muted); display: block; }
.time-tile .t-time { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.02rem, 2.3vw, 1.32rem); color: var(--ink); display: block; margin-top: 2px; font-variant-numeric: tabular-nums; }
.time-tile .t-ampm { font-size: 0.7rem; color: var(--muted); }
.time-tile.active { background: var(--gold-soft); }
.time-tile.active::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #E9C878, #C99B2F); }
.time-tile.active .t-name { color: var(--gold-strong); font-weight: 700; }
@media (max-width: 720px) {
  .times-grid { grid-template-columns: repeat(3, 1fr); }
  .time-tile:nth-child(3) { border-right: 0; }
  .time-tile:nth-child(n+4) { border-top: 1px solid var(--line); }
}

.sehri-iftar {
  display: flex; gap: 10px; padding: 14px 20px; flex-wrap: wrap;
  background: var(--surface-2); border-top: 1px solid var(--line); justify-content: center;
}
.si-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 0.92rem; color: var(--body-c);
}
.si-chip strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.si-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.share-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 13px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line); background: var(--surface);
  color: var(--body-c); border-radius: 10px; padding: 8px 16px;
  font-family: var(--font-body); font-size: 0.89rem; font-weight: 700; cursor: pointer;
  transition: all 0.15s; text-decoration: none;
}
.share-btn:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.share-btn.wa { background: #E9F9EF; border-color: #9BE0B5; color: #0E7A45; }
.share-btn.wa:hover { border-color: #25D366; }
:root[data-theme="dark"] .share-btn.wa { background: #12291B; border-color: #1F4A2E; color: #4ADE80; }

/* ── Month calendar ────────────────────────────────────── */
.month-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.month-tabs::-webkit-scrollbar { display: none; }
.month-tab {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--body-c);
  border-radius: 999px; padding: 7px 17px; cursor: pointer; white-space: nowrap;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  transition: all 0.15s; flex-shrink: 0;
}
.month-tab:hover { border-color: var(--green); color: var(--green); }
.month-tab.active { background: var(--green); color: #fff; border-color: var(--green); font-weight: 700; }

.month-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.month-block summary {
  list-style: none; cursor: pointer; padding: 15px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.month-block summary::-webkit-details-marker { display: none; }
.month-block summary:hover { background: var(--surface-2); }
.month-block[open] summary { border-bottom: 1px solid var(--line); background: var(--green-soft); }
.month-block .chev { transition: transform 0.2s; flex-shrink: 0; }
.month-block[open] .chev { transform: rotate(180deg); }
.calendar-tabbed .month-block { display: none; }
.calendar-tabbed .month-block.active { display: block; }
.calendar-tabbed .month-block summary { display: none; }
.cal-legend { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); margin-top: 14px; }
.cal-legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend .sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

.table-scroll { overflow-x: auto; }
.month-block table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 620px; font-variant-numeric: tabular-nums; }
.month-block th { background: var(--deep-2); color: #fff; font-weight: 600; padding: 10px 8px; text-align: center; font-size: 0.86rem; position: sticky; top: 0; }
.month-block td { padding: 8px; text-align: center; border-bottom: 1px solid var(--line); color: var(--body-c); }
.month-block tbody tr:nth-child(even) { background: var(--surface-2); }
.month-block tr.friday { background: var(--gold-soft) !important; }
.month-block tr.friday td:first-child { font-weight: 700; color: var(--gold-strong); }
.month-block tr.today-row { background: var(--green-soft) !important; outline: 2px solid var(--green); outline-offset: -2px; }
.month-block tr.today-row td { font-weight: 700; color: var(--ink); }
tr.dim-row td { opacity: 0.45; }

/* ── Timeline ──────────────────────────────────────────── */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--gold-bright), var(--green)); border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -30px; top: 8px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--gold-bright); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--gold-bright);
}
.timeline-item h3 { font-size: 1.12rem; }
.timeline-item .tl-badge { display: inline-block; font-size: 0.76rem; font-weight: 700; background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 3px 12px; margin-bottom: 8px; letter-spacing: 0.04em; }
.timeline-item p { color: var(--muted); }

/* ── Gallery ───────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.3s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 11px 15px; font-size: 0.89rem; color: var(--muted); }

/* ── Committee ─────────────────────────────────────────── */
.person-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.18s, box-shadow 0.18s; }
.person-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 13px;
  background: linear-gradient(135deg, var(--deep-3), var(--deep-2));
  color: var(--gold-on-deep); font-family: var(--font-head); font-weight: 700;
  font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--gold-bright); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-card .role { display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; color: var(--gold-strong); background: var(--gold-soft); border-radius: 999px; padding: 3px 13px; margin-bottom: 8px; }
.person-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.person-card .phone { font-size: 0.86rem; color: var(--muted); margin: 0; }
.person-card .phone a { color: var(--green); font-weight: 600; }

/* ── Donate ────────────────────────────────────────────── */
.pay-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.pay-head { padding: 18px 24px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.pay-head .pay-logo { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; color: #fff; }
.pay-head h3 { margin: 0; font-size: 1.12rem; }
.pay-head p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.pay-body { padding: 8px 24px 20px; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.copy-row:last-child { border-bottom: 0; }
.copy-row .label { font-size: 0.8rem; color: var(--muted); display: block; }
.copy-row .value { font-weight: 700; color: var(--ink); font-size: 1rem; word-break: break-all; font-variant-numeric: tabular-nums; }
.copy-btn {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--green);
  border-radius: 10px; padding: 6px 15px; font-size: 0.84rem; font-weight: 700;
  cursor: pointer; font-family: var(--font-body); white-space: nowrap; transition: all 0.15s;
}
.copy-btn:hover, .copy-btn.copied { background: var(--green); border-color: var(--green); color: #fff; }

.amount-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.amount-chip {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px;
  padding: 11px 20px; cursor: pointer; font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 700; color: var(--ink);
  transition: all 0.15s; font-variant-numeric: tabular-nums;
}
.amount-chip:hover { border-color: var(--green); transform: translateY(-2px); }
.amount-chip.on { background: var(--green); color: #fff; border-color: var(--green); }
.donate-cta-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }

/* ── Calculator / forms ────────────────────────────────── */
.calc, .conv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md); }
.calc label, .conv-card label { font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 6px; color: var(--ink); }
.calc .field { margin-bottom: 16px; }
.calc input, .conv-card input, .conv-card select {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: var(--font-body); font-size: 1rem; background: var(--bg); color: var(--ink);
}
.calc input:focus, .conv-card input:focus, .conv-card select:focus { outline: 2px solid var(--gold-bright); border-color: var(--gold-bright); }
.calc-result {
  background: linear-gradient(140deg, var(--deep-2), var(--deep-3));
  border-radius: var(--radius); color: #fff; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.calc-result .cr-label { font-size: 0.88rem; color: var(--on-deep-dim); }
.calc-result .cr-amount { font-size: 1.65rem; font-weight: 800; color: var(--gold-on-deep); font-variant-numeric: tabular-nums; }
.calc-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.conv-out { margin-top: 14px; background: var(--green-soft); border-radius: 12px; padding: 15px 18px; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.1rem; text-align: center; min-height: 1.5em; }
.conv-row3 { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 10px; }

/* ── FAQ ───────────────────────────────────────────────── */
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 15px 20px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.98rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.35rem; color: var(--gold); font-weight: 400; transition: transform 0.2s; flex-shrink: 0; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 20px 16px; color: var(--muted); }
.faq-item .faq-body p { margin-bottom: 0; }

/* ── Quote band / stats ────────────────────────────────── */
.quote-band { text-align: center; }
.quote-band .arabic { font-size: clamp(1.4rem, 3.2vw, 2rem); color: var(--gold-on-deep); display: block; margin-bottom: 16px; }
.quote-band blockquote { margin: 0 auto; max-width: 720px; font-size: 1.08rem; color: var(--on-deep); font-family: var(--font-head); }
.quote-band cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.88rem; color: var(--gold-on-deep); }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 620px) { .stats-row { grid-template-columns: 1fr; } }
.stat { text-align: center; padding: 24px 16px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius); }
.stat .num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--gold-on-deep); display: block; line-height: 1.2; }
.stat .lbl { font-size: 0.9rem; color: var(--on-deep-dim); }

/* ── Notices ───────────────────────────────────────────── */
.notice { display: flex; gap: 13px; align-items: flex-start; background: var(--gold-soft); border: 1px solid var(--gold-bright); border-radius: var(--radius); padding: 16px 20px; font-size: 0.94rem; color: var(--body-c); }
.notice svg { flex-shrink: 0; margin-top: 3px; color: var(--gold-strong); }
.notice p { margin: 0; }
.pill-note { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-soft); color: var(--gold-strong); border: 1px solid var(--gold-bright); border-radius: 999px; padding: 6px 18px; font-size: 0.85rem; font-weight: 600; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { background: var(--deep-1); color: var(--on-deep-dim); position: relative; padding-bottom: env(safe-area-inset-bottom); }
.site-footer::before { content: ''; position: absolute; inset: 0; background-image: var(--pattern); background-size: 120px; opacity: 0.04; pointer-events: none; }
.footer-top { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 38px; padding: 52px 0 38px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,0.55); }
.site-footer h4 { color: var(--gold-on-deep); font-size: 0.98rem; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 22px; }
.footer-links li { margin-bottom: 8px; break-inside: avoid; }
.footer-links a { color: var(--on-deep-dim); font-size: 0.94rem; }
.footer-links a:hover { color: var(--gold-on-deep); }
.footer-contact p { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 11px; font-size: 0.93rem; }
.footer-contact svg { flex-shrink: 0; margin-top: 5px; color: var(--gold-on-deep); }
.footer-contact a { color: var(--on-deep); }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; font-size: 0.83rem; text-align: center; color: rgba(255,255,255,0.45); }

/* ── Bottom nav (mobile) ───────────────────────────────── */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 18px rgba(15, 30, 24, 0.07);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .bottom-nav { background: var(--surface); } }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 7px; font-size: 0.7rem; font-weight: 600; color: var(--muted); }
.bottom-nav a svg { width: 21px; height: 21px; }
.bottom-nav a.active { color: var(--green); }
@media (max-width: 760px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: 62px; }
  .site-footer { padding-bottom: 70px; }
}

/* ── Tools launcher ────────────────────────────────────── */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
@media (max-width: 860px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.tool-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 12px 15px; text-align: center; text-decoration: none;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.tool-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.tool-tile:active { transform: scale(0.97); }
.tool-ico { width: 50px; height: 50px; border-radius: 14px; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; color: #fff; }
.tool-ico svg { width: 24px; height: 24px; }
.ti-green { background: linear-gradient(135deg, #12896A, #0A5B46); }
.ti-gold { background: linear-gradient(135deg, #DDAF4C, #A5790E); }
.ti-teal { background: linear-gradient(135deg, #2A9D8F, #17666B); }
.ti-plum { background: linear-gradient(135deg, #8E5A9E, #5B3370); }
.ti-rose { background: linear-gradient(135deg, #D64570, #9C2652); }
.ti-blue { background: linear-gradient(135deg, #4A7FB5, #2A4E7C); }
.ti-amber { background: linear-gradient(135deg, #E08F3C, #AD5F12); }
.ti-slate { background: linear-gradient(135deg, #64807A, #3A4F47); }
.ti-brick { background: linear-gradient(135deg, #C96F4A, #8A3E24); }
.ti-sky { background: linear-gradient(135deg, #38A8DE, #10689E); }
.ti-pine { background: linear-gradient(135deg, #3E8E7E, #1D5C4D); }
.tool-tile .t-label { font-weight: 700; color: var(--ink); font-size: 0.95rem; line-height: 1.35; font-family: var(--font-head); }
.tool-tile .t-desc { font-size: 0.74rem; color: var(--muted); line-height: 1.45; }
.tool-tile .t-badge { position: absolute; top: 9px; right: 9px; font-size: 0.62rem; font-weight: 700; background: var(--gold-soft); color: var(--gold-strong); border-radius: 999px; padding: 2px 8px; letter-spacing: 0.04em; }

/* ── Widgets: sun arc / compass / tasbih ───────────────── */
.widgets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 860px) { .widgets-grid { grid-template-columns: 1fr; } }
.widget-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-md); }
.widget-card h3 { font-size: 1.16rem; margin-bottom: 4px; }
.widget-card .w-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }

.sun-arc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 24px 10px; box-shadow: var(--shadow-md); overflow: hidden; }
.sun-arc-svg { width: 100%; height: auto; display: block; }
.sun-arc-labels { display: flex; justify-content: space-between; font-size: 0.87rem; color: var(--muted); padding: 4px 6px 10px; }
.sun-arc-labels strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.compass-card { text-align: center; }
.compass-stage { width: min(270px, 72vw); margin: 10px auto 6px; position: relative; }
.compass-dial { width: 100%; height: auto; transition: transform 0.25s ease-out; will-change: transform; }
.compass-fixed { position: absolute; inset: 0; pointer-events: none; }
.compass-readout { font-size: 0.94rem; color: var(--muted); min-height: 1.6em; }
.compass-readout strong { color: var(--gold-strong); }
.compass-live-hint { font-size: 0.8rem; color: var(--muted); }
.compass-aligned .compass-dial { filter: drop-shadow(0 0 14px rgba(217, 180, 92, 0.7)); }

.tasbih-card { text-align: center; }
.tasbih-phase { font-family: var(--font-arabic); font-size: 1.6rem; color: var(--gold-strong); display: block; margin-bottom: 2px; direction: rtl; }
.tasbih-phase-bn { color: var(--muted); font-size: 0.93rem; display: block; margin-bottom: 16px; }
.tasbih-btn {
  width: min(200px, 58vw); aspect-ratio: 1; border-radius: 50%;
  border: 3px solid var(--gold-bright); cursor: pointer;
  background: radial-gradient(circle at 35% 30%, var(--deep-3), var(--deep-1));
  color: #fff; font-family: var(--font-head); font-size: 2.8rem; font-weight: 800;
  margin: 0 auto; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 36px -12px rgba(6, 40, 31, 0.5), inset 0 2px 12px rgba(255,255,255,0.12);
  transition: transform 0.08s ease; position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent; user-select: none; touch-action: manipulation;
  font-variant-numeric: tabular-nums;
}
.tasbih-btn:active { transform: scale(0.94); }
.tasbih-btn .ripple { position: absolute; border-radius: 50%; background: rgba(233, 200, 120, 0.35); transform: scale(0); animation: ripple 0.55s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }
.tasbih-meta { display: flex; justify-content: center; gap: 9px; margin-top: 16px; flex-wrap: wrap; }
.chip-btn { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 16px; cursor: pointer; font-family: var(--font-body); font-size: 0.88rem; color: var(--body-c); font-weight: 600; transition: all 0.15s; }
.chip-btn.on { background: var(--green); color: #fff; border-color: var(--green); }
.tasbih-round { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }
.tasbih-round strong { color: var(--gold-strong); }

/* ── Dua cards ─────────────────────────────────────────── */
.dua-card {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--deep-2), var(--deep-3));
  border-radius: var(--radius-lg); color: #fff; padding: 38px 30px;
  box-shadow: var(--shadow-lg); text-align: center;
}
.dua-card::before { content: ''; position: absolute; inset: 0; background-image: var(--pattern); background-size: 90px; opacity: 0.06; }
.dua-card > * { position: relative; }
.dua-tag { display: inline-block; background: rgba(233,200,120,0.14); color: var(--gold-on-deep); border: 1px solid rgba(233,200,120,0.35); border-radius: 999px; font-size: 0.78rem; font-weight: 600; padding: 4px 15px; margin-bottom: 16px; }
.dua-arabic { font-family: var(--font-arabic); font-size: clamp(1.35rem, 3.2vw, 1.9rem); color: #fff; direction: rtl; line-height: 2.1; margin-bottom: 12px; display: block; }
.dua-bn { color: var(--on-deep); font-size: 1rem; max-width: 640px; margin: 0 auto 8px; }
.dua-src { color: var(--gold-on-deep); font-size: 0.84rem; }

.dua-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 24px 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.dua-item .d-cat { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 3px 12px; margin-bottom: 10px; }
.dua-item .d-ar { font-family: var(--font-arabic); font-size: 1.5rem; direction: rtl; line-height: 2.1; color: var(--ink); display: block; margin-bottom: 10px; }
.dua-item .d-bn { color: var(--body-c); margin-bottom: 4px; }
.dua-item .d-src { color: var(--muted); font-size: 0.83rem; display: block; margin-bottom: 12px; }
.dua-item .d-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 12px; }
.dua-item h3 { font-size: 1.02rem; }

/* ── Names grid ────────────────────────────────────────── */
.names-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
@media (max-width: 900px) { .names-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .names-grid { grid-template-columns: 1fr; } }
.name-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 17px; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.15s, border-color 0.15s; position: relative; }
.name-card:hover { transform: translateY(-2px); border-color: var(--gold-bright); }
.name-card .n-no { position: absolute; top: 9px; left: 11px; font-size: 0.7rem; font-weight: 700; color: var(--gold-strong); background: var(--gold-soft); border-radius: 999px; padding: 1px 8px; }
.name-card .n-ar { font-family: var(--font-arabic); font-size: 1.7rem; color: var(--ink); display: block; line-height: 1.7; }
.name-card .n-tr { font-weight: 700; color: var(--gold-strong); font-size: 0.96rem; display: block; }
.name-card .n-mn { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

/* ── Toolbar (search + filters) ────────────────────────── */
.toolbar { max-width: 720px; margin: 0 auto 28px; }
.search-wrap { position: relative; margin-bottom: 13px; }
.search-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.search-wrap input { width: 100%; padding: 12px 18px 12px 46px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 1rem; }
.search-wrap input:focus { outline: 2px solid var(--gold-bright); border-color: var(--gold-bright); }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.filter-chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--body-c); border-radius: 999px; padding: 6px 15px; cursor: pointer; font-family: var(--font-body); font-size: 0.87rem; font-weight: 600; transition: all 0.15s; }
.filter-chip.active { background: var(--green); color: #fff; border-color: var(--green); }
.result-count { text-align: center; color: var(--muted); font-size: 0.87rem; margin-top: 12px; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; display: none; }

/* ── Events ────────────────────────────────────────────── */
.event-card { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); transition: transform 0.15s, box-shadow 0.15s; }
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.event-date { flex-shrink: 0; width: 76px; text-align: center; background: linear-gradient(160deg, var(--deep-2), var(--deep-3)); border-radius: 13px; color: #fff; padding: 10px 6px; }
.event-date .ed-d { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; display: block; line-height: 1.2; color: var(--gold-on-deep); }
.event-date .ed-m { font-size: 0.7rem; opacity: 0.85; }
.event-body { flex: 1; min-width: 0; }
.event-body h3 { font-size: 1.05rem; margin-bottom: 2px; }
.event-body .ev-hijri { font-size: 0.83rem; color: var(--muted); display: block; }
.event-left { flex-shrink: 0; text-align: right; font-size: 0.8rem; color: var(--muted); }
.event-left strong { color: var(--gold-strong); font-size: 1.02rem; display: block; font-variant-numeric: tabular-nums; }
.event-past { opacity: 0.5; }
@media (max-width: 560px) { .event-card { gap: 12px; padding: 15px; } .event-left { display: none; } }
.ramadan-hero-count { font-family: var(--font-head); font-size: clamp(1.5rem, 3.8vw, 2.2rem); font-weight: 800; color: var(--gold-on-deep); }

/* ── Tracker ───────────────────────────────────────────── */
.tracker-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.t-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 17px 10px; text-align: center; }
.t-stat .v { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--green); display: block; line-height: 1.3; }
.t-stat .l { font-size: 0.78rem; color: var(--muted); }
.track-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
@media (max-width: 560px) { .track-row { gap: 6px; } }
.track-btn { border: 2px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 5px 12px; cursor: pointer; text-align: center; font-family: var(--font-body); color: var(--body-c); transition: all 0.18s; -webkit-tap-highlight-color: transparent; }
.track-btn .tb-name { font-weight: 700; display: block; font-size: 0.92rem; color: var(--ink); }
.track-btn .tb-time { font-size: 0.75rem; color: var(--muted); display: block; font-variant-numeric: tabular-nums; }
.track-btn .tb-mark { width: 28px; height: 28px; border-radius: 50%; margin: 7px auto 0; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; color: transparent; font-weight: 800; transition: all 0.18s; }
.track-btn.done { border-color: var(--green); background: var(--green-soft); }
.track-btn.done .tb-mark { background: var(--green); border-color: var(--green); color: #fff; }
.week-grid { margin-top: 24px; overflow-x: auto; }
.week-grid table { width: 100%; border-collapse: collapse; font-size: 0.84rem; min-width: 480px; }
.week-grid th, .week-grid td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.week-grid th { color: var(--muted); font-weight: 600; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; background: var(--line); }
.dot.on { background: var(--green); }
.dot.friday-dot { outline: 2px solid var(--gold-bright); outline-offset: 1px; }

/* ── Lightbox ──────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5, 15, 11, 0.94); display: flex; align-items: center; justify-content: center; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 0.25s; padding: 20px; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(94vw, 1000px); max-height: 76vh; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox .lb-cap { color: rgba(255,255,255,0.85); margin-top: 14px; font-size: 0.94rem; text-align: center; }
.lightbox .lb-count { color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-top: 4px; }
.lb-btn { position: absolute; border: 0; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.12); color: #fff; font-size: 1.3rem; backdrop-filter: blur(6px); transition: background 0.15s; }
.lb-btn:hover { background: rgba(233, 200, 120, 0.4); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ── Before/after ──────────────────────────────────────── */
.ba-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); user-select: none; border: 1px solid var(--line); }
.ba-wrap img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; pointer-events: none; }
.ba-after { position: absolute; inset: 0; overflow: hidden; width: 100%; clip-path: inset(0 calc(100% - var(--ba, 50%)) 0 0); }
.ba-after img { position: static; width: 100%; height: 100%; object-fit: cover; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--ba, 50%); width: 3px; background: var(--gold-bright); transform: translateX(-50%); pointer-events: none; }
.ba-handle::after { content: '⇔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--gold-bright); color: #241B05; font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.35); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.ba-badge { position: absolute; top: 14px; font-size: 0.76rem; font-weight: 700; background: rgba(5, 20, 15, 0.65); color: #fff; border-radius: 999px; padding: 5px 13px; backdrop-filter: blur(4px); pointer-events: none; }
.ba-badge.left { left: 14px; }
.ba-badge.right { right: 14px; }

/* ── Floating: WhatsApp, install, toast ────────────────── */
.wa-fab {
  position: fixed; left: 16px; bottom: 82px; z-index: 120;
  width: 50px; height: 50px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.18s ease;
}
.wa-fab:hover { transform: scale(1.07); color: #fff; }
.wa-fab svg { width: 26px; height: 26px; }
@media (min-width: 761px) { .wa-fab { bottom: 24px; } }

.install-pill {
  position: fixed; right: 16px; bottom: 82px; z-index: 120;
  display: none; align-items: center; gap: 9px;
  background: linear-gradient(135deg, #E9C878, #C99B2F);
  color: #241B05; font-weight: 700; font-size: 0.9rem;
  border: 0; border-radius: 999px; padding: 12px 19px; cursor: pointer;
  box-shadow: 0 12px 28px -8px rgba(185, 138, 36, 0.55);
  animation: pageIn 0.4s ease both; font-family: var(--font-body);
}
.install-pill.show { display: inline-flex; }
@media (min-width: 761px) { .install-pill { bottom: 24px; } }

.app-toast {
  position: fixed; left: 50%; bottom: 82px; transform: translateX(-50%) translateY(20px);
  background: var(--deep-2); color: #fff; border-radius: 999px;
  padding: 10px 22px; font-size: 0.9rem; z-index: 250; opacity: 0;
  transition: opacity 0.25s, transform 0.25s; pointer-events: none;
  box-shadow: var(--shadow-lg); white-space: nowrap;
}
.app-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Reveal ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  main, .hero-inner > * { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ── Utilities ─────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
.gold-text { color: var(--gold-strong); }
.small { font-size: 0.87rem; color: var(--muted); }

/* ── Print ─────────────────────────────────────────────── */
@media print {
  .ticker, .site-header, .bottom-nav, .site-footer, .hero-cta, .btn,
  .faq-section, .no-print, .mobile-menu, .install-pill, .app-toast,
  .wa-fab, .theme-toggle, .share-bar, .month-tabs, .cal-legend { display: none !important; }
  body { background: #fff; font-size: 11px; padding-bottom: 0; color: #000; }
  .month-block { break-inside: avoid; border: 1px solid #999; margin-bottom: 10px; display: block !important; }
  .calendar-tabbed .month-block { display: block !important; }
  .calendar-tabbed .month-block summary { display: flex !important; }
  .month-block table { min-width: 0; font-size: 10px; }
  .month-block th { background: #eee !important; color: #000 !important; }
  .table-scroll { overflow: visible; }
  .page-hero { background: #fff !important; color: #000; padding: 10px 0; }
  .page-hero h1 { color: #000; }
  .page-hero p, .breadcrumb { display: none; }
  .today-card { box-shadow: none; margin-top: 0; }
}
