/* =============================================================================
   Wachap — gaya aplikasi & laman awam (asas dikongsi dengan BizHub)
   Warna datang dari brand.php wachap (pemboleh ubah CSS --p, --gold, --bg ...).
   Header/footer bersama fred.my: shared/chrome.css (.fm-*)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--fm-font, system-ui, sans-serif); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:root { --r: 14px; --r-sm: 10px; --r-lg: 20px; --side-w: 272px; --shadow: 0 1px 2px rgba(var(--text-rgb), .05), 0 0 0 1px rgba(var(--text-rgb), .06); --shadow-lg: 0 24px 60px -20px rgba(var(--text-rgb), .25), 0 0 0 1px rgba(var(--text-rgb), .06); --display: "Outfit", var(--fm-font, sans-serif); }
a { color: var(--p); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.01em; line-height: 1.2; margin: 0; }
p { margin: 0 0 .6em; }
img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
.i { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .block { display: block; } .nowrap { white-space: nowrap; }
.text-bad { color: var(--bad); } .text-warn { color: var(--warn); } .text-ok { color: var(--ok); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; border-radius: 6px; }

/* ---- Butang ---------------------------------------------------------------- */
.btn { --b: var(--card); --c: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent; background: var(--b); color: var(--c); font: 600 14px/1 var(--fm-font); cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s; }
.btn:active { transform: translateY(1px); }
.btn .i { width: 18px; height: 18px; }
.btn.primary { --b: var(--p); --c: var(--onp); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 8px 20px -10px rgba(var(--p-rgb), .8); }
.btn.primary:hover { background: color-mix(in srgb, var(--p) 88%, #000); }
.btn.gold { --b: linear-gradient(135deg, color-mix(in srgb, var(--gold) 85%, #fff), var(--gold)); background: var(--b); --c: #1d1405; box-shadow: 0 8px 20px -10px rgba(var(--gold-rgb), .9), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.ghost { border-color: var(--line); background: var(--card); }
.btn.ghost:hover { border-color: rgba(var(--p-rgb), .45); color: var(--p); }
.btn.danger { --b: var(--bad); --c: #fff; }
.btn.link { background: none; padding: 0 4px; min-height: 32px; color: var(--p); }
.btn.link.danger-text, .danger-text { color: var(--bad) !important; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.lg { min-height: 48px; padding: 0 22px; font-size: 15px; border-radius: 13px; }
.btn.block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--fill); color: var(--text); text-decoration: none; }
.icon-btn .i { width: 18px; height: 18px; }
form.inline { display: inline; margin: 0; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-btns.end { justify-content: flex-end; margin-top: 8px; }
.pro-tag { font: 700 9.5px/1 var(--fm-font); letter-spacing: .06em; padding: 3px 5px; border-radius: 5px; background: rgba(var(--gold-rgb), .16); color: color-mix(in srgb, var(--gold) 70%, var(--text)); font-style: normal; margin-left: 6px; }

/* ---- Kad, grid, borang ------------------------------------------------------ */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.pad-lg { padding: 32px; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 16px; }
.card-head.pad { padding: 18px 22px 0; margin-bottom: 10px; }
.card-head h2 { font-size: 17px; font-weight: 600; }
.card-head p { margin: 0; flex-basis: 100%; }
.card h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card.dim, tr.dim { opacity: .55; }
fieldset.card { border: 0; }
fieldset[disabled] input, fieldset[disabled] select, fieldset[disabled] textarea { opacity: .7; }
.stack > * + * { margin-top: 0; }
.stack-sm { display: grid; gap: 8px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 0 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.align-end { align-items: end; }
.field { margin-bottom: 14px; min-width: 0; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field .hint { display: block; font-size: 12px; color: var(--faint); margin-top: 5px; }
input, select, textarea { font: inherit; color: inherit; }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea, .search input, .period input, .inline-form input, .month-pick input, .gl-pick select, .new-contact input, .new-contact textarea, .jl-row input, .jl-row select, .items input, .items select, .items textarea, select[data-autosubmit], .cell {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 80px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .items input:focus, .items textarea:focus, .items select:focus, .jl-row input:focus, .jl-row select:focus, .cell:focus, .search input:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px rgba(var(--p-rgb), .15); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px !important; }
.field input[type=file] { width: 100%; font-size: 13px; padding: 8px; border: 1px dashed var(--line); border-radius: 11px; background: var(--fill); }
.field .static { min-height: 42px; display: flex; align-items: center; padding: 0 12px; border-radius: 11px; background: var(--fill); color: var(--muted); font-weight: 600; }
.mono-area textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: 11px 0 0 11px; background: var(--fill); color: var(--muted); font-weight: 600; font-size: 13px; }
.input-prefix input { border-radius: 0 11px 11px 0 !important; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--p); flex: none; }
.check span { font-weight: 600; font-size: 14px; }
.check small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.check.locked { opacity: .6; cursor: not-allowed; }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 38px; height: 22px; border-radius: 22px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); position: relative; transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch input:checked + span { background: var(--p); }
.switch input:checked + span::after { transform: translateX(16px); }
.sticky-actions { position: sticky; bottom: 12px; z-index: 20; display: flex; justify-content: flex-end; gap: 10px; padding: 12px; margin: 0 0 18px; background: color-mix(in srgb, var(--card) 85%, transparent); backdrop-filter: blur(12px); border-radius: 16px; box-shadow: var(--shadow-lg); }

/* ---- Pil, cip, segmen ------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font: 600 11.5px/1.4 var(--fm-font); background: var(--fill); color: var(--muted); white-space: nowrap; }
.pill.ok { background: rgba(var(--ok-rgb), .12); color: var(--ok); }
.pill.bad { background: rgba(var(--bad-rgb), .12); color: var(--bad); }
.pill.warn { background: rgba(var(--warn-rgb), .14); color: var(--warn); }
.pill.info { background: rgba(var(--p-rgb), .12); color: var(--p); }
.plan-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font: 700 10.5px/1.5 var(--fm-font); letter-spacing: .04em; text-transform: uppercase; background: var(--fill); color: var(--muted); vertical-align: middle; }
.plan-badge .i { width: 12px; height: 12px; }
.plan-badge.pro { background: linear-gradient(135deg, rgba(var(--gold-rgb), .22), rgba(var(--gold-rgb), .1)); color: color-mix(in srgb, var(--gold) 75%, var(--text)); box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), .35); }
.plan-badge.locked { background: rgba(var(--bad-rgb), .1); color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none !important; transition: all .15s; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); box-shadow: none; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--fill); }
.seg a, .seg label span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none !important; cursor: pointer; }
.seg a.on, .seg input:checked + span { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.seg.radio { margin-bottom: 16px; }
.seg.radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg .i { width: 16px; height: 16px; }
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.toolbar-row .chips { margin: 0; }
.search { position: relative; display: flex; align-items: center; min-width: 220px; flex: 0 1 300px; }
.search .i { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--faint); pointer-events: none; }
.search input { padding-left: 38px !important; border-radius: 999px !important; }
.month-pick input, .inline-form input { width: auto; min-height: 36px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }

/* ---- Jadual ----------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 600 11.5px/1.3 var(--fm-font); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: rgba(var(--p-rgb), .035); }
.table td a b { color: var(--text); }
.table .actions { text-align: right; white-space: nowrap; }
.table.compact td { padding: 7px 14px; font-size: 13.5px; }
.table td.indent { padding-left: 36px; }
.table .w-code { width: 70px; color: var(--muted); }
.table .cell { min-height: 34px; padding: 5px 8px; width: 92px; text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.payslips td, .payslips th { padding: 8px 8px; }
.mini-check { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.who { display: flex; align-items: center; gap: 10px; }

/* ---- KPI -------------------------------------------------------------------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; min-width: 0; }
.kpi.link:hover { box-shadow: var(--shadow), 0 0 0 1.5px rgba(var(--p-rgb), .35); }
.kpi small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi b { font: 600 21px/1.25 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.kpi em { font-style: normal; align-self: flex-start; margin-top: 4px; }
.k-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--p-rgb), .1); color: var(--p); margin-bottom: 8px; }
.k-ico .i { width: 18px; height: 18px; }
.k-ico.warn { background: rgba(var(--warn-rgb), .12); color: var(--warn); }
.k-ico.ok { background: rgba(var(--ok-rgb), .12); color: var(--ok); }
.k-ico.bad { background: rgba(var(--bad-rgb), .12); color: var(--bad); }

/* ---- Cangkerang app --------------------------------------------------------- */
body.app { background: var(--bg); }
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - var(--fm-bar-h, 64px)); }
.side { position: sticky; top: var(--fm-bar-h, 64px); height: calc(100vh - var(--fm-bar-h, 64px)); overflow-y: auto; padding: 16px 14px 20px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--card) 55%, var(--bg)); display: flex; flex-direction: column; scrollbar-width: thin; }
.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none !important; transition: background .15s, color .15s; }
.side-nav a .i { width: 18px; height: 18px; opacity: .85; }
.side-nav a:hover { background: var(--fill); color: var(--text); }
.side-nav a.on { background: var(--card); color: var(--p); font-weight: 600; box-shadow: var(--shadow); }
.side-nav a.on .i { opacity: 1; }
.side-nav a span { flex: 1; min-width: 0; }
.side-label { font: 700 10.5px/1 var(--fm-font); text-transform: uppercase; letter-spacing: .09em; color: var(--faint); padding: 16px 12px 6px; }
.side-upsell { margin-top: auto; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: linear-gradient(140deg, var(--p2), var(--p)); color: #fff; text-decoration: none !important; position: relative; overflow: hidden; }
.side-upsell::after { content: ""; position: absolute; right: -20px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(rgba(var(--gold-rgb), .5), transparent 70%); }
.side-upsell .i { color: var(--gold); width: 26px; height: 26px; }
.side-upsell b { display: block; font-size: 14px; }
.side-upsell small { font-size: 12px; opacity: .8; }
.side-scrim { display: none; }
.co-switch { position: relative; }
.co-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; text-align: left; font: inherit; box-shadow: var(--shadow); }
.co-btn:hover { border-color: rgba(var(--p-rgb), .4); }
.co-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-btn .chev { width: 16px; height: 16px; color: var(--faint); }
.co-av { --hue: 170; width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; font: 700 13px/1 var(--display); color: #fff; background: linear-gradient(135deg, hsl(var(--hue) 45% 42%), hsl(calc(var(--hue) + 30) 50% 30%)); overflow: hidden; }
.co-av img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.co-av.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.co-av.lg { width: 48px; height: 48px; border-radius: 14px; font-size: 16px; }
.co-av.xl { width: 84px; height: 84px; border-radius: 20px; font-size: 26px; }
.co-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50; padding: 6px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-lg); max-height: 60vh; overflow: auto; }
.co-menu form { margin: 0; }
.co-menu-label { font: 700 10.5px/1 var(--fm-font); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 8px 10px 6px; margin: 0; }
.co-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 0; background: none; color: var(--text); font: 500 14px/1.3 var(--fm-font); cursor: pointer; text-align: left; text-decoration: none !important; }
.co-item:hover { background: var(--fill); }
.co-item span { flex: 1; min-width: 0; }
.co-item small { display: block; font-size: 11.5px; color: var(--muted); }
.co-item.on { color: var(--p); }
.co-item.add { color: var(--p); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; padding-top: 12px; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: var(--fm-bar-h, 64px); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 16px 32px 14px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; }
.topbar-title { flex: 1; min-width: 0; }
.topbar h1 { font-size: 24px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.topbar-actions { display: flex; gap: 8px; flex: none; }
.menu-btn { display: none; }
.content { padding: 8px 32px 40px; max-width: 1180px; width: 100%; flex: 1; }
.content.wide { max-width: 1400px; }
.powered { text-align: center; font-size: 12px; color: var(--faint); margin: 28px 0 0; }
.tabbar { display: none; }

/* ---- Banner & nota ------------------------------------------------------------ */
.banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; margin-bottom: 18px; background: rgba(var(--p-rgb), .08); box-shadow: inset 0 0 0 1px rgba(var(--p-rgb), .18); }
.banner > .i { width: 22px; height: 22px; color: var(--p); flex: none; }
.banner div { flex: 1; min-width: 0; }
.banner b { display: block; font-size: 14.5px; }
.banner p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.banner.warn { background: rgba(var(--warn-rgb), .09); box-shadow: inset 0 0 0 1px rgba(var(--warn-rgb), .25); }
.banner.warn > .i { color: var(--warn); }
.banner.bad { background: rgba(var(--bad-rgb), .07); box-shadow: inset 0 0 0 1px rgba(var(--bad-rgb), .22); }
.banner.bad > .i { color: var(--bad); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; background: var(--fill); }
.note .i { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.note.ok { background: rgba(var(--ok-rgb), .09); color: var(--ok); }
.note.warn { background: rgba(var(--warn-rgb), .1); color: color-mix(in srgb, var(--warn) 80%, var(--text)); }
.disclaimer { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--faint); margin: 8px 0 0; }
.disclaimer .i { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.announce { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; background: linear-gradient(90deg, var(--p2), var(--p)); color: #fff; }
.announce .i { color: var(--gold); width: 16px; height: 16px; }
.empty { text-align: center; padding: 36px 16px; }
.empty-ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: rgba(var(--p-rgb), .08); color: var(--p); }
.empty-ico .i { width: 26px; height: 26px; }
.empty h3 { font-size: 17px; margin-bottom: 6px; justify-content: center; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 16px; font-size: 14px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 16px 0; font-size: 13px; color: var(--muted); }

/* ---- Toast & dialog --------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 3000; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 14px; background: #10201e; color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 18px 40px -12px rgba(0,0,0,.45); transition: all .3s cubic-bezier(.2,.9,.3,1.2); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--bad); }
.toast.info { background: var(--p2); }
dialog.confirm { border: 0; border-radius: 22px; padding: 26px; width: min(400px, calc(100vw - 32px)); background: var(--card); color: var(--text); box-shadow: var(--shadow-lg); text-align: center; }
dialog.confirm::backdrop { background: rgba(8, 16, 15, .45); backdrop-filter: blur(3px); }
.confirm-icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: rgba(var(--bad-rgb), .1); color: var(--bad); }
dialog.confirm h3 { font-size: 18px; margin-bottom: 6px; }
dialog.confirm p { color: var(--muted); font-size: 14px; }
dialog.confirm .row-btns { justify-content: center; margin-top: 16px; }

/* ---- Papan pemuka ----------------------------------------------------------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dash-grid > .card { margin-bottom: 18px; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.lg-in::before { background: var(--p); } .lg-out::before { background: var(--gold); }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 190px; align-items: end; padding: 6px 0 0; border-bottom: 1px dashed var(--line); }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-pair { display: flex; gap: 3px; align-items: flex-end; height: calc(100% - 22px); width: 100%; justify-content: center; }
.bar-pair span { width: min(14px, 40%); height: max(2px, var(--h)); border-radius: 5px 5px 2px 2px; transition: height .6s cubic-bezier(.2,.8,.2,1); }
.b-in { background: linear-gradient(180deg, color-mix(in srgb, var(--p) 75%, #fff), var(--p)); }
.b-out { background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 70%, #fff), var(--gold)); }
.bar-col small { font-size: 10.5px; color: var(--faint); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.quick a { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 12px; background: var(--fill); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none !important; transition: background .15s, transform .15s; }
.quick a:hover { background: rgba(var(--p-rgb), .1); color: var(--p); transform: translateY(-1px); }
.quick .i { width: 18px; height: 18px; color: var(--p); }
.deadlines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.deadlines li { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; }
.deadlines li:hover { background: var(--fill); }
.dl-date { width: 46px; flex: none; text-align: center; padding: 6px 0; border-radius: 11px; background: var(--fill); }
.dl-date b { display: block; font: 700 17px/1 var(--display); }
.dl-date small { font-size: 10.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; letter-spacing: .05em; }
.deadlines .soon .dl-date { background: rgba(var(--warn-rgb), .14); color: var(--warn); }
.deadlines .late .dl-date { background: rgba(var(--bad-rgb), .12); color: var(--bad); }
.dl-txt { min-width: 0; }
.dl-txt b { display: block; font-size: 13.5px; font-weight: 600; }
.dl-txt small { font-size: 12px; color: var(--muted); }
.setup { background: linear-gradient(120deg, var(--card), color-mix(in srgb, var(--card) 92%, var(--gold))); }
.setup-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.setup-head h2 { font-size: 17px; }
.setup-head p { margin: 2px 0 0; font-size: 13px; }
.progress { width: 160px; height: 8px; border-radius: 8px; background: var(--fill); overflow: hidden; flex: none; }
.progress span { display: block; width: var(--v); height: 100%; background: linear-gradient(90deg, var(--p), var(--gold)); border-radius: inherit; }
.setup-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px; }
.setup-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--text); font-size: 13.5px; font-weight: 500; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none !important; }
.setup-list a:hover { box-shadow: inset 0 0 0 1.5px rgba(var(--p-rgb), .4); }
.setup-list .tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--muted); flex: none; }
.setup-list .tick .i { width: 14px; height: 14px; }
.setup-list .go { width: 16px; height: 16px; margin-left: auto; color: var(--faint); }
.setup-list li.done a { color: var(--muted); text-decoration: line-through !important; }
.setup-list li.done .tick { background: var(--ok); color: #fff; }

/* ---- Syarikat ---------------------------------------------------------------- */
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.co-card { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.co-card.current { box-shadow: var(--shadow), 0 0 0 2px rgba(var(--p-rgb), .5); }
.co-card-top { display: flex; gap: 12px; align-items: center; }
.co-card h3 { margin: 0; font-size: 16px; }
.co-card p { margin: 2px 0 0; }
.co-card.add { align-items: center; justify-content: center; text-align: center; border: 2px dashed var(--line); background: transparent; box-shadow: none; color: var(--text); text-decoration: none !important; min-height: 200px; }
.co-card.add:hover { border-color: rgba(var(--p-rgb), .5); }
.kv { margin: 0; display: grid; gap: 8px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }
.kv.big dd { font: 600 17px/1.3 var(--display); font-variant-numeric: tabular-nums; }
.kv.big { margin-bottom: 16px; }
.logo-row { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.logo-row .field { flex: 1; margin: 0; }
.danger-zone summary { cursor: pointer; display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--bad); list-style: none; }
.danger-zone[open] summary { margin-bottom: 14px; }
.danger-links { display: flex; justify-content: flex-end; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.person { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.person-top { display: flex; gap: 12px; align-items: center; }
.person-top > div { flex: 1; min-width: 0; }
.person-top h3 { margin: 0; font-size: 15.5px; }
.person-top p { margin: 0; }
.av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--p-rgb), .12); color: var(--p); font: 700 16px/1 var(--display); flex: none; }
.sh-summary { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.donut { width: 168px; height: 168px; border-radius: 50%; background: conic-gradient(var(--stops)); display: grid; place-items: center; flex: none; }
.donut span { width: 112px; height: 112px; border-radius: 50%; background: var(--card); display: grid; place-content: center; text-align: center; }
.donut b { font: 700 18px/1.1 var(--display); }
.donut small { color: var(--muted); font-size: 12px; }
.sh-legend { flex: 1; min-width: 220px; display: grid; gap: 8px; }
.sh-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sh-row .nm { flex: 1; }
.sw { width: 12px; height: 12px; border-radius: 4px; flex: none; }

/* ---- Pematuhan ---------------------------------------------------------------- */
.timeline-months { display: grid; gap: 8px; }
.month { margin-bottom: 10px; }
.month-h { font-size: 15px; font-weight: 600; margin: 6px 4px 10px; }
.month-h span { color: var(--faint); font-weight: 500; }
.comp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.comp { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); border-left: 3px solid transparent; }
.comp.soon { border-left-color: var(--warn); }
.comp.late { border-left-color: var(--bad); }
.comp.done { opacity: .6; }
.comp.done .c-txt b { text-decoration: line-through; }
.c-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(var(--p-rgb), .09); color: var(--p); flex: none; }
.c-ico .i { width: 18px; height: 18px; }
.comp.late .c-ico { background: rgba(var(--bad-rgb), .1); color: var(--bad); }
.comp.soon .c-ico { background: rgba(var(--warn-rgb), .12); color: var(--warn); }
.c-txt { flex: 1; min-width: 0; }
.c-txt b { display: block; font-size: 14.5px; }
.c-txt small { font-size: 12.5px; color: var(--muted); }
.c-desc { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.c-note { font-size: 12.5px; margin: 6px 0 0; display: flex; gap: 6px; align-items: center; color: var(--text); }
.c-note .i { width: 14px; height: 14px; }
.c-act { display: flex; gap: 4px; align-items: center; flex: none; }

/* ---- Editor invois -------------------------------------------------------------- */
.grid-doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; }
.new-contact { display: grid; gap: 8px; margin-top: 8px; padding: 12px; border-radius: 12px; background: var(--fill); }
.items-head, .item-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 130px 90px 120px 40px; gap: 10px; align-items: start; }
.items-head { padding: 14px 18px 10px; font: 600 11.5px/1 var(--fm-font); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); border-bottom: 1px solid var(--line); }
.items-head .num { text-align: right; }
.item-row { padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.item-row textarea { resize: none; overflow: hidden; min-height: 42px; }
.item-row .it-acc { margin-top: 6px; min-height: 34px; font-size: 12.5px; padding: 5px 10px; color: var(--muted); }
.item-row input[data-qty], .item-row input[data-price] { text-align: right; font-variant-numeric: tabular-nums; }
.it-amt { padding-top: 11px; font-weight: 600; }
.it-del { margin-top: 3px; }
.m-label { display: none; }
.items-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 16px 18px 20px; flex-wrap: wrap; }
.totals { margin: 0; min-width: 280px; display: grid; gap: 8px; }
.totals > div { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; }
.totals .disc input { width: 120px; min-height: 34px; text-align: right; padding: 5px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); }
.totals .grand { padding-top: 10px; border-top: 1px solid var(--line); }
.totals .grand dt { color: var(--text); font-weight: 600; }
.totals .grand dd { font: 700 22px/1 var(--display); color: var(--p); }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.doc-paper { background: #fff; color: #1a1a1a; border-radius: 6px; box-shadow: var(--shadow-lg); padding: 44px 48px; min-width: 0; overflow-x: auto; }
.doc-side { position: sticky; top: calc(var(--fm-bar-h, 64px) + 90px); display: grid; gap: 0; }
.pay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pay-list li { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.pay-list li > div { flex: 1; min-width: 0; }
.pay-list small { display: block; font-size: 12px; color: var(--muted); }
details.pop { position: relative; display: inline-block; }
details.pop summary { list-style: none; }
details.pop summary::-webkit-details-marker { display: none; }
.pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 260px; padding: 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-lg); text-align: left; }

/* ---- Jurnal --------------------------------------------------------------------- */
.summary-h { cursor: pointer; display: flex; align-items: center; gap: 8px; font: 600 16px/1.3 var(--display); list-style: none; }
details[open] > .summary-h { margin-bottom: 16px; }
.jl-head, .jl-row { display: grid; grid-template-columns: minmax(0, 2fr) 110px 110px minmax(0, 1.3fr) 36px; gap: 8px; }
.jl-head { font: 600 11.5px/1 var(--fm-font); text-transform: uppercase; color: var(--faint); letter-spacing: .05em; padding: 0 0 8px; }
.jl-row { margin-bottom: 8px; }
.jl-row input[data-dr], .jl-row input[data-cr] { text-align: right; }
.jl-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
.jl-sum { display: flex; gap: 14px; align-items: center; font-size: 13.5px; color: var(--muted); }
.jl-sum b { color: var(--text); font-variant-numeric: tabular-nums; }
.journal { padding: 0; overflow: hidden; }
.j-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--fill); }
.j-head small { display: block; font-size: 12px; color: var(--muted); }

/* ---- Laporan ---------------------------------------------------------------------- */
.report-tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.report-tabs a { padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -3px; white-space: nowrap; text-decoration: none !important; }
.report-tabs a.on { color: var(--p); border-color: var(--p); }
.period { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.period .chips { margin: 0; }
.period label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.period input[type=date] { width: auto; min-height: 36px; padding: 5px 10px; }
.period .inline-check { padding: 0; }
.report { padding: 34px 38px; }
.rep-head { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 2px solid var(--text); }
.rep-head h2 { font-size: 18px; }
.rep-head p { margin: 0; font-size: 13px; }
.rep-title { margin-left: auto; text-align: right; }
.rep-title b { display: block; font: 600 17px/1.3 var(--display); }
.rep-title small { color: var(--muted); font-size: 12.5px; }
.rep-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.rep-table th { text-align: left; font-size: 12px; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.rep-table td { padding: 7px 8px; }
.rep-table .sec td { padding-top: 18px; font: 700 12px/1.3 var(--fm-font); text-transform: uppercase; letter-spacing: .07em; color: var(--p); }
.rep-table .indent { padding-left: 22px; }
.rep-table .sub td { font-weight: 600; border-top: 1px solid var(--line); }
.rep-table .total td { font-weight: 700; border-top: 1px solid var(--text); padding-top: 10px; }
.rep-table .grand td { font: 700 15px/1.4 var(--display); border-top: 1px solid var(--text); border-bottom: 3px double var(--text); padding: 12px 8px; }
.rep-check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 16px 0 0; }
.rep-check.ok { color: var(--ok); } .rep-check.bad { color: var(--bad); }
.rep-foot { margin: 26px 0 0; text-align: center; }
.gl-pick { margin: 10px 0 14px; max-width: 420px; }

/* ---- Surat --------------------------------------------------------------------------- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 22px; }
.tpl { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; transition: transform .18s, box-shadow .18s; }
.tpl:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tpl b { font-size: 14px; line-height: 1.35; }
.tpl small { font-size: 12px; color: var(--muted); }
.tpl-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 8px; background: rgba(var(--p-rgb), .1); color: var(--p); }
.tpl-ico .i { width: 19px; height: 19px; }
.tpl-ico.hr { background: rgba(99, 102, 241, .12); color: #6366f1; }
.tpl-ico.general { background: rgba(14, 165, 233, .12); color: #0284c7; }
.tpl-ico.custom { background: rgba(var(--gold-rgb), .16); color: var(--gold); }
.letter-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
.letter-form { position: sticky; top: calc(var(--fm-bar-h, 64px) + 90px); max-height: calc(100vh - 180px); overflow: auto; }
.letter-preview .paper { background: #fff; color: #1a1a1a; border-radius: 6px; box-shadow: var(--shadow-lg); padding: 48px 56px; min-height: 600px; }
.letter-preview .paper.ghost { display: grid; place-items: center; background: var(--card); color: var(--text); }
.syntax summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.syntax pre { background: var(--fill); padding: 14px; border-radius: 12px; font-size: 12.5px; overflow: auto; }

/* ---- Dokumen -------------------------------------------------------------------------- */
.doc-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; margin-bottom: 16px; border: 2px dashed var(--line); border-radius: 16px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; position: relative; }
.drop:hover, .drop.over { border-color: var(--p); background: rgba(var(--p-rgb), .04); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--p-rgb), .1); color: var(--p); }
.drop small { color: var(--muted); font-size: 12.5px; }
.meter { height: 10px; border-radius: 10px; background: var(--fill); overflow: hidden; margin: 12px 0 8px; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--p), var(--gold)); }
.storage h4 { font-size: 13px; margin: 16px 0 8px; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.mini-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.file { display: flex; gap: 12px; align-items: center; margin: 0; padding: 14px 16px; }
.ext { width: 44px; height: 52px; border-radius: 8px 14px 8px 8px; display: grid; place-items: center; font: 700 10.5px/1 var(--fm-font); color: #fff; background: #64748b; flex: none; }
.ext-pdf { background: #dc2626; } .ext-jpg, .ext-png, .ext-webp { background: #0ea5e9; } .ext-docx, .ext-doc { background: #2563eb; } .ext-xlsx, .ext-xls, .ext-csv { background: #16a34a; } .ext-zip { background: #a16207; }
.f-txt { flex: 1; min-width: 0; }
.f-txt b { display: block; color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-txt small { display: block; font-size: 12px; color: var(--muted); }
.f-act { display: flex; flex: none; }

/* ---- Bank --------------------------------------------------------------------------- */
.acct-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.acct-card { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; }
.acct-card.on { box-shadow: var(--shadow), 0 0 0 2px var(--p); }
.acct-card small { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-card b { font: 600 19px/1.3 var(--display); font-variant-numeric: tabular-nums; }
.acct-card.total { background: linear-gradient(140deg, var(--p2), var(--p)); color: #fff; }
.acct-card.total small { color: rgba(255,255,255,.75); }
.ac-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--p-rgb), .1); color: var(--p); margin-bottom: 8px; }
.ac-ico .i { width: 17px; height: 17px; }
.acct-card.total .ac-ico { background: rgba(255,255,255,.15); color: var(--gold); }
.run-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.run-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: 12px; background: var(--fill); color: var(--text); text-decoration: none !important; }
.run-list a:hover { background: rgba(var(--p-rgb), .08); }
.run-list small { grid-column: 1; font-size: 12px; color: var(--muted); }
.run-list .pill { grid-row: 1 / 3; grid-column: 2; align-self: center; }

/* ---- Pelan & harga ------------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.pricing.app { max-width: none; margin-bottom: 20px; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.price-card h3 { display: flex; align-items: center; gap: 8px; font-size: 21px; }
.price-card h3 .i { color: var(--gold); }
.price-card .price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.price-card .price b { font: 700 36px/1 var(--display); letter-spacing: -.02em; }
.price-card .price span { color: var(--muted); font-size: 14px; }
.price-card.featured { background: linear-gradient(160deg, color-mix(in srgb, var(--p2) 96%, #000), var(--p)); color: #fff; box-shadow: 0 30px 60px -28px rgba(var(--p-rgb), .9); }
.price-card.featured .muted, .price-card.featured .price span { color: rgba(255,255,255,.72); }
.price-card.featured .ticks .i { color: var(--gold); }
.price-card.featured .field label { color: rgba(255,255,255,.75); }
.price-card .btn.block { margin-top: auto; }
.ribbon { position: absolute; top: 18px; right: 18px; padding: 5px 10px; border-radius: 999px; font: 700 11px/1 var(--fm-font); letter-spacing: .04em; text-transform: uppercase; background: var(--gold); color: #1d1405; }
.ticks { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.ticks .i { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 1px; }
.ticks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; text-align: left; max-width: 640px; margin: 22px auto 26px; }
.plan-now h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0; }
.pro-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: linear-gradient(120deg, rgba(var(--gold-rgb), .12), rgba(var(--gold-rgb), .04)); box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), .3); margin-bottom: 18px; }
.pro-card > .i { width: 28px; height: 28px; color: var(--gold); }
.pro-card div { flex: 1; } .pro-card p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.upsell { text-align: center; }
.up-ico { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(140deg, var(--p2), var(--p)); color: var(--gold); box-shadow: 0 20px 40px -18px rgba(var(--p-rgb), .9); }
.up-ico .i { width: 34px; height: 34px; }
.upsell h2 { font-size: 26px; margin-bottom: 8px; }
.lead { font-size: 17px; color: var(--muted); line-height: 1.6; }
.roles-help dl { max-width: 640px; }

/* ---- Onboarding & ralat --------------------------------------------------------------- */
.onboard-wrap { max-width: 1120px; margin: 0 auto; padding: 48px 24px 64px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.onboard-intro { position: sticky; top: 110px; }
.onboard-intro h1 { font-size: clamp(28px, 4vw, 40px); margin: 22px 0 12px; }
.onboard-intro .ticks { margin: 22px 0; }
.onboard-form h2 { font-size: 18px; margin-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 700 19px/1 var(--display); text-decoration: none !important; }
.logo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, var(--p), var(--p2)); color: #fff; box-shadow: 0 10px 22px -10px rgba(var(--p-rgb), .9); }
.logo svg { width: 22px; height: 22px; }
.logo-img { background: none; box-shadow: none; }
.err-page { max-width: 560px; margin: 0 auto; padding: 90px 24px; text-align: center; min-height: 60vh; }
.err-code { font: 800 88px/1 var(--display); background: linear-gradient(140deg, var(--p), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-page h1 { font-size: 26px; margin: 12px 0 8px; }
.err-page p { color: var(--muted); margin-bottom: 24px; }

/* ---- Laman awam ------------------------------------------------------------------------ */
body.public { background: var(--bg); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; background:
    radial-gradient(900px 500px at 85% -10%, rgba(var(--gold-rgb), .18), transparent 60%),
    radial-gradient(800px 600px at -10% 20%, rgba(var(--p-rgb), .14), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(var(--text-rgb), .04) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--text-rgb), .04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 700 12px/1 var(--fm-font); letter-spacing: .06em; text-transform: uppercase; color: var(--p); background: rgba(var(--p-rgb), .09); margin: 0 0 18px; }
.eyebrow .i { width: 15px; height: 15px; color: var(--gold); }
.hero h1 { font: 700 clamp(36px, 5.4vw, 62px)/1.04 var(--display); letter-spacing: -.035em; margin-bottom: 20px; }
.hero .lead { font-size: clamp(16px, 1.6vw, 19px); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points .i { width: 16px; height: 16px; color: var(--ok); }
.hero-art { perspective: 1400px; }
.mock { background: var(--card); border-radius: 26px; padding: 22px; box-shadow: 0 50px 100px -40px rgba(var(--text-rgb), .45), 0 0 0 1px rgba(var(--text-rgb), .06); transform: rotateY(-8deg) rotateX(4deg); transition: transform .6s ease; }
.mock:hover { transform: rotateY(0) rotateX(0); }
.mock-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mock-head div { flex: 1; } .mock-head b { display: block; font-size: 15px; } .mock-head small { color: var(--muted); font-size: 12px; }
.mock-co { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, var(--p), var(--p2)); color: #fff; font: 700 14px/1 var(--display); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.mock-stats div { padding: 12px; border-radius: 14px; background: var(--fill); }
.mock-stats small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.mock-stats b { display: block; font: 700 15px/1.3 var(--display); margin-top: 2px; }
.mock-stats em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ok); }
.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding: 0 4px 2px; border-bottom: 1px dashed var(--line); }
.mock-bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--p) 60%, #fff), var(--p)); animation: grow .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); transform-origin: bottom; }
.mock-bars span:nth-child(3n) { background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 60%, #fff), var(--gold)); }
@keyframes grow { from { transform: scaleY(0); } }
.mock-list { display: grid; gap: 6px; margin-top: 14px; }
.mock-list div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--fill); font-size: 13px; font-weight: 500; }
.mock-list time { margin-left: auto; color: var(--muted); font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.info { background: var(--p); }
.band { padding: 84px 0; }
.band.alt { background: color-mix(in srgb, var(--card) 60%, var(--bg)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font: 700 clamp(28px, 3.6vw, 42px)/1.12 var(--display); letter-spacing: -.025em; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16.5px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 24px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.f-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: linear-gradient(140deg, rgba(var(--p-rgb), .14), rgba(var(--gold-rgb), .14)); color: var(--p); }
.f-ico .i { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: how; }
.how li { position: relative; padding: 26px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.how span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 700 17px/1 var(--display); color: #fff; background: linear-gradient(140deg, var(--p), var(--p2)); margin-bottom: 16px; }
.how h3 { font-size: 17px; margin-bottom: 8px; }
.how p { color: var(--muted); font-size: 14px; margin: 0; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 18px 22px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; font-weight: 600; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq p { margin: 12px 0 0; color: var(--muted); }
.cta-band { padding: 80px 0; text-align: center; color: #fff; background: radial-gradient(600px 300px at 80% 0%, rgba(var(--gold-rgb), .35), transparent 70%), linear-gradient(140deg, var(--p2), var(--p)); }
.cta-band h2 { font: 700 clamp(28px, 3.6vw, 42px)/1.15 var(--display); margin-bottom: 10px; letter-spacing: -.02em; }
.cta-band p { opacity: .8; font-size: 17px; margin-bottom: 26px; }

/* ---- Responsif -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-side { position: static; }
  .letter-layout { grid-template-columns: minmax(0, 1fr); }
  .letter-form { position: static; max-height: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1200; width: min(86vw, 320px); height: 100dvh; transform: translateX(-102%); transition: transform .28s cubic-bezier(.3,.8,.3,1); background: var(--card); box-shadow: var(--shadow-lg); padding-bottom: 90px; }
  body.side-open .side { transform: none; }
  .side-scrim { display: block; position: fixed; inset: 0; z-index: 1150; background: rgba(8, 16, 15, .4); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.side-open .side-scrim { opacity: 1; pointer-events: auto; }
  body.side-open { overflow: hidden; }
  .topbar { padding: 12px 16px; }
  .topbar h1 { font-size: 20px; }
  .content { padding: 4px 16px 110px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 1100; padding: 6px; border-radius: 20px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(16px) saturate(1.5); box-shadow: var(--shadow-lg); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 5px; border-radius: 14px; border: 0; background: none; color: var(--muted); font: 600 10.5px/1.1 var(--fm-font); text-decoration: none !important; cursor: pointer; }
  .tabbar .i { width: 21px; height: 21px; }
  .tabbar a.on { color: var(--p); background: rgba(var(--p-rgb), .09); }
  .dash-grid, .doc-top, .grid-doc { grid-template-columns: minmax(0, 1fr); }
  .hero-grid, .onboard-wrap { grid-template-columns: minmax(0, 1fr); }
  .onboard-intro { position: static; }
  .hero { padding: 48px 0 60px; }
  .mock { transform: none; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .report { padding: 22px 18px; }
  .hide-md { display: none; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis.three > :last-child:nth-child(odd), .kpis > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kpi b { font-size: 18px; }
  .card { padding: 18px; border-radius: 18px; }
  .card.pad-lg { padding: 22px; }
  .hide-sm { display: none !important; }
  .topbar-actions .btn span { display: none; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .items-head { display: none; }
  .item-row { grid-template-columns: repeat(3, minmax(0, 1fr)) 36px; gap: 8px; }
  .it-desc { grid-column: 1 / -1; }
  .it-amt { grid-column: 1 / 4; text-align: right; padding-top: 0; }
  .it-del { grid-column: 4; grid-row: 2; align-self: end; }
  .m-label { display: block; font-size: 11px; color: var(--faint); font-weight: 600; margin-bottom: 4px; }
  .totals { min-width: 0; width: 100%; }
  .jl-head { display: none; }
  .jl-row { grid-template-columns: 1fr 1fr; padding: 10px; border-radius: 12px; background: var(--fill); }
  .jl-row select, .jl-row > .fm-select-button, .jl-row input[name="lm[]"] { grid-column: 1 / -1; }
  .doc-paper { padding: 24px 18px; }
  .letter-preview .paper { padding: 28px 20px; }
  .ticks.cols { grid-template-columns: minmax(0, 1fr); }
  .search { flex: 1 1 100%; }
  .toolbar-row { align-items: stretch; }
  .setup-head { flex-direction: column; align-items: flex-start; }
  .table th, .table td { padding: 10px; }
  .rep-head { flex-wrap: wrap; } .rep-title { margin-left: 0; text-align: left; flex-basis: 100%; }
  .band { padding: 60px 0; }
  .wrap { padding: 0 16px; }
  .sticky-actions { bottom: 92px; }
  .sticky-actions .btn { flex: 1; }
  .comp { flex-wrap: wrap; }
  .c-act { width: 100%; justify-content: flex-end; }
}

/* ---- Cetak laporan dari app ----------------------------------------------------------- */
@media print {
  .fm-bar, .fm-foot, .side, .topbar, .tabbar, .no-print, .powered, .toast, .fm-skip, .disclaimer, .report-tabs, .period, .sticky-actions { display: none !important; }
  body, body.app { background: #fff; color: #000; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; padding: 0; }
}

/* =============================================================================
   v1.1 — reka bentuk lebih mesra: menu boleh lipat, tindakan pantas, langkah persediaan
   ========================================================================== */
/* Menu sisi: kumpulan boleh dilipat */
.side { padding-bottom: 0; }
.side-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 12px -6px 0; padding: 0 6px 12px; scrollbar-width: thin; }
.side-nav > a { margin-bottom: 4px; }
.side-group { margin-top: 2px; }
.side-group summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; cursor: pointer; list-style: none; font: 700 11px/1 var(--fm-font); text-transform: uppercase; letter-spacing: .09em; color: var(--faint); user-select: none; }
.side-group summary::-webkit-details-marker { display: none; }
.side-group summary:hover { color: var(--text); background: var(--fill); }
.side-group summary .chev { width: 14px; height: 14px; margin-left: auto; transition: transform .2s; }
.side-group summary > .i:first-child { width: 15px; height: 15px; }
.side-group[open] summary .chev { transform: rotate(180deg); }
.side-group[data-active] summary { color: var(--p); }
.side-items { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 8px; }
.side-nav a { padding: 9px 12px; font-size: 14.5px; }
.side-upsell { margin: 10px 0 16px; flex: none; }
.admin-group summary { color: var(--muted); }

/* Butang + Baharu */
.new-menu { position: relative; }
.new-menu summary { list-style: none; }
.new-menu summary::-webkit-details-marker { display: none; }
.new-btn { border-color: rgba(var(--p-rgb), .35) !important; color: var(--p) !important; }
.new-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 300px; padding: 8px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-lg); display: grid; gap: 2px; animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.new-pop a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--text); text-decoration: none !important; }
.new-pop a:hover { background: var(--fill); }
.new-pop b { display: block; font-size: 14px; }
.new-pop small { display: block; font-size: 12px; color: var(--muted); }

/* Ikon tindakan berwarna */
.qa-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; }
.qa-ico .i { width: 20px; height: 20px; }
.qa-ico.teal { background: rgba(15,118,110,.12); color: #0f766e; }
.qa-ico.indigo { background: rgba(79,70,229,.12); color: #4f46e5; }
.qa-ico.amber { background: rgba(217,119,6,.13); color: #c2410c; }
.qa-ico.green { background: rgba(22,163,74,.12); color: #15803d; }
.qa-ico.sky { background: rgba(2,132,199,.12); color: #0369a1; }
.qa-ico.rose { background: rgba(225,29,72,.1); color: #be123c; }
:root[data-theme=dark] .qa-ico { filter: brightness(1.5) saturate(1.1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .qa-ico { filter: brightness(1.5) saturate(1.1); } }

/* Sambutan + tindakan pantas */
.welcome { margin-bottom: 20px; padding: 24px; border-radius: 24px; background: radial-gradient(500px 220px at 100% 0%, rgba(var(--gold-rgb), .14), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--card) 92%, var(--p)), var(--card)); box-shadow: var(--shadow); }
.welcome h2 { font-size: 24px; font-weight: 600; margin-bottom: 4px; }
.welcome p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.qa-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.qa { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.qa:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(var(--p-rgb), .45), 0 12px 24px -16px rgba(var(--text-rgb), .4); }
.qa .qa-ico { margin-bottom: 8px; }
.qa b { font-size: 14.5px; }
.qa small { font-size: 12px; color: var(--muted); line-height: 1.35; }

/* Langkah persediaan */
.setup { background: var(--card); }
.setup-head { justify-content: flex-start; gap: 16px; margin-bottom: 16px; }
.ring { --v: 0; width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--p) calc(var(--v) * 1%), var(--fill) 0); }
.ring span { width: 46px; height: 46px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font: 700 14px/1 var(--display); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--fill); }
.steps li.next { background: rgba(var(--p-rgb), .07); box-shadow: inset 0 0 0 1.5px rgba(var(--p-rgb), .35); }
.steps li.done { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.st-num { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--display); background: var(--card); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.st-num .i { width: 16px; height: 16px; }
.steps li.next .st-num { background: var(--p); color: var(--onp); box-shadow: none; }
.steps li.done .st-num { background: var(--ok); color: #fff; box-shadow: none; }
.st-txt { flex: 1; min-width: 0; }
.st-txt b { display: block; font-size: 14.5px; font-weight: 600; }
.st-txt small { font-size: 12.5px; color: var(--muted); }
.steps li.done .st-txt b { color: var(--muted); font-weight: 500; }

/* KPI petunjuk & carta kosong */
.kpi em.hint { font-size: 11.5px; color: var(--faint); font-weight: 500; margin-top: 2px; }
.chart-empty { position: relative; display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: center; padding: 10px 0 4px; }
.ghost-bars { display: flex; align-items: flex-end; gap: 7px; height: 120px; padding: 0 6px; border-bottom: 1px dashed var(--line); }
.ghost-bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, rgba(var(--p-rgb), .18), rgba(var(--p-rgb), .06)); }
.ce-txt b { display: block; font: 600 16px/1.3 var(--display); margin-bottom: 4px; }
.ce-txt p { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.tip { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.tip .i { width: 16px; height: 16px; color: var(--p); flex: none; }

@media (max-width: 1200px) { .qa-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .side-nav { overflow: visible; }
  .side { overflow-y: auto; }
  .new-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: 96px; width: auto; }
}
@media (max-width: 680px) {
  .welcome { padding: 18px; border-radius: 20px; }
  .welcome h2 { font-size: 20px; }
  .qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .qa { padding: 12px; flex-direction: row; align-items: center; gap: 10px; }
  .qa .qa-ico { margin: 0; width: 36px; height: 36px; }
  .qa small { display: none; }
  .steps li { flex-wrap: wrap; }
  .steps li .btn { margin-left: 44px; }
  .chart-empty { grid-template-columns: 1fr; }
  .ghost-bars { height: 70px; }
}
.side-group summary .chev { width: 16px; height: 16px; transform: rotate(-90deg); }
.side-group[open] summary .chev { transform: rotate(0); }
@media (max-width: 960px) { .side-nav { flex: none; } }
@media (max-width: 680px) {
  .setup-head { flex-direction: row; align-items: center; }
  .setup-head h2 { font-size: 16px; }
  .steps li { gap: 10px 12px; }
  .steps li .btn { margin-left: 42px; width: calc(100% - 42px); }
}
@media (min-width: 961px) {
  .shell { background: linear-gradient(90deg, color-mix(in srgb, var(--card) 55%, var(--bg)) var(--side-w), transparent var(--side-w)); }
  .side { border-right: 0; box-shadow: inset -1px 0 0 var(--line); }
}

/* v5 — mata wang & fred.my Unlimited */
.cur-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.cur-switch a, .cur-switch span { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none !important; }
.cur-switch .on { background: var(--text); color: var(--bg); }
.bill-cur { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 12px; gap: 12px; flex-wrap: wrap; }
.h-sm { font-size: 17px; margin: 0; }
.unl-banner { background: linear-gradient(135deg, rgba(245, 158, 11, .12), rgba(236, 72, 153, .1)); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .3); }
.unl-banner > .i { color: #d97706; }
.price-alt { margin: -6px 0 10px; }
.unl-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 18px auto 0; max-width: 760px; text-align: center; color: var(--muted); font-size: 14.5px; }
.unl-note .i { color: #d97706; width: 20px; height: 20px; }
/* Butang chat bantuan fred.my di atas bar tab telefon */
@media (max-width: 960px) { body:has(.tabbar) .fm-chat { bottom: calc(84px + env(safe-area-inset-bottom)); } }
