/* ==========================================================================
   Juma Khabri — design tokens
   Peacock green (calm, trusted), marigold (the Juma time — midday sun),
   marble (cool page ground). Times are set like a departure board.
   ========================================================================== */
:root {
  --peacock: #0b4f4a;
  --peacock-deep: #073833;
  --peacock-ink: #0b4f4a;
  --peacock-tint: #e3efec;
  --marigold: #f5b323;
  --marigold-deep: #8a5a00;
  --marigold-tint: #fff3d1;
  --on-marigold: #2b1d00;
  --marble: #f2f5f3;
  --surface: #ffffff;
  --surface-2: #f7f9f8;
  --ink: #12211f;
  --ink-2: #4a5c59;
  --ink-3: #74857f;
  --line: #dbe4e0;
  --ok: #0f8456;
  --ok-tint: #e1f4ea;
  --warn: #9a5b00;
  --warn-tint: #fdf0d9;
  --danger: #b8392a;
  --danger-tint: #fbe6e2;
  --shadow: 0 1px 2px rgba(7, 56, 51, 0.06), 0 8px 24px rgba(7, 56, 51, 0.08);
  --sheet-shadow: 0 -12px 40px rgba(7, 56, 51, 0.22);

  --f-display: 'Anek Devanagari', 'Mukta', system-ui, sans-serif;
  --f-body: 'Mukta', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --jaali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M28 4l7 17 17 7-17 7-7 17-7-17-17-7 17-7z'/%3E%3Cpath d='M28 14l4 10 10 4-10 4-4 10-4-10-10-4 10-4z'/%3E%3Cpath d='M0 0l8 8M56 0l-8 8M0 56l8-8M56 56l-8-8'/%3E%3C/g%3E%3C/svg%3E");
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --gutter: 16px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --peacock: #0e5a54;
    --peacock-deep: #083e39;
    --peacock-ink: #7fd1c4;
    --peacock-tint: #15302c;
    --marigold-tint: #3a2d0c;
    --marigold-deep: #f5c75a;
    --marble: #0b1513;
    --surface: #13201e;
    --surface-2: #182825;
    --ink: #e8f1ee;
    --ink-2: #a8bab5;
    --ink-3: #7d918b;
    --line: #243631;
    --ok: #4cc493;
    --ok-tint: #12342a;
    --warn: #f0b552;
    --warn-tint: #352812;
    --danger: #f08a7b;
    --danger-tint: #3a1d18;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --peacock: #0e5a54;
  --peacock-deep: #083e39;
  --peacock-ink: #7fd1c4;
  --peacock-tint: #15302c;
  --marigold-tint: #3a2d0c;
  --marigold-deep: #f5c75a;
  --marble: #0b1513;
  --surface: #13201e;
  --surface-2: #182825;
  --ink: #e8f1ee;
  --ink-2: #a8bab5;
  --ink-3: #7d918b;
  --line: #243631;
  --ok: #4cc493;
  --ok-tint: #12342a;
  --warn: #f0b552;
  --warn-tint: #352812;
  --danger: #f08a7b;
  --danger-tint: #3a1d18;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  background: var(--marble);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: var(--peacock-ink);
}
:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 2px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
.noscript {
  padding: 24px;
  text-align: center;
}

/* boot splash */
.boot {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background: var(--peacock);
  color: #fff;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
}
.boot-mark {
  width: 72px;
  height: 72px;
}
.boot p {
  margin: 0;
}

/* ---------- app shell ---------- */
.shell {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
  position: relative;
}
.shell.no-tabs {
  padding-bottom: calc(24px + var(--safe-b));
}

/* Header with jaali (lattice) pattern */
.hdr {
  position: relative;
  background-color: var(--peacock);
  background-image: var(--jaali);
  color: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) 64px;
  border-radius: 0 0 28px 28px;
}
.hdr-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: #fff;
  text-decoration: none;
}
.brand svg {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.25);
}
.brand b {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.icon-btn {
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 0;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0 12px;
  font-weight: 600;
  font-size: 15px;
}
.icon-btn svg {
  width: 22px;
  height: 22px;
}
.icon-btn:active {
  background: rgba(255, 255, 255, 0.2);
}
.loc-btn {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 8px 12px;
  border-radius: 14px;
  text-align: left;
}
.loc-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--marigold);
}
.loc-btn .loc-label {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.loc-btn .loc-change {
  font-size: 14px;
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dates {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.82);
}
.dates .hijri {
  text-align: right;
}

/* ---------- hero: the next Juma (the one bold element) ---------- */
.hero {
  margin: -48px var(--gutter) 0;
  position: relative;
  background: var(--marigold);
  color: var(--on-marigold);
  border-radius: var(--r-l);
  padding: 18px 18px 16px;
  box-shadow: 0 14px 34px rgba(138, 90, 0, 0.28);
  overflow: hidden;
}
.hero::after {
  /* sun rays — midday */
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.22) 0 6deg, transparent 6deg 18deg);
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%);
  mask: radial-gradient(circle, #000 30%, transparent 70%);
  pointer-events: none;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15.5px;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b42318;
  box-shadow: 0 0 0 0 rgba(180, 35, 24, 0.5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(180, 35, 24, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(180, 35, 24, 0);
  }
}
.hero-time {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 2px 0 2px;
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 75;
  font-stretch: 75%;
}
.hero-time .hm {
  font-size: clamp(64px, 21vw, 92px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero-time .ap {
  font-size: 22px;
  font-weight: 700;
}
.hero-time:has(.hero-tags) {
  align-items: center;
}
.hero-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 4px;
}
.hero-tags .ap {
  line-height: 1;
}
.hero-kh {
  font-family: var(--f-body);
  font-stretch: 100%;
  font-variation-settings: normal;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--on-marigold);
  color: var(--marigold);
  white-space: nowrap;
}
.hero-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  margin: 6px 0 0;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 15px;
  margin-top: 2px;
  color: rgba(43, 29, 0, 0.78);
}
.hero-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 14px 0 14px;
  background: rgba(43, 29, 0, 0.15);
  border-radius: 14px;
  overflow: hidden;
}
.hero-strip > div {
  background: rgba(255, 255, 255, 0.38);
  padding: 9px 12px;
}
.hero-strip small {
  display: block;
  font-size: 13px;
  color: rgba(43, 29, 0, 0.72);
}
.hero-strip b {
  font-size: 17px;
  font-weight: 700;
}
.hero-actions {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.hero-empty p {
  margin: 6px 0 14px;
  font-size: 16px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.08s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn-dark {
  background: var(--on-marigold);
  color: #fff;
  flex: 1;
}
.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.45);
  color: var(--on-marigold);
}
.btn-primary {
  background: var(--peacock);
  color: #fff;
}
.btn-soft {
  background: var(--peacock-tint);
  color: var(--peacock-ink);
}
.btn-line {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-danger {
  background: var(--danger-tint);
  color: var(--danger);
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}
.link-btn {
  border: 0;
  background: none;
  padding: 6px 0;
  color: var(--peacock-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- search field ---------- */
.search {
  margin: 18px var(--gutter) 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  background: var(--surface);
  border-radius: var(--r-m);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink-3);
  text-decoration: none;
}
.search svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  min-width: 0;
  font-size: 17px;
  height: 50px;
}
.search:focus-within {
  box-shadow: inset 0 0 0 2px var(--peacock);
}

/* ---------- section head + chips ---------- */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 26px var(--gutter) 10px;
}
.sec-head h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
}
.sec-head span {
  color: var(--ink-3);
  font-size: 14px;
  white-space: nowrap;
}
.chips {
  display: flex;
  gap: 8px;
  padding: 0 var(--gutter) 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip[aria-pressed='true'] {
  background: var(--peacock);
  color: #fff;
  box-shadow: none;
}
.chip .count {
  font-size: 13px;
  opacity: 0.8;
}

/* ---------- departure-board list ---------- */
.board {
  margin: 0 var(--gutter);
  background: var(--surface);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: stretch;
  gap: 0;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  border-top: 1px solid var(--line);
  min-height: 88px;
}
.row:first-child {
  border-top: 0;
}
.row:active {
  background: var(--surface-2);
}
.row-time {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--peacock-tint);
  color: var(--peacock-ink);
  padding: 8px 4px;
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 75;
  font-stretch: 75%;
}
.row-time .hm {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.row-time .ap {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}
.row-time .kh {
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  margin-bottom: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--peacock-ink);
}
.row.next .row-time .kh {
  background: rgba(255, 255, 255, 0.5);
  color: var(--on-marigold);
}
.row-time .more {
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
  opacity: 0.8;
}
.row-time.none {
  color: var(--ink-3);
  background: var(--surface-2);
}
.row-time.none .hm {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--f-body);
  font-stretch: 100%;
  text-align: center;
  line-height: 1.2;
}
.row.next .row-time {
  background: var(--marigold);
  color: var(--on-marigold);
}
.row.done .row-time,
.row.done .row-main {
  opacity: 0.5;
}
.row-main {
  padding: 12px 8px 12px 14px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.row-name {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  margin-top: 3px;
  font-size: 14px;
  color: var(--ink-3);
}
.row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 0 14px 0 4px;
  gap: 4px;
}
.dist {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag svg {
  width: 13px;
  height: 13px;
}
.tag-ok {
  background: var(--ok-tint);
  color: var(--ok);
}
.tag-warn {
  background: var(--warn-tint);
  color: var(--warn);
}
.tag-next {
  background: var(--marigold-tint);
  color: var(--marigold-deep);
}
.tag-muted {
  background: var(--surface-2);
  color: var(--ink-3);
}

/* skeleton */
.skel {
  display: grid;
  grid-template-columns: 86px 1fr;
  min-height: 78px;
  border-top: 1px solid var(--line);
}
.skel:first-child {
  border-top: 0;
}
.skel i {
  display: block;
  background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
  border-radius: 8px;
}
.skel .t {
  margin: 14px;
}
.skel .l {
  margin: 20px 16px 6px;
  height: 14px;
}
.skel .l2 {
  margin: 0 16px;
  height: 12px;
  width: 50%;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* empty / notice */
.notice {
  margin: 0 var(--gutter);
  padding: 22px 18px;
  background: var(--surface);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  text-align: center;
}
.notice h3 {
  margin: 0 0 4px;
  font-family: var(--f-display);
  font-size: 20px;
}
.notice p {
  margin: 0 0 14px;
  color: var(--ink-2);
}
.notice .btns {
  display: grid;
  gap: 10px;
}
.foot-note {
  margin: 18px var(--gutter) 0;
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
}
.install-card {
  margin: 16px var(--gutter) 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border-radius: var(--r-m);
  background: var(--peacock-tint);
  color: var(--peacock-ink);
}
.install-card svg.logo {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
}
.install-card p {
  margin: 0;
  flex: 1;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}
.install-card .btn {
  min-height: 40px;
  padding: 0 14px;
}

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgba(7, 56, 51, 0.06);
  padding-bottom: var(--safe-b);
}
.tabbar ul {
  list-style: none;
  margin: 0 auto;
  padding: 6px 8px;
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  min-height: 52px;
  color: var(--ink-3);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.tabbar a span.ic {
  display: grid;
  place-items: center;
  width: 56px;
  height: 30px;
  border-radius: 999px;
}
.tabbar a svg {
  width: 22px;
  height: 22px;
}
.tabbar a[aria-current='page'] {
  color: var(--peacock-ink);
}
.tabbar a[aria-current='page'] span.ic {
  background: var(--peacock-tint);
}

/* ---------- page header (sub pages) ---------- */
.phdr {
  background: var(--peacock) var(--jaali);
  color: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--gutter) 18px;
}
.phdr .hdr-row h1 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}
.page {
  padding: 16px var(--gutter);
}
.page h2 {
  font-family: var(--f-display);
  font-size: 20px;
  margin: 22px 0 10px;
}
.page h2:first-child {
  margin-top: 4px;
}

/* ---------- mosque page ---------- */
.m-hero {
  background-color: var(--peacock);
  background-image: var(--jaali);
  color: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--gutter) 70px;
  border-radius: 0 0 28px 28px;
}
.m-title {
  margin: 14px 0 0;
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.m-ur {
  font-family: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif;
  direction: rtl;
  font-size: 19px;
  opacity: 0.85;
  margin-top: 4px;
}
.m-place {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15.5px;
}
.juma-card {
  margin: -52px var(--gutter) 0;
  background: var(--surface);
  border-radius: var(--r-l);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.juma-card .jc-top {
  background: var(--marigold);
  color: var(--on-marigold);
  padding: 14px 18px 12px;
}
.jc-label {
  font-weight: 700;
  font-size: 15px;
}
.jc-jamats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  align-items: baseline;
}
.jc-jamat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 75;
  font-stretch: 75%;
}
.jc-jamat .hm {
  font-size: 64px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.jc-jamats.multi .jc-jamat .hm {
  font-size: 46px;
}
.jc-jamat .ap {
  font-size: 18px;
  font-weight: 700;
}
.jc-jamat .lbl {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
}
.jc-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.jc-sub > div {
  padding: 12px 18px;
}
.jc-sub > div + div {
  border-left: 1px solid var(--line);
}
.jc-sub small {
  display: block;
  color: var(--ink-3);
  font-size: 13.5px;
}
.jc-sub b {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.trust {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
}
.trust svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.trust.ok svg {
  color: var(--ok);
}
.trust.warn svg {
  color: var(--warn);
}
.action-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  margin: 14px var(--gutter) 0;
}
.action-row .btn-line {
  width: 52px;
  padding: 0;
}
.action-row .btn-line[aria-pressed='true'] {
  color: #c2185b;
}
.card {
  margin: 14px var(--gutter) 0;
  background: var(--surface);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.card h3 {
  margin: 0 0 10px;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
}
.card p {
  margin: 0;
}
.muted {
  color: var(--ink-3);
}
.small {
  font-size: 14px;
}
.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.photos button {
  border: 0;
  padding: 0;
  background: var(--surface-2);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}
.photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photos .kind {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 1px 7px;
  border-radius: 999px;
}
.addr {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.addr svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--peacock-ink);
  margin-top: 2px;
}
.facs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fac {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--peacock-tint);
  color: var(--peacock-ink);
  font-weight: 600;
  font-size: 14.5px;
}
.fac svg {
  width: 16px;
  height: 16px;
}
.ttable {
  width: 100%;
  border-collapse: collapse;
}
.ttable td {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.ttable tr:first-child td {
  border-top: 0;
}
.ttable td:last-child {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ttable tr.now td {
  color: var(--peacock-ink);
}
.ttable tr.now td:first-child::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--marigold);
  margin-left: 8px;
  vertical-align: middle;
}
details.fold summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  min-height: 32px;
}
details.fold summary::-webkit-details-marker {
  display: none;
}
details.fold summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--ink-3);
  border-bottom: 2.5px solid var(--ink-3);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s;
}
details.fold[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}
details.fold[open] summary {
  margin-bottom: 8px;
}

/* ---------- forms ---------- */
.field {
  display: block;
  margin-top: 14px;
}
.field:first-child {
  margin-top: 0;
}
.field > span {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}
.field > span em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-3);
}
.input,
.field input:not([type='checkbox']):not([type='radio']):not([type='file']),
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 17px;
  outline: none;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus {
  border-color: var(--peacock);
  box-shadow: 0 0 0 3px var(--peacock-tint);
}
.field .hint {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.grid2 .field,
.grid3 .field {
  margin-top: 14px;
}
.form-error {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--danger-tint);
  color: var(--danger);
  font-weight: 600;
  font-size: 15px;
}
.form-ok {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ok-tint);
  color: var(--ok);
  font-weight: 600;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-weight: 600;
}
.check input {
  width: 22px;
  height: 22px;
  accent-color: var(--peacock);
  flex: none;
}
.toggle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toggle-chips label {
  position: relative;
}
.toggle-chips input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.toggle-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  background: var(--surface);
}
.toggle-chips input:checked + span {
  background: var(--peacock);
  color: #fff;
  box-shadow: none;
}
.toggle-chips input:focus-visible + span {
  outline: 3px solid var(--marigold);
  outline-offset: 2px;
}
.seg {
  display: flex;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.seg button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-weight: 600;
  color: var(--ink-2);
}
.seg button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--peacock-ink);
  box-shadow: var(--shadow);
}

/* ---------- bottom sheet (Juma popup) ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 22, 20, 0.5);
  animation: fade 0.18s ease;
}
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  max-width: 560px;
  margin: 0 auto;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  box-shadow: var(--sheet-shadow);
  padding: 8px 0 calc(18px + var(--safe-b));
  animation: rise 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.sheet .grab {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  margin: 4px auto 10px;
}
.sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 var(--gutter);
}
.sheet-head h2 {
  flex: 1;
  margin: 0;
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}
.sheet-head p {
  margin: 4px 0 0;
  color: var(--ink-3);
  font-size: 15px;
}
.close-x {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  flex: none;
}
.close-x svg {
  width: 20px;
  height: 20px;
}
.sheet .juma-card {
  margin: 16px var(--gutter) 0;
  box-shadow: none;
  border: 1.5px solid var(--line);
}
.sheet .action-row {
  margin-top: 14px;
}
.sheet .proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px var(--gutter) 0;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 0;
  width: calc(100% - 2 * var(--gutter));
  text-align: left;
}
.sheet .proof img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}
.sheet .proof b {
  display: block;
  font-size: 15.5px;
}
.sheet .more-link {
  display: block;
  text-align: center;
  margin: 14px var(--gutter) 0;
  font-weight: 700;
  min-height: 44px;
  line-height: 44px;
  text-decoration: none;
}
@keyframes rise {
  from {
    transform: translateY(40%);
    opacity: 0.4;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

/* photo viewer */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #000;
  display: grid;
  place-items: center;
  animation: fade 0.15s;
}
.viewer img {
  max-width: 100%;
  max-height: 100dvh;
  object-fit: contain;
}
.viewer .close-x {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px);
  transform: translateX(-50%);
  z-index: 70;
  background: var(--ink);
  color: var(--marble);
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  max-width: calc(100% - 32px);
  box-shadow: var(--shadow);
  animation: fade 0.2s;
}

/* prayer times page */
.next-prayer {
  margin: -48px var(--gutter) 0;
  background: var(--surface);
  border-radius: var(--r-l);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  position: relative;
}
.next-prayer small {
  color: var(--ink-3);
  font-size: 14px;
}
.next-prayer .np-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.next-prayer .np-name {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 800;
}
.next-prayer .np-time {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 800;
  font-variation-settings: 'wdth' 75;
  font-stretch: 75%;
}
.next-prayer .np-left {
  color: var(--peacock-ink);
  font-weight: 700;
}

/* city list */
.city-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.city-list > li > button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  font-weight: 600;
  font-size: 16.5px;
  text-align: left;
}
.city-list > li:first-child > button {
  border-top: 0;
}
.city-list .muted {
  font-weight: 500;
  font-size: 14px;
}

.demo-bar {
  background: var(--marigold-tint);
  color: var(--marigold-deep);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  padding: 6px 12px;
}

@media (min-width: 600px) {
  body {
    background: var(--peacock-tint);
  }
  .shell {
    background: var(--marble);
    box-shadow: 0 0 0 1px var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- small shared bits ---------- */
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}
.meta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ic-i {
  width: 16px;
  height: 16px;
}
.hero-kicker svg {
  width: 18px;
  height: 18px;
}
.row .chev {
  width: 18px;
  height: 18px;
  color: var(--ink-3);
}
a.row {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Admin / survey panel
   ========================================================================== */
.admin-body {
  padding: 16px var(--gutter) 0;
}
.admin-body.has-savebar {
  padding-bottom: 96px;
}
.admin-body .card,
.admin-body .board,
.admin-body .notice {
  margin-left: 0;
  margin-right: 0;
}
.a-sec {
  margin-top: 14px;
}
.a-sec:first-child {
  margin-top: 0;
}
.a-hello {
  margin: 0 0 14px;
  font-size: 17px;
  color: var(--ink-2);
}
.a-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  border-left: 4px solid var(--line);
}
.stat b {
  font-family: var(--f-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
}
.stat.ok {
  border-left-color: var(--ok);
}
.stat.warn {
  border-left-color: var(--marigold);
}
.a-banner {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-m);
  background: var(--marigold-tint);
  color: var(--marigold-deep);
  font-weight: 700;
  text-decoration: none;
}
.a-banner span {
  flex: 1;
}
.a-banner svg {
  width: 22px;
  height: 22px;
}
.a-big {
  margin-top: 12px;
  min-height: 56px;
  font-size: 17px;
}
.fab {
  position: fixed;
  right: max(16px, calc(50% - 264px));
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
  z-index: 25;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--marigold);
  color: var(--on-marigold);
  box-shadow: 0 10px 24px rgba(138, 90, 0, 0.35);
}
.fab svg {
  width: 28px;
  height: 28px;
}
.savebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px var(--gutter) calc(10px + var(--safe-b));
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--line), 0 -10px 24px rgba(7, 56, 51, 0.08);
}
.savebar .btn {
  max-width: 528px;
  margin: 0 auto;
  display: flex;
  min-height: 54px;
  font-size: 17px;
}
.cam-btn {
  cursor: pointer;
  width: 100%;
}
.a-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.a-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
}
.a-photo > button:first-child {
  border: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: none;
}
.a-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.a-photo.queued img {
  opacity: 0.6;
}
.a-photo .kind {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 1px 7px;
  border-radius: 999px;
}
.a-photo-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}
.a-photo-x svg {
  width: 16px;
  height: 16px;
}
.a-photo-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 18px;
  border-radius: 12px;
  border: 1.5px dashed var(--line);
  color: var(--ink-3);
}
.a-photo-empty svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.a-loc-none,
.a-loc-ok {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
}
.a-loc-none {
  background: var(--warn-tint);
  color: var(--warn);
  font-weight: 600;
}
.a-loc-ok {
  background: var(--ok-tint);
}
.a-loc-ok span {
  flex: 1;
}
.a-loc-none svg,
.a-loc-ok svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.a-loc-ok svg {
  color: var(--ok);
}
.sug-times {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-2);
}
.sug-times span {
  flex: 1;
}
.sug-times small {
  display: block;
  color: var(--ink-3);
}
.sug-times b {
  font-family: var(--f-display);
  font-size: 22px;
}
.sug-times svg {
  width: 20px;
  height: 20px;
  color: var(--ink-3);
}
.sug-msg {
  margin-top: 10px !important;
  padding-left: 12px;
  border-left: 3px solid var(--line);
}
.sug h3 a {
  color: inherit;
}
.a-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 16.5px;
  text-align: left;
}
.city-list li:first-child .a-link {
  border-top: 0;
}
.a-link span {
  flex: 1;
}
.a-link span.muted {
  flex: none;
}
.a-link svg {
  width: 22px;
  height: 22px;
  color: var(--peacock-ink);
}
.a-link.danger,
.a-link.danger svg {
  color: var(--danger);
}
.a-user {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.city-list li:first-child .a-user {
  border-top: 0;
}
.a-user b {
  display: block;
}
.a-user-act {
  display: flex;
  gap: 8px;
}
.a-user-act .btn {
  min-height: 40px;
  font-size: 14.5px;
  padding: 0 12px;
}
.login-wrap {
  min-height: 100dvh;
  padding: 0 var(--gutter) 24px;
  background: linear-gradient(var(--peacock) 0 220px, transparent 220px);
}
.login-brand {
  color: #fff;
  text-align: center;
  padding: calc(env(safe-area-inset-top, 0px) + 36px) 0 24px;
}
.login-brand h1 {
  margin: 12px 0 2px;
  font-family: var(--f-display);
  font-size: 26px;
}
.login-brand p {
  margin: 0;
  opacity: 0.8;
}
.login-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}
.login-wrap .card {
  margin: 0;
}

/* ==========================================================================
   v2 — welcome screen, jamat time finder, filters, Qibla
   ========================================================================== */

/* ---------- welcome (first open, asks for location) ---------- */
.welcome {
  min-height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--peacock) var(--jaali);
  color: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) var(--gutter) calc(var(--safe-b) + 14px);
}
.wl-top {
  text-align: center;
}
.wl-logo {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2), 0 18px 40px rgba(0, 0, 0, 0.25);
}
.wl-top h1 {
  margin: 10px 0 2px;
  font-family: var(--f-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.wl-tag {
  margin: 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
}
.wl-sky {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 10px;
  fill: rgba(255, 255, 255, 0.13);
}
.wl-points {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: grid;
  gap: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
}
.wl-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.wl-points svg {
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 2px;
  color: var(--marigold);
}
.wl-points span {
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.76);
}
.wl-points b {
  display: block;
  font-size: 17px;
  color: #fff;
}
.wl-actions {
  margin-top: auto;
  padding-top: 18px;
  display: grid;
  gap: 10px;
}
.btn.wl-go {
  min-height: 58px;
  font-size: 18px;
  background: var(--marigold);
  color: var(--on-marigold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  white-space: normal;
}
.wl-why {
  margin: 0 0 4px;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}
.btn.wl-city {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.wl-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 15px;
}
.wl-foot .link-btn,
.wl-foot a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}
.wl-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-underline-offset: 3px;
}

/* ---------- jamat time finder (पौने एक … पौने तीन) ---------- */
.slot-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px var(--gutter) 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.slot-rail::-webkit-scrollbar {
  display: none;
}
.slot {
  flex: none;
  width: 112px;
  min-height: 132px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 6px 6px 11px;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
  scroll-snap-align: center;
}
.sl-kh {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 4px 6px;
  margin-bottom: 6px;
  border-radius: 13px;
  background: var(--peacock-tint);
  color: var(--peacock-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sl-kh small {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.85;
}
.sl-nz {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  line-height: 1.1;
}
.sl-time {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 75;
  font-stretch: 75%;
  font-weight: 800;
  font-size: 31px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sl-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.slot.next {
  box-shadow: inset 0 0 0 2px var(--ok);
}
.sl-next {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--ok);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.slot.empty {
  opacity: 0.55;
}
.slot.passed .sl-time {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.slot.on {
  background: var(--marigold);
  color: var(--on-marigold);
  box-shadow: 0 8px 20px rgba(138, 90, 0, 0.28);
  opacity: 1;
}
.slot.on .sl-nz,
.slot.on .sl-count,
.slot.on .sl-time {
  color: var(--on-marigold);
  text-decoration: none;
}
.slot.on .sl-kh {
  background: rgba(255, 255, 255, 0.5);
  color: var(--on-marigold);
}
.slot.passed .sl-kh {
  color: var(--ink-3);
  background: var(--surface-2);
}
.slot.other .sl-time {
  font-size: 24px;
}
.slot-empty {
  margin: 4px var(--gutter) 0;
  font-size: 15px;
  color: var(--ink-3);
}
.slot-clear-row {
  margin: -6px var(--gutter) 6px;
}
.chip-sep {
  flex: none;
  width: 1.5px;
  margin: 8px 2px;
  background: var(--line);
}
.chip .ic-i {
  width: 17px;
  height: 17px;
}
.btn.share-list {
  display: flex;
  width: calc(100% - 2 * var(--gutter));
  margin: 12px var(--gutter) 0;
}
.menu-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: none;
}
.sheet .a-link small {
  display: block;
  font-weight: 500;
  font-size: 13.5px;
}

/* ---------- Qibla ---------- */
.qb-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.qb-row > div {
  min-width: 0;
}
.qb-dial {
  width: 148px;
  height: 148px;
  flex: none;
  transition: transform 0.2s linear;
}
.qb-ring {
  fill: var(--surface-2);
  stroke: var(--line);
  stroke-width: 2;
}
.qb-ticks line {
  stroke: var(--ink-3);
  stroke-width: 1.5;
}
.qb-n {
  fill: var(--danger);
  font: 700 15px var(--f-body);
  text-anchor: middle;
}
.qb-l {
  fill: var(--ink-3);
  font: 600 13px var(--f-body);
  text-anchor: middle;
}
.qb-needle,
.qb-hub {
  fill: var(--peacock-ink);
}
.qb-kaaba {
  fill: var(--marigold);
  stroke: var(--on-marigold);
  stroke-width: 1.5;
}
.qb-deg {
  margin: 0 !important;
  font-family: var(--f-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}
.demo-bar + .welcome {
  min-height: calc(100dvh - 31px);
}

/* ---------- sort & filter tiles (big, scrollable like the time tiles) ---------- */
.opt-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px var(--gutter) 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.opt-rail::-webkit-scrollbar {
  display: none;
}
.opt {
  flex: none;
  width: 142px;
  min-height: 112px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 12px 12px 14px;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
  text-align: left;
  scroll-snap-align: start;
}
.opt .opt-ic {
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
  color: var(--peacock-ink);
}
.opt b {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.2;
}
.opt small {
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-3);
}
.opt[aria-pressed='true'] {
  background: var(--peacock);
  color: #fff;
  box-shadow: 0 8px 20px rgba(7, 56, 51, 0.22);
}
.opt[aria-pressed='true'] .opt-ic,
.opt[aria-pressed='true'] small {
  color: rgba(255, 255, 255, 0.85);
}
.opt-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: transparent;
}
.opt-check svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}
.opt-filter[aria-pressed='true'] .opt-check {
  background: var(--marigold);
  box-shadow: none;
  color: var(--on-marigold);
}
.opt-sep {
  flex: none;
  width: 1.5px;
  margin: 14px 2px;
  background: var(--line);
}
.fac.fac-no {
  background: var(--surface-2);
  color: var(--ink-2);
}
.row-meta .tag svg,
.sheet-head .tag svg {
  width: 14px;
  height: 14px;
}

/* ---------- admin: ख़ुत्बा + नमाज़ per jamat, parking है/नहीं ---------- */
.jamat-row {
  display: block;
  margin-top: 12px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: var(--surface-2);
}
.jamat-row .field {
  margin-top: 8px;
}
.jr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
}
.jr-head b {
  font-size: 16px;
}
.jr-head .close-x {
  width: 34px;
  height: 34px;
  margin: 0;
}
.jamat-row .jr-nz input {
  font-weight: 700;
  font-size: 19px;
  border-color: var(--marigold);
}
.jamat-row .jr-kh input {
  font-weight: 700;
  font-size: 19px;
}
.jr-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.jr-quick .chip {
  min-height: 36px;
  font-size: 14px;
  padding: 0 12px;
}
.seg-opt {
  flex: 1;
  position: relative;
}
.seg-opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.seg-opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 9px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.seg-opt input:checked + span {
  background: var(--surface);
  color: var(--peacock-ink);
  box-shadow: var(--shadow);
}
.seg-opt input:focus-visible + span {
  outline: 3px solid var(--marigold);
  outline-offset: 2px;
}
.field > span .ic-i {
  vertical-align: -3px;
}
.row-time .kh.kh-miss {
  background: var(--warn-tint);
  color: var(--warn);
  font-size: 11.5px;
}
.sug-times .sug-k {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-2);
  min-width: 52px;
}

/* ==========================================================================
   v3 — help options for everyone, sub-admins (area-wise), change history
   ========================================================================== */

/* ---------- home: help keep times right ---------- */
.help {
  margin-top: 8px;
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 var(--gutter);
}
.help-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-height: 132px;
  padding: 14px;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}
.help-tile .help-ic {
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--marigold-tint);
  color: var(--marigold-deep);
}
.help-tile b {
  font-size: 16.5px;
  line-height: 1.25;
}
.help-tile small {
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--ink-3);
}
.help-tile.help-wide {
  grid-column: 1 / -1;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: var(--peacock) var(--jaali);
  box-shadow: 0 10px 24px rgba(7, 56, 51, 0.2);
  color: #fff;
}
.help-wide .help-ic {
  margin: 0;
  flex: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--marigold);
}
.help-wide > span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.help-wide small {
  color: rgba(255, 255, 255, 0.78);
}
.help-wide .help-go {
  width: 22px;
  height: 22px;
  flex: none;
  color: rgba(255, 255, 255, 0.8);
}
.help-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 12px var(--gutter) 0;
  font-size: 14px;
  color: var(--ink-3);
}
.help-note .ic-i {
  flex: none;
  margin-top: 2px;
  color: var(--ok);
}

/* popup + mosque page entry points */
.sheet .fix-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 var(--gutter);
  min-height: 40px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}
.fix-card {
  display: grid;
  gap: 12px;
}
.fix-card h3 {
  margin-bottom: 2px;
}

/* ---------- suggest / add / join pages ---------- */
.sg-mosque h3 {
  margin-bottom: 2px;
}
.sg-now {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.sg-now span {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
}
.sg-now small {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
}
.sg-now b {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.photo-pick .pp-preview {
  position: relative;
  width: 140px;
  aspect-ratio: 3 / 4;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
}
.photo-pick .pp-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.join-what ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.join-what li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-2);
}
.join-what li svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--peacock-ink);
  margin-top: 1px;
}
.thanks {
  margin: 16px var(--gutter) 0;
  padding: 28px 20px 20px;
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}
.thanks .thanks-ic {
  width: 56px;
  height: 56px;
  color: var(--ok);
}
.thanks h2 {
  margin: 10px 0 6px;
  font-family: var(--f-display);
  font-size: 24px;
}
.thanks p {
  margin: 0 0 18px;
  color: var(--ink-2);
}

/* ---------- admin: sub-admin areas ---------- */
.a-myareas {
  margin: -6px 0 14px;
}
.a-myareas small {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-3);
  font-weight: 600;
}
.ap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ap-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 6px 0 10px;
  border-radius: 999px;
  background: var(--peacock-tint);
  color: var(--peacock-ink);
  font-size: 14px;
  font-weight: 600;
}
.ap-chip:not(:has(button)) {
  padding-right: 12px;
}
.ap-chip button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}
.ap-chip button svg {
  width: 15px;
  height: 15px;
}
.area-pick .ap-chips {
  min-height: 34px;
  align-items: center;
}
.ap-add {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.ap-add input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 16px;
  outline: none;
}
.ap-add input:focus {
  border-color: var(--peacock);
  box-shadow: 0 0 0 3px var(--peacock-tint);
}
.ap-add .btn {
  min-height: 48px;
  padding: 0 14px;
}
.area-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 16px;
  border-top: 1px solid var(--line);
}
.area-list li:first-child .area-row {
  border-top: 0;
}
.area-main {
  flex: 1;
  min-width: 0;
}
.area-main b {
  display: block;
  font-size: 16.5px;
}
.area-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.area-row .btn {
  flex: none;
  min-height: 40px;
  padding: 0 12px;
  font-size: 14.5px;
}
.a-banner-alt {
  background: var(--ok-tint);
  color: var(--ok);
}
.a-banner-soft {
  background: var(--peacock-tint);
  color: var(--peacock-ink);
}

/* ---------- admin: recent changes ---------- */
.act-head {
  display: flex;
  gap: 10px;
  align-items: center;
}
.act-av {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--peacock);
  color: #fff;
  font-weight: 700;
}
.act-what {
  margin: 10px 0 6px !important;
}
.act-what a {
  font-weight: 700;
  color: inherit;
}
.act-ch {
  margin: 0 0 12px;
  padding: 10px 12px 10px 28px;
  border-radius: 12px;
  background: var(--surface-2);
  font-variant-numeric: tabular-nums;
}
.act-ch li + li {
  margin-top: 4px;
}
.act-reverted {
  opacity: 0.72;
}
.act .btn {
  min-height: 42px;
}

/* ---------- admin: photos sent with suggestions ---------- */
.sug-photo {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
}
.sug-photo img {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
}
.chip .count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--marigold);
  color: var(--on-marigold);
  font-size: 12.5px;
  font-weight: 700;
  opacity: 1;
}
.pick-t {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--peacock-ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- "wrong time?" picker with search ---------- */
.sheet .pick-top {
  position: sticky;
  top: -8px;
  z-index: 2;
  margin-top: -8px;
  padding: 8px 0 12px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}
.pick-search {
  margin: 12px var(--gutter) 0;
}
.pick-body {
  padding-top: 10px;
}
.pick-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
}
.pick-msg {
  padding: 16px;
  color: var(--ink-2);
  line-height: 1.5;
}
