/* minitmeeting.my — mobile-first */
:root {
  --pri: #0f4c5c; --pri-2: #12657a; --pri-soft: #e3f0f2;
  --bg: #f3f5f7; --card: #fff; --ink: #18232b; --muted: #6b7a86; --line: #e1e6ea;
  --green: #1f8a4c; --green-soft: #e3f4ea; --amber: #b7791f; --amber-soft: #fdf3e1;
  --blue: #2b6cb0; --blue-soft: #e5effa; --red: #c53030; --grey-soft: #eef1f3;
  --r: 14px; --sh: 0 1px 2px rgba(16,24,40,.05), 0 2px 8px rgba(16,24,40,.06);
  --nav-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); -webkit-tap-highlight-color: transparent; }
a { color: var(--pri-2); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; }
code { background: var(--grey-soft); padding: 1px 5px; border-radius: 4px; }
.ic { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
[hidden] { display: none !important; }

/* Layout */
.sidebar { display: none; }
.main { min-height: 100vh; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 17px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content { max-width: 920px; margin: 0 auto; padding: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 18px; }
.brand img { width: 32px; height: 32px; }
.brand b, .brand-lg b { color: var(--pri-2); font-weight: 700; }
.brand.sm img { width: 30px; height: 30px; }

.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; align-items: center; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: #fff; border-top: 1px solid var(--line); }
.bottomnav a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 6px 0; }
.bottomnav a.on { color: var(--pri); font-weight: 600; }
.bottomnav .ic { width: 22px; height: 22px; }
.bottomnav .fab { flex: none; width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; background: var(--pri); color: #fff; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.bottomnav .fab .ic { width: 26px; height: 26px; }
.badge { position: absolute; top: 2px; left: 55%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-style: normal; line-height: 18px; text-align: center; font-weight: 700; }
body.has-actions .bottomnav { display: none; }
body.has-actions .main { padding-bottom: calc(90px + var(--safe-b)); }

@media (min-width: 900px) {
  .sidebar { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: 240px; padding: 20px 14px; background: #fff; border-right: 1px solid var(--line); }
  .sidebar nav { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; flex: 1; }
  .sidebar nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 500; }
  .sidebar nav a:hover { background: var(--grey-soft); }
  .sidebar nav a.on { background: var(--pri-soft); color: var(--pri); font-weight: 600; }
  .sidebar .badge { position: static; margin-left: auto; }
  .sidebar .me { padding: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
  .sidebar .me span { color: var(--muted); font-size: 13px; }
  .main { margin-left: 240px; padding-bottom: 32px; }
  .bottomnav { display: none; }
  .topbar .brand.sm { display: none; }
  .content { padding: 24px 32px; }
  body.has-actions .main { padding-bottom: 100px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; background: var(--grey-soft); color: var(--ink); white-space: nowrap; transition: transform .05s, filter .15s; }
.btn:active { transform: scale(.98); }
.btn:hover { filter: brightness(.97); }
.btn.primary { background: var(--pri); color: #fff; }
.btn.green { background: var(--green); color: #fff; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.ghost { background: #fff; border-color: var(--line); }
.btn.danger { color: var(--red); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; list-style: none; }
.icon-btn:hover { background: var(--grey-soft); }
.icon-btn.danger { color: var(--red); }
form.inline { display: inline; margin: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn-row:empty { display: none; }

/* Alerts & chips */
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; background: var(--blue-soft); color: #1e4e7e; font-weight: 500; }
.alert.ok { background: var(--green-soft); color: #17633a; }
.alert.err { background: #fde8e8; color: #9b2c2c; }
.hint { margin-top: 12px; padding: 10px 12px; border-left: 4px solid var(--amber); background: var(--amber-soft); border-radius: 8px; font-size: 14px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip-grey { background: var(--grey-soft); color: #4a5863; }
.chip-amber { background: var(--amber-soft); color: var(--amber); }
.chip-blue { background: var(--blue-soft); color: var(--blue); }
.chip-green { background: var(--green-soft); color: var(--green); }

/* Dashboard */
.hello h2 { font-size: 22px; } .hello p { margin: 4px 0 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.stat { background: var(--card); border-radius: var(--r); padding: 12px 8px; text-align: center; box-shadow: var(--sh); color: var(--ink); border-top: 3px solid #c3ccd3; }
.stat b { display: block; font-size: 22px; } .stat span { font-size: 11px; color: var(--muted); }
.stat.amber { border-color: var(--amber); } .stat.blue { border-color: var(--blue); } .stat.green { border-color: var(--green); }
.tabs { display: flex; gap: 4px; padding: 4px; background: #e6eaed; border-radius: 12px; margin-bottom: 12px; }
.tabs a { flex: 1; text-align: center; padding: 8px 4px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; }
.tabs a.on { background: #fff; color: var(--ink); box-shadow: var(--sh); }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; margin-bottom: 12px; color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; min-height: 44px; font: inherit; background: transparent; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); color: var(--ink); }
.item-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; }
.item-ic.minit { background: var(--pri-soft); color: var(--pri); }
.item-ic.dokumen { background: var(--blue-soft); color: var(--blue); }
.item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-body b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-body small { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty > .ic { width: 48px; height: 48px; opacity: .5; }

/* Choose */
.choose { display: grid; gap: 12px; }
@media (min-width: 700px) { .choose { grid-template-columns: repeat(3, 1fr); } }
.choice { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); color: var(--ink); border: 2px solid transparent; }
.choice:hover { border-color: var(--pri-soft); }
.choice small { color: var(--muted); }
.choice-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 6px; }
.choice-ic .ic { width: 26px; height: 26px; }
.choice-ic.minit { background: var(--pri-soft); color: var(--pri); }
.choice-ic.dokumen { background: var(--blue-soft); color: var(--blue); }
.choice-ic.blank { background: var(--amber-soft); color: var(--amber); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: #3d4b55; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfd7dd; border-radius: 10px; font: 16px/1.4 inherit; font-family: inherit; color: var(--ink); background: #fff; }
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pri-soft); border-color: var(--pri-2); }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
legend { font-weight: 700; padding: 0 6px; }
.grid2, .grid3 { display: grid; gap: 10px; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1.4fr 1fr 1fr; } .span2 { grid-column: span 2; } }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 14px 16px; margin-bottom: 14px; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 10px; cursor: pointer; }
details > summary { list-style: none; } details > summary::-webkit-details-marker { display: none; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step > summary { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; cursor: pointer; padding: 2px 0; }
.step > summary i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pri); color: #fff; font-style: normal; font-size: 13px; }
.step > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .2s; }
.step:not([open]) > summary::after { transform: rotate(-90deg); }
.step[open] > summary { margin-bottom: 12px; }
.step h4 { font-size: 14px; color: var(--pri); margin-top: 6px; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row-item { display: flex; gap: 6px; align-items: flex-start; }
.row-item > .grid2, .row-item > .agenda-body { flex: 1; }
.row-item.agenda { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; counter-increment: ag; }
.rows[data-rows="ag"] { counter-reset: ag; }
.agenda-body { display: flex; flex-direction: column; gap: 10px; }
.agenda-body::before { content: "Agenda " counter(ag); font-weight: 700; color: var(--pri); font-size: 13px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px 14px; padding-bottom: calc(10px + var(--safe-b)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.actionbar .btn { flex: 1; padding: 0 8px; }
@media (min-width: 900px) { .actionbar { left: 240px; justify-content: flex-end; padding-right: 32px; } .actionbar .btn { flex: none; padding: 0 22px; } }

/* Upload & editor */
.drop { position: relative; display: flex !important; flex-direction: column; align-items: center; gap: 6px !important; padding: 26px 16px; border: 2px dashed #b8c5ce; border-radius: var(--r); background: #fff; text-align: center; cursor: pointer; color: var(--pri) !important; }
.drop.over, .drop:hover { border-color: var(--pri-2); background: var(--pri-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ic { width: 34px; height: 34px; }
.drop b { font-size: 15px; color: var(--ink); } .drop small { color: var(--muted); font-weight: 400; }
.editor-wrap { display: flex; flex-direction: column; gap: 0; }
.toolbar { position: sticky; top: 58px; z-index: 10; display: flex; gap: 2px; overflow-x: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px 12px 0 0; scrollbar-width: none; }
.toolbar button { flex: none; min-width: 40px; height: 38px; border: 0; border-radius: 8px; background: transparent; font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; color: var(--ink); }
.toolbar button:hover, .toolbar button:active { background: var(--grey-soft); }
.editor { min-height: 55vh; outline: none; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px !important; box-shadow: none !important; margin: 0 !important; max-width: none !important; }
.editor:empty::before { content: attr(data-placeholder); color: var(--muted); }

/* Record view */
.rec-head { margin-bottom: 14px; }
.rec-title { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.rec-title h2 { font-size: 20px; }
.btn-row.wf .btn { min-height: 40px; }
.paper-wrap { margin: 0 -16px 16px; padding: 0 8px; overflow-x: auto; }
@media (min-width: 700px) { .paper-wrap { margin: 0 0 18px; padding: 0; } }
.sig-list { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.sig-list li { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.sig-thumb { width: 96px; height: 48px; display: grid; place-items: center; background: #fafbfc; border-radius: 8px; border: 1px dashed #cfd7dd; }
.sig-thumb img { max-width: 100%; max-height: 100%; }
.sig-thumb span { font-size: 10px; color: var(--muted); text-align: center; }
.sig-meta { flex: 1; min-width: 120px; display: flex; flex-direction: column; }
.sig-meta small { color: var(--muted); font-size: 12px; }
.sig-acts { display: flex; gap: 4px; align-items: center; }
.add-slot > summary { display: inline-flex; }
.add-slot[open] > summary { margin-bottom: 12px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 12px 8px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -21px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--pri-2); border: 2px solid #fff; }
.timeline small { display: block; color: var(--muted); font-size: 12px; }

/* Signature dialog */
.sign-dialog { width: min(640px, 100vw); max-width: 100vw; max-height: 100dvh; padding: 0; border: 0; border-radius: 18px; }
.sign-dialog::backdrop { background: rgba(10,20,30,.5); }
.sign-dialog header { display: flex; flex-direction: column; padding: 14px 16px 6px; }
.pad-wrap { position: relative; margin: 8px 16px; height: min(46vh, 320px); border: 2px dashed #b8c5ce; border-radius: 12px; background: #fff; touch-action: none; }
.pad-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.pad-hint { position: absolute; left: 0; right: 0; bottom: 30%; text-align: center; color: #b8c5ce; pointer-events: none; font-size: 14px; border-top: 1px solid #dfe5ea; margin: 0 20px; padding-top: 6px; }
.pad-wrap.inked .pad-hint { color: transparent; }
.sign-dialog footer { display: flex; gap: 8px; padding: 10px 16px 16px; }
.sign-dialog footer .btn { flex: 1; }
@media (max-width: 600px) { .sign-dialog { margin: auto 0 0; border-radius: 18px 18px 0 0; } }

/* Users & account */
.item.static { color: var(--ink); }
.more { position: relative; }
.more-menu { position: absolute; right: 0; top: 44px; z-index: 15; width: 250px; padding: 12px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); display: flex; flex-direction: column; gap: 10px; }
.more-menu .form { gap: 6px; }
.profile { display: flex; align-items: center; gap: 14px; }
.profile > div:last-child { display: flex; flex-direction: column; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--pri); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; }

/* Auth pages */
body.auth { display: grid; place-items: center; min-height: 100vh; padding: 20px 16px; background: linear-gradient(160deg, var(--pri) 0%, var(--pri-2) 45%, #f3f5f7 45.1%); }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 26px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.15); display: flex; flex-direction: column; gap: 14px; }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-size: 20px; }
.auth-card p { margin: 0; }
.brand-lg { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 24px; font-weight: 800; }
.brand-lg img { width: 44px; height: 44px; }

/* ===== Kertas dokumen rasmi (pratonton / PDF / cetak) ===== */
.paper { background: #fff; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 12.5px; line-height: 1.5; padding: 22px 18px; border-radius: 6px; box-shadow: 0 2px 14px rgba(0,0,0,.08); max-width: 794px; margin: 0 auto; overflow-wrap: anywhere; }
@media (min-width: 700px) { .paper { font-size: 14px; padding: 56px 64px; } }
.paper p { margin: 0 0 8px; }
.paper table { border-collapse: collapse; width: 100%; }
.paper .nil { color: #666; font-style: italic; }
.doc-head { text-align: center; margin-bottom: 18px; }
.doc-head .org { font-weight: 700; font-size: 1.05em; margin-bottom: 8px; }
.doc-head .dt { font-weight: 700; font-size: 1.15em; letter-spacing: .5px; }
.doc-head .dtitle { font-weight: 700; font-size: 1.1em; }
.doc-head .bil { font-weight: 700; }
.paper .info { width: auto; margin: 0 0 14px; }
.paper .info th { text-align: left; font-weight: 700; padding: 1px 0; vertical-align: top; width: 90px; }
.paper .info td { padding: 1px 6px; vertical-align: top; }
.paper h3.sec { font-size: 1em; margin: 14px 0 6px; text-decoration: underline; }
.paper h4 { font-size: 1em; margin: 10px 0 4px; }
.paper .ppl { margin-bottom: 6px; }
.paper .ppl td { padding: 2px 4px; vertical-align: top; }
.paper .ppl td.no { width: 28px; }
.paper .ppl .pos { color: #333; }
.paper .ppl td.why { font-style: italic; color: #333; width: 35%; }
.paper .secs { margin-top: 12px; }
.paper .ag { margin-bottom: 12px; table-layout: fixed; }
.paper .ag col.c1 { width: 30px; }
.paper .ag col.c3 { width: 26%; }
.paper .ag th { text-align: left; padding: 4px 4px 4px 0; vertical-align: top; }
.paper .ag td { padding: 2px 4px 2px 0; vertical-align: top; }
.paper .ag .act { text-align: center; font-weight: 700; padding-left: 8px; }
.paper .ag td.act { font-weight: 700; font-size: .95em; }
.paper .ag td.act small { font-weight: 400; }
.paper .kep { background: #f6f8f9; padding: 6px 8px; border-left: 3px solid #555; }
.paper .sigs { margin-top: 30px; display: flex; flex-direction: column; gap: 28px; }
.paper .sig { page-break-inside: avoid; break-inside: avoid; }
.paper .sig p { margin: 0; }
.paper .sig .sig-label { margin-bottom: 4px; }
.paper .sig .sigimg { height: 64px; display: flex; align-items: flex-end; }
.paper .sig .sigimg img { max-height: 64px; max-width: 220px; }
.paper .sig .sig-dots { letter-spacing: -1px; line-height: 1.2; }
.paper .docx img { max-width: 100%; height: auto; }
.paper .docx table td, .paper .docx table th { border: 1px solid #999; padding: 4px 6px; vertical-align: top; }
.paper .docx h1 { font-size: 1.5em; margin: 10px 0; } .paper .docx h2 { font-size: 1.25em; margin: 10px 0 6px; } .paper .docx h3 { font-size: 1.1em; margin: 8px 0 4px; }

/* Mod PDF: lebar tetap A4 tanpa bayang */
.paper.pdf { font-size: 13px; padding: 0; box-shadow: none; border-radius: 0; max-width: none; width: 100%; }

/* ===== Tema warna ===== */
html[data-theme="biru"]  { --pri: #1e40af; --pri-2: #2563eb; --pri-soft: #e0e9fd; }
html[data-theme="hijau"] { --pri: #166534; --pri-2: #15803d; --pri-soft: #dcf3e3; }
html[data-theme="ungu"]  { --pri: #5b21b6; --pri-2: #7c3aed; --pri-soft: #ede5fd; }
html[data-theme="merah"] { --pri: #991b1b; --pri-2: #b91c1c; --pri-soft: #fbe4e4; }
html[data-theme="oren"]  { --pri: #c2410c; --pri-2: #ea580c; --pri-soft: #fdeadb; }
html[data-theme="pink"]  { --pri: #be185d; --pri-2: #db2777; --pri-soft: #fce4ef; }
html[data-theme="hitam"] { --pri: #1f2937; --pri-2: #374151; --pri-soft: #e8eaee; }
.theme-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.theme-pick label { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.theme-pick input { position: absolute; opacity: 0; pointer-events: none; }
.theme-pick span { width: 44px; height: 44px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 3px #fff; border: 3px solid transparent; }
.theme-pick input:checked + span { border-color: var(--sw); }
.theme-pick small { font-size: 11px; color: var(--muted); text-align: center; }

/* ===== Pelan & banner ===== */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.planbar { display: block; margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: var(--ink); }
.planbar.trial { background: var(--amber-soft); }
.planbar.free { background: #fde8e8; }
.banners { position: relative; margin-bottom: 14px; }
.banner-card { display: none; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--bc, var(--pri)); color: #fff; overflow: hidden; }
.banner-card.on { display: flex; animation: fadein .4s; }
.banners.preview .banner-card { display: flex; margin-bottom: 8px; }
.banner-card.off { opacity: .5; }
.banner-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; background: #fff; }
.banner-card .bt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.banner-card .bt small { opacity: .9; }
.banner-card .bb { flex: none; padding: 7px 12px; border-radius: 99px; background: #fff; color: var(--bc, var(--pri)); font-weight: 700; font-size: 13px; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.plan-now h2 { font-size: 24px; margin: 2px 0 6px; }
.plan-now.plan-paid { border-top: 4px solid var(--green); } .plan-now.plan-trial { border-top: 4px solid var(--amber); } .plan-now.plan-free { border-top: 4px solid var(--red); }
.meter { height: 10px; border-radius: 99px; background: var(--grey-soft); overflow: hidden; } .meter i { display: block; height: 100%; background: var(--red); }
.howpay { padding-left: 18px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.howpay pre { background: var(--grey-soft); padding: 10px 12px; border-radius: 10px; white-space: pre-wrap; font: 14px/1.5 system-ui, sans-serif; margin: 6px 0 0; }
.prices { display: grid; gap: 14px; }
@media (min-width: 640px) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .l-sec .prices { grid-template-columns: repeat(4, 1fr); } }
.prices.compact { margin-bottom: 14px; }
.price { position: relative; background: #fff; border-radius: var(--r); padding: 20px 18px; box-shadow: var(--sh); border: 2px solid transparent; display: flex; flex-direction: column; gap: 6px; }
.price.hot { border-color: var(--pri-2); }
.price h3 { font-size: 16px; }
.price .amt { font-size: 30px; font-weight: 800; color: var(--pri); }
.price .amt small { font-size: 14px; font-weight: 500; color: var(--muted); }
.price p { margin: 0; }
.price ul { list-style: none; padding: 0; margin: 8px 0 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.price li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.price li.no::before { content: "✕ "; color: var(--red); }
.price .tag { position: absolute; top: -10px; right: 14px; padding: 2px 10px; border-radius: 99px; background: var(--pri-2); color: #fff; font-size: 12px; font-weight: 700; }
.price .tag.green { background: var(--green); }
.menu-list { padding: 4px 0; }
.menu-list a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--ink); border-bottom: 1px solid var(--line); }
.menu-list a:last-child { border-bottom: 0; }
.menu-list span { flex: 1; display: flex; flex-direction: column; font-weight: 600; }
.menu-list small { font-weight: 400; color: var(--muted); font-size: 12px; }
.menu-list i { font-style: normal; color: var(--muted); font-size: 20px; }
.menu-list .ic { color: var(--pri); }
.org-item { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.org-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.org-top > div { display: flex; flex-direction: column; min-width: 0; }
.org-top small { overflow: hidden; text-overflow: ellipsis; }
.org-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.org-acts .more-menu { right: auto; left: 0; }
label.check { flex-direction: row !important; align-items: center; gap: 8px !important; }
label.check input { width: 20px; min-height: 20px; }
input[type=color] { padding: 4px; }

/* ===== Komen & kongsi ===== */
.share-card { border: 2px solid var(--pri-soft); }
.share-link { display: flex; gap: 8px; }
.share-link input { flex: 1; font-size: 13px; background: var(--grey-soft); }
.btn.wa { background: #25d366; color: #fff; }
.comments { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.comments li { padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); border-left: 4px solid var(--amber); }
.comments li.done { background: var(--grey-soft); border-left-color: var(--green); opacity: .8; }
.comments p { margin: 4px 0 6px; }
.c-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ok-tag { color: var(--green); font-weight: 600; }
.comment-form { flex-direction: row; align-items: flex-end; }
.comment-form textarea { min-height: 46px; }
.sign-name { display: flex; flex-direction: column; gap: 8px; padding: 6px 16px 0; }

/* Halaman ketua (pautan kongsi) — ringkas */
body.guest.has-actions { padding-bottom: calc(96px + var(--safe-b)); }
.guest-head { margin-bottom: 14px; }
.guest-head h2 { font-size: 21px; margin: 2px 0 10px; }
.banner { padding: 12px 14px; border-radius: 12px; background: var(--pri-soft); font-size: 15px; }
.banner.ok { background: var(--green-soft); color: #17633a; font-weight: 600; }
.banner.wait { background: var(--amber-soft); }
.dl-row { display: flex; gap: 16px; margin-top: 10px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--pri-2); font: 600 14px system-ui, sans-serif; cursor: pointer; padding: 4px 0; }
.actionbar.guest-bar { left: 0; justify-content: stretch; padding-right: 14px; }
.guest-bar .btn { flex: 1 !important; min-height: 54px; font-size: 16px; border-radius: 14px; }
.slot-btn { margin-bottom: 8px; }
@media (min-width: 900px) { body.guest .content { max-width: 860px; } .actionbar.guest-bar { left: 0; padding: 12px calc(50% - 420px); } }

/* ===== Landing page ===== */
body.landing { background: #fff; }
.l-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.l-nav nav { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 14px; }
.l-nav nav a:not(.btn) { color: var(--ink); }
@media (max-width: 560px) { .l-nav nav a:not(.btn) { display: none; } }
.hero { display: grid; gap: 30px; align-items: center; max-width: 1100px; margin: 0 auto; padding: 36px 18px 30px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr .85fr; padding: 70px 24px; } }
.pill { display: inline-block; padding: 6px 12px; border-radius: 99px; background: var(--pri-soft); color: var(--pri); font-weight: 600; font-size: 13px; }
.hero h1 { font-size: clamp(30px, 6vw, 50px); line-height: 1.1; margin: 14px 0; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--pri-2); }
.hero p { font-size: 17px; color: #43525d; margin: 0 0 18px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.btn.lg { min-height: 54px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn.light { background: #fff; color: var(--pri); }
.hero-art { display: flex; justify-content: center; }
.phone { width: 260px; border-radius: 34px; padding: 14px; background: #10202a; box-shadow: 0 30px 60px rgba(15,40,60,.25); transform: rotate(2deg); }
.phone-paper { background: #fff; border-radius: 22px 22px 6px 6px; padding: 20px 16px; display: flex; flex-direction: column; gap: 7px; font-family: Arial, sans-serif; min-height: 330px; }
.phone-paper b { text-align: center; font-size: 13px; }
.phone-paper span { text-align: center; font-size: 9px; color: #444; margin-bottom: 6px; }
.phone-paper i { display: block; height: 7px; border-radius: 4px; background: #e6eaee; }
.phone-paper i.s { width: 60%; }
.mini-ag { border-left: 3px solid var(--pri-2); padding-left: 8px; display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.mini-sig { margin-top: auto; }
.mini-sig svg { width: 110px; height: 36px; display: block; }
.mini-sig small { font-size: 8px; font-weight: 700; }
.phone-bar { display: flex; gap: 6px; margin-top: 8px; }
.phone-bar span { flex: 1; text-align: center; padding: 9px 4px; border-radius: 10px; background: #fff; font-size: 10px; font-weight: 700; }
.phone-bar .g { background: var(--green); color: #fff; }
.l-sec { padding: 46px 18px; }
.l-sec.alt { background: var(--bg); }
.l-sec > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.l-sec h2 { font-size: clamp(22px, 4vw, 32px); text-align: center; margin-bottom: 26px; }
.steps { list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.steps span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--pri); color: #fff; font-weight: 800; }
.steps p, .feat p { margin: 0; color: #4a5863; font-size: 14px; }
.feat { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .feat { grid-template-columns: 1fr 1fr; } }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } .feat { grid-template-columns: repeat(3, 1fr); } }
.feat > div { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 6px; }
.faq { display: flex; flex-direction: column; gap: 8px; max-width: 760px !important; }
.faq details { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: var(--sh); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; color: #4a5863; }
.l-cta { text-align: center; padding: 50px 18px; background: linear-gradient(135deg, var(--pri), var(--pri-2)); color: #fff; }
.l-cta h2 { margin-bottom: 16px; font-size: clamp(22px, 4vw, 30px); }
.l-foot { text-align: center; padding: 20px; color: var(--muted); font-size: 13px; }

@media print {
  @page { size: A4; margin: 16mm 15mm; }
  body { background: #fff; }
  .sidebar, .bottomnav, .topbar, .rec-head, .card, .actionbar, .alert, dialog, .guest-head, .planbar, .banners { display: none !important; }
  .main { margin: 0; padding: 0; } .content { padding: 0; max-width: none; }
  .paper-wrap { margin: 0; padding: 0; overflow: visible; }
  .paper { box-shadow: none; padding: 0; font-size: 12pt; max-width: none; }
  .paper .ag, .paper .ppl tr { break-inside: avoid; }
}
.pay-list { list-style: none; margin: 0; padding: 0; }
.pay-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pay-list li:last-child { border-bottom: 0; }
.pay-list li > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.pay-list.card { padding: 4px 16px; }
