/* ═══════════════════════════════════════════════════════════════════
   Prayers.lk — style.css
   Design system v2 — rebuilt against the ACTUAL logo colours
   (extracted directly from Logo.svg): deep teal #00A27D (minaret/
   structure) and pale mint #BBF7D0 (crescents/domes).

   Why v1 read as "boring": every accent — links, borders, glows,
   badges, icons — was the *same single hue* at different opacities.
   No hierarchy, no warmth, nothing for the eye to land on.

   v2 fixes this with three deliberate moves:
   1. A full teal RAMP (5 stops, not 3) for real depth on cards/text.
   2. One warm AMBER accent, reserved for primary CTAs and emphasis —
      traditional mosque domes are gilded, teal tile + gold leaf is a
      real, recognisable pairing, not an arbitrary choice.
   3. A dedicated status set (success/warning/danger/info) so alerts
      stop borrowing the brand teal for things that aren't brand-related.

   Single source of truth for all design tokens.
   Sky.js updates --sky-* custom properties on :root every second,
   and all components derive their colours from those tokens.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand ramp — dark theme (default) ──────────────────────────
     Derived from logo #00A27D / #BBF7D0, extended into a 5-stop ramp
     so text, borders, and glows can sit at DIFFERENT points on the
     ramp instead of all reusing --gold at different alpha. */
  --teal-900:   #003d30;   /* deepest — shadows, pressed states */
  --teal-700:   #00785e;   /* rich — secondary buttons, active nav */
  --teal-500:   #17c99a;   /* primary brand — the "logo teal", brightened for dark bg */
  --teal-300:   #6ee7c2;   /* light — hover states, secondary text-on-dark */
  --teal-100:   #bbf7d0;   /* logo mint, exact — badges, subtle fills */

  /* ── Warm accent — reserved for primary CTAs + emphasis only ──── */
  --amber-600:  #c98a2e;
  --amber-500:  #e0a542;   /* primary accent — buttons, active states, highlights */
  --amber-300:  #f3ca7f;   /* light — glow, hover */
  --amber-100:  #fbe6bf;   /* pale — subtle backgrounds */

  /* ── Backward-compat aliases ──────────────────────────────────────
     Every existing page's inline CSS reads --gold/--gold-lt/--gold-pale.
     Rather than touch every file, alias them onto the new ramp so all
     old markup instantly inherits the new palette with zero risk. */
  --gold:       var(--teal-500);
  --gold-lt:    var(--teal-300);
  --gold-pale:  var(--teal-100);
  --gold-dim:   rgba(23,201,154,.16);
  --accent:     var(--amber-500);   /* new: use for primary CTAs going forward */
  --accent-lt:  var(--amber-300);

  /* ── Night-sky base (overridden live by sky.js, and by [data-theme=light]) */
  --deep:       #070c17;
  --navy:       #0b1220;
  --navy-mid:   #121d34;
  --navy-lt:    #1a2b4a;

  --page-bg:    var(--deep);
  --on-gold:    #061510;   /* text on bright teal/amber gradients */
  --on-accent:  #2b1a04;   /* text on amber — warmer black than on-gold */

  /* ── Semantic ─────────────────────────────────────────────────── */
  --white:      #f4f7f5;
  --cream:      #faf8f2;
  --muted:      rgba(228,238,232,.60);
  --border:     rgba(23,201,154,.20);

  /* Status colours — DISTINCT from brand, not teal-tinted */
  --success:    #4ade80;
  --success-lt: #86efac;
  --success-bg:     rgba(74,222,128,.12);
  --success-border: rgba(74,222,128,.32);
  --warning:    #fbbf24;
  --warning-lt: #fde68a;
  --danger:     #f87171;
  --danger-lt:  #fca5a5;
  --danger-bg:      rgba(248,113,113,.12);
  --danger-border:  rgba(248,113,113,.32);
  --info:       #60a5fa;
  --info-lt:    #93c5fd;
  /* legacy names still referenced by older markup */
  --green:      var(--success);
  --purple:     #a78bfa;
  --purple-lt:  #d8c9fb;
  --orange:     var(--warning);
  --orange-lt:  var(--warning-lt);
  --red:        var(--danger);

  /* ── Layout ───────────────────────────────────────────────────── */
  --r:          16px;
  --r-sm:       10px;
  --r-lg:       22px;
  --header-h:   72px;
  --nav-h:      64px;
  --shadow-sm:  0 2px 10px rgba(0,0,0,.18);
  --shadow-md:  0 8px 28px rgba(0,0,0,.28);
  --shadow-lg:  0 18px 48px rgba(0,0,0,.38);
  --shadow-glow: 0 0 0 1px rgba(23,201,154,.12), 0 8px 28px rgba(0,0,0,.28);

  /* ── Sky-driven tokens (sky.js writes these on :root in dark/system-dark) ──
     CONTRAST RULE: --sky-card must always read as a distinctly LIGHTER
     surface than --page-bg. The previous values (11,18,32 over a
     7,12,23 page) had a combined RGB delta of only ~19 — cards were
     nearly invisible against the page. This is the fix. */
  --sky-text:        rgba(244,247,245,1);
  --sky-muted:       rgba(228,238,232,.62);
  --sky-card:        rgba(26,36,60,.85);
  --sky-card-border: rgba(23,201,154,.28);
  --sky-blur:        16px;
  --sky-header:      rgba(9,15,28,.72);
  --sky-footer:      rgba(9,15,28,.68);
  --sky-input:       rgba(13,20,36,.78);
  --sky-overlay:     rgba(4,8,18,.0);
  --sky-text-shadow: none;
  --sky-logo-shadow: 0 4px 20px rgba(23,201,154,.4);
}

/* ═══════════════════════════════════════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) {
    --teal-900:   #003d30;
    --teal-700:   #00785e;
    --teal-500:   #00896b;   /* darker for AA contrast on white */
    --teal-300:   #14a888;
    --teal-100:   #0f766e;

    --amber-600:  #92600f;
    --amber-500:  #b3791a;
    --amber-300:  #d99b34;
    --amber-100:  #f4dfb8;

    --gold:       var(--teal-500);
    --gold-lt:    var(--teal-300);
    --gold-pale:  var(--teal-100);
    --gold-dim:   rgba(0,137,107,.10);
    --accent:     var(--amber-500);
    --accent-lt:  var(--amber-300);
    --on-gold:    #ffffff;
    --on-accent:  #ffffff;

    --page-bg:    #e9f2ee;   /* cooler, slightly more saturated so white cards visibly pop */

    --muted:      rgba(9,38,32,.60);
    --border:     rgba(0,137,107,.18);

    --success:    #16a34a; --success-lt:#4ade80; --success-bg:rgba(22,163,74,.10); --success-border:rgba(22,163,74,.28);
    --warning:    #b45309; --warning-lt:#f59e0b;
    --danger:     #dc2626; --danger-lt: #ef4444; --danger-bg:rgba(220,38,38,.10); --danger-border:rgba(220,38,38,.28);
    --info:       #2563eb; --info-lt:   #60a5fa;
    --green: var(--success); --orange: var(--warning); --red: var(--danger);

    --sky-text:        #08201b;
    --sky-muted:       rgba(9,38,32,.62);
    --sky-card:        rgba(255,255,255,.97);   /* near-solid white — clear separation from page-bg */
    --sky-card-border: rgba(0,137,107,.24);
    --sky-blur:        18px;
    --sky-header:      rgba(255,255,255,.88);
    --sky-footer:      rgba(255,255,255,.88);
    --sky-input:       rgba(255,255,255,.97);
    --sky-overlay:     rgba(255,255,255,0);
    --sky-text-shadow: none;
    --sky-logo-shadow: 0 4px 18px rgba(0,137,107,.24);
    --shadow-sm:  0 2px 10px rgba(0,40,30,.10), 0 1px 2px rgba(0,40,30,.06);
    --shadow-md:  0 10px 28px rgba(0,40,30,.14), 0 2px 6px rgba(0,40,30,.08);
    --shadow-lg:  0 20px 48px rgba(0,40,30,.18);
    --shadow-glow: 0 0 0 1px rgba(0,137,107,.14), 0 10px 28px rgba(0,40,30,.14);
  }
}
[data-theme="light"] {
    --teal-900:   #003d30;
    --teal-700:   #00785e;
    --teal-500:   #00896b;
    --teal-300:   #14a888;
    --teal-100:   #0f766e;

    --amber-600:  #92600f;
    --amber-500:  #b3791a;
    --amber-300:  #d99b34;
    --amber-100:  #f4dfb8;

    --gold:       var(--teal-500);
    --gold-lt:    var(--teal-300);
    --gold-pale:  var(--teal-100);
    --gold-dim:   rgba(0,137,107,.10);
    --accent:     var(--amber-500);
    --accent-lt:  var(--amber-300);
    --on-gold:    #ffffff;
    --on-accent:  #ffffff;

    --page-bg:    #e9f2ee;   /* cooler, slightly more saturated so white cards visibly pop */

    --muted:      rgba(9,38,32,.60);
    --border:     rgba(0,137,107,.18);

    --success:    #16a34a; --success-lt:#4ade80; --success-bg:rgba(22,163,74,.10); --success-border:rgba(22,163,74,.28);
    --warning:    #b45309; --warning-lt:#f59e0b;
    --danger:     #dc2626; --danger-lt: #ef4444; --danger-bg:rgba(220,38,38,.10); --danger-border:rgba(220,38,38,.28);
    --info:       #2563eb; --info-lt:   #60a5fa;
    --green: var(--success); --orange: var(--warning); --red: var(--danger);

    --sky-text:        #08201b;
    --sky-muted:       rgba(9,38,32,.62);
    --sky-card:        rgba(255,255,255,.97);   /* near-solid white — clear separation from page-bg */
    --sky-card-border: rgba(0,137,107,.24);
    --sky-blur:        18px;
    --sky-header:      rgba(255,255,255,.88);
    --sky-footer:      rgba(255,255,255,.88);
    --sky-input:       rgba(255,255,255,.97);
    --sky-overlay:     rgba(255,255,255,0);
    --sky-text-shadow: none;
    --sky-logo-shadow: 0 4px 18px rgba(0,137,107,.24);
    --shadow-sm:  0 2px 10px rgba(0,40,30,.10), 0 1px 2px rgba(0,40,30,.06);
    --shadow-md:  0 10px 28px rgba(0,40,30,.14), 0 2px 6px rgba(0,40,30,.08);
    --shadow-lg:  0 20px 48px rgba(0,40,30,.18);
    --shadow-glow: 0 0 0 1px rgba(0,137,107,.14), 0 10px 28px rgba(0,40,30,.14);
}

/* Dim the animated sky canvas in light mode */
[data-theme="light"] #skyCanvas   { opacity: .10; }
[data-theme="light"] .sky-pattern { opacity: .008; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) #skyCanvas {
    opacity: .10;
  }
  :root:not([data-theme="dark"]):not([data-theme="light"]) .sky-pattern {
    opacity: .008;
  }
}

/* ── Global reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--page-bg);
  color: var(--sky-text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Refined selection + focus rings using the new accent, not brand teal —
   keeps interactive/system chrome visually distinct from brand elements */
::selection { background: var(--amber-500); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Sky canvas overlay (subtle tint layer above canvas) ────────── */
#skyOverlay {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background: var(--sky-overlay);
  transition: background 4s ease;
}
.sky-pattern {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: .022;
  transition: opacity 1.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z' fill='none' stroke='%2317c99a' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='20' fill='none' stroke='%2317c99a' stroke-width='.5'/%3E%3C/svg%3E");
}
#skyCanvas { transition: opacity 1.2s ease; }

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3 { color: var(--sky-text); letter-spacing: -0.01em; }
h1 { font-weight: 500; }
p, span, li { color: var(--sky-text); }
.muted, [class*="-muted"], .logo-sub,
.dist-label, .card-t12, .t12, .date-day,
.banner-cd-sub, .bn-eyebrow, .banner-next-label,
.hero-hijri, .hijri-sub, .footer-tagline,
.footer-acju, .ig-unit, .qsub, .mc-addr,
.badge-sub, .ai-date, .ann-body {
  color: var(--sky-muted);
}
a { color: var(--gold-lt); transition: color .2s; }
a:hover { color: var(--teal-100); }

/* Eyebrow / label text — the small uppercase tags above headings
   (.page-sub, .bn-eyebrow, etc). Give these the amber accent instead
   of teal so headings have a warm "signal" colour distinct from body
   links, which is what breaks the single-hue monotony. */
.page-sub, .bn-eyebrow, .js-main-label {
  color: var(--accent);
}

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 40px;
  border-bottom: 1px solid var(--sky-card-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: var(--sky-header);
  transition: background 3s ease, border-color 3s ease;
}
.logo { display:flex; align-items:center; gap:13px; text-decoration:none; flex-shrink:0; }
.logo-icon {
  width:44px; height:44px;
  background: var(--sky-card);
  border: 1px solid var(--sky-card-border);
  border-radius:11px; display:grid; place-items:center; font-size:21px;
  box-shadow: var(--sky-logo-shadow); flex-shrink:0;
  transition: background 3s ease, border-color 3s ease, box-shadow 3s ease;
}
.logo-name { font-family:'Cormorant Garamond',serif; font-size:1.55rem; font-weight:500; color:var(--sky-text); }
.logo-name span { color:var(--gold); }
.logo-sub { font-size:.65rem; color:var(--sky-muted); letter-spacing:2px; text-transform:uppercase; margin-top:1px; }
.site-nav { display:flex; gap:6px; align-items:center; }
.site-nav a {
  color: var(--sky-muted); text-decoration:none;
  padding:8px 15px; border-radius:8px;
  font-size:.875rem; transition: all .2s; white-space:nowrap;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--sky-text);
  background: rgba(23,201,154,.15);
}
.btn-gps {
  background: linear-gradient(135deg, var(--gold), var(--gold-pale));
  color:var(--on-gold); font-weight:500;
  border-radius:9px; padding:8px 16px;
  box-shadow: 0 3px 14px rgba(23,201,154,.28);
  border:none; cursor:pointer;
  font-family:'DM Sans',sans-serif; font-size:.875rem;
  transition: all .25s;
}
.btn-gps:hover { transform:translateY(-1px); box-shadow:0 6px 20px rgba(23,201,154,.42); }

/* ── Theme toggle (light / dark / system) ──────────────────────────
   A 3-state pill button. .tt-icon shows ☀️/🌙/💻, .tt-label shows text
   (hidden on narrow screens — icon only). theme.js wires the click. */
.theme-toggle {
  display: flex; align-items: center; gap: 6px;
  background: var(--sky-card);
  border: 1px solid var(--sky-card-border);
  color: var(--sky-text);
  border-radius: 9px; padding: 8px 13px;
  font-family: 'DM Sans', sans-serif; font-size: .82rem;
  cursor: pointer; transition: all .25s;
  backdrop-filter: blur(var(--sky-blur)) saturate(180%);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle .tt-icon { font-size: 1rem; line-height: 1; }
.theme-toggle .tt-label { white-space: nowrap; }
@media (max-width: 768px) {
  .theme-toggle .tt-label { display: none; }
  .theme-toggle { padding: 8px 10px; }
}

/* ── Cards — the core surface ────────────────────────────────────── */
.card-surface,
.pc, .icard, .info-card, .tbl-wrap, .form-card,
.prayer-banner, .qibla-outer, .ig-card,
.masjid-card, .masjid-hero, .ann-card,
.map-card, .live-section, .dist-sel-wrap,
.nearest-strip, .success-card, .mode-card,
.pt-card, .side-col > div {
  background: var(--sky-card);
  backdrop-filter: blur(var(--sky-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--sky-blur)) saturate(180%);
  border-color: var(--sky-card-border);
  box-shadow: var(--shadow-sm);
  transition: background 3s ease, border-color 3s ease,
              backdrop-filter 3s ease, box-shadow .25s ease, transform .25s ease;
}
.card-surface:hover,
.pc:hover, .icard:hover, .info-card:hover, .form-card:hover,
.masjid-card:hover, .ann-card:hover, .mode-card:hover {
  box-shadow: var(--shadow-md);
}

/* ── Inputs & Selects ───────────────────────────────────────────── */
input, select, textarea {
  background: var(--sky-input);
  border: 1px solid var(--sky-card-border);
  color: var(--sky-text);
  padding: 9px 13px; border-radius: 9px;
  font-family: 'DM Sans', sans-serif; font-size: .88rem;
  transition: border-color .2s, background 3s ease;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(23,201,154,.14);
}
select option { background: var(--sky-input); color: var(--sky-text); }
select.dist-sel {
  appearance: none;
  padding: 10px 38px 10px 16px;
  min-width: 195px;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
/* Primary CTAs use the warm amber accent — this is deliberate: a page
   that is 100% teal has nothing for the eye to prioritise. Reserving
   amber for "the one thing to click" (submit, confirm, primary action)
   restores visual hierarchy the old all-teal system was missing. */
.btn-primary {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: var(--on-accent); border: none;
  padding: 10px 22px; border-radius: 9px;
  font-family:'DM Sans',sans-serif; font-size:.88rem; font-weight:600;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 3px 14px rgba(224,165,66,.25);
}
.btn-primary:hover {
  transform:translateY(-1px);
  box-shadow: 0 8px 24px rgba(224,165,66,.4);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--sky-card-border);
  color: var(--sky-muted);
  padding: 10px 22px; border-radius: 9px;
  font-family:'DM Sans',sans-serif; font-size:.88rem;
  cursor: pointer; transition: all .2s;
}
.btn-outline:hover { border-color:var(--gold); color:var(--gold-lt); }
/* Secondary brand button — teal, for nav-adjacent or lower-emphasis
   actions that shouldn't compete visually with the primary amber CTA */
.btn-secondary {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: var(--on-gold); border: none;
  padding: 10px 22px; border-radius: 9px;
  font-family:'DM Sans',sans-serif; font-size:.88rem; font-weight:500;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 3px 14px rgba(23,201,154,.22);
}
.btn-secondary:hover { transform:translateY(-1px); box-shadow:0 6px 18px rgba(23,201,154,.35); }

/* ── Tables ──────────────────────────────────────────────────────── */
table { width:100%; border-collapse:collapse; }
thead tr {
  background: linear-gradient(90deg, rgba(23,201,154,.12), rgba(23,201,154,.04));
  border-bottom: 1px solid var(--sky-card-border);
}
thead th {
  padding:13px 10px; text-align:center;
  font-family:'Cormorant Garamond',serif;
  font-size:.78rem; font-weight:500; color:var(--gold);
  letter-spacing:1.2px; text-transform:uppercase; white-space:nowrap;
}
thead th:first-child { text-align:left; padding-left:16px; }
tbody tr { border-bottom:1px solid rgba(23,201,154,.06); transition:background .15s; }
tbody tr:last-child { border-bottom:none; }
tbody tr:hover { background: rgba(23,201,154,.05); }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  position: relative; z-index: 5;
  border-top: 1px solid var(--sky-card-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: var(--sky-footer);
  padding: 28px 40px;
  transition: background 3s ease;
}
.footer-top {
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; margin-bottom:14px; padding-bottom:14px;
  border-bottom:1px solid rgba(23,201,154,.1);
}
.footer-brand { font-family:'Cormorant Garamond',serif; font-size:1.1rem; font-weight:500; color:var(--sky-text); }
.footer-brand span { color:var(--gold); }
.footer-acju { font-size:.75rem; color:var(--sky-muted); text-align:right; line-height:1.6; }
.footer-acju a, .footer-contact a { color:var(--gold); text-decoration:none; }
.footer-acju a:hover, .footer-contact a:hover { text-decoration:underline; }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.footer-tagline { font-size:.73rem; color:var(--sky-muted); line-height:1.5; }
.footer-contact { display:flex; gap:18px; flex-shrink:0; }
.footer-contact a { display:flex; align-items:center; gap:5px; font-size:.73rem; color:var(--sky-muted); white-space:nowrap; transition:color .2s; }
.footer-contact a:hover { color:var(--gold); }

/* ── Mobile bottom nav — Liquid Glass ───────────────────────────── */
.bottom-nav { display: none; }

@media (max-width: 768px) {
  body { padding-bottom: calc(var(--nav-h) + 12px); }
  .site-header { padding: 0 18px; }
  .site-nav a:not(.btn-gps):not(.theme-toggle) { display: none; }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 50%; transform: translateX(-50%);
    z-index: 200;
    width: auto;
    background: rgba(10,16,36,.52);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 100px;
    padding: 6px 8px; gap: 4px;
    backdrop-filter: blur(40px) saturate(200%) brightness(1.15);
    -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.15);
    box-shadow:
      0 8px 32px rgba(0,0,0,.4),
      0 2px 8px rgba(0,0,0,.3),
      inset 0 1px 0 rgba(255,255,255,.15),
      inset 0 -1px 0 rgba(0,0,0,.2);
    transition: background 3s ease;
  }
  .bottom-nav a {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2px; padding: 8px 12px;
    text-decoration: none;
    color: var(--sky-muted);
    border-radius: 80px;
    transition: all .25s cubic-bezier(.34,1.56,.64,1);
    -webkit-tap-highlight-color: transparent;
    min-width: 56px;
  }
  .bottom-nav a:active { transform: scale(.92); }
  .bottom-nav a.active {
    color: var(--sky-text);
    background: rgba(255,255,255,.13);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.22),
      inset 0 -1px 0 rgba(0,0,0,.15),
      0 2px 12px rgba(23,201,154,.18),
      0 0 0 1px rgba(23,201,154,.15);
  }
  .bottom-nav a.active .bn-icon {
    filter: drop-shadow(0 0 6px rgba(23,201,154,.65)) drop-shadow(0 0 2px rgba(23,201,154,.4));
  }
  .bottom-nav a.active .bn-label { color: var(--gold-lt); }
  .bn-icon { font-size:1.4rem; line-height:1; transition: transform .25s cubic-bezier(.34,1.56,.64,1), filter .25s ease; }
  .bottom-nav a:active .bn-icon { transform: scale(.88); }
  .bn-label { font-size:.5rem; letter-spacing:.6px; text-transform:uppercase; white-space:nowrap; font-weight:500; }
}

/* ── Animations ──────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes slideDown {
  from { transform: translateY(-28px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}
.animate-up { animation: fadeUp .8s ease both; }

/* ── Loading overlay ─────────────────────────────────────────────── */
.loading-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--page-bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  animation: loadOut .45s 1.1s forwards;
}
@keyframes loadOut { to { opacity: 0; visibility: hidden; } }
.loading-overlay .load-crescent { font-size: 3.8rem; animation: spinC 1.6s linear infinite; }
@keyframes spinC { to { transform: rotate(360deg); } }
.loading-overlay .load-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; color: var(--gold); letter-spacing: 3px;
}

/* ── Alerts ──────────────────────────────────────────────────────── */
.alert { padding:12px 16px; border-radius:9px; margin-bottom:16px; font-size:.85rem; border:1px solid; }
.alert-success { background:var(--success-bg); border-color:var(--success-border); color:var(--success); }
.alert-error   { background:var(--danger-bg);  border-color:var(--danger-border);  color:var(--danger); }

/* ── Badges ──────────────────────────────────────────────────────── */
.badge { padding:2px 8px; border-radius:6px; font-size:.68rem; font-weight:500; }
.badge-gold   { background:rgba(23,201,154,.2);  color:var(--gold); }
.badge-green  { background:rgba(134,232,122,.18); color:var(--green); }

/* ── Mobile misc ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-footer { padding: 22px 18px; }
  .footer-top  { flex-direction:column; align-items:flex-start; gap:6px; }
  .footer-acju { text-align:left; }
  .footer-bottom { flex-direction:column; align-items:flex-start; gap:10px; }
  .footer-contact { flex-wrap:wrap; gap:12px; }
}

/* ════════════════════════════════════════════════════════════
   PRAYER CARDS — homepage (.pc grid)
   Glass surface — no inner row backgrounds, no banding
   ════════════════════════════════════════════════════════════ */
.prayer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 44px;
}
@media(max-width:680px){ .prayer-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:420px){ .prayer-grid { grid-template-columns: 1fr; } }

.pc {
  background: var(--sky-card);
  border: 1px solid var(--sky-card-border);
  border-radius: var(--r);
  padding: 22px 18px 18px;
  text-align: center;
  backdrop-filter: blur(var(--sky-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--sky-blur)) saturate(180%);
  transition: background 3s ease, border-color 3s ease,
              transform .32s cubic-bezier(.34,1.56,.64,1),
              box-shadow .32s ease;
  position: relative;
  overflow: hidden;
  animation: fadeUp .6s ease both;
}
/* Bottom accent line — hidden by default */
.pc::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform .3s;
}
.pc:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 42px rgba(0,0,0,.3);
  border-color: rgba(23,201,154,.35);
}
.pc:hover::before { transform: scaleX(1); }

/* Active state — gold tint, no extra bg layers */
.pc.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(23,201,154,.15),
              0 8px 30px rgba(23,201,154,.15),
              inset 0 1px 0 rgba(23,201,154,.2);
}
.pc.active::before { transform: scaleX(1); }

/* Jumuah card */
.pc.jumuah-card { border-color: rgba(134,232,122,.25); }
.pc.jumuah-card::before { background: linear-gradient(90deg,transparent,var(--green),transparent); }
.pc.jumuah-card.active, .pc.jumuah-card.iqamah-active {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(134,232,122,.12),
              0 8px 30px rgba(134,232,122,.12);
}

/* Sunrise — dimmed */
.pc.sunrise-card { opacity: .6; }

/* Iqamah active — purple */
.pc.iqamah-active {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px rgba(139,92,246,.15),
              0 8px 30px rgba(139,92,246,.18);
}
.pc.iqamah-active::before { background: linear-gradient(90deg,transparent,var(--purple),transparent); transform: scaleX(1); }

/* Active indicator dot */
.active-dot {
  position: absolute; top: 11px; right: 11px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px var(--gold);
  animation: pulse 2s infinite;
}
.jumuah-card .active-dot  { background: var(--green);  box-shadow: 0 0 8px var(--green); }
.iqamah-active .active-dot{ background: var(--purple); box-shadow: 0 0 8px var(--purple); }

/* Card content — clean, no inner backgrounds */
.card-icon {
  font-size: 1.75rem;
  margin-bottom: 10px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(23,201,154,.2));
}
.card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 500;
  color: var(--sky-muted);
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 8px;
}
.pc.active       .card-name { color: var(--gold); }
.jumuah-card     .card-name { color: rgba(134,232,122,.8); }
.iqamah-active   .card-name { color: var(--purple-lt); }

.card-t24 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem; font-weight: 300;
  color: var(--sky-text);
  letter-spacing: 1px; line-height: 1;
  margin-bottom: 2px;
}
.card-t12 {
  font-size: .72rem;
  color: var(--sky-muted);
  letter-spacing: .4px;
  margin-bottom: 10px;
}

/* Iqamah row — NO background, just a subtle top border */
.iqamah-row {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  border-top: 1px solid rgba(23,201,154,.12);
  padding-top: 9px; margin-top: 4px;
}
.jumuah-card   .iqamah-row { border-top-color: rgba(134,232,122,.15); }
.iqamah-active .iqamah-row { border-top-color: rgba(139,92,246,.22); }
.sunrise-card  .iqamah-row { display: none; }

.iq-lbl { font-size:.58rem; color:var(--sky-muted); letter-spacing:1px; text-transform:uppercase; }
.iq-t   { font-family:'Cormorant Garamond',serif; font-size:.92rem; font-weight:500; color:var(--gold-lt); }
.iq-off { font-size:.58rem; color:var(--sky-muted); }
.jumuah-card   .iq-t { color: var(--green); }
.iqamah-active .iq-t { color: var(--purple-lt); }

/* ── Card animation delays ── */
.pc:nth-child(1){animation-delay:.44s}
.pc:nth-child(2){animation-delay:.49s}
.pc:nth-child(3){animation-delay:.54s}
.pc:nth-child(4){animation-delay:.59s}
.pc:nth-child(5){animation-delay:.64s}
.pc:nth-child(6){animation-delay:.69s}

/* ════════════════════════════════════════════════════════════
   PRAYER BANNER — countdown + progress bar
   ════════════════════════════════════════════════════════════ */
.prayer-banner {
  border-radius: var(--r);
  padding: 0;
  margin-bottom: 36px;
  backdrop-filter: blur(var(--sky-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--sky-blur)) saturate(180%);
  animation: fadeUp .8s .28s ease both;
  position: relative; overflow: hidden;
  background: var(--sky-card);
  border: 1px solid var(--sky-card-border);
  transition: background 3s ease, border-color 3s ease;
}
.prayer-banner.jumuah-bg  { border-color: rgba(134,232,122,.28); }
.prayer-banner.iqamah-mode{ border-color: rgba(139,92,246,.38); }
.prayer-banner::before {
  content: ''; position: absolute;
  top: -40%; left: -10%; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(23,201,154,.06), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.banner-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 22px 30px 18px; gap: 20px;
}
.banner-eyebrow {
  font-size: .65rem; color: var(--gold);
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 4px;
}
.iqamah-mode .banner-eyebrow { color: var(--purple-lt); }
.jumuah-bg   .banner-eyebrow { color: var(--green); }
.banner-prayer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 500;
  color: var(--sky-text); line-height: 1;
}
.banner-sub { font-size: .78rem; color: var(--sky-muted); margin-top: 5px; }
.banner-right { text-align: right; flex-shrink: 0; }
.banner-next-label {
  font-size: .65rem; color: var(--sky-muted);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px;
}
.banner-next-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem; color: var(--sky-text); margin-bottom: 5px;
}
#countdown {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem; font-weight: 300;
  color: var(--gold-lt); letter-spacing: 2px;
  font-variant-numeric: tabular-nums; line-height: 1;
}
#countdown .u { font-size: .82rem; color: var(--sky-muted); margin: 0 1px; }
.iqamah-mode #countdown { color: var(--purple-lt); }
.jumuah-bg   #countdown { color: var(--green); }
.banner-cd-sub {
  font-size: .6rem; color: var(--sky-muted);
  letter-spacing: 1.5px; text-transform: uppercase; margin-top: 4px;
}
/* Progress bar */
.banner-progress-track {
  height: 3px;
  background: rgba(255,255,255,.05);
  position: relative;
}
.banner-progress-fill {
  position: absolute; top: 0; bottom: 0;
  right: 0; left: auto; width: 100%;
  background: linear-gradient(270deg, rgba(23,201,154,.3) 0%, var(--gold) 60%, var(--gold-lt) 100%);
  transition: width 1s linear;
}
.iqamah-mode .banner-progress-fill { background: linear-gradient(270deg, rgba(139,92,246,.3) 0%, var(--purple) 60%, var(--purple-lt) 100%); }
.jumuah-bg   .banner-progress-fill { background: linear-gradient(270deg, rgba(134,232,122,.3) 0%, var(--green) 60%, rgba(134,232,122,.6) 100%); }

/* ── Info cards (Qibla + Timetable row) ── */
.info-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; margin-bottom: 44px;
  animation: fadeUp .8s .5s ease both;
}
@media(max-width:620px){ .info-row { grid-template-columns: 1fr; } }
.icard {
  background: var(--sky-card);
  border: 1px solid var(--sky-card-border);
  border-radius: var(--r); padding: 26px;
  backdrop-filter: blur(var(--sky-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--sky-blur)) saturate(180%);
  transition: background 3s ease, border-color 3s ease;
}
.icard h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: .9rem; color: var(--gold);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px;
}

/* ── Nearest masjid card ── */
.nearest-masjid-card {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
  background: var(--sky-card);
  border: 1px solid rgba(249,115,22,.28);
  border-radius: var(--r);
  padding: 22px 26px; margin-bottom: 44px;
  backdrop-filter: blur(var(--sky-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--sky-blur)) saturate(180%);
  animation: fadeUp .8s .55s ease both;
  text-decoration: none; transition: all .25s;
  position: relative; overflow: hidden;
}
.nearest-masjid-card::before {
  content: ''; position: absolute;
  top: -40%; right: -5%; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(249,115,22,.06), transparent 70%);
  border-radius: 50%;
}
.nearest-masjid-card:hover {
  border-color: rgba(249,115,22,.48);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,0,0,.25);
}
.nm-left   { display:flex; align-items:center; gap:16px; }
.nm-icon   { font-size:2rem; flex-shrink:0; filter:drop-shadow(0 2px 8px rgba(249,115,22,.35)); }
.nm-label  { font-size:.68rem; color:rgba(253,186,116,.7); letter-spacing:2px; text-transform:uppercase; margin-bottom:4px; }
.nm-title  { font-family:'Cormorant Garamond',serif; font-size:1.5rem; font-weight:500; color:var(--sky-text); line-height:1; }
.nm-sub    { font-size:.78rem; color:var(--sky-muted); margin-top:5px; }
.nm-sub strong { color:rgba(253,186,116,.9); }
.nm-arrow  { font-size:1.5rem; color:rgba(253,186,116,.55); flex-shrink:0; transition:transform .2s; }
.nearest-masjid-card:hover .nm-arrow { transform:translateX(4px); }

/* ── Hero ── */
main { position:relative; z-index:5; max-width:1180px; margin:0 auto; padding:0 22px 40px; }
.hero { text-align:center; padding:52px 0 36px; animation:fadeUp .8s .1s ease both; }
.hero-date  { font-family:'Cormorant Garamond',serif; font-size:1rem; color:var(--gold); letter-spacing:3px; text-transform:uppercase; margin-bottom:6px; }
.hero-hijri { font-family:'Noto Naskh Arabic',serif; font-size:1.25rem; color:var(--sky-muted); margin-bottom:18px; direction:rtl; }
.hero-title { font-family:'Cormorant Garamond',serif; font-size:clamp(2rem,5vw,3.6rem); font-weight:300; line-height:1.15; color:var(--sky-text); }
.hero-title em { font-style:italic; color:var(--gold-lt); }
.jumuah-badge-hero { display:inline-flex; align-items:center; gap:9px; background:linear-gradient(135deg,rgba(134,232,122,.1),rgba(134,232,122,.04)); border:1px solid rgba(134,232,122,.3); border-radius:30px; padding:7px 20px; color:var(--green); letter-spacing:1.5px; text-transform:uppercase; margin-top:16px; font-family:'Cormorant Garamond',serif; font-size:1rem; }

/* ── Location hierarchy ── */
.loc-stack    { display:inline-flex; flex-direction:column; align-items:center; gap:0; margin-bottom:20px; animation:fadeUp .8s .12s ease both; }
.loc-district { font-size:.7rem; color:var(--sky-muted); letter-spacing:2.5px; text-transform:uppercase; margin-bottom:2px; }
.loc-city     { font-family:'Cormorant Garamond',serif; font-size:1.15rem; color:var(--sky-muted); margin-bottom:6px; }
.loc-connector { display:flex; align-items:center; gap:6px; font-size:.65rem; color:rgba(23,201,154,.45); letter-spacing:1px; text-transform:uppercase; margin-bottom:4px; }
.loc-connector::before, .loc-connector::after { content:''; flex:1; height:1px; width:28px; background:rgba(23,201,154,.15); }
.loc-masjid { display:inline-flex; align-items:center; gap:8px; padding:8px 18px; background:rgba(23,201,154,.08); border:1px solid rgba(23,201,154,.22); border-radius:20px; text-decoration:none; transition:all .22s; }
.loc-masjid:hover { background:rgba(23,201,154,.15); border-color:rgba(23,201,154,.42); transform:translateY(-1px); }
.lm-icon  { font-size:1rem; }
.lm-name  { font-family:'Cormorant Garamond',serif; font-size:1.05rem; color:var(--sky-text); font-weight:500; }
.lm-arrow { font-size:.75rem; color:var(--gold); margin-left:4px; }
.lm-dist  { font-size:.7rem; color:var(--on-gold); background:var(--gold); border-radius:8px; padding:2px 8px; font-weight:600; margin-left:4px; }
.loc-masjid-placeholder { display:inline-flex; align-items:center; gap:7px; padding:6px 14px; border:1px dashed rgba(23,201,154,.18); border-radius:20px; font-size:.75rem; color:var(--sky-muted); text-decoration:none; transition:all .2s; }
.loc-masjid-placeholder:hover { border-color:rgba(23,201,154,.38); color:var(--gold); }

/* ── District bar ── */
.dist-bar    { display:flex; align-items:center; justify-content:center; gap:14px; margin:28px 0 44px; animation:fadeUp .8s .22s ease both; flex-wrap:wrap; }
.dist-label  { font-size:.75rem; color:var(--sky-muted); letter-spacing:1.5px; text-transform:uppercase; }
.sel-wrap    { position:relative; }
.sel-wrap::after { content:'▾'; position:absolute; right:13px; top:50%; transform:translateY(-50%); color:var(--gold); pointer-events:none; font-size:.78rem; }
select.dist-sel {
  appearance:none; background:var(--sky-card);
  border:1px solid var(--sky-card-border); color:var(--sky-text);
  padding:10px 38px 10px 16px; border-radius:11px;
  font-family:'DM Sans',sans-serif; font-size:.92rem; cursor:pointer;
  backdrop-filter:blur(var(--sky-blur)); min-width:195px;
  transition:border-color .2s, background 3s ease;
}
select.dist-sel:focus { outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(23,201,154,.12); }
select.dist-sel option { background:var(--sky-input); color:var(--sky-text); }
.gps-bar-btn {
  display:flex; align-items:center; gap:7px;
  background:var(--sky-card); border:1px solid var(--sky-card-border);
  color:var(--sky-muted); padding:10px 16px; border-radius:11px;
  font-family:'DM Sans',sans-serif; font-size:.85rem; cursor:pointer;
  transition:all .25s; backdrop-filter:blur(var(--sky-blur));
}
.gps-bar-btn:hover { border-color:var(--gold); color:var(--gold); }

/* ── Mobile ── */
@media(max-width:768px) {
  main  { padding: 0 14px 20px; }
  .hero { padding: 38px 0 18px; }
  .dist-bar { gap:8px; margin:20px 0 28px; justify-content:center; }
  .dist-label { display:none; }
  .sel-wrap   { flex:1; max-width:320px; }
  select.dist-sel { min-width:0; width:100%; }
  .gps-bar-btn { padding:10px 14px; flex-shrink:0; }
  .gps-bar-btn .gps-text { display:none; }
  .banner-inner { flex-direction:row-reverse; padding:18px 18px 14px; gap:14px; }
  .banner-right { text-align:left; }
  #countdown    { font-size:2rem; }
  .banner-next-name { font-size:.85rem; }
  .banner-progress-fill {
    left:0; right:auto;
    background: linear-gradient(90deg, rgba(23,201,154,.3) 0%, var(--gold) 60%, var(--gold-lt) 100%);
  }
  .iqamah-mode .banner-progress-fill { background: linear-gradient(90deg, rgba(139,92,246,.3) 0%, var(--purple) 60%, var(--purple-lt) 100%); }
  .jumuah-bg   .banner-progress-fill { background: linear-gradient(90deg, rgba(134,232,122,.3) 0%, var(--green) 60%, rgba(134,232,122,.6) 100%); }
  .nearest-masjid-card { padding:16px 18px; }
  .nm-title { font-size:1.2rem; }
}

/* ════════════════════════════════════════════════════════════
   MASJID PAGES
   ════════════════════════════════════════════════════════════ */

/* ── Page header shared ── */
.page-header {
  display:flex; align-items:flex-end; justify-content:space-between;
  flex-wrap:wrap; gap:16px; margin-bottom:28px;
  animation:fadeUp .6s ease both;
}
.ph-left .sub {
  font-size:.72rem; color:var(--gold);
  letter-spacing:2.5px; text-transform:uppercase; margin-bottom:5px;
}
.ph-left h1 {
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(1.6rem,4vw,2.6rem); font-weight:300; color:var(--sky-text);
}
.ph-left h1 em { font-style:italic; color:var(--gold-lt); }
.ph-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* ── Action buttons (outline + primary) ── */
.btn-locate {
  display:flex; align-items:center; gap:7px;
  padding:9px 16px; border-radius:9px;
  border:1px solid var(--sky-card-border);
  background:rgba(23,201,154,.08); color:var(--gold);
  font-family:'DM Sans',sans-serif; font-size:.85rem;
  cursor:pointer; transition:all .2s; text-decoration:none;
}
.btn-locate:hover { background:rgba(23,201,154,.16); border-color:var(--gold); }
.btn-register {
  display:flex; align-items:center; gap:7px;
  padding:9px 18px; border-radius:9px; border:none;
  background:linear-gradient(135deg, var(--gold), var(--gold-pale));
  color:var(--on-gold); font-family:'DM Sans',sans-serif;
  font-size:.85rem; font-weight:500;
  cursor:pointer; text-decoration:none; transition:all .2s;
}
.btn-register:hover { transform:translateY(-1px); box-shadow:0 6px 18px rgba(23,201,154,.3); }

/* ── Filter bar ── */
.filter-bar {
  display:flex; gap:10px; align-items:center;
  flex-wrap:wrap; margin-bottom:24px;
  animation:fadeUp .6s .08s ease both;
}
.filter-bar select {
  appearance:none;
  background:var(--sky-card); border:1px solid var(--sky-card-border);
  color:var(--sky-text); padding:9px 13px; border-radius:9px;
  font-family:'DM Sans',sans-serif; font-size:.85rem;
  cursor:pointer; min-width:160px;
  backdrop-filter:blur(var(--sky-blur));
  transition:background 3s ease;
}
.filter-bar select:focus { outline:none; border-color:var(--gold); }
.filter-bar select option { background:var(--sky-input); color:var(--sky-text); }

/* ── Nearest strip ── */
.nearest-strip {
  background:var(--sky-card); border:1px solid rgba(23,201,154,.22);
  border-radius:14px; padding:16px 20px; margin-bottom:24px;
  display:none; gap:14px; flex-wrap:wrap;
  backdrop-filter:blur(var(--sky-blur)) saturate(180%);
  animation:fadeUp .5s ease both;
  transition:background 3s ease;
}
.nearest-strip.show { display:flex; align-items:center; }
.ns-icon { font-size:1.5rem; flex-shrink:0; }
.ns-text { font-size:.85rem; color:var(--sky-text); line-height:1.6; }
.ns-text strong { color:var(--gold); }

/* ── Masjid grid ── */
.masjid-grid {
  display:grid; grid-template-columns:repeat(2,1fr); gap:16px;
}
@media(max-width:900px) { .masjid-grid { grid-template-columns:1fr; } }

/* ── Masjid card ── */
.masjid-card {
  background:var(--sky-card); border:1px solid var(--sky-card-border);
  border-radius:16px;
  backdrop-filter:blur(var(--sky-blur)) saturate(180%);
  -webkit-backdrop-filter:blur(var(--sky-blur)) saturate(180%);
  overflow:hidden;
  transition:background 3s ease, border-color .3s, transform .3s cubic-bezier(.34,1.56,.64,1);
  animation:fadeUp .6s ease both;
}
.masjid-card:hover {
  transform:translateY(-3px);
  border-color:rgba(23,201,154,.38);
  box-shadow:0 12px 36px rgba(0,0,0,.35);
}
.masjid-card.nearest {
  border-color:var(--gold);
  box-shadow:0 0 0 1px rgba(23,201,154,.22), 0 8px 24px rgba(23,201,154,.12);
}
.mc-head { padding:20px 20px 16px; border-bottom:1px solid var(--sky-card-border); }
.mc-head-row { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:8px; }
.mc-name { font-family:'Cormorant Garamond',serif; font-size:1.25rem; font-weight:500; color:var(--sky-text); line-height:1.2; }
.mc-arabic { font-family:'Noto Naskh Arabic',serif; font-size:1rem; color:var(--sky-muted); direction:rtl; }
.mc-badges { display:flex; gap:6px; flex-shrink:0; flex-wrap:wrap; }
.badge-nearest { background:rgba(23,201,154,.18); color:var(--gold); }
.badge-acju { background:var(--gold-dim); color:var(--gold-lt); border:1px solid rgba(23,201,154,.28); }
.badge-custom { background:rgba(139,92,246,.14); color:var(--purple-lt); border:1px solid rgba(139,92,246,.2); }
.mc-addr { font-size:.78rem; color:var(--sky-muted); line-height:1.5; }
.mc-dist { font-size:.72rem; color:var(--gold-lt); margin-top:4px; }
.mc-body { padding:16px 20px; }
.mc-ann {
  background:rgba(23,201,154,.05); border:1px solid rgba(23,201,154,.1);
  border-radius:9px; padding:10px 12px; margin-bottom:12px;
}
.mc-ann .ann-title { font-size:.78rem; color:var(--gold-lt); font-weight:500; margin-bottom:3px; }
.mc-ann .ann-body { font-size:.75rem; color:var(--sky-muted); line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ── Masjid card action buttons ── */
.mc-actions { display:flex; gap:8px; flex-wrap:wrap; }
.mc-btn {
  display:flex; align-items:center; gap:5px;
  padding:7px 13px; border-radius:8px;
  font-family:'DM Sans',sans-serif; font-size:.75rem; font-weight:500;
  text-decoration:none; cursor:pointer; transition:all .2s;
  border:1px solid var(--sky-card-border);
  background:transparent; color:var(--sky-muted);
}
.mc-btn:hover { border-color:var(--gold); color:var(--gold); background:rgba(23,201,154,.06); }
.mc-btn.nav {
  background:linear-gradient(135deg, var(--gold), var(--gold-pale));
  color:var(--on-gold); border-color:transparent;
}
.mc-btn.nav:hover { transform:translateY(-1px); box-shadow:0 4px 14px rgba(23,201,154,.3); }

/* ── Empty state ── */
.empty { text-align:center; padding:70px 20px; color:var(--sky-muted); }
.empty .ei { font-size:3.5rem; margin-bottom:14px; }
.empty p { font-family:'Cormorant Garamond',serif; font-size:1.15rem; color:var(--sky-text); }
.empty small { font-size:.82rem; margin-top:6px; display:block; }
.empty a { color:var(--gold); }

/* ── Masjid view page ── */
.back-link {
  display:inline-flex; align-items:center; gap:7px;
  font-size:.8rem; color:var(--sky-muted);
  text-decoration:none; margin-bottom:24px; transition:color .2s;
}
.back-link:hover { color:var(--gold); }
.masjid-hero {
  background:var(--sky-card); border:1px solid var(--sky-card-border);
  border-radius:18px; padding:28px;
  backdrop-filter:blur(var(--sky-blur)) saturate(180%);
  -webkit-backdrop-filter:blur(var(--sky-blur)) saturate(180%);
  margin-bottom:20px; animation:fadeUp .6s ease both;
  position:relative; overflow:hidden;
  transition:background 3s ease;
}
.masjid-hero::before {
  content:''; position:absolute; top:-30%; right:-10%;
  width:200px; height:200px;
  background:radial-gradient(circle,rgba(23,201,154,.06),transparent 70%);
  border-radius:50%;
}
.mh-top { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; flex-wrap:wrap; }
.mh-name { font-family:'Cormorant Garamond',serif; font-size:clamp(1.6rem,4vw,2.4rem); font-weight:400; color:var(--sky-text); line-height:1.15; }
.mh-arabic { font-family:'Noto Naskh Arabic',serif; font-size:1.2rem; color:var(--sky-muted); direction:rtl; margin-top:4px; }
.mh-meta { display:flex; flex-wrap:wrap; gap:12px; font-size:.8rem; color:var(--sky-muted); margin-top:10px; }
.mh-meta a { color:var(--gold); text-decoration:none; }
.mh-meta a:hover { text-decoration:underline; }
.mh-badges { display:flex; gap:8px; flex-shrink:0; flex-wrap:wrap; }
.badge-jumuah { background:rgba(134,232,122,.14); color:var(--green); border:1px solid rgba(134,232,122,.2); }

/* content grid */
.content-grid { display:grid; grid-template-columns:1fr 360px; gap:18px; align-items:start; }
@media(max-width:780px) { .content-grid { grid-template-columns:1fr; } }

/* prayer times card */
.pt-card {
  background:var(--sky-card); border:1px solid var(--sky-card-border);
  border-radius:16px; overflow:hidden;
  backdrop-filter:blur(var(--sky-blur)) saturate(180%);
  -webkit-backdrop-filter:blur(var(--sky-blur)) saturate(180%);
  animation:fadeUp .6s .08s ease both;
  transition:background 3s ease;
}
.pt-card-head { padding:16px 20px; border-bottom:1px solid var(--sky-card-border); display:flex; align-items:center; justify-content:space-between; }
.pt-card-head h3 { font-family:'Cormorant Garamond',serif; font-size:1rem; color:var(--gold); letter-spacing:2px; text-transform:uppercase; }
.pt-card-head .hijri { font-size:.72rem; color:var(--sky-muted); }
table.pt-table { width:100%; border-collapse:collapse; }
.pt-table tr { border-bottom:1px solid rgba(23,201,154,.06); transition:background .15s; }
.pt-table tr:last-child { border-bottom:none; }
.pt-table tr:hover { background:rgba(23,201,154,.04); }
.pt-table tr.active-row { background:linear-gradient(90deg,rgba(23,201,154,.1),rgba(23,201,154,.03)); border-left:3px solid var(--gold); }
.pt-table tr.jumuah-row { background:rgba(134,232,122,.04); }
.pt-table td { padding:12px 16px; font-size:.88rem; color:var(--sky-text); }
.pt-table td:first-child { display:flex; align-items:center; gap:9px; font-weight:500; }
.pt-table td.adhan { text-align:right; font-family:'Cormorant Garamond',serif; font-size:1.1rem; }
.pt-table td.iqamah { text-align:right; font-size:.8rem; color:var(--sky-muted); }
.pt-table td.iqamah .iq-val { color:var(--gold-lt); font-family:'Cormorant Garamond',serif; font-size:.95rem; }
.sunrise-row td { opacity:.5; }

/* side column */
.side-col { display:flex; flex-direction:column; gap:16px; }
.map-card {
  background:var(--sky-card); border:1px solid var(--sky-card-border);
  border-radius:16px; overflow:hidden;
  backdrop-filter:blur(var(--sky-blur)) saturate(180%);
  animation:fadeUp .6s .12s ease both;
  transition:background 3s ease;
}
.map-card-head { padding:14px 18px; border-bottom:1px solid var(--sky-card-border); font-family:'Cormorant Garamond',serif; font-size:.95rem; color:var(--gold); letter-spacing:1.5px; text-transform:uppercase; }
.map-placeholder { height:180px; background:rgba(8,13,28,.5); display:flex; align-items:center; justify-content:center; flex-direction:column; gap:8px; color:var(--sky-muted); font-size:.82rem; }
.map-actions { padding:14px 16px; display:flex; gap:8px; flex-wrap:wrap; }
.map-btn { display:flex; align-items:center; gap:6px; padding:9px 14px; border-radius:9px; font-family:'DM Sans',sans-serif; font-size:.8rem; font-weight:500; text-decoration:none; cursor:pointer; transition:all .2s; border:none; }
.map-btn.primary { background:linear-gradient(135deg,var(--gold),var(--gold-pale)); color:var(--on-gold); }
.map-btn.primary:hover { transform:translateY(-1px); box-shadow:0 5px 16px rgba(23,201,154,.3); }
.map-btn.secondary { background:var(--sky-card); border:1px solid var(--sky-card-border); color:var(--sky-text); }
.map-btn.secondary:hover { border-color:var(--gold); color:var(--gold); }
.info-card {
  background:var(--sky-card); border:1px solid var(--sky-card-border);
  border-radius:16px; padding:18px;
  backdrop-filter:blur(var(--sky-blur)) saturate(180%);
  animation:fadeUp .6s .16s ease both;
  transition:background 3s ease;
}
.info-card h3 { font-family:'Cormorant Garamond',serif; font-size:.95rem; color:var(--gold); letter-spacing:2px; text-transform:uppercase; margin-bottom:12px; }
.info-row-item { display:flex; align-items:center; gap:10px; padding:7px 0; border-bottom:1px solid rgba(23,201,154,.07); font-size:.82rem; color:var(--sky-muted); }
.info-row-item:last-child { border-bottom:none; }
.info-row-item .ik { flex-shrink:0; font-size:1rem; }
.info-row-item .iv { color:var(--sky-text); }
.info-row-item a { color:var(--gold); text-decoration:none; }
.ann-card {
  background:var(--sky-card); border:1px solid var(--sky-card-border);
  border-radius:16px; overflow:hidden;
  backdrop-filter:blur(var(--sky-blur)) saturate(180%);
  animation:fadeUp .6s .2s ease both;
  transition:background 3s ease;
}
.ann-card-head { padding:14px 18px; border-bottom:1px solid var(--sky-card-border); font-family:'Cormorant Garamond',serif; font-size:.95rem; color:var(--gold); letter-spacing:1.5px; text-transform:uppercase; }
.ann-item { padding:14px 18px; border-bottom:1px solid rgba(23,201,154,.06); }
.ann-item:last-child { border-bottom:none; }
.ann-item .ai-title { font-size:.88rem; color:var(--sky-text); font-weight:500; margin-bottom:4px; }
.ann-item .ai-body { font-size:.8rem; color:var(--sky-muted); line-height:1.6; }
.ann-item .ai-date { font-size:.68rem; color:rgba(23,201,154,.45); margin-top:6px; }
.no-ann { padding:24px 18px; text-align:center; font-size:.82rem; color:var(--sky-muted); }

/* ── Register form ── */
.form-card {
  background:var(--sky-card); border:1px solid var(--sky-card-border);
  border-radius:16px; padding:32px;
  backdrop-filter:blur(var(--sky-blur)) saturate(180%);
  -webkit-backdrop-filter:blur(var(--sky-blur)) saturate(180%);
  margin-bottom:20px; animation:fadeUp .6s .15s ease both;
  transition:background 3s ease;
}
.form-card h2 { font-family:'Cormorant Garamond',serif; font-size:1.15rem; font-weight:400; color:var(--gold); letter-spacing:1.5px; text-transform:uppercase; margin-bottom:20px; padding-bottom:12px; border-bottom:1px solid var(--sky-card-border); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-grid.cols1 { grid-template-columns:1fr; }
.form-grid.cols3 { grid-template-columns:1fr 1fr 1fr; }
.fg { display:flex; flex-direction:column; gap:5px; margin-bottom:4px; }
.fg.full { grid-column:1/-1; }
.fg label { font-size:.7rem; color:var(--gold); letter-spacing:1px; text-transform:uppercase; }
.fg label .opt { color:var(--sky-muted); font-weight:300; letter-spacing:0; }
.mode-cards { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:4px; }
.mode-card { border:1px solid var(--sky-card-border); border-radius:11px; padding:16px; cursor:pointer; transition:all .2s; position:relative; background:transparent; }
.mode-card:hover { border-color:rgba(23,201,154,.38); }
.mode-card input[type=radio] { position:absolute; opacity:0; width:0; height:0; }
.mode-card.selected { border-color:var(--gold); background:rgba(23,201,154,.08); }
.mode-card .mc-title { font-family:'Cormorant Garamond',serif; font-size:1rem; color:var(--sky-text); margin-bottom:4px; }
.mode-card .mc-desc { font-size:.75rem; color:var(--sky-muted); line-height:1.5; }
.map-hint { font-size:.75rem; color:var(--sky-muted); margin-top:6px; line-height:1.5; }
.map-hint a { color:var(--gold); }
.btn-submit { width:100%; padding:14px; border-radius:11px; border:none; background:linear-gradient(135deg,var(--gold),var(--gold-pale)); color:var(--on-gold); font-family:'DM Sans',sans-serif; font-size:.95rem; font-weight:600; cursor:pointer; transition:all .2s; margin-top:8px; letter-spacing:.5px; }
.btn-submit:hover { transform:translateY(-1px); box-shadow:0 8px 24px rgba(23,201,154,.35); }
.success-card { text-align:center; background:var(--sky-card); border:1px solid rgba(46,204,113,.22); border-radius:16px; padding:50px 32px; backdrop-filter:blur(var(--sky-blur)) saturate(180%); }
.success-card .s-icon { font-size:3.5rem; margin-bottom:16px; }
.success-card h2 { font-family:'Cormorant Garamond',serif; font-size:1.9rem; font-weight:300; color:var(--sky-text); margin-bottom:10px; }
.success-card p { color:var(--sky-muted); font-size:.88rem; line-height:1.7; }

/* ── Mobile masjid ── */
@media(max-width:480px) {
  .form-grid { grid-template-columns:1fr; }
  .form-grid.cols3 { grid-template-columns:1fr 1fr; }
  .mode-cards { grid-template-columns:1fr; }
  .mh-top { flex-direction:column; }
  .ph-actions { width:100%; }
  .btn-register, .btn-locate { flex:1; justify-content:center; text-align:center; }
}

/* ════════════════════════════════════════════════════════════
   SKY TEXT SHADOWS
   Applied to any text that sits directly on the sky canvas
   (outside a card). sky.js drives --sky-text-shadow strength.
   ════════════════════════════════════════════════════════════ */

/* Elements that float directly on sky — need shadow */
.hero-date,
.hero-hijri,
.hero-title,
.hero-title em,
.loc-district,
.loc-city,
.loc-connector,
.lm-name,
.page-sub,
.arabic-title,
.page-title,
.page-title em,
.ph-left .sub,
.ph-left h1,
.ph-left h1 em {
  text-shadow: var(--sky-text-shadow);
}

/* Filter bar, month nav, and controls — give them card backing */
.filter-bar {
  background: var(--sky-card);
  border: 1px solid var(--sky-card-border);
  border-radius: 12px;
  padding: 12px 16px;
  backdrop-filter: blur(var(--sky-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--sky-blur)) saturate(180%);
  transition: background 3s ease;
}
.month-nav {
  background: var(--sky-card);
  border: 1px solid var(--sky-card-border);
  border-radius: 12px;
  padding: 10px 16px;
  backdrop-filter: blur(var(--sky-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--sky-blur)) saturate(180%);
  transition: background 3s ease;
  display: flex; justify-content: space-between;
  align-items: center; gap: 10px;
  margin-bottom: 16px;
}

/* Count text sitting on sky (e.g. "7 masjids listed", "30 days · Ampara") */
.mnav-info,
.filter-bar > span {
  text-shadow: var(--sky-text-shadow);
}

/* Qibla selector row */
.dist-sel-row {
  background: var(--sky-card);
  border: 1px solid var(--sky-card-border);
  backdrop-filter: blur(var(--sky-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--sky-blur)) saturate(180%);
  transition: background 3s ease;
}
