/* Demo aplikasi: jamaah, agen (bingkai HP) dan admin (dashboard) */
:root {
  --b: #14614a; --bd: #0c3b2d; --ba: #c8963a; --bs: #e7f1ec; --bon: #fff;
  --hf: 'Host Grotesk', system-ui, sans-serif; --bf: 'Host Grotesk', system-ui, sans-serif;
  --ui: 'Host Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bg: #f4f5f8; --surface: #fff; --ink: #0d1326; --muted: #5a627a; --line: #dfe3ee;
  --ok: #1d7a4f; --ok-s: #e2f3ea; --warn: #a8660b; --warn-s: #fbf0d9; --bad: #b3372c; --bad-s: #fbe6e2;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--ui); color: var(--ink); background: #e6e9f2; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ba); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Bilah demo */
.dbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 22px; height: 52px; padding: 0 20px; background: #0d1326; color: #f4f5f8; font-family: var(--ui); }
.dbrand { font-weight: 800; letter-spacing: -0.03em; text-decoration: none; font-size: 17px; }
.dbrand span { color: #ffb224; }
.dbar nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.dbar nav a { text-decoration: none; font-size: 13.5px; font-weight: 500; color: #aeb6cf; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.dbar nav a:hover { color: #fff; }
.dbar nav a.on { background: #f4f5f8; color: #0d1326; font-weight: 600; }
.dsel { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #aeb6cf; }
.dsel select { background: #141c38; color: #f4f5f8; border: 1px solid #2a3358; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; max-width: 190px; }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #0d1326; color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: 0.25s; z-index: 99; max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Bingkai HP ---------- */
.stage { min-height: calc(100dvh - 52px); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center; padding: 28px clamp(16px, 4vw, 56px); }
.side { max-width: 340px; display: grid; gap: 14px; }
.side.l { justify-self: end; }
.side h1 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.side p { color: var(--muted); }
.side .tag { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--b); }
.side ul { display: grid; gap: 10px; }
.side li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14.5px; }
.side li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--b); margin: 7px 0 0 6px; }
.side li b { display: block; font-weight: 600; }
.side li span { color: var(--muted); }
.phone { width: 390px; height: min(820px, calc(100dvh - 108px)); min-height: 600px; background: #111; border-radius: 52px; padding: 11px; box-shadow: 0 40px 80px -30px rgba(30, 22, 8, 0.45), 0 0 0 1px #2c2c2c inset; position: relative; }
.phone::before { content: ''; position: absolute; top: 22px; left: 50%; width: 104px; height: 28px; border-radius: 20px; background: #111; transform: translateX(-50%); z-index: 6; }
.screen { width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--bg); display: grid; grid-template-rows: auto 1fr auto; font-family: var(--bf); position: relative; }
.status { height: 50px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 30px 6px; font-size: 14px; font-weight: 600; font-family: var(--ui); background: var(--top, var(--bg)); color: var(--top-ink, var(--ink)); }
.status i { display: flex; gap: 5px; align-items: center; }
.status i::before { content: ''; width: 17px; height: 11px; border-radius: 2px; background: currentColor; opacity: 0.9; clip-path: polygon(0 70%, 18% 70%, 18% 100%, 0 100%, 0 70%, 27% 45%, 45% 45%, 45% 100%, 27% 100%, 27% 45%, 54% 22%, 72% 22%, 72% 100%, 54% 100%, 54% 22%, 81% 0, 100% 0, 100% 100%, 81% 100%, 81% 0); }
.status i::after { content: ''; width: 24px; height: 11px; border-radius: 3.5px; border: 1.5px solid currentColor; background: linear-gradient(currentColor, currentColor) 1.5px 50% / 70% 5px no-repeat; }
.view { overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.view::-webkit-scrollbar { display: none; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border-top: 1px solid var(--line); padding: 8px 6px 22px; }
.tabs button { display: grid; justify-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: #8a91a6; padding: 4px 0; font-family: var(--ui); }
.tabs svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs button.on { color: var(--b); }

/* Komponen dalam aplikasi */
.top { background: var(--b); color: var(--bon); padding: 6px 20px 74px; }
.top .hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top .mark { font-family: var(--hf); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; opacity: 0.92; }
.top h2 { font-family: var(--hf); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-top: 18px; }
.top p { opacity: 0.8; font-size: 14px; }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13.5px; background: color-mix(in srgb, var(--bon) 18%, transparent); font-family: var(--ui); flex: none; }
.av.s { background: var(--bs); color: var(--bd); }
.pad { padding: 0 16px 24px; display: grid; gap: 14px; }
.pad.lift { margin-top: -58px; }
.pad.t { padding-top: 6px; }
.c { background: var(--surface); border-radius: 20px; padding: 16px; border: 1px solid var(--line); display: grid; gap: 12px; }
.c h3 { font-family: var(--hf); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.c .sub { font-size: 13px; color: var(--muted); }
.ptitle { font-family: var(--hf); font-size: 26px; font-weight: 700; letter-spacing: -0.025em; padding: 6px 20px 12px; line-height: 1.15; }
.count { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.count .n { font-family: var(--hf); font-size: 54px; font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; color: var(--b); }
.count .n small { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-top: 4px; }
.kv { display: grid; gap: 7px; font-size: 13.5px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; }
.bar-t { height: 8px; border-radius: 99px; background: var(--bs); overflow: hidden; }
.bar-t i { display: block; height: 100%; border-radius: 99px; background: var(--b); }
.chk { display: grid; gap: 2px; }
.chk li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.chk li:last-child { border: 0; padding-bottom: 0; }
.dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.dot.ok { background: var(--ok); color: #fff; } .dot.proses { background: var(--warn-s); color: var(--warn); } .dot.belum { background: #e9ecf3; color: #8a91a6; }
.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; font-family: var(--ui); }
.pill.ok { background: var(--ok-s); color: var(--ok); } .pill.warn { background: var(--warn-s); color: var(--warn); } .pill.bad { background: var(--bad-s); color: var(--bad); } .pill.mute { background: #e9ecf3; color: #5a627a; } .pill.b { background: var(--bs); color: var(--bd); }
.abtn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px; background: var(--b); color: var(--bon); font-weight: 600; font-size: 14.5px; text-decoration: none; font-family: var(--bf); }
.abtn.ghost { background: var(--bs); color: var(--bd); }
.abtn.line { background: none; border: 1.5px solid var(--line); color: var(--ink); }
.abtn:active { transform: scale(0.98); }
.hero3d { position: relative; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, var(--bd), var(--b)); color: #fff; padding: 18px; display: grid; gap: 10px; min-height: 176px; align-content: end; text-decoration: none; }
.hero3d::before { content: ''; position: absolute; right: 22px; top: 22px; width: 58px; height: 66px; background: #15130f; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 26px 30px -12px rgba(0, 0, 0, 0.5); transform: perspective(300px) rotateY(-24deg) rotateX(6deg); }
.hero3d::after { content: ''; position: absolute; right: 22px; top: 38px; width: 58px; height: 6px; background: var(--ba); transform: perspective(300px) rotateY(-24deg) rotateX(6deg); }
.hero3d h3 { font-family: var(--hf); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; max-width: 9.5em; line-height: 1.15; }
.hero3d p { font-size: 13.5px; opacity: 0.82; max-width: 17em; }
.hero3d .go { justify-self: start; background: #fff; color: var(--bd); font-weight: 700; font-size: 13.5px; padding: 9px 15px; border-radius: 99px; margin-top: 4px; }
.days li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.days li:last-child { border: 0; }
.days .d { font-size: 12px; font-weight: 700; color: var(--b); padding-top: 2px; }
.days h4 { font-size: 15px; font-weight: 700; font-family: var(--hf); }
.days p { font-size: 13.5px; color: var(--muted); }
.days li.now { background: var(--bs); margin: 0 -16px; padding: 14px 16px; border: 0; border-radius: 14px; }
details.dua { border-bottom: 1px solid var(--line); }
details.dua:last-child { border: 0; }
details.dua summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; font-weight: 600; font-size: 14.5px; }
details.dua summary::-webkit-details-marker { display: none; }
details.dua summary::after { content: '+'; color: var(--b); font-weight: 700; font-size: 18px; line-height: 1; }
details.dua[open] summary::after { content: '–'; }
details.dua .ar { font-family: 'Noto Naskh Arabic', serif; font-size: 22px; line-height: 2.1; text-align: right; direction: rtl; }
details.dua .la { font-size: 13.5px; font-weight: 500; margin-top: 6px; }
details.dua .ti { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
details.dua .sr { font-size: 12px; color: var(--muted); margin: 8px 0 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 2px; }
.stat b { font-family: var(--hf); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.stat span { font-size: 12.5px; color: var(--muted); }
.lst li { display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lst li:last-child { border: 0; padding-bottom: 0; }
.lst b { font-weight: 600; font-size: 14.5px; display: block; line-height: 1.3; }
.lst small { font-size: 12.5px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); background: var(--bs); border-radius: 14px; padding: 12px 14px; color: var(--bd); }
.poster { aspect-ratio: 4 / 5; border-radius: 16px; padding: 16px; display: grid; align-content: space-between; color: #fff; background: linear-gradient(165deg, var(--b), var(--bd)); font-family: var(--hf); position: relative; overflow: hidden; }
.poster.alt { background: var(--bs); color: var(--bd); }
.poster.gold { background: linear-gradient(165deg, var(--ba), color-mix(in srgb, var(--ba) 60%, #000)); }
.poster small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; font-family: var(--ui); }
.poster b { font-size: 19px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.poster span { font-size: 11.5px; font-family: var(--ui); opacity: 0.9; }
.field { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.field input, .field select { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; font-size: 14.5px; font-weight: 400; background: var(--surface); width: 100%; }
.refbox { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; background: var(--bs); border-radius: 14px; padding: 8px 8px 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--bd); }
.refbox span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.refbox button { background: var(--b); color: var(--bon); border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.funnel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.funnel div { background: var(--bs); border-radius: 14px; padding: 12px 4px; }
.funnel b { display: block; font-family: var(--hf); font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--bd); line-height: 1.1; }
.funnel span { font-size: 12px; color: var(--muted); }

@media (max-width: 1080px) { .stage { grid-template-columns: 1fr; justify-items: center; } .side { display: none; } }
@media (max-width: 480px) {
  .dbar { gap: 10px; padding: 0 12px; }
  .dbar .dsel span { display: none; } .dsel select { max-width: 120px; }
  .dbrand { display: none; }
  .stage { padding: 0; min-height: 0; display: block; }
  .phone { width: 100%; height: calc(100dvh - 52px); min-height: 0; border-radius: 0; padding: 0; box-shadow: none; }
  .phone::before { display: none; }
  .screen { border-radius: 0; }
  .status { display: none; }
  .top { padding-top: 18px; }
  .ptitle { padding-top: 20px; }
  .tabs { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

/* ---------- Admin ---------- */
body.adm { background: var(--bg); }
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100dvh - 52px); }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 52px; height: calc(100dvh - 52px); }
.sidebar .tm { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; }
.sidebar .logo { width: 36px; height: 36px; border-radius: 10px; background: var(--b); color: var(--bon); display: grid; place-items: center; font-family: var(--hf); font-weight: 800; font-size: 14px; flex: none; }
.sidebar .tm b { font-family: var(--hf); font-weight: 700; font-size: 14.5px; line-height: 1.2; display: block; }
.sidebar .tm small { font-size: 12px; color: var(--muted); }
.sidebar button { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: #3a4159; text-align: left; width: 100%; }
.sidebar button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sidebar button:hover { background: var(--bg); }
.sidebar button.on { background: var(--bs); color: var(--bd); font-weight: 600; }
.sidebar button em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; background: var(--bad-s); color: var(--bad); border-radius: 99px; padding: 1px 8px; }
.sidebar .who { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 12px 10px 4px; border-top: 1px solid var(--line); font-size: 13.5px; }
.sidebar .who small { display: block; color: var(--muted); font-size: 12px; }
.main { padding: 26px clamp(16px, 3vw, 36px) 60px; min-width: 0; display: grid; gap: 20px; align-content: start; }
.mhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mhead h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.mhead p { color: var(--muted); font-size: 14.5px; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tools input, .tools select { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 12px; font-size: 14px; min-width: 0; }
.tools input { width: 220px; }
.bt { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--b); color: var(--bon); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.bt.ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.bt.sm { padding: 6px 10px; font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi b { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.kpi small { font-size: 12.5px; color: var(--muted); }
.kpi small.up { color: var(--ok); font-weight: 600; } .kpi small.dn { color: var(--bad); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; }
.panel > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.panel > header h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }
.panel > header a, .panel > header button { font-size: 13.5px; font-weight: 600; color: var(--b); text-decoration: none; }
.panel .body { padding: 16px 18px; }
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #f7f8fb; }
td { padding: 11px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: #f7f8fb; }
td.num, th.num { text-align: right; }
.nm { display: flex; align-items: center; gap: 10px; }
.nm .av { width: 32px; height: 32px; font-size: 12px; }
.nm b { font-weight: 600; display: block; line-height: 1.25; }
.nm small { color: var(--muted); font-size: 12.5px; }
.seat { display: grid; grid-template-columns: 64px auto; gap: 8px; align-items: center; white-space: nowrap; }
.todo li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.todo li:last-child { border: 0; }
.todo i { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.todo i.w { background: #d99a1c; }
.todo small { display: block; color: var(--muted); font-size: 12.5px; }
.chart { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: end; height: 170px; padding: 18px 18px 0; }
.chart div { display: grid; gap: 6px; justify-items: center; align-content: end; height: 100%; font-size: 12px; color: var(--muted); }
.chart i { width: 100%; max-width: 40px; border-radius: 7px 7px 2px 2px; background: var(--bs); display: block; }
.chart div.cur i { background: var(--b); }
.chart b { font-size: 12px; font-weight: 600; color: var(--ink); }
.cards3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dep { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 14px; }
.dep h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.dep .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.steps7 { display: flex; gap: 3px; }
.steps7 i { width: 16px; height: 6px; border-radius: 3px; background: #dfe3ee; }
.steps7 i.on { background: var(--b); }
.drawer { position: fixed; inset: 52px 0 0 auto; width: min(430px, 100vw); background: var(--surface); border-left: 1px solid var(--line); box-shadow: -30px 0 60px -30px rgba(30, 22, 8, 0.3); z-index: 40; padding: 22px; overflow-y: auto; display: grid; gap: 18px; align-content: start; transform: translateX(105%); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.drawer.on { transform: none; }
.drawer .x { justify-self: end; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.drawer h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.drawer h3 { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.sw { width: 40px; height: 23px; border-radius: 99px; background: #c9cfe0; position: relative; transition: 0.2s; flex: none; }
.sw::after { content: ''; position: absolute; top: 2.5px; left: 2.5px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: 0.2s; }
.sw[aria-checked="true"] { background: var(--b); }
.sw[aria-checked="true"]::after { left: 19.5px; }
.mnav { display: none; }
@media (max-width: 1100px) { .kpis { grid-template-columns: 1fr 1fr; } .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 52px; height: auto; flex-direction: row; overflow-x: auto; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); z-index: 30; scrollbar-width: none; }
  .sidebar .tm, .sidebar .who { display: none; }
  .sidebar button { width: auto; white-space: nowrap; padding: 8px 12px; font-size: 14px; }
  .sidebar button svg { display: none; }
  .cards3 { grid-template-columns: 1fr; }
  .tools input { width: 100%; } .tools { width: 100%; }
  .mhead h1 { font-size: 24px; }
}
@media (max-width: 480px) { .kpi b { font-size: 24px; } .kpi { padding: 14px; } .main { padding-top: 18px; } }

/* ----- Demo yang saling terhubung ----- */
.dreset { font-size: 13px; font-weight: 500; color: #aeb6cf; border: 1px solid #2a3358; border-radius: 999px; padding: 6px 12px; white-space: nowrap; margin-left: auto; }
.dreset:hover { color: #fff; }
.dreset + .dsel { margin-left: 0; }
.c.new { border-color: var(--b); box-shadow: 0 0 0 3px var(--bs); }
.sheet { position: absolute; inset: 0; z-index: 8; background: rgba(15, 12, 6, 0.5); display: grid; align-items: end; }
.sh { background: var(--surface); border-radius: 26px 26px 0 0; padding: 22px 18px 26px; display: grid; gap: 12px; animation: sh 0.26s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes sh { from { transform: translateY(40px); } }
.sh h3 { font-family: var(--hf); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.sh .sub { font-size: 13px; color: var(--muted); }
.seg3 { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.seg3 button { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 6px; font-size: 14px; font-weight: 600; }
.seg3 button.on { border-color: var(--b); background: var(--bs); color: var(--bd); }
.va { background: var(--bs); border-radius: 14px; padding: 14px; display: grid; gap: 2px; }
.va span { font-size: 12.5px; color: var(--muted); }
.va b { font-family: var(--ui); font-size: 22px; font-weight: 700; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.qr { width: 168px; height: 168px; justify-self: center; border-radius: 12px; border: 10px solid #fff; outline: 1px solid var(--line);
  background: conic-gradient(#111 25%, #fff 0 50%, #111 0 75%, #fff 0) 0 0 / 24px 24px, repeating-linear-gradient(90deg, #111 0 6px, transparent 6px 18px); background-blend-mode: difference; }
.feed li { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border: 0; }
.feed .pill { justify-self: start; }
.feed b { font-weight: 600; display: block; }
.feed small, .feed time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.feed small { white-space: normal; display: block; }
.empty { display: grid; gap: 8px; }
.empty p { color: var(--muted); font-size: 14px; }
textarea { font: inherit; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; resize: vertical; background: #f7f8fb; }
@media (max-width: 640px) { .feed li { grid-template-columns: 1fr auto; } .feed .pill { grid-column: 1 / -1; } .dreset { display: none; } }

/* ----- Mode tanam (di dalam bingkai beranda) ----- */
.embed body { background: var(--bg); }
.embed .stage { padding: 0; min-height: 0; display: block; }
.embed .side { display: none; }
.embed .phone { width: 100%; height: 100dvh; min-height: 0; border-radius: 0; padding: 0; box-shadow: none; }
.embed .phone::before { display: none; }
.embed .screen { border-radius: 0; }
.embed .shell { min-height: 100dvh; }
.embed .sidebar { top: 0; height: 100dvh; }
.embed ::-webkit-scrollbar { display: none; }

/* ----- Perbaikan dari audit desain: layar sempit ----- */
.dnav { display: none; background: #f4f5f8; color: #0d1326; border: 0; border-radius: 999px; padding: 7px 12px; font-size: 13.5px; font-weight: 600; max-width: 46vw; }
.sub { font-size: 14px; } .kv { font-size: 14.5px; } .days p { font-size: 14.5px; } details.dua .la, details.dua .ti { font-size: 14.5px; } details.dua .ar { font-size: 24px; } .tabs button { font-size: 11.5px; }
.lst .pill.b, .refbox button { min-height: 40px; padding-inline: 14px; }
@media (max-width: 640px) {
  .dbar nav { display: none; } .dnav { display: block; }
  .sidebar { flex-wrap: wrap; overflow: visible; position: static; gap: 6px; }
  .sidebar button { border: 1px solid var(--line); }
  .main { display: flex; flex-direction: column; }
  .tw { overflow: visible; }
  .panel table, .panel tbody, .panel tr, .panel td { display: block; width: 100%; }
  .panel thead { display: none; }
  .panel tr { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .panel tr:last-child { border-bottom: 0; }
  .panel td { padding: 0; border: 0; white-space: normal; text-align: left !important; font-size: 14px; }
  .panel td:first-child { grid-column: 1 / -1; }
  .panel td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
  .seat { grid-template-columns: 1fr auto; }
  .grid2 > .panel:nth-child(2) { order: -1; }
  .grid2 { display: flex; flex-direction: column; }
}

/* ----- Layar pembimbing ----- */
.funnel button { background: var(--bs); border-radius: 14px; padding: 12px 4px; border: 1.5px solid transparent; }
.funnel button.on { border-color: var(--b); }
.funnel button b { display: block; font-family: var(--hf); font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--bd); line-height: 1.1; }
.funnel button span { font-size: 12px; color: var(--muted); }
.lst.prog li { grid-template-columns: 38px 1fr auto; }
.lst.prog .steps7 { margin-top: 5px; }
.lst.prog .steps7 i { width: 18px; }
.lst.prog li.live { background: var(--bs); margin: 0 -10px; padding: 10px; border-radius: 14px; border-bottom: 0; }
.lst b em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--b); background: #fff; border-radius: 99px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
a.pill { text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; padding-inline: 14px; }
/* saat bilah status HP disembunyikan, isi mengambil sisa tinggi dan tab tetap di bawah */
@media (max-width: 480px) { .screen { grid-template-rows: 1fr auto; } }

/* ----- Merek Orbit di bilah demo ----- */
.dbar { background: #0d1326; }
.dbrand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; white-space: nowrap; color: #f4f5f8; }
.dbrand svg { width: 24px; height: 24px; flex: none; }
.dbar nav a.on, .dnav { background: #f4f5f8; color: #0d1326; }
.dsel select { background: #141c38; border-color: #2a3358; }
.dreset { border-color: #2a3358; }

/* laci rincian yang digeser keluar layar tidak boleh membuat halaman bisa digulir ke samping */
html, body { overflow-x: clip; }

/* Logo asli travel di kepala aplikasi dan dashboard */
.mark { display: inline-flex; align-items: center; gap: 8px; }
.mark img { height: 34px; width: auto; display: block; }
.mark i { font-style: normal; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.logo.pic { width: 72px; height: 40px; background: #fff; padding: 5px 6px; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.logo.pic img { max-width: 100%; max-height: 100%; display: block; }

/* Poster agen bergaya brosur travel: latar warna terang, judul besar bergaris tepi, harga quad/triple/double */
.poster.bro { background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--t) 62%, #fff), var(--t) 62%, color-mix(in srgb, var(--t) 70%, #000)); color: #fff; padding: 10px 10px 9px; align-content: start; gap: 3px; text-align: center; justify-items: center; }
.poster.bro .pl { justify-self: start; background: #fff; border-radius: 8px; padding: 3px 5px; opacity: 1; }
.poster.bro .pl img { height: 20px; width: auto; display: block; }
.poster.bro i { position: absolute; right: 9px; top: 9px; width: 38px; height: 38px; border-radius: 50%; background: #e41c24; color: #fff; font-style: normal; font: 800 15px/1 var(--hf); display: grid; place-content: center; box-shadow: 0 0 0 2px #fff; }
.poster.bro i u { text-decoration: none; font-size: 7.5px; letter-spacing: 0.06em; text-transform: uppercase; display: block; }
.poster.bro small { margin-top: 10px; font-size: 10px; letter-spacing: 0.1em; opacity: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.poster.bro b { font-size: 25px; line-height: 0.98; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; color: #fff; -webkit-text-stroke: 5px color-mix(in srgb, var(--t) 55%, #000); paint-order: stroke fill; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); padding: 2px 4px; text-wrap: balance; }
.poster.bro .pr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; width: 100%; margin-top: auto; opacity: 1; }
.poster.bro .pr em { font-style: normal; background: #fff; color: color-mix(in srgb, var(--t) 60%, #000); border-radius: 6px; padding: 3px 2px; font-size: 7.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; display: grid; }
.poster.bro .pr strong { font: 800 11.5px/1.1 var(--hf); letter-spacing: -0.02em; text-transform: none; }
.poster.bro .ft { font-size: 9px; line-height: 1.3; opacity: 0.95; margin-top: 4px; }

/* Aplikasi jamaah: pintasan, tab Ibadah, checklist, galeri, Al-Qur'an */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick button { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; min-height: 62px; }
.quick b { font-family: var(--hf); font-size: 15px; letter-spacing: -0.01em; }
.quick span { font-size: 12px; color: var(--muted); }
.seg4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.seg4 button { min-height: 40px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg4 button.on { background: var(--b); color: var(--bon); }
details.dua summary small { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: auto; text-align: right; }
details.dua .sr, .c > .sr { font-size: 12px; color: var(--muted); margin: 8px 0 12px; }
.backb { margin: 14px 18px 0; font-size: 14px; font-weight: 600; color: var(--b); min-height: 36px; }
.backb + .ptitle { padding-top: 6px; }
.ticks { display: grid; }
.ticks li { border-bottom: 1px solid var(--line); } .ticks li:last-child { border: 0; }
.ticks label { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; padding: 11px 0; font-size: 14.5px; cursor: pointer; }
.ticks input { width: 20px; height: 20px; accent-color: var(--b); margin: 0; }
.ticks input:checked + span { color: var(--muted); text-decoration: line-through; }
.bul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; font-size: 14px; margin-top: 8px; }
.gal3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 10px 0; }
.gal3 button, .galg button { border-radius: 12px; overflow: hidden; display: block; position: relative; }
.gal3 img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.galg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.galg img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.galg span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 12px; font-weight: 600; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); }
.sh.galv img { width: 100%; max-height: 46vh; object-fit: cover; border-radius: 14px; }
.surahs li { border-bottom: 1px solid var(--line); } .surahs li:last-child { border: 0; }
.surahs button { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; text-align: left; }
.surahs i { font-style: normal; width: 32px; height: 32px; border-radius: 10px; background: var(--bs); color: var(--bd); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.surahs b { font-size: 14.5px; display: block; } .surahs small { font-size: 12px; color: var(--muted); }
.surahs em, .qar { font-family: 'Noto Naskh Arabic', serif; font-style: normal; font-size: 19px; }
.ayat { display: grid; }
.ayat li { padding: 14px 0; border-bottom: 1px solid var(--line); } .ayat li:last-child { border: 0; }
.ayat .ar { font-family: 'Noto Naskh Arabic', serif; font-size: 24px; line-height: 2.1; text-align: right; direction: rtl; }
.ayat .ti { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.lastread { width: 100%; text-align: left; display: grid; gap: 2px; }
.lastread span { font-size: 12px; color: var(--muted); } .lastread b { font-family: var(--hf); font-size: 17px; }
/* Dashboard: pilih foto untuk galeri jamaah */
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.picks label { position: relative; cursor: pointer; border-radius: 10px; overflow: hidden; display: block; }
.picks img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.picks input { position: absolute; left: 6px; top: 6px; width: 18px; height: 18px; accent-color: var(--b); }
.picks label:has(input:checked) { outline: 3px solid var(--b); }
