/* =========================================================
   Cinta Masjid — Design System (prototipe)
   Semua warna/font/radius berasal dari CSS variables yang
   disetel oleh theme engine (assets/theme.js) per masjid.
   ========================================================= */

:root {
  /* --- token yang bisa diganti DKM --- */
  --brand: #0B5D4B;
  --accent: #C2A15A;
  --bg: #FAF7F0;
  --ink: #17231F;
  --radius: 18px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-arab: 'Amiri', 'Traditional Arabic', serif;

  /* --- token turunan (otomatis) --- */
  --surface: #FFFFFF;
  --surface-2: color-mix(in oklab, var(--bg) 55%, white);
  --muted: color-mix(in oklab, var(--ink) 60%, var(--bg));
  --faint: color-mix(in oklab, var(--ink) 40%, var(--bg));
  --line: color-mix(in oklab, var(--ink) 11%, transparent);
  --line-strong: color-mix(in oklab, var(--ink) 18%, transparent);
  --brand-soft: color-mix(in oklab, var(--brand) 9%, white);
  --brand-soft-2: color-mix(in oklab, var(--brand) 16%, white);
  --brand-deep: color-mix(in oklab, var(--brand) 72%, black);
  --brand-ink: #FFFFFF;
  --accent-soft: color-mix(in oklab, var(--accent) 17%, white);
  --accent-deep: color-mix(in oklab, var(--accent) 70%, black);
  --r-sm: calc(var(--radius) * .55);
  --r-xs: calc(var(--radius) * .35);
  --shadow-sm: 0 1px 2px rgb(16 24 20 / .05);
  --shadow: 0 1px 2px rgb(16 24 20 / .04), 0 10px 30px -14px rgb(16 24 20 / .18);
  --shadow-lg: 0 24px 60px -20px rgb(16 24 20 / .35);

  --ok: #1E7A4C;   --ok-soft: #E5F3EC;
  --warn: #A86A12; --warn-soft: #FBF0DC;
  --bad: #B42318;  --bad-soft: #FCE8E6;
  --info: #2557C7; --info-soft: #E6EDFB;

  --sidebar-w: 276px;
  --bottom-h: 68px;
  color-scheme: light;
}

html[data-textsize="besar"] { font-size: 18px; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; }
p { margin: 0; }
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.arab { font-family: var(--font-arab); direction: rtl; line-height: 1.9; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { flex: none; display: inline-block; vertical-align: middle; }
:focus-visible { outline: 2.5px solid color-mix(in oklab, var(--brand) 60%, white); outline-offset: 2px; border-radius: 6px; }

/* ---------- layout helpers ---------- */
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: var(--gap, 16px); grid-template-columns: minmax(0, 1fr); }
.grid > *, .stack > * { min-width: 0; }
@media (min-width: 640px) {
  .grid.sm-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.sm-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid.lg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.lg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.lg-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .grid.lg-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-all { grid-column: 1 / -1; }
.hide-mobile { display: none !important; }
@media (min-width: 1024px) { .hide-mobile { display: revert !important; } .hide-desktop { display: none !important; } }

/* ---------- ornamen geometri ---------- */
.ornament { position: relative; isolation: isolate; }
.ornament::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--orn-color, var(--accent));
  opacity: var(--orn-opacity, .16);
  -webkit-mask: 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='%23000' stroke-width='1'%3E%3Crect x='14' y='14' width='28' height='28'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='6'/%3E%3Cpath d='M0 0l8 8M56 0l-8 8M0 56l8-8M56 56l-8-8'/%3E%3C/g%3E%3C/svg%3E") repeat;
          mask: 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='%23000' stroke-width='1'%3E%3Crect x='14' y='14' width='28' height='28'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='6'/%3E%3Cpath d='M0 0l8 8M56 0l-8 8M0 56l8-8M56 56l-8-8'/%3E%3C/g%3E%3C/svg%3E") repeat;
}
html[data-ornament="off"] .ornament::before { display: none; }
.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .7; border: 0; }

/* ---------- surfaces ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  min-width: 0;
}
.card.pad-0 { padding: 0; overflow: hidden; }
.card.lift { box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { font-size: 1rem; }
.card-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.card.brand {
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in oklab, var(--brand) 70%, var(--accent)) 0%, var(--brand) 45%, var(--brand-deep) 100%);
  color: var(--brand-ink); border-color: transparent;
}
.card.brand .muted { color: color-mix(in oklab, white 72%, transparent); }
.card.soft { background: var(--brand-soft); border-color: transparent; box-shadow: none; }
.card.accent { background: var(--accent-soft); border-color: transparent; box-shadow: none; }
.card.dashed { border-style: dashed; box-shadow: none; background: transparent; }
a.card, button.card { text-decoration: none; text-align: left; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
a.card:hover, button.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }

/* ---------- buttons ---------- */
.btn {
  --b: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--b); color: var(--ink);
  font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .1s, box-shadow .15s, border-color .15s;
}
.btn:hover { border-color: color-mix(in oklab, var(--ink) 30%, transparent); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: transparent; box-shadow: 0 6px 16px -8px color-mix(in oklab, var(--brand) 80%, transparent); }
.btn.primary:hover { background: color-mix(in oklab, var(--brand) 88%, black); }
.btn.accent { background: var(--accent); color: color-mix(in oklab, var(--accent) 20%, black); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: color-mix(in oklab, var(--ink) 5%, transparent); }
.btn.soft { background: var(--brand-soft); color: var(--brand-deep); border-color: transparent; }
.btn.danger { color: var(--bad); }
.btn.on-dark { background: rgb(255 255 255 / .12); color: #fff; border-color: rgb(255 255 255 / .2); }
.btn.on-dark:hover { background: rgb(255 255 255 / .2); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .85rem; }
.btn.lg { min-height: 52px; padding: 0 22px; font-size: 1rem; }
.btn.block { width: 100%; }
.btn.icon { padding: 0; width: 44px; }
.btn.icon.sm { width: 36px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- chips / badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap;
  background: color-mix(in oklab, var(--ink) 6%, transparent); color: var(--muted);
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.brand { background: var(--brand-soft-2); color: var(--brand-deep); }
.badge.gold { background: var(--accent-soft); color: var(--accent-deep); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: .88rem; font-weight: 600; color: var(--muted); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.chip:hover { color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.brand.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

.seg { display: inline-flex; padding: 4px; background: color-mix(in oklab, var(--ink) 6%, transparent); border-radius: calc(var(--r-sm) + 4px); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600; font-size: .88rem; color: var(--muted); cursor: pointer; min-height: 38px; }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg.block { display: flex; }
.seg.block button { flex: 1; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: .85rem; font-weight: 600; color: color-mix(in oklab, var(--ink) 80%, var(--bg)); }
.field .hint { font-size: .78rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); outline: none; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 14%, transparent); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .prefix { position: absolute; left: 14px; color: var(--muted); font-weight: 600; pointer-events: none; }
.input-group .input { padding-left: 44px; }
.input.big { font-size: 1.6rem; font-weight: 700; min-height: 64px; font-variant-numeric: tabular-nums; }
.input-group .prefix.big { font-size: 1.1rem; }

.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: color-mix(in oklab, var(--ink) 18%, transparent); transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: white; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(20px); }

.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); margin-top: 2px; flex: none; }

.option-card { display: block; position: relative; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; }
.option-card > div { border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); padding: 12px 14px; background: var(--surface); transition: border-color .15s, background .15s; height: 100%; }
.option-card input:checked + div { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); min-width: 0; text-decoration: none; }
.list-item:first-child { border-top: 0; }
a.list-item:hover, button.list-item:hover { background: color-mix(in oklab, var(--ink) 3%, transparent); }
button.list-item { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; }
.list-item .title { font-weight: 600; }
.list-item .meta { font-size: .82rem; color: var(--muted); }
.list-item .amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.amount.in { color: var(--ok); }
.amount.out { color: var(--ink); }

.icon-tile { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.icon-tile.gold { background: var(--accent-soft); color: var(--accent-deep); }
.icon-tile.ok { background: var(--ok-soft); color: var(--ok); }
.icon-tile.bad { background: var(--bad-soft); color: var(--bad); }
.icon-tile.warn { background: var(--warn-soft); color: var(--warn); }
.icon-tile.ink { background: color-mix(in oklab, var(--ink) 7%, transparent); color: var(--ink); }
.icon-tile.sm { width: 34px; height: 34px; }
.icon-tile.lg { width: 52px; height: 52px; }

.avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: .82rem; color: var(--brand-deep); background: var(--brand-soft-2); }
.avatar.sm { width: 30px; height: 30px; font-size: .72rem; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.1rem; }

/* ---------- table (desktop) ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.r, .table th.r { text-align: right; }
.table tfoot td { font-weight: 700; background: var(--surface-2); }

/* ---------- stats ---------- */
.stat .label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.stat .value { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat .sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.stat .value.display { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; }
.delta-up { color: var(--ok); font-weight: 600; }
.delta-down { color: var(--bad); font-weight: 600; }

.progress { height: 8px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 8%, transparent); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), color-mix(in oklab, var(--brand) 55%, var(--accent))); }
.progress.gold > i { background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 70%, white)); }
.progress.lg { height: 12px; }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.bars .bar .stack-b { width: 100%; max-width: 30px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; }
.bars .bar i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; }
.bars .bar i.in { background: var(--brand); }
.bars .bar i.out { background: var(--accent); opacity: .8; }
.bars .bar span { font-size: .72rem; color: var(--muted); }
.legend { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .icon-tile { margin: 0 auto 12px; }

.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--info-soft); color: color-mix(in oklab, var(--info) 75%, black); font-size: .9rem; }
.notice.gold { background: var(--accent-soft); color: var(--accent-deep); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }

.kbd { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: .85em; padding: 2px 7px; border-radius: 6px; background: color-mix(in oklab, var(--ink) 7%, transparent); }
.mono { font-family: ui-monospace, 'SF Mono', Consolas, monospace; }

/* ---------- page header ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 18px; }
.page-head h1 { font-family: var(--font-display); font-size: 1.65rem; letter-spacing: -.015em; }
.page-head p { color: var(--muted); margin-top: 4px; font-size: .95rem; }
.eyebrow { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--accent-deep); }
@media (min-width: 1024px) { .page-head h1 { font-size: 2rem; } }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); margin: 8px 0 10px; }

/* =========================================================
   ADMIN SHELL
   ========================================================= */
.adm { min-height: 100dvh; }
.adm-side {
  position: fixed; inset: 0 auto 0 0; width: min(86vw, var(--sidebar-w)); z-index: 60;
  background: var(--brand-deep); color: #fff;
  display: flex; flex-direction: column;
  transform: translateX(-102%); transition: transform .25s ease;
  overflow: hidden;
}
.adm-side.ornament { --orn-opacity: .09; }
.adm.drawer-open .adm-side { transform: none; box-shadow: var(--shadow-lg); }
.adm-scrim { position: fixed; inset: 0; background: rgb(10 16 14 / .45); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s; }
.adm.drawer-open .adm-scrim { opacity: 1; pointer-events: auto; }
.side-brand { padding: 20px 20px 14px; display: flex; align-items: center; gap: 12px; }
.side-brand .wm { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.15; }
.side-brand .sub { font-size: .74rem; opacity: .65; }
.mosque-switch { margin: 0 14px 10px; padding: 10px 12px; border-radius: var(--r-sm); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .1); display: flex; align-items: center; gap: 10px; color: #fff; cursor: pointer; text-align: left; width: calc(100% - 28px); }
.side-nav { flex: 1; overflow-y: auto; padding: 6px 10px 16px; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .2) transparent; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 1px 0;
  border-radius: var(--r-sm); text-decoration: none; color: rgb(255 255 255 / .78); font-weight: 500; font-size: .94rem;
}
.side-nav a:hover { background: rgb(255 255 255 / .07); color: #fff; }
.side-nav a.active { background: rgb(255 255 255 / .13); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.side-nav a .count { margin-left: auto; background: var(--accent); color: color-mix(in oklab, var(--accent) 15%, black); font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.side-nav .grp { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; opacity: .45; padding: 16px 12px 6px; font-weight: 700; }
.side-foot { padding: 14px; border-top: 1px solid rgb(255 255 255 / .1); display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.side-foot .avatar { background: var(--accent); color: color-mix(in oklab, var(--accent) 15%, black); }

.adm-body { min-width: 0; }
.adm-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.adm-top .title { font-weight: 700; font-size: 1rem; }
.adm-top .crumb { font-size: .78rem; color: var(--muted); }
.adm-search { flex: 1; max-width: 420px; position: relative; }
.adm-search .input { min-height: 42px; padding-left: 40px; background: var(--surface); border-radius: 999px; font-size: .92rem; }
.adm-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); text-decoration: none; }
.icon-btn:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.icon-btn .pip { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--bg); }

.adm-main { padding: 16px 16px calc(var(--bottom-h) + 28px); max-width: 1240px; margin: 0 auto; }
.adm-tabs { margin: -4px 0 18px; }

.adm-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.adm-bottom a, .adm-bottom button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .7rem; font-weight: 600; color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 6px 0; }
.adm-bottom a.active { color: var(--brand); }
.adm-bottom .fab { width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin-top: -26px; box-shadow: 0 10px 24px -8px color-mix(in oklab, var(--brand) 85%, transparent), 0 0 0 5px var(--bg); }

@media (min-width: 1024px) {
  .adm { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .adm-side { position: sticky; top: 0; height: 100dvh; transform: none; width: auto; }
  .adm-scrim, .adm-bottom, .adm-top .menu-btn { display: none; }
  .adm-top { padding: 14px 28px; }
  .adm-main { padding: 26px 28px 48px; }
}

/* =========================================================
   OVERLAY: sheet (mobile) / modal (desktop)
   ========================================================= */
.ov { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.ov-scrim { position: absolute; inset: 0; background: rgb(10 16 14 / .5); animation: fade .2s ease; }
.sheet {
  position: relative; width: 100%; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: calc(var(--radius) + 6px) calc(var(--radius) + 6px) 0 0;
  box-shadow: var(--shadow-lg); animation: up .28s cubic-bezier(.2,.9,.3,1);
}
.sheet::before { content: ""; width: 40px; height: 5px; border-radius: 9px; background: var(--line-strong); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 10px 18px 12px; }
.sheet-head h2 { font-family: var(--font-display); font-size: 1.3rem; flex: 1; }
.sheet-body { padding: 4px 18px 18px; overflow-y: auto; }
.sheet-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; background: var(--surface); }
.sheet-foot .btn { flex: 1; }
@media (min-width: 720px) {
  .ov { align-items: center; padding: 24px; }
  .sheet { max-width: 560px; border-radius: calc(var(--radius) + 6px); max-height: 88dvh; animation: pop .22s ease; overflow: hidden; }
  .sheet.wide { max-width: 860px; }
  .sheet::before { display: none; }
  .sheet-head { padding: 20px 22px 12px; }
  .sheet-body { padding: 4px 22px 22px; }
  .sheet-foot { padding: 14px 22px; justify-content: flex-end; }
  .sheet-foot .btn { flex: none; }
}
@keyframes up { from { transform: translateY(100%); } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.toast-wrap { position: fixed; left: 50%; bottom: calc(var(--bottom-h) + 20px); transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); animation: pop .2s ease; }
.toast .ic { color: var(--accent); }
@media (min-width: 1024px) { .toast-wrap { bottom: 28px; } }

/* ---------- phone frame (preview) ---------- */
.device { width: 100%; max-width: 380px; margin: 0 auto; border-radius: 38px; padding: 10px; background: #0f1412; box-shadow: var(--shadow-lg); }
.device-screen { border-radius: 30px; overflow: hidden; height: 680px; overflow-y: auto; background: var(--bg); position: relative; scrollbar-width: none; }
.device-screen::-webkit-scrollbar { display: none; }

/* ---------- fake QR / map / media ---------- */
.qr { background: #fff; padding: 10px; border-radius: 12px; display: inline-block; line-height: 0; }
.map {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 220px;
  background:
    linear-gradient(90deg, transparent 49.5%, rgb(255 255 255 / .9) 49.5% 50.5%, transparent 50.5%) 0 0 / 120px 120px,
    linear-gradient(0deg, transparent 49.5%, rgb(255 255 255 / .9) 49.5% 50.5%, transparent 50.5%) 0 0 / 90px 90px,
    linear-gradient(35deg, transparent 48%, rgb(255 255 255 / .95) 48% 52%, transparent 52%) 0 0 / 100% 100%,
    color-mix(in oklab, var(--brand) 7%, #EDEAE0);
}
.map .pin { position: absolute; transform: translate(-50%, -100%); color: var(--brand); filter: drop-shadow(0 4px 6px rgb(0 0 0 / .25)); }
.map .dotp { position: absolute; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .3); }
.media { border-radius: var(--r-sm); aspect-ratio: 4/3; background: linear-gradient(135deg, color-mix(in oklab, var(--brand) 85%, white), var(--brand-deep)); position: relative; overflow: hidden; }
.media.gold { background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 60%, var(--brand))); }
.media .cap { position: absolute; left: 12px; bottom: 10px; color: #fff; font-weight: 600; font-size: .85rem; text-shadow: 0 1px 6px rgb(0 0 0 / .3); }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { font-size: .72rem; text-align: center; color: var(--muted); font-weight: 700; padding: 4px 0; }
.cal .d { aspect-ratio: 1; border-radius: var(--r-xs); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .85rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line); cursor: pointer; position: relative; gap: 2px; }
.cal .d.muted { opacity: .35; }
.cal .d.today { border-color: var(--brand); color: var(--brand); }
.cal .d.booked::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.cal .d.full { background: var(--brand-soft); }
.cal .d.sel { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- timeline / steps ---------- */
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: color-mix(in oklab, var(--ink) 10%, transparent); }
.steps i.on { background: var(--brand); }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.timeline .t { position: relative; padding-bottom: 14px; }
.timeline .t::before { content: ""; position: absolute; left: -22px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.timeline .t.done::before { background: var(--brand); border-color: var(--brand); }
.timeline .t.now::before { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft-2); }

/* ---------- prayer strip ---------- */
.prayers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 640px) { .prayers { grid-template-columns: repeat(6, 1fr); } }
.prayer { padding: 12px 10px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.prayer .n { font-size: .78rem; color: var(--muted); font-weight: 600; }
.prayer .t { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.prayer.next { background: var(--brand); border-color: var(--brand); color: #fff; }
.prayer.next .n { color: rgb(255 255 255 / .75); }

/* =========================================================
   PUBLIC SITE
   ========================================================= */
.pub { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.pub-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.wordmark .logo-img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.wordmark .wm { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; line-height: 1.1; color: var(--brand-deep); }
.wordmark .wm small { display: block; font-family: var(--font-body); font-size: .7rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.pub-nav { display: none; gap: 4px; margin-left: auto; }
.pub-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--muted); }
.pub-nav a:hover { color: var(--ink); }
.pub-nav a.active { color: var(--brand); background: var(--brand-soft); }
.pub-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 18px 16px 32px; }
.pub-bottom {
  position: sticky; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.pub-bottom a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 10px; font-size: .7rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.pub-bottom a.active { color: var(--brand); }
.pub-foot { border-top: 1px solid var(--line); padding: 26px 16px 30px; color: var(--muted); font-size: .85rem; }
.pub-foot .in { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
@media (min-width: 900px) {
  .pub:not(.embed) .pub-nav { display: flex; }
  .pub:not(.embed) .pub-bottom { display: none; }
  .pub:not(.embed) .pub-top { padding: 14px 28px; }
  .pub:not(.embed) .pub-main { padding: 28px 28px 48px; }
}

/* hero variants — data-layout per masjid */
.hero { border-radius: calc(var(--radius) + 6px); overflow: hidden; position: relative; color: #fff; }
.hero .hero-in { position: relative; padding: 28px 22px 22px; display: flex; flex-direction: column; gap: 18px; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(130% 90% at 85% 0%, color-mix(in oklab, var(--brand) 60%, var(--accent)) 0%, var(--brand) 42%, var(--brand-deep) 100%); }
.hero-bg.ornament { --orn-color: #fff; --orn-opacity: .08; }
.hero .greet { font-size: .82rem; opacity: .8; }
.hero h1 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; letter-spacing: -.015em; }
.hero .count { font-size: 2.8rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; }
.hero .next-label { font-size: .85rem; opacity: .85; }
.hero .arch {
  position: absolute; right: -40px; bottom: -30px; width: 220px; height: 260px; opacity: .14;
  border: 2px solid var(--accent); border-radius: 110px 110px 0 0;
  box-shadow: inset 0 0 0 14px transparent, 0 0 0 14px transparent;
}
.hero .arch::after { content: ""; position: absolute; inset: 18px; border: 1.5px solid var(--accent); border-radius: 92px 92px 0 0; }
.hero-prayers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--r-sm); padding: 8px 4px; }
.hero-prayers div { text-align: center; padding: 4px 0; border-radius: var(--r-xs); }
.hero-prayers .n { font-size: .66rem; opacity: .75; }
.hero-prayers .t { font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.hero-prayers .on { background: var(--accent); color: color-mix(in oklab, var(--accent) 15%, black); }
.hero-prayers .on .n { opacity: .8; }

html[data-layout="klasik"] .hero .hero-in { text-align: center; align-items: center; padding: 40px 22px 24px; }
html[data-layout="klasik"] .hero-prayers { width: 100%; }
html[data-layout="modern"] .hero { color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
html[data-layout="modern"] .hero-bg { inset: 0 0 auto auto; width: 46%; height: 100%; border-radius: 0; opacity: 1; clip-path: ellipse(85% 100% at 100% 50%); }
html[data-layout="modern"] .hero .hero-head { max-width: 58%; }
html[data-layout="modern"] .hero-bg { height: 62%; }
html[data-layout="modern"] .hero .count { color: var(--brand); }
html[data-layout="modern"] .hero .greet, html[data-layout="modern"] .hero .next-label { color: var(--muted); opacity: 1; }
html[data-layout="modern"] .hero-prayers { background: var(--surface-2); border-color: var(--line); grid-column: 1 / -1; }
html[data-layout="modern"] .hero .arch { display: none; }
html[data-layout="modern"] .hero .hero-cta .btn.on-dark { background: var(--brand); border-color: transparent; }
html[data-layout="ringkas"] .hero { border-radius: var(--radius); }
html[data-layout="ringkas"] .hero h1 { font-size: 1.3rem; }
html[data-layout="ringkas"] .hero .count { font-size: 2rem; }
html[data-layout="ringkas"] .hero .hero-in { padding: 18px; flex-direction: column; gap: 12px; }
html[data-layout="ringkas"] .hero .arch, html[data-layout="ringkas"] .hero .tagline { display: none; }
@media (min-width: 900px) {
  .pub:not(.embed) .hero .hero-in { padding: 48px 44px 36px; }
  .pub:not(.embed) .hero h1 { font-size: 2.7rem; }
  .pub:not(.embed) .hero .count { font-size: 4rem; }
}

.hadith { padding: 22px; }
.hadith .arab { font-size: 1.35rem; color: var(--brand-deep); }
.hadith blockquote { margin: 10px 0 0; font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; line-height: 1.5; }
.hadith cite { display: block; margin-top: 10px; font-style: normal; font-size: .82rem; color: var(--muted); }

.audio { display: flex; align-items: center; gap: 12px; }
.audio .play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.audio .track { flex: 1; height: 6px; background: color-mix(in oklab, var(--ink) 10%, transparent); border-radius: 9px; overflow: hidden; }
.audio .track i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .3s linear; }

/* =========================================================
   MODE TV
   ========================================================= */
.tv {
  position: fixed; inset: 0; overflow: hidden; color: #F4EFE2;
  background: radial-gradient(120% 90% at 80% 0%, color-mix(in oklab, var(--brand) 70%, var(--accent)) 0%, var(--brand-deep) 45%, color-mix(in oklab, var(--brand-deep) 60%, black) 100%);
  display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); font-family: var(--font-body); container-type: size;
}
.tv.ornament { --orn-color: var(--accent); --orn-opacity: .07; }
.tv-top { display: flex; justify-content: space-between; align-items: center; padding: 2.4cqh 3.2cqw; gap: 2cqw; }
.tv-top .name { font-family: var(--font-display); font-size: clamp(20px, 2.6cqw, 48px); font-weight: 600; }
.tv-top .addr { font-size: clamp(11px, 1.05cqw, 18px); opacity: .7; }
.tv-top .dates { text-align: right; font-size: clamp(12px, 1.25cqw, 22px); }
.tv-top .dates .h { color: var(--accent); font-weight: 600; }
.tv-mid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3cqw; padding: 0 3.2cqw; align-items: center; min-height: 0; }
.tv-clock { font-size: clamp(64px, 13cqw, 240px); font-weight: 700; letter-spacing: -.04em; line-height: .95; font-variant-numeric: tabular-nums; }
.tv-clock small { font-size: .32em; opacity: .6; letter-spacing: 0; margin-left: .2em; }
.tv-next { margin-top: 2cqh; font-size: clamp(14px, 1.8cqw, 32px); }
.tv-next b { color: var(--accent); font-variant-numeric: tabular-nums; }
.tv-side { display: flex; flex-direction: column; gap: 2cqh; min-height: 0; }
.tv-card { background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12); border-radius: 2cqh; padding: 2.4cqh 2cqw; backdrop-filter: blur(6px); }
.tv-card .lbl { font-size: clamp(10px, .95cqw, 16px); text-transform: uppercase; letter-spacing: .16em; color: var(--accent); font-weight: 700; margin-bottom: 1cqh; }
.tv-card .arab { font-size: clamp(16px, 1.9cqw, 34px); }
.tv-card .tr { font-family: var(--font-display); font-size: clamp(13px, 1.45cqw, 26px); line-height: 1.45; }
.tv-card .src { opacity: .6; font-size: clamp(10px, .95cqw, 16px); margin-top: .8cqh; }
.tv-prayers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1cqw; padding: 2.4cqh 3.2cqw; }
.tv-p { border-radius: 1.8cqh; padding: 2cqh 1cqw; text-align: center; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); }
.tv-p .n { font-size: clamp(12px, 1.4cqw, 26px); opacity: .8; }
.tv-p .t { font-size: clamp(22px, 3.4cqw, 64px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tv-p .iq { font-size: clamp(10px, .95cqw, 16px); opacity: .55; }
.tv-p.on { background: var(--accent); color: color-mix(in oklab, var(--accent) 12%, black); border-color: transparent; box-shadow: 0 0 60px -10px var(--accent); }
.tv-p.on .n, .tv-p.on .iq { opacity: .8; }
.tv-ticker { background: rgb(0 0 0 / .25); border-top: 1px solid rgb(255 255 255 / .1); overflow: hidden; white-space: nowrap; font-size: clamp(13px, 1.5cqw, 28px); padding: 1.6cqh 0; }
.tv-ticker .track { display: inline-block; padding-left: 100%; animation: ticker 40s linear infinite; }
.tv-ticker .track span { margin-right: 6cqw; }
.tv-ticker .track span::before { content: "◆"; color: var(--accent); margin-right: 1.2cqw; font-size: .7em; vertical-align: .1em; }
@keyframes ticker { to { transform: translateX(-100%); } }
.tv-overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: color-mix(in oklab, var(--brand-deep) 70%, black); z-index: 5; transition: opacity 1.2s, background 1.5s; }
.tv-overlay .big { font-family: var(--font-display); font-size: clamp(36px, 6cqw, 120px); font-weight: 600; }
.tv-overlay .cd { font-size: clamp(60px, 14cqw, 260px); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); line-height: 1; }
.tv-overlay.dim { background: #030605; }
.tv-overlay.dim > * { opacity: .25; transition: opacity 3s; }
.tv-ctrl { position: absolute; right: 14px; bottom: 14px; z-index: 10; display: flex; gap: 8px; opacity: .2; transition: opacity .2s; }
.tv-ctrl:hover, .tv-ctrl:focus-within { opacity: 1; }
@media (max-aspect-ratio: 1/1) {
  .tv-mid { grid-template-columns: 1fr; gap: 3cqh; }
  .tv-prayers { grid-template-columns: repeat(3, 1fr); }
  .tv-clock { font-size: 22cqw; }
}

/* =========================================================
   LAUNCHER & ONBOARDING
   ========================================================= */
.launch { min-height: 100dvh; }
.launch-hero { color: #fff; padding: 56px 20px 72px; background: radial-gradient(120% 100% at 80% 0%, color-mix(in oklab, var(--brand) 65%, var(--accent)) 0%, var(--brand) 40%, var(--brand-deep) 100%); }
.launch-hero.ornament { --orn-color: var(--accent); --orn-opacity: .12; }
.launch-hero .in, .launch-body { max-width: 1120px; margin: 0 auto; }
.launch-hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.02; }
.launch-hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.launch-hero p { max-width: 620px; margin-top: 14px; font-size: 1.05rem; opacity: .85; }
.launch-body { padding: 0 20px 60px; margin-top: -40px; position: relative; }
.launch-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; min-height: 180px; }
.launch-card h3 { font-family: var(--font-display); font-size: 1.3rem; }
.launch-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; font-size: .9rem; }

.ob { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.ob-aside { display: none; }
.ob-main { padding: 20px 18px 40px; max-width: 560px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) {
  .ob { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .ob-aside { display: flex; flex-direction: column; justify-content: space-between; padding: 44px; color: #fff; background: radial-gradient(130% 100% at 100% 0%, color-mix(in oklab, var(--brand) 60%, var(--accent)), var(--brand) 40%, var(--brand-deep)); }
  .ob-aside.ornament { --orn-color: var(--accent); --orn-opacity: .12; }
  .ob-main { padding: 56px 40px; justify-content: center; }
}

.swatch { width: 100%; aspect-ratio: 1.6; border-radius: var(--r-sm); display: flex; overflow: hidden; border: 1px solid var(--line); }
.swatch i { flex: 1; }
.swatch i:first-child { flex: 2.2; }
.color-input { width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 4px; background: var(--surface); cursor: pointer; flex: none; }

.perm td { text-align: center; font-size: .82rem; }
.perm td:first-child { text-align: left; font-weight: 600; }

.scanner { aspect-ratio: 1; max-width: 300px; margin: 0 auto; border-radius: var(--radius); background: #111814; position: relative; overflow: hidden; display: grid; place-items: center; }
.scanner .frame { width: 62%; aspect-ratio: 1; border: 3px solid var(--accent); border-radius: 16px; box-shadow: 0 0 0 999px rgb(0 0 0 / .45); }
.scanner .laser { position: absolute; left: 19%; right: 19%; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: scan 2s ease-in-out infinite alternate; top: 22%; }
@keyframes scan { to { top: 76%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  .tv-ticker .track { animation: none; padding-left: 0; }
}

/* =========================================================
   SITUS PUBLIK — poles v2 (header, hero, kajian, footer)
   ========================================================= */
.pub-top { gap: 8px; }
.pub-donate { min-height: 38px; padding: 0 14px; }
.pub-nav a { position: relative; }
.pub-nav a.active { background: transparent; }
.pub-nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }

/* hero */
.hero h1 { margin-top: 6px; }
.hero .tagline { opacity: .85; margin-top: 4px; font-size: .95rem; }
.hero .next-label b { color: var(--accent); font-weight: 700; }
html[data-layout="modern"] .hero .next-label b { color: var(--brand); }
.hero .next-sub { font-size: .78rem; opacity: .7; margin-top: 6px; }
.hero .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero .hero-cta .btn { width: 100%; }
html[data-layout="klasik"] .hero .hero-cta { width: 100%; max-width: 420px; }
.hero-prayers .t { font-size: .92rem; }
.hero-prayers .on { box-shadow: 0 6px 18px -8px rgb(0 0 0 / .45); }
@media (max-width: 899px) { .hero .hero-in { padding: 24px 18px 18px; gap: 16px; } html[data-layout="klasik"] .hero .hero-in { padding: 30px 18px 18px; } }
@media (min-width: 900px) {
  .pub:not(.embed) .hero .hero-cta { display: flex; width: auto; }
  .pub:not(.embed) .hero .hero-cta .btn { width: auto; min-width: 180px; }
  .pub:not(.embed) .hero-prayers { padding: 12px 8px; gap: 8px; }
  .pub:not(.embed) .hero-prayers .n { font-size: .78rem; }
  .pub:not(.embed) .hero-prayers .t { font-size: 1.25rem; }
  .pub:not(.embed) .hero-prayers > div { padding: 8px 0; }
}

/* pintasan layanan */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 6px; margin: 18px 0 6px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; font-size: .74rem; font-weight: 600; text-align: center; line-height: 1.2; padding: 6px 2px; border-radius: var(--r-sm); color: color-mix(in oklab, var(--ink) 85%, var(--bg)); }
.quick a:hover { background: color-mix(in oklab, var(--ink) 4%, transparent); }
.quick .q-ic { width: 52px; height: 52px; border-radius: calc(var(--r-sm) + 4px); display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--brand); box-shadow: var(--shadow-sm); }
.quick a:first-child .q-ic { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
@media (min-width: 900px) { .pub:not(.embed) .quick { grid-template-columns: repeat(8, 1fr); margin-top: 22px; } .pub:not(.embed) .quick a { font-size: .82rem; } }

/* judul section */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 30px 0 12px; }
.sec-head h2 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -.01em; }
.sec-head p { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.sec-head a { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: .85rem; font-weight: 700; color: var(--brand); text-decoration: none; padding: 6px 0; }

/* scroller horizontal di HP, grid di desktop */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 320px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 900px) { .pub:not(.embed) .scroller { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: unset; overflow: visible; margin: 0; padding: 0; } .pub:not(.embed) .scroller > :nth-child(n+4) { display: none; } }

.date-box { width: 52px; flex: none; text-align: center; padding: 6px 0 7px; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand-deep); display: flex; flex-direction: column; line-height: 1.1; }
.date-box span { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.date-box b { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin: 1px 0; }

.kajian-card { display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--accent); }
.kajian-title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.kajian-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line-strong); margin-top: auto; }
@media (max-width: 380px) { .hide-xs { display: none; } }
.agenda-card { height: 100%; }

/* pengumuman ringkas */
.ann { align-items: flex-start; }
.ann .title { font-size: .95rem; }
.ann .meta { margin-top: 2px; }
.ann-date { width: 44px; flex: none; text-align: center; line-height: 1.05; padding-top: 2px; }
.ann-date b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--brand-deep); }
.ann-date span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

/* kampanye */
.camp-card { display: flex; flex-direction: column; }
.camp-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin: 8px 0 2px; }
.camp-amt { margin: 14px 0 8px; }
.camp-amt b { font-size: 1.3rem; letter-spacing: -.01em; }

/* laporan */
.report-cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; background: var(--brand-soft); border-color: transparent; box-shadow: none; }
.report-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 22px; }
.report-stats > div { display: flex; flex-direction: column; }
.report-stats b { font-size: 1.05rem; }
@media (max-width: 640px) { .report-cta { flex-direction: column; align-items: stretch; } .report-stats { grid-template-columns: repeat(3, 1fr); padding: 12px 0; border-block: 1px solid var(--line); } }

/* agenda: kajian rutin pekanan */
.ag-seg button { gap: 6px; }
.week { display: grid; grid-template-columns: 1fr; }
.week-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line); min-width: 0; }
.week-row:first-child { border-top: 0; }
.week-row:not(.empty) { box-shadow: inset 3px 0 0 var(--accent); }
.week-day { width: 64px; flex: none; font-weight: 700; font-size: .88rem; }
.week-row.empty .week-day { color: var(--faint); font-weight: 500; }
@media (min-width: 900px) {
  .pub:not(.embed) .week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .pub:not(.embed) .week-row { flex-direction: column; align-items: flex-start; gap: 6px; border-top: 0; border-left: 1px solid var(--line); min-height: 120px; padding: 14px; }
  .pub:not(.embed) .week-row:first-child { border-left: 0; }
  .pub:not(.embed) .week-row:not(.empty) { box-shadow: inset 0 3px 0 var(--accent); background: var(--surface-2); }
  .pub:not(.embed) .week-row .truncate { white-space: normal; }
}

/* donasi: QRIS tampil lebih dulu di HP */
@media (max-width: 1023px) { .donasi-grid .donasi-side { order: -1; } }

/* bottom nav: pill aktif */
.pub-bottom a .nav-ic { display: grid; place-items: center; width: 52px; height: 28px; border-radius: 999px; transition: background .2s; }
.pub-bottom a.active .nav-ic { background: var(--brand-soft-2); }
.pub-bottom a { padding: 7px 0 9px; }

/* footer */
.pub-foot { background: var(--surface-2); padding: 34px 16px 22px; }
.pub-foot .in { gap: 28px 48px; }
.foot-brand { flex: 1 1 300px; }
.foot-links { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-links > div { display: flex; flex-direction: column; gap: 8px; min-width: 130px; }
.foot-h { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 2px; }
.foot-links a { text-decoration: none; font-size: .9rem; color: color-mix(in oklab, var(--ink) 78%, var(--bg)); }
.foot-links a:hover { color: var(--brand); }
.foot-bottom { margin-top: 26px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: .78rem; }
.foot-bottom a { color: var(--brand); font-weight: 600; }

/* =========================================================
   KONSOL PEMILIK PLATFORM
   ========================================================= */
.con .adm-side { background: #121B18; }
.con .side-brand .sub { font-size: .7rem; }
.con-role { margin: 0 14px 10px; padding: 12px; border-radius: var(--r-sm); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); color: #fff; }
.con-role .select { min-height: 40px; background: rgb(255 255 255 / .1); color: #fff; border-color: rgb(255 255 255 / .18); font-weight: 600; }
.con-role .select option { color: #14201C; }
.side-nav a.locked { opacity: .38; }
.side-nav a .lock { margin-left: auto; }
.con .side-nav a.active { box-shadow: inset 3px 0 0 var(--accent); }
a.stat { text-decoration: none; }

.funnel-bar { height: 10px; margin-top: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), color-mix(in oklab, var(--brand) 50%, var(--accent))); }

.map.nusantara { min-height: 360px; border-radius: 0; background: color-mix(in oklab, var(--brand) 10%, #DCE6E8); }
.map.nusantara .isle { position: absolute; border-radius: 48% 52% 45% 55%; background: #F3F1EA; box-shadow: 0 0 0 1px rgb(0 0 0 / .06); }
.map .cluster { position: absolute; transform: translate(-50%, -50%); min-width: 34px; height: 34px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; background: color-mix(in oklab, var(--brand) 85%, transparent); box-shadow: 0 0 0 5px color-mix(in oklab, var(--brand) 25%, transparent); }
.heat-row { display: grid; grid-template-columns: minmax(0, 1.1fr) 1fr 52px; gap: 10px; align-items: center; }
.heat { height: 14px; border-radius: 4px; background: color-mix(in oklab, var(--brand) calc(var(--h) * 100%), #E7EAE6); }

.score { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 3px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.score b { display: grid; place-items: center; min-width: 26px; height: 22px; border-radius: 999px; color: #fff; font-size: .74rem; }
.score.ok { background: var(--ok-soft); color: var(--ok); } .score.ok b { background: var(--ok); }
.score.warn { background: var(--warn-soft); color: var(--warn); } .score.warn b { background: var(--warn); }
.score.bad { background: var(--bad-soft); color: var(--bad); } .score.bad b { background: var(--bad); }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: color-mix(in oklab, var(--brand) 4%, transparent); }

.range { width: 100%; accent-color: var(--brand); margin: 6px 0 2px; }
.age-bar { display: flex; height: 12px; border-radius: 4px; overflow: hidden; gap: 2px; min-width: 140px; }
.age-bar i { background: var(--brand); }
.rank { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .82rem; background: color-mix(in oklab, var(--ink) 7%, transparent); }
.rank.top { background: var(--accent); color: color-mix(in oklab, var(--accent) 15%, black); }
.tag-cloud { padding: 4px 12px; border-radius: 999px; background: color-mix(in oklab, var(--brand) calc(var(--w) * 22%), white); color: var(--brand-deep); font-weight: 700; font-size: calc(.75rem + var(--w) * .5rem); }
.vote { width: 50px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 4px 0; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--brand); font-size: .85rem; }
.vote b { color: var(--ink); }
.svc { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.svc.normal { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.svc.terganggu { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }

/* badge terverifikasi */
.verified { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--brand-deep); background: var(--brand-soft-2); }
@media (max-width: 420px) { .pub-top .verified span { display: none; } .pub-top .verified { padding: 4px; } }

/* akses bantuan di panel DKM */
.imp-req { margin-bottom: 16px; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.imp-banner { position: sticky; top: 66px; z-index: 35; display: flex; align-items: center; gap: 10px; margin: -6px 0 16px; padding: 10px 14px; border-radius: var(--r-sm); background: #7A4B0E; color: #fff; font-size: .88rem; box-shadow: var(--shadow); }
@media (min-width: 1024px) { .imp-banner { top: 76px; } }

/* halaman klaim publik */
.claim { min-height: 100dvh; }
.claim-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 760px; margin: 0 auto; }
.claim-hero { color: #fff; padding: 34px 20px 64px; background: radial-gradient(120% 100% at 80% 0%, color-mix(in oklab, var(--brand) 65%, var(--accent)), var(--brand) 45%, var(--brand-deep)); --orn-color: var(--accent); --orn-opacity: .12; }
.claim-hero .in { max-width: 720px; margin: 0 auto; }
.claim-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3rem); margin-top: 8px; letter-spacing: -.02em; }
.claim-hero p { opacity: .85; margin-top: 10px; max-width: 560px; }
.claim-main { max-width: 720px; margin: -36px auto 40px; padding: 22px 18px; background: var(--surface); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-lg); position: relative; }
@media (max-width: 760px) { .claim-main { margin: -36px 12px 32px; } }

/* =========================================================
   RUANG JAMAAH (media sosial berbasis masjid)
   ========================================================= */
.comm { max-width: 720px; margin: 0 auto; }
.comm-head { position: relative; isolation: isolate; color: #fff; padding: 18px; border-radius: calc(var(--radius) + 4px); margin-bottom: 14px; background: radial-gradient(130% 120% at 100% 0%, color-mix(in oklab, var(--brand) 65%, var(--accent)), var(--brand) 45%, var(--brand-deep)); --orn-color: #fff; --orn-opacity: .07; }
.avatar-btn { border: 0; background: none; padding: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 2px var(--accent); }
.composer { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .22); background: rgb(255 255 255 / .12); color: rgb(255 255 255 / .85); cursor: pointer; text-align: left; font-size: .92rem; }
.composer:hover { background: rgb(255 255 255 / .18); }
.comm-tabs { margin-bottom: 14px; }
.join-cta { margin-bottom: 14px; border-color: var(--accent); }

.feed { display: flex; flex-direction: column; gap: 12px; }
.post { padding: 16px; }
.post.pinned { border-left: 3px solid var(--brand); }
.post.pending { opacity: .75; border-style: dashed; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-head .icon-btn { width: 36px; height: 36px; margin-right: -6px; }
.post-body { white-space: pre-line; line-height: 1.6; }
.post-photos { display: grid; gap: 4px; margin-top: 12px; border-radius: var(--r-sm); overflow: hidden; }
.post-photos .media { border-radius: 0; }
.post-photos.n1 { grid-template-columns: 1fr; } .post-photos.n1 .media { aspect-ratio: 16/10; }
.post-photos.n2 { grid-template-columns: 1fr 1fr; } .post-photos.n2 .media { aspect-ratio: 1; }
.post-photos.n3, .post-photos.n4 { grid-template-columns: 1fr 1fr; } .post-photos.n3 .media, .post-photos.n4 .media { aspect-ratio: 4/3; }
.post-photos.n3 .media:first-child { grid-row: span 2; aspect-ratio: auto; }
.src-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: .8rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.reacts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.react { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: .8rem; font-weight: 600; color: color-mix(in oklab, var(--ink) 78%, var(--bg)); cursor: pointer; }
.react b { color: var(--ink); }
.react:hover { border-color: var(--brand); }
.react.on { background: var(--brand-soft-2); border-color: var(--brand); color: var(--brand-deep); }
.react.featured { border-color: var(--accent); }
.react[disabled] { opacity: .55; cursor: default; }
.post-foot { display: flex; align-items: center; gap: 4px; margin: 10px -8px -6px; padding-top: 8px; border-top: 1px solid var(--line); }

.doa-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--brand-soft); font-size: .88rem; color: var(--brand-deep); }
.follow-up { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--ok-soft); color: var(--ok); font-size: .85rem; }
.doa-card { border-left: 3px solid var(--accent); }
.slot-box { margin-top: 12px; padding: 12px; border-radius: var(--r-sm); border: 1px dashed var(--line-strong); display: flex; flex-direction: column; gap: 8px; }
.rsvp { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.listing-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.teaser-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doa-teaser { display: flex; flex-direction: column; text-decoration: none; background: var(--accent-soft); border-color: transparent; }

.type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type-pick .option-card > div { padding: 10px 12px; }
.comment { display: flex; gap: 8px; align-items: flex-start; }
.comment.reply { margin: 8px 0 0 4px; }
.bubble { padding: 8px 12px; border-radius: 14px; background: color-mix(in oklab, var(--ink) 5%, var(--surface)); }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--brand); cursor: pointer; }
.guideline { white-space: pre-wrap; font-family: var(--font-body); font-size: .85rem; line-height: 1.6; max-height: 200px; overflow: auto; margin: 0; padding: 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }

/* panel DKM */
.mod-body { margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--line-strong); background: var(--surface-2); border-radius: 0 var(--r-xs) var(--r-xs) 0; font-size: .95rem; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.set-row:first-child { border-top: 0; padding-top: 0; }
.set-row .select { width: auto; max-width: 56%; min-height: 40px; font-size: .88rem; }
@media (max-width: 560px) { .set-row { flex-direction: column; align-items: stretch; } .set-row .select { max-width: none; width: 100%; } }

/* titip doa: adab & hadits */
.adab { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.doa-hadith { background: var(--accent-soft); border-color: transparent; box-shadow: none; }
.doa-hadith .arab { font-size: 1.2rem; }
.doa-hadith blockquote { font-size: 1rem; }

/* =========================================================
   DETAIL KAJIAN
   ========================================================= */
.kajian-card { position: relative; }
.kajian-title a.stretch { color: inherit; text-decoration: none; }
.kajian-title a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.kajian-card .btn { position: relative; z-index: 1; }
.recent-kj { text-decoration: none; }

.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; font-size: .88rem; font-weight: 700; color: var(--brand); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.kj { max-width: 1080px; margin: 0 auto; }
.kj-hero { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.kj-flyer { max-width: 340px; width: 100%; margin: 0 auto; }
.kj-info { display: flex; flex-direction: column; gap: 14px; }
.kj-title { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -.015em; line-height: 1.15; }
.kj-ustadz { display: flex; align-items: center; gap: 10px; }
.kj-facts { display: grid; gap: 10px; }
.kj-facts > div { display: flex; gap: 10px; align-items: flex-start; color: var(--brand); }
.kj-facts > div > span { color: var(--ink); }
.kj-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kj-h { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; }
@media (min-width: 900px) {
  .pub:not(.embed) .kj-hero { grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: center; }
  .pub:not(.embed) .kj-flyer { margin: 0; }
  .pub:not(.embed) .kj-title { font-size: 2.5rem; }
  .pub:not(.embed) .kj-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.chapters { display: flex; flex-direction: column; margin-top: 12px; border-top: 1px solid var(--line); }
.chapter { display: flex; gap: 12px; align-items: baseline; text-align: left; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: .9rem; cursor: pointer; color: var(--ink); }
.chapter .mono { color: var(--brand); font-weight: 700; font-size: .82rem; min-width: 44px; }
.chapter:hover { color: var(--brand); }
.kj-points { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.kj-points li { padding-left: 4px; line-height: 1.6; }
.kj-points li::marker { color: var(--accent-deep); font-weight: 700; }
.qa summary { font-weight: 700; cursor: pointer; padding: 6px 0; }
.qa p { padding: 0 0 8px; color: color-mix(in oklab, var(--ink) 80%, var(--bg)); }
.series { display: flex; flex-direction: column; gap: 2px; }
.series-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.series-item:hover { background: color-mix(in oklab, var(--ink) 4%, transparent); }
.series-item.on { background: var(--brand-soft); font-weight: 700; }
.series-item.disabled { pointer-events: none; color: var(--muted); }
.dotst { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex: none; }
.dotst.ok { background: var(--ok); } .dotst.brand { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft-2); }

/* bagikan */
.share-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .share-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.share-preview { max-width: 300px; width: 100%; margin: 0 auto; }
.share-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.share-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-size: .78rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.share-btn span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.share-btn:first-child span { background: #1FA855; color: #fff; }
.share-btn:hover { border-color: var(--brand); }

/* flyer template (skala dengan container) */
.flyer { container-type: inline-size; position: relative; isolation: isolate; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-sm); display: flex; flex-direction: column; color: #fff; font-family: var(--font-body); box-shadow: var(--shadow); --orn-color: var(--accent); --orn-opacity: .14;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in oklab, var(--brand) 70%, var(--accent)) 0%, var(--brand) 45%, var(--brand-deep) 100%); padding: 6%; gap: 0; }
/* padding/gap flyer tidak boleh memakai cqw (akan mengacu ke layar), jadi pakai persen & margin anak */
:where(.flyer:not(.fl-modern)) > * + * { margin-top: 3cqw; }
:where(.flyer.fl-story) > * + * { margin-top: 5cqw; }
.flyer.fl-story { aspect-ratio: 9 / 16; padding: 8% 7%; }
.fl-top { display: flex; align-items: center; justify-content: center; gap: 2cqw; font-size: 3.4cqw; font-weight: 700; letter-spacing: .02em; }
.fl-logo { width: 7cqw; height: 7cqw; border-radius: 1.5cqw; object-fit: cover; }
.fl-arch { margin: auto 2cqw 0; padding: 11cqw 6cqw 6cqw; text-align: center; border: .6cqw solid var(--accent); border-radius: 40cqw 40cqw 2cqw 2cqw; background: rgb(0 0 0 / .12); display: flex; flex-direction: column; gap: 1.6cqw; }
.fl-eye { font-size: 2.8cqw; font-weight: 800; text-transform: uppercase; letter-spacing: .22em; color: var(--accent); }
.fl-seri { font-size: 3.2cqw; opacity: .8; }
.fl-title { font-family: var(--font-display); font-weight: 600; font-size: 8cqw; line-height: 1.08; letter-spacing: -.01em; }
.fl-head { font-size: 3.6cqw; font-style: italic; color: color-mix(in oklab, var(--accent) 70%, white); }
.fl-who { text-align: center; font-size: 4.6cqw; font-weight: 700; display: flex; flex-direction: column; }
.fl-who small { font-size: 2.8cqw; font-weight: 500; opacity: .75; }
.fl-when { text-align: center; display: flex; flex-direction: column; gap: .6cqw; font-size: 3.4cqw; padding: 2.4cqw; border-radius: 2cqw; background: rgb(255 255 255 / .1); }
.fl-when b { font-size: 4.2cqw; color: var(--accent); }
.fl-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 2cqw; font-size: 2.6cqw; opacity: .9; }
.fl-qr { background: #fff; padding: 1cqw; border-radius: 1.4cqw; line-height: 0; flex: none; }
.fl-qr svg { width: 10cqw; height: 10cqw; }
.fl-story .fl-title { font-size: 9.5cqw; }
.fl-story .fl-arch { margin-top: auto; padding-top: 16cqw; }
.fl-story .fl-when { margin-bottom: auto; }
.flyer.fl-modern { flex-direction: row; padding: 0; background: var(--bg); color: var(--ink); }
.fl-modern .fl-side { width: 34%; background: var(--brand); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1cqw; border-radius: 0 40cqw 40cqw 0; }
.fl-modern .fl-day { font-size: 3.6cqw; text-transform: uppercase; letter-spacing: .14em; opacity: .8; }
.fl-modern .fl-date { font-family: var(--font-display); font-size: 17cqw; font-weight: 600; line-height: 1; }
.fl-modern .fl-mon { font-size: 3.8cqw; font-weight: 700; color: var(--accent); }
.fl-modern .fl-main { flex: 1; padding: 8cqw 6cqw; display: flex; flex-direction: column; gap: 2.4cqw; justify-content: center; }
.fl-modern .fl-eye { color: var(--accent-deep); letter-spacing: .14em; }
.fl-modern .fl-title { color: var(--brand-deep); font-size: 7.4cqw; }
.fl-modern .fl-head { color: var(--accent-deep); font-size: 3.6cqw; }
.fl-modern .fl-who { text-align: left; font-size: 4.2cqw; margin-top: 2cqw; }
.fl-modern .fl-meta { font-size: 3.2cqw; color: var(--muted); }
.fl-modern .fl-foot { margin-top: 4cqw; font-size: 2.6cqw; color: var(--muted); }

/* editor DKM */
.kj-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.kj-thumb { width: 74px; flex: none; }
.kj-thumb .flyer { box-shadow: none; border-radius: 6px; }
.tpl-pick { display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 8px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; }
.tpl-pick.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.tpl-mini { width: 100%; max-width: 110px; } .tpl-mini .flyer { box-shadow: none; }
.flyer-stage { max-width: 380px; width: 100%; margin: 0 auto; }
.flyer-stage.story { max-width: 300px; }
.ai-loading { display: flex; gap: 12px; align-items: center; padding: 22px; border-radius: var(--r-sm); background: var(--info-soft); color: var(--info); animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .65; } }
.pt-n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-deep); margin-top: 10px; }

/* =========================================================
   SITUS UTAMA cintamasjid.or.id
   ========================================================= */
.web { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.web main { flex: 1; }
.web-in { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.web-narrow { max-width: 800px; }
.web-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: color-mix(in oklab, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.web-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-deep); }
.web-brand b { display: block; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; font-weight: 600; }
.web-brand small { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .02em; }
.web-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--accent); flex: none; }
.web-nav { display: none; gap: 2px; margin-left: 18px; }
.web-nav a { position: relative; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--muted); }
.web-nav a:hover { color: var(--ink); }
.web-nav a.active { color: var(--brand); }
.web-nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.web-login, .web-cta { display: none; }
@media (min-width: 960px) {
  .web-top { padding: 14px 28px; }
  .web-nav, .web-login, .web-cta { display: inline-flex; }
  .web-menu { display: none; }
  .web-in { padding: 0 28px; }
}

.web-hero { color: #fff; padding: 36px 0 44px; background: radial-gradient(120% 100% at 85% 0%, color-mix(in oklab, var(--brand) 62%, var(--accent)) 0%, var(--brand) 42%, var(--brand-deep) 100%); --orn-color: var(--accent); --orn-opacity: .1; overflow: hidden; }
.web-hero-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.web-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 6.4vw, 3.6rem); line-height: 1.06; letter-spacing: -.02em; margin-top: 10px; }
.web-hero .lead { margin-top: 14px; font-size: 1.05rem; opacity: .88; max-width: 560px; }
.hero-search { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 22px; padding: 6px 6px 6px 44px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-lg); max-width: 560px; color: var(--ink); }
.hero-search > .ic { position: absolute; left: 16px; color: var(--muted); }
.hero-search .input { border: 0; box-shadow: none; min-height: 46px; padding: 0; background: transparent; }
.hero-search .btn { border-radius: 999px; flex: none; }
.web-sub .hero-search { max-width: 680px; }
.hero-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: .92rem; opacity: .9; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .35); padding-bottom: 2px; }
.hero-link:hover { opacity: 1; }
@media (min-width: 960px) { .web-hero { padding: 64px 0 72px; } .web-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; } }

/* visual hero */
.hero-visual { position: relative; height: 430px; max-width: 420px; width: 100%; margin: 0 auto; }
.hv-phone { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 236px; height: 430px; border-radius: 34px; padding: 9px; background: #0f1412; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .55); }
.hv-screen { height: 100%; border-radius: 26px; background: #FAF7F0; color: #17231F; padding: 16px 12px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; font-size: .72rem; }
.hv-top { display: flex; justify-content: space-between; align-items: baseline; } .hv-top b { font-family: var(--font-display); font-size: .95rem; color: var(--brand-deep); } .hv-top span { color: #7a827e; }
.hv-saldo { border-radius: 14px; padding: 12px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); display: flex; flex-direction: column; gap: 2px; }
.hv-saldo span { opacity: .75; } .hv-saldo b { font-family: var(--font-display); font-size: 1.15rem; }
.hv-chips { display: flex; gap: 4px; margin-top: 6px; } .hv-chips i { font-style: normal; font-size: .6rem; padding: 2px 6px; border-radius: 6px; background: rgb(255 255 255 / .15); }
.hv-row { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: #fff; border: 1px solid rgb(0 0 0 / .06); }
.hv-row b.in { color: var(--ok); } .hv-row b.out { color: #17231F; }
.hv-ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: #EEF0EE; } .hv-ic.in { background: var(--ok-soft); color: var(--ok); }
.hv-fab { margin-top: auto; align-self: center; display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; }
.hv-card { position: absolute; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: #fff; color: #17231F; box-shadow: var(--shadow-lg); font-size: .78rem; }
.hv-card span { color: #7a827e; }
.hv-report { left: 0; bottom: 70px; }
.hv-flyer { position: absolute; right: 0; top: 30px; width: 128px; transform: rotate(5deg); }
.hv-flyer .flyer { box-shadow: var(--shadow-lg); }
@media (max-width: 420px) { .hv-report { left: -6px; } .hv-flyer { right: -8px; width: 110px; } }

/* section umum */
.web-sec { padding: 44px 0; }
.web-sec.tight { padding: 26px 0 8px; }
.web-sec.alt { background: color-mix(in oklab, var(--brand) 5%, var(--bg)); }
.web-head { text-align: center; max-width: 680px; margin: 0 auto 22px; }
.web-head h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -.015em; margin-top: 6px; line-height: 1.15; }
.web-head p { color: var(--muted); margin-top: 8px; }
.web-head.light h2 { color: #fff; }
@media (min-width: 960px) { .web-sec { padding: 72px 0; } }
.web-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.web-stats > div { background: var(--surface); padding: 18px 16px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.web-stats b { font-family: var(--font-display); font-size: 1.7rem; color: var(--brand-deep); font-weight: 600; }
.web-stats span { font-size: .82rem; color: var(--muted); }
@media (min-width: 760px) { .web-stats { grid-template-columns: repeat(4, 1fr); } }
.problem { display: flex; flex-direction: column; gap: 8px; }
.problem h3, .feat h3, .trust-card h3 { font-size: 1.05rem; margin-top: 4px; }
.problem .solve { color: var(--brand-deep); font-weight: 600; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.feat { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.steps3 { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 14px; max-width: 980px; }
.steps3 li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps3 h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step-n { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; background: var(--accent-soft); color: var(--accent-deep); }
.step-n.sm { width: 30px; height: 30px; font-size: .95rem; }
@media (min-width: 860px) { .steps3 { grid-template-columns: repeat(3, 1fr); } .steps3 li { flex-direction: column; } }
.trust { color: #fff; background: radial-gradient(120% 120% at 0% 0%, color-mix(in oklab, var(--brand) 70%, var(--accent)), var(--brand) 40%, var(--brand-deep)); --orn-color: var(--accent); --orn-opacity: .1; }
.trust-card { padding: 20px; border-radius: var(--radius); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); }
.trust-card .icon-tile { background: rgb(255 255 255 / .14); color: var(--accent); }
.trust-card p { opacity: .82; margin-top: 4px; }
.saying blockquote { margin: 0 0 16px; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.5; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 2px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq[open] summary .ic { transform: rotate(180deg); }
.faq p { padding: 0 2px 16px; color: color-mix(in oklab, var(--ink) 80%, var(--bg)); }
.final-cta { text-align: center; color: #fff; padding: 40px 22px; border-radius: calc(var(--radius) + 8px); background: radial-gradient(120% 120% at 50% 0%, color-mix(in oklab, var(--brand) 65%, var(--accent)), var(--brand) 45%, var(--brand-deep)); --orn-color: var(--accent); --orn-opacity: .12; }
.final-cta h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
.final-cta p { opacity: .85; margin: 8px 0 20px; }

/* sub halaman */
.web-sub { color: #fff; padding: 34px 0 30px; background: radial-gradient(120% 120% at 90% 0%, color-mix(in oklab, var(--brand) 65%, var(--accent)), var(--brand) 45%, var(--brand-deep)); --orn-color: var(--accent); --orn-opacity: .1; }
.web-sub h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: -.015em; margin-top: 8px; line-height: 1.1; }
.web-sub p { opacity: .85; margin-top: 10px; max-width: 640px; }
.feat-nav { margin: 18px 0 6px; }
.feat-row { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.feat-copy h2 { font-family: var(--font-display); font-size: 1.7rem; margin: 12px 0 6px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li .ic { color: var(--ok); margin-top: 3px; }
.feat-visual { max-width: 460px; width: 100%; margin: 0 auto; }
.fv-tv { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 8px solid #111; box-shadow: var(--shadow-lg); }
.fv-flyer { max-width: 280px; margin: 0 auto; }
.fv-card { box-shadow: var(--shadow); }
@media (min-width: 900px) { .feat-row { grid-template-columns: 1fr 1fr; gap: 48px; } .feat-row.rev .feat-copy { order: 2; } }
.feat-more { text-align: center; padding: 34px 0 8px; } .feat-more h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 14px; }

.cari-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
@media (min-width: 960px) { .cari-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } .cari-grid aside { position: sticky; top: 90px; } }
.dir-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.dir-name { font-size: 1.02rem; }
.dir-act { flex: none; }
@media (max-width: 520px) { .dir-act { display: none; } }
.city-link { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-size: .9rem; }
.city-link:hover { background: color-mix(in oklab, var(--ink) 4%, transparent); }
.city-link.on { background: var(--brand-soft); font-weight: 700; color: var(--brand-deep); }

.price-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .price-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.price.main { border: 2px solid var(--brand); box-shadow: var(--shadow); padding: 24px; }
.price h2 { font-family: var(--font-display); font-size: 2rem; margin-top: 4px; }
.price-v { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--brand-deep); margin: 6px 0 4px; }
.price-v span { font-family: var(--font-body); font-size: .9rem; color: var(--muted); font-weight: 500; }
.price-v.sm { font-size: 1.5rem; }
.price .ticks { margin-bottom: 20px; }
.video { text-align: left; padding: 10px; }
.video .media { display: grid; place-items: center; }
.play-b { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .9); color: var(--brand); }
.placeholder { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); font-size: .8rem; font-weight: 600; }
.policy { display: flex; gap: 14px; align-items: flex-start; }

.web-foot { color: #fff; background: var(--brand-deep); --orn-color: var(--accent); --orn-opacity: .06; padding: 40px 0 22px; margin-top: 20px; }
.web-foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.web-foot-grid .foot-about { grid-column: 1 / -1; }
.web-foot .foot-h { color: var(--accent); }
.web-foot-grid a:not(.btn):not(.web-brand) { display: block; color: rgb(255 255 255 / .78); text-decoration: none; padding: 4px 0; font-size: .9rem; }
.web-foot-grid a:not(.btn):not(.web-brand):hover { color: #fff; }
.web-foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin-top: 28px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .12); font-size: .78rem; color: rgb(255 255 255 / .6); }
@media (min-width: 860px) { .web-foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .web-foot-grid .foot-about { grid-column: auto; } }
.proto-pill { position: fixed; right: 14px; bottom: 14px; z-index: 50; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .76rem; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-lg); opacity: .85; }
.proto-pill:hover { opacity: 1; }

/* klaim di dalam situs utama */
.web .claim { min-height: 0; }

/* program amal */
.cs-link { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.dom-path { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.dom-path p { margin-top: 2px; }
.funder .cs-link { color: var(--brand-deep); }
details.tech { margin-top: 10px; } details.tech summary { cursor: pointer; color: var(--muted); font-weight: 600; }

/* ---------- Mode TV: lapisan Ayat & Hadits / Live Makkah ---------- */
.tv-layer { position: absolute; inset: 0; display: none; z-index: 5; background: var(--brand-deep, #062e25); color: #fff; }
.tv[data-screen="ayat_hadits"] .tv-layer[data-layer="ayat_hadits"],
.tv[data-screen="makkah"] .tv-layer[data-layer="makkah"] { display: flex; }
/* hitung mundur iqamah selalu di atas lapisan lain */
.tv .tv-overlay { z-index: 8; }
.tv-ah { flex-direction: column; justify-content: center; gap: 4cqh; padding: 6cqh 7cqw 16cqh; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, var(--brand) 0%, var(--brand-deep, #062e25) 70%); }
.tv-ah-item .lbl { font-size: clamp(12px, 1.1cqw, 20px); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 1.5cqh; }
.tv-ah-item .arab { font-family: 'Amiri', serif; font-size: clamp(26px, 3.4cqw, 64px); line-height: 1.7; }
.tv-ah-item .tr { font-family: var(--font-display); font-size: clamp(16px, 1.9cqw, 36px); line-height: 1.45; margin-top: 1cqh; max-width: 70cqw; margin-inline: auto; }
.tv-ah-item .src { opacity: .65; font-size: clamp(12px, 1.1cqw, 20px); margin-top: 1cqh; }
.tv-ah-item + .tv-ah-item { border-top: 1px solid rgb(255 255 255 / .15); padding-top: 4cqh; }
.tv-makkah { background: #000; }
.tv-makkah-frame, .tv-makkah-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-live-badge { position: absolute; top: 3cqh; left: 2.5cqw; background: #c62828; color: #fff; font-weight: 700; letter-spacing: .08em;
  font-size: clamp(11px, 1cqw, 18px); padding: .8cqh 1.2cqw; border-radius: 99px; z-index: 2; }
.tv-mini { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 2.5cqw; padding: 2cqh 3cqw;
  background: linear-gradient(transparent, rgb(0 0 0 / .75)); color: #fff; }
.tv-mini-name { font-family: var(--font-display); font-size: clamp(14px, 1.5cqw, 28px); flex: 1; }
.tv-mini-clock { font-variant-numeric: tabular-nums; font-size: clamp(20px, 2.6cqw, 48px); font-weight: 700; }
.tv-mini-next { font-size: clamp(12px, 1.3cqw, 24px); opacity: .9; }
.tv-mini-next b { color: var(--accent); }
