/* RodaKita — gaya mengikuti prototipe */
:root {
  --bg: #f4f1ec; --card: #fff; --ink: #1d1b19; --mute: #77716a; --line: #e6e1d9;
  --accent: #e4572e; --accent-ink: #fff; --dark: #22201e; --ok: #2e9e6a; --warn: #d99a1d;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #d9d4cc; color: var(--ink); min-height: 100vh; display: flex; justify-content: center;
}
.app { width: 100%; max-width: 460px; min-height: 100vh; background: var(--bg); position: relative; display: flex; flex-direction: column; }
header { background: var(--dark); color: #fff; padding: 14px 16px 10px; position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand h1 { font-size: 18px; letter-spacing: .3px; }
.brand h1 span { color: var(--accent); }
.me { font: inherit; font-size: 12px; background: #38342f; color: #fff; border: 0; padding: 5px 10px; border-radius: 99px; cursor: pointer; display: flex; align-items: center; gap: 6px; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid #4a453f; color: #ddd6cc; background: transparent; padding: 6px 12px; border-radius: 99px; font-size: 13px; cursor: pointer; font-family: inherit; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
main { flex: 1; padding: 14px 14px 90px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.sp { flex: 1; min-width: 0; }
.mute { color: var(--mute); font-size: 12px; }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: #efe9df; color: #5b544b; font-weight: 600; }
h2 { font-size: 16px; margin: 2px 0 10px; }
h3 { font-size: 15px; }
p.body { font-size: 14px; line-height: 1.5; margin: 8px 0; }
.btn { border: 0; background: var(--accent); color: #fff; padding: 11px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.ghost { background: #efe9df; color: var(--ink); }
.btn.white { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.btn.block { width: 100%; }
.link { border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
textarea, input, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { resize: none; height: 64px; }
.fld { margin-bottom: 10px; }
.fld label { display: block; font-size: 12px; color: var(--mute); margin-bottom: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; margin: 12px 0; }
.check input { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 12px; margin: 14px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.err { color: #b3361a; font-size: 13px; margin: 4px 0 8px; }
.err:empty { display: none; }
.note { background: #fbefd2; color: #6b4e0c; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; margin-top: 12px; }

.photo { width: 96px; height: 96px; border-radius: 50%; background: #e6dfd3; display: grid; place-items: center; font-size: 30px; font-weight: 700; color: #8a8175; margin: 0 auto 8px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.kv { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--mute); width: 110px; flex: none; font-size: 12px; padding-top: 2px; }
.li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.st { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.st.ok { background: #dff3e8; color: #1f7a50; }
.st.wait { background: #fbefd2; color: #8a6410; }
.st.no { background: #fbe0d8; color: #b3361a; }
.empty { text-align: center; color: var(--mute); padding: 30px 10px; font-size: 14px; }
.back { border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; margin-bottom: 10px; font-family: inherit; }

.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 6px; text-align: center; cursor: pointer; font: inherit; color: inherit; position: relative; }
.mi:active { transform: scale(.97); }
.mi .e { font-size: 28px; display: block; margin-bottom: 6px; }
.mi b { font-size: 12px; display: block; }
.mi small { font-size: 10px; color: var(--mute); }
.mi.soon { opacity: .55; }
.mi .soon-tag { position: absolute; top: 6px; right: 6px; font-size: 9px; font-weight: 700; background: #efe9df; color: #8a8175; padding: 1px 6px; border-radius: 99px; }

.steps .li b { font-size: 14px; }
.hello { background: linear-gradient(135deg, #22201e, #5a4636); color: #fff; border: 0; }
.hello .mute { color: #d8cfc3; }

.sos { width: 150px; height: 150px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #ff7a59, #c93a14); color: #fff; font-weight: 800; font-size: 26px; box-shadow: 0 8px 24px rgba(201, 58, 20, .45); margin: 14px auto; display: block; font-family: inherit; }
.sos:disabled { filter: grayscale(.6); opacity: .65; }
.emg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.emg { display: block; text-decoration: none; color: #fff; border-radius: 14px; padding: 14px 12px; text-align: left; }
.emg .e { font-size: 26px; }
.emg b { display: block; font-size: 14px; margin-top: 4px; }
.emg .no { font-size: 24px; font-weight: 800; letter-spacing: .5px; }
.emg small { display: block; opacity: .9; font-size: 11px; margin-top: 2px; }
.emg:active { transform: scale(.97); }

nav { position: fixed; bottom: 0; width: 100%; max-width: 460px; background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 6; padding-bottom: env(safe-area-inset-bottom); }
nav button { flex: 1; min-width: 0; border: 0; background: none; padding: 9px 0 8px; font-size: 10.5px; white-space: nowrap; color: var(--mute); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: inherit; }
nav button .ic { font-size: 20px; filter: grayscale(1); opacity: .7; }
nav button.on { color: var(--accent); font-weight: 700; }
nav button.on .ic { filter: none; opacity: 1; }

.toast { position: fixed; left: 50%; bottom: 78px; transform: translateX(-50%); background: #22201e; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 40; max-width: 420px; width: max-content; text-align: center; }
.toast.show { opacity: 1; }
.toast.bad { background: #b3361a; }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); display: none; align-items: flex-end; justify-content: center; z-index: 30; }
.modal.show { display: flex; }
.sheet { background: #fff; width: 100%; max-width: 460px; border-radius: 18px 18px 0 0; padding: 18px; max-height: 85vh; overflow: auto; }

/* Struktur organisasi (dari prototipe) */
.org { display: flex; flex-direction: column; align-items: center; }
.node { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; text-align: center; min-width: 100px; cursor: pointer; flex: 1 1 100px; font: inherit; color: inherit; }
.node[aria-disabled="true"] { cursor: default; }
.org > .node { flex: none; min-width: 180px; }
.node small { display: block; color: var(--mute); font-size: 10px; margin-bottom: 2px; }
.node b { font-size: 12px; }
.node.top { background: var(--dark); color: #fff; border-color: var(--dark); }
.node.top small { color: #bbb2a6; }
.node.top2 { background: var(--accent); color: #fff; border-color: var(--accent); }
.node.top2 small { color: #ffe1d8; }
.node.mine { box-shadow: 0 0 0 3px #f4b29f; }
.vline { width: 2px; height: 14px; background: #cfc7ba; }
.orow { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; width: 100%; }
.sheet h2 { margin-bottom: 12px; }

/* Kartu KTA digital */
.kta { color: #fff; border-radius: 16px; padding: 18px; margin-bottom: 12px; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.kta .n { font-size: 18px; font-weight: 800; line-height: 1.2; }
.kta-photo { width: 58px; height: 58px; border-radius: 12px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-weight: 800; font-size: 20px; overflow: hidden; flex: none; border: 2px solid rgba(255, 255, 255, .5); }
.kta-photo img { width: 100%; height: 100%; object-fit: cover; }
.kta-no { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 20px; font-weight: 800; letter-spacing: 1.5px; margin: 16px 0 6px; }

/* Event & pengumuman (dari prototipe) */
.date { width: 48px; text-align: center; border-radius: 10px; background: var(--dark); color: #fff; padding: 6px 0; flex: none; }
.date b { display: block; font-size: 18px; line-height: 1; }
.date small { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.bar { height: 6px; background: #eee7dc; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.pin { border-left: 3px solid var(--accent); }

/* Chat (dari prototipe) */
.tabs2 { display: flex; background: #e6dfd3; border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.tabs2 button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--mute); font-family: inherit; }
.tabs2 button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.bub { max-width: 82%; padding: 8px 11px; border-radius: 14px; font-size: 14px; line-height: 1.4; margin: 6px 0; background: #fff; border: 1px solid var(--line); width: fit-content; word-wrap: break-word; overflow-wrap: anywhere; }
.bub[data-candel] { cursor: pointer; }
.bub.me { margin-left: auto; background: var(--accent); color: #fff; border-color: var(--accent); }
.bub small { display: block; font-size: 10px; opacity: .75; margin-bottom: 2px; font-weight: 700; }
.chatbox { min-height: 260px; padding-bottom: 64px; }
.composer { position: fixed; bottom: calc(58px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: 100%; max-width: 460px; background: #fff; border-top: 1px solid var(--line); padding: 8px; display: flex; gap: 8px; z-index: 7; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; margin-left: 4px; }

/* Kas & Iuran (dari prototipe) */
.stat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stat .card { margin: 0; }
.big { font-size: 19px; font-weight: 800; }
.paid { color: var(--ok); }
.unpaid { color: var(--accent); }

/* Garasi (dari prototipe) */
.vehicle { display: flex; gap: 12px; align-items: center; }
.vimg { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; font-size: 30px; flex: none; }

/* Pasar (dari prototipe) */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; }
.item .ph { height: 112px; display: grid; place-items: center; font-size: 36px; overflow: hidden; }
.item .tx { padding: 10px; }
.item .tx h3 { font-size: 13px; margin-bottom: 4px; }
.item.sold .ph { filter: grayscale(1); opacity: .6; }
.soldtag { position: absolute; left: 6px; top: 6px; background: #22201e; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 99px; }
.price { color: var(--accent); font-weight: 800; font-size: 15px; }

/* Konvoi & SOS */
.map { background: #e8efe3; border-radius: 12px; height: 280px; overflow: hidden; border: 1px solid var(--line); margin: 0 0 12px; position: relative; z-index: 0; }
.sosc { border: 2px solid #f3b4a3; background: #fff6f3; }
.sosbanner { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 460px; background: #c93a14; color: #fff; padding: 14px 16px; font-size: 14px; z-index: 50; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); animation: sosblink 1s ease-in-out 3; }
@keyframes sosblink { 50% { background: #ff6b3d; } }
.sos:not(:disabled) { cursor: pointer; }
.sos:active { transform: scale(.96); }
.helpers { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #f3b4a3; font-size: 13px; }

/* Laporan kas & rekap iuran */
.ftab { width: 100%; border-collapse: collapse; font-size: 13px; }
.ftab th, .ftab td { padding: 6px 5px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.ftab th { font-size: 11px; color: var(--mute); font-weight: 600; }
.ftab th:first-child, .ftab td:first-child, .ftab td:nth-child(2):not(.paid):not(.unpaid) { text-align: left; }
.ftab.mx th, .ftab.mx td { text-align: center; padding: 5px 3px; }
.ftab.mx .now { background: #fff4e5; }
.printonly { display: none; }
@media print {
  body { background: #fff; display: block; }
  .app { max-width: none; background: #fff; }
  header, #nav, #chips, #sosbanner, #toast, #modal, .noprint { display: none !important; }
  .printonly { display: block !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd; }
  a[href]::after { content: none; }
  @page { margin: 14mm; }
}

/* Cara pembayaran */
.paybox { margin-top: 8px; }
.payrow { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 6px; }
.qrcard { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 6px; background: #fff; text-align: center; }
.qrhead { background: var(--dark); color: #fff; font-weight: 800; font-size: 18px; letter-spacing: 1px; padding: 10px; }
.qrbody { padding: 14px 12px 12px; }
.qrimg { width: 220px; height: 220px; margin: 0 auto; display: grid; place-items: center; }
.qrimg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.qrname { font-weight: 800; font-size: 16px; margin-top: 8px; }

/* v23: polling, galeri, merchandise, mitra */
.pollopt { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; font: inherit; font-size: 14px; cursor: pointer; overflow: hidden; color: inherit; }
.pollopt > i { position: absolute; left: 0; top: 0; bottom: 0; background: #e4572e1f; z-index: 0; }
.pollopt > span, .pollopt > b { position: relative; z-index: 1; }
.pollopt.on { border-color: var(--accent); font-weight: 700; }
.pollopt.closed { cursor: default; }
.pollopt small { font-weight: 500; color: #8a8278; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gi { border: 0; padding: 0; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 6px; background: #efe9df; cursor: pointer; }
.gi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galnav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 24px; cursor: pointer; }
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mcard { margin: 0; padding: 10px; }
.mcard .ph { position: relative; height: 120px; border-radius: 10px; background: #efe9df; display: grid; place-items: center; font-size: 40px; overflow: hidden; margin-bottom: 8px; }
.mcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.disc { margin: 8px 0 4px; padding: 8px 10px; border-radius: 10px; background: #fff4ec; color: var(--accent); font-weight: 800; }

/* v24: HT walkie-talkie */
.ptt { width: 150px; height: 150px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #ff8a63, var(--accent)); color: #fff; font-family: inherit; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 6px 18px rgba(228,87,46,.35), inset 0 -4px 0 rgba(0,0,0,.12); cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; transition: transform .1s; }
.ptt span { font-size: 42px; line-height: 1; }
.ptt b { font-size: 12px; max-width: 120px; line-height: 1.25; }
.ptt.sm { width: 112px; height: 112px; }
.ptt.sm span { font-size: 32px; }
.ptt.sm b { font-size: 11px; max-width: 92px; }
.ptt.rec { background: radial-gradient(circle at 35% 30%, #ff5b5b, #c0392b); transform: scale(1.08); animation: pttpulse 1s infinite; }
.ptt.busy { background: #9a948c; }
.ptt:disabled { background: #cfc7ba; box-shadow: none; cursor: default; }
@keyframes pttpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,.5); } 50% { box-shadow: 0 0 0 18px rgba(192,57,43,0); } }
.htmsg.on { background: #fff4ec; border-radius: 10px; }

/* v25: direktori komunitas & profil anggota */
.dirgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dircard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer; font: inherit; color: inherit; }
.dircard b { font-size: 14px; margin-top: 6px; }
.dircard small { color: var(--mute); font-size: 12px; }
.dircard[hidden] { display: none; }
.mgrid2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 4px; }
.mchip { border: 0; background: none; padding: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; font: inherit; color: inherit; min-width: 0; }
.mchip b { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mchip small { font-size: 10px; color: var(--mute); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 12px; }

/* v27 — Linimasa & Story */
.sbar { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.sbar::-webkit-scrollbar { display: none; }
.sty { flex: none; width: 70px; border: 0; background: none; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); }
.sty span { font-size: 11px; width: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.sty-av { position: relative; padding: 3px; border-radius: 50%; border: 2.5px solid #cfc7ba; }
.sty.new .sty-av { border-color: var(--accent); }
.sty-av .avatar { border: 2px solid var(--bg); }
.sty-plus { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 16px; border: 2px solid var(--bg); }
.sty-empty { align-self: center; font-size: 12px; line-height: 1.4; padding-left: 4px; }
.cstrip { display: flex; gap: 12px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
.cstrip::-webkit-scrollbar { display: none; }
.cstrip button { flex: none; width: 64px; border: 0; background: none; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; color: var(--ink); }
.cstrip span { font-size: 11px; width: 64px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.cstrip i { position: absolute; top: 0; right: 6px; background: var(--ok); color: #fff; font-style: normal; font-size: 10px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; }
.compose .cinput { text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 99px; padding: 11px 14px; font: inherit; font-size: 14px; color: var(--mute); cursor: pointer; }
.cbtns { display: flex; gap: 6px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.cbtns button, .pact button { flex: 1; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: #5b544b; padding: 8px 4px; border-radius: 8px; cursor: pointer; }
.cbtns button:active, .pact button:active { background: #efe9df; }
.ftabs { margin-bottom: 10px; }
.post { padding: 12px 0 4px; }
.post > * { padding-left: 14px; padding-right: 14px; }
.phead { align-items: flex-start; }
.phead .sp { line-height: 1.35; font-size: 14px; }
.pcomm { cursor: pointer; }
.pdots { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--mute); cursor: pointer; padding: 0 4px; }
.pbody { font-size: 14.5px; line-height: 1.5; margin: 10px 0 8px; white-space: pre-wrap; word-wrap: break-word; }
.pbody a { color: #2f6fed; }
.pev { display: block; width: calc(100% - 28px); margin: 0 14px 8px; text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.pgrid { display: grid; gap: 2px; margin: 4px 0 6px; padding: 0 !important; }
.pgrid button { border: 0; padding: 0; background: #111; cursor: pointer; position: relative; overflow: hidden; }
.pgrid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgrid b { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); color: #fff; font-size: 26px; display: grid; place-items: center; }
.pgrid.n1 button { max-height: 460px; }
.pgrid.n1 img { max-height: 460px; }
.pgrid.n2 { grid-template-columns: 1fr 1fr; } .pgrid.n2 button { aspect-ratio: 1; }
.pgrid.n3 { grid-template-columns: 1fr 1fr; } .pgrid.n3 button { aspect-ratio: 1; } .pgrid.n3 button:first-child { grid-column: span 2; aspect-ratio: 2; }
.pgrid.n4 { grid-template-columns: 1fr 1fr; } .pgrid.n4 button { aspect-ratio: 1; }
.pcount { font-size: 12.5px; padding-top: 4px; padding-bottom: 6px; }
.pact { display: flex; border-top: 1px solid var(--line); padding-top: 2px !important; padding-bottom: 2px !important; }
.pact button.on { color: var(--accent); }
.sheetfeed .post { border-radius: 12px; }
.cmts { max-height: 50vh; overflow: auto; }
.cmt { display: flex; gap: 8px; margin-bottom: 10px; align-items: flex-start; }
.cbub { background: var(--bg); border-radius: 14px; padding: 7px 11px; font-size: 14px; line-height: 1.4; display: inline-block; max-width: 100%; word-wrap: break-word; }
.cbub b { font-size: 12.5px; }
.pfx { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; cursor: pointer; }
.sprev { border-radius: 14px; aspect-ratio: 4 / 5; max-height: 46vh; width: 100%; display: flex; align-items: center; justify-content: center; padding: 18px; }
.sprev textarea { background: transparent; border: 0; color: #fff; text-align: center; font-size: 22px; font-weight: 700; height: 60%; line-height: 1.35; }
.sprev textarea::placeholder { color: rgba(255, 255, 255, .7); }
.sprev textarea:focus { outline: none; }
.sprev.foto { align-items: flex-end; }
.sprev.foto textarea { height: 30%; font-size: 17px; background: rgba(0, 0, 0, .45); border-radius: 10px; }
.scolors { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.scolors button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.scolors button.on { box-shadow: 0 0 0 2px var(--ink); }
#storyv { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; justify-content: center; }
.sv-in { position: relative; width: 100%; max-width: 460px; height: 100%; color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sv-prog { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.sv-prog i { flex: 1; height: 3px; background: rgba(255, 255, 255, .35); border-radius: 2px; overflow: hidden; }
.sv-prog b { display: block; height: 100%; background: #fff; }
.sv-head { position: absolute; top: 20px; left: 12px; right: 12px; z-index: 3; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.sv-x { border: 0; background: none; color: #fff; font-size: 24px; cursor: pointer; padding: 4px 8px; }
.sv-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sv-text { font-size: 26px; font-weight: 700; text-align: center; padding: 0 26px; line-height: 1.35; white-space: pre-wrap; word-wrap: break-word; }
.sv-text a { color: #fff; }
.sv-text.cap { position: absolute; left: 0; right: 0; bottom: 80px; font-size: 17px; background: rgba(0, 0, 0, .5); padding: 12px 18px; }
.sv-tap { position: absolute; top: 70px; bottom: 70px; border: 0; background: none; z-index: 2; cursor: pointer; }
.sv-tap.l { left: 0; width: 33%; } .sv-tap.r { right: 0; width: 67%; }
.sv-foot { position: absolute; bottom: 18px; left: 12px; right: 12px; display: flex; gap: 8px; z-index: 3; }
.sv-foot button { flex: 1; border: 0; border-radius: 99px; padding: 10px; background: rgba(255, 255, 255, .2); color: #fff; font: inherit; font-weight: 600; cursor: pointer; backdrop-filter: blur(4px); }
.sv-views { position: absolute; left: 0; right: 0; bottom: 0; max-height: 60%; overflow: auto; background: #fff; color: var(--ink); border-radius: 18px 18px 0 0; padding: 16px; z-index: 5; }

/* v28 — KTA dengan desain komunitas */
.kta2 { position: relative; overflow: hidden; border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; aspect-ratio: 1.586; display: flex; flex-direction: column; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); min-height: 200px; }
.kta2 > * { position: relative; z-index: 1; }
.kta2 .kh { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.kta2 .kh b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kta2 .kh .avatar { border: 1.5px solid rgba(255, 255, 255, .7); }
.kta2 .kt { font-size: 9.5px; letter-spacing: .8px; opacity: .85; font-weight: 700; text-align: right; max-width: 45%; line-height: 1.2; }
.kta2 .km { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.kta2 .kta-photo { border-color: currentColor; background: rgba(127, 127, 127, .25); }
.kta2 .n { font-size: 17px; font-weight: 800; line-height: 1.2; }
.kta2 .kr { font-size: 12px; font-weight: 700; margin-top: 2px; }
.kta2 .kvn { font-size: 11.5px; opacity: .92; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kta2 .kveh { width: 86px; height: 58px; border-radius: 10px; overflow: hidden; flex: none; border: 2px solid currentColor; }
.kta2 .kveh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kta2 .kf { margin-top: auto; }
.kta2 .kta-no { margin: 0 0 3px; font-size: 19px; }
.kta2 .kfl { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; opacity: .92; }
.kta2 .ksport { position: absolute; right: 0; top: 0; height: 100%; width: 62%; object-fit: cover; z-index: 0; -webkit-mask-image: linear-gradient(to left, #000 45%, transparent); mask-image: linear-gradient(to left, #000 45%, transparent); opacity: .9; }
.kta2.t-sport .km .sp, .kta2.t-sport .kf { text-shadow: 0 1px 4px rgba(0, 0, 0, .55); }
.kta2.t-kendaraan { text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.kta2 .kbar { position: absolute; left: 0; top: 0; bottom: 0; width: 9px; z-index: 0; }
.kta2.t-minimal { box-shadow: 0 4px 16px rgba(0, 0, 0, .12); border: 1px solid var(--line); padding-left: 22px; }
.kdh { font-size: 13px; margin: 14px 0 6px; color: var(--mute); }
.ktpl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ktpl button { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 2px; font: inherit; font-size: 18px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ktpl button span { font-size: 10.5px; font-weight: 600; color: var(--ink); }
.ktpl button.on, [data-kink].on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.kswatch { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.kswatch button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.kswatch button.on { box-shadow: 0 0 0 2px var(--ink); }
.kswatch input[type=color] { width: 36px; height: 30px; padding: 0 2px; border-radius: 8px; cursor: pointer; }
.vphoto { width: 100%; aspect-ratio: 16 / 9; max-height: 180px; border-radius: 12px; background: #efe9df; display: grid; place-items: center; overflow: hidden; margin-bottom: 8px; font-size: 34px; }
.vphoto img { width: 100%; height: 100%; object-fit: cover; }
.vimg { overflow: hidden; }
.vimg img { width: 100%; height: 100%; object-fit: cover; }

/* v29 — cetak KTA ukuran kartu */
#ktaprint { display: none; }
@media print {
  body.printing-kta > *:not(#ktaprint) { display: none !important; }
  body.printing-kta #ktaprint { display: block !important; }
  #ktaprint img { width: 85.6mm; height: 54mm; display: block; margin: 0 0 8mm; outline: 1px dashed #999; outline-offset: 1.5mm; border-radius: 3mm; }
  #ktaprint p { font: 9pt system-ui, sans-serif; color: #666; }
  body.printing-kta { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* v30 — hak pengurus */
.hakline { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.hakline .tag { font-size: 10.5px; }
.hakopt { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 0 0 8px; align-items: flex-start; }

/* v31 — Pasar umum & Iklan Unggulan */
.item.feat { border: 2px solid #d99a1d; box-shadow: 0 4px 14px rgba(217, 154, 29, .25); }
.soldtag.feattag { background: #d99a1d; }
.stat { background: var(--bg); border-radius: 10px; padding: 10px; }
.stat b { font-size: 18px; }

/* v33 — lonceng notifikasi */
.topr { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 72%; justify-content: flex-end; }
.topr .me { max-width: none; min-width: 0; }
.bell { position: relative; flex: none; width: 34px; height: 30px; border: 0; border-radius: 99px; background: #38342f; color: #fff; font-size: 15px; cursor: pointer; }
.bell b { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 10.5px; line-height: 18px; font-weight: 800; border: 2px solid var(--dark); }
.nfset { gap: 8px; margin-bottom: 6px; }
.nflist { max-height: 60vh; overflow: auto; margin: 6px -4px 0; }
.nf { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; font: inherit; color: var(--ink); padding: 11px 8px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 10px; }
.nf.baru { background: #fff4ef; }
.nf b { display: block; font-size: 14px; line-height: 1.35; }
.nf span { display: block; font-size: 13px; color: #4d4842; margin-top: 2px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nf small { display: block; font-size: 11.5px; color: var(--mute); margin-top: 3px; }
.nf i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
#notifban { position: fixed; left: 50%; top: 10px; transform: translate(-50%, -140%); width: calc(100% - 24px); max-width: 436px; z-index: 40; text-align: left; border: 0; border-radius: 14px; background: var(--dark); color: #fff; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font: inherit; cursor: pointer; transition: transform .25s; border-left: 5px solid var(--accent); }
#notifban.show { transform: translate(-50%, 0); }
#notifban b { display: block; font-size: 14px; }
#notifban span { display: block; font-size: 12.5px; opacity: .85; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* v34 — bagikan event & pengaturan */
.evshare { flex: none; align-self: flex-start; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 15px; cursor: pointer; }
.sethead { font-size: 13px; color: var(--mute); margin: 16px 4px 6px; text-transform: uppercase; letter-spacing: .5px; }
.sethead2 { display: flex; align-items: center; gap: 8px; margin: 12px 4px 6px; font-size: 14px; }
.setcard { padding: 4px 0; }
.setrow { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.setrow:last-child { border-bottom: 0; }
.setrow:active { background: #faf6f0; }
.setrow .ic { width: 28px; height: 28px; border-radius: 8px; background: #efe9df; display: grid; place-items: center; font-size: 15px; flex: none; }
.setrow b { font-size: 14.5px; font-weight: 600; display: block; }
.setrow small { display: block; color: var(--mute); font-size: 12px; margin-top: 1px; }
.setrow .go { color: var(--mute); font-size: 20px; }
.setrow .warn { font-size: 11px; font-weight: 700; color: #8a5b00; background: #fbefd2; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }

/* v36 — nominal + kode unik */
.nomkode { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.nomkode > b { font-size: 17px; letter-spacing: .3px; }
.nomkode small { flex-basis: 100%; font-size: 11.5px; color: var(--mute); }

/* v56 — Kartu sponsor profesional */
.spn { margin-bottom: 14px; }
.spn-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; }
.spn-track::-webkit-scrollbar { display: none; }
.spn-slide { flex: 0 0 100%; scroll-snap-align: center; display: block; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 22px rgba(34, 32, 30, .09); }
.spn-img { position: relative; aspect-ratio: 3 / 1; background: #efe9df center / cover no-repeat; }
.spn-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 38%); pointer-events: none; }
.spn-badge { position: absolute; top: 8px; left: 8px; z-index: 1; background: rgba(20, 18, 16, .62); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.spn-foot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 3px solid var(--ac, var(--accent)); }
.spn-logo { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--ac, var(--accent)); color: #fff; font-weight: 800; font-size: 13px; }
.spn-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.spn-txt { flex: 1; min-width: 0; line-height: 1.25; }
.spn-txt b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spn-txt small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spn-cta { flex: none; background: var(--ac, var(--accent)); color: #fff; font-weight: 700; font-size: 12.5px; padding: 8px 13px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.spn-slide:active { transform: scale(.995); }
.spn-dots { display: flex; justify-content: center; gap: 5px; margin-top: 7px; }
.spn-dots i { width: 6px; height: 6px; border-radius: 3px; background: #d8d1c6; transition: width .25s, background .25s; }
.spn-dots i.on { width: 18px; background: var(--dark); }

/* v57 — Lagu di story & postingan */
.lg-cov { width: 40px; height: 40px; border-radius: 8px; flex: none; background: #2a2723 center / cover no-repeat; }
.lg-sel, .lg-row { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #faf8f4; }
.lg-row { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.lg-sel b, .lg-row b, .lg-chip b, .sv-lagu b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-sel small, .lg-row small, .lg-chip small, .sv-lagu small { display: block; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-btn { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 13px; cursor: pointer; }
.lg-res { max-height: 260px; overflow-y: auto; margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lg-post { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; }
.lg-chip { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-align: left; padding: 6px 10px 6px 6px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; background: linear-gradient(135deg, #22201e, #3a3631); }
.lg-chip small { color: rgba(255,255,255,.7); }
.lg-chip .lg-i { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); font-size: 12px; }
.lg-chip .lg-eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; margin-left: auto; opacity: 0; }
.lg-chip .lg-eq i { width: 3px; background: #fff; border-radius: 2px; height: 4px; }
.lg-chip.on .lg-eq { opacity: 1; }
.lg-chip.on .lg-eq i { animation: lgeq .8s ease-in-out infinite; }
.lg-chip.on .lg-eq i:nth-child(2) { animation-delay: .2s; } .lg-chip.on .lg-eq i:nth-child(3) { animation-delay: .4s; }
@keyframes lgeq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.lg-src { flex: none; font-size: 11px; color: var(--mute); text-decoration: none; }
.sv-lagu { position: absolute; left: 14px; right: 14px; bottom: 74px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(0,0,0,.55); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sv-lagu small { color: rgba(255,255,255,.75); }
.sv-lagu button { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 16px; cursor: pointer; }

/* v58 — Kategori lagu & potong lagu */
.lg-kats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 8px 0 4px; }
.lg-kats::-webkit-scrollbar { display: none; }
.lg-kats .chip { flex: none; }
.lg-cut { border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: #faf8f4; }
.lg-wave { position: relative; height: 56px; border-radius: 10px; background: #22201e; overflow: hidden; }
.lg-bars { position: absolute; inset: 6px 4px; display: flex; align-items: center; gap: 2px; }
.lg-bars i { flex: 1; background: rgba(255,255,255,.28); border-radius: 2px; }
.lg-win { position: absolute; top: 0; bottom: 0; border: 3px solid var(--accent); border-radius: 10px; background: rgba(228, 87, 46, .28); pointer-events: none; transition: left .05s; }
.lg-ph { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; left: 0; pointer-events: none; }
.lg-wave input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: grab; }

/* v60 — Tab touring & piagam */
.tseg { display: flex; gap: 4px; background: #efe9df; border-radius: 12px; padding: 4px; margin: 0 0 12px; }
.tseg button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 8px 6px; font: inherit; font-size: 13px; font-weight: 700; color: #6f675d; cursor: pointer; white-space: nowrap; }
.tseg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.pg-list { max-height: 200px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; background: #fff; }

/* v61 — Editor piagam desain bebas */
.pb-panel { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #faf8f4; margin-bottom: 10px; min-height: 44px; }
.pb-panel select, .pb-panel textarea { font-size: 14px; }
.pb-r { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--mute); }
.pb-r span { width: 84px; flex: none; }
.pb-r input[type=range] { flex: 1; }

/* v62 — Sosmed klub */
.sos-ic { display: inline-grid; place-items: center; border-radius: 10px; color: #fff; font-weight: 800; flex: none; line-height: 1; }
.sos-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.sos-bar a { text-decoration: none; transition: transform .15s; }
.sos-bar a:active { transform: scale(.92); }
.sos-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.sos-row:first-child { border-top: 0; }
.sos-row b { display: block; font-size: 14.5px; }
.sos-row small { display: block; color: var(--mute); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =====================================================================
   v66 — TEMA INDIGO 3D (kartu putih membulat, header gradasi, ikon 3D,
   menu bawah melayang, tombol & kartu berlapis bayangan)
   ===================================================================== */
:root {
  --bg: #f1f2fb; --card: #fff; --ink: #17193b; --mute: #7a7fa0; --line: #e7e8f6;
  --accent: #4f46e5; --accent2: #6d63ff; --accent-ink: #fff; --dark: #1f1b7a; --deep: #2a24a8;
  --tint: #eef0ff; --tint2: #e3e5ff;
  --sh1: 0 1px 2px rgba(35, 32, 140, .05), 0 6px 18px rgba(35, 32, 140, .07);
  --sh2: 0 2px 4px rgba(35, 32, 140, .06), 0 14px 30px rgba(35, 32, 140, .14);
  --sh-btn: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 -2px 0 rgba(0, 0, 0, .14) inset, 0 6px 14px rgba(79, 70, 229, .35);
}
body { background: #dfe1f5; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.app { background: var(--bg); }

/* Header gradasi dengan lingkaran dekoratif */
header { background: radial-gradient(120px 120px at 92% -20%, rgba(255,255,255,.16), transparent 70%), radial-gradient(160px 160px at 8% 140%, rgba(255,255,255,.1), transparent 70%), linear-gradient(135deg, #3b33d6 0%, #5a50f5 60%, #6d63ff 100%);
  border-radius: 0 0 24px 24px; padding: 14px 16px 12px; box-shadow: 0 10px 26px rgba(63, 55, 220, .28); }
.brand h1 { font-size: 20px; font-weight: 800; letter-spacing: .2px; }
.brand h1 span { color: #c9c5ff; }
.me, .bell { background: rgba(255, 255, 255, .16); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bell b { background: #ff5a7a; box-shadow: 0 2px 6px rgba(255, 90, 122, .5); }
.chip { border: 1px solid rgba(255, 255, 255, .28); color: #eceaff; background: rgba(255, 255, 255, .08); padding: 7px 14px; font-weight: 600; }
.chip.on { background: #fff; border-color: #fff; color: var(--accent); box-shadow: 0 4px 12px rgba(20, 16, 120, .25); }
main .chip, .sheet .chip, .lg-kats .chip { border-color: var(--line); color: var(--ink); background: #fff; }
main .chip.on, .sheet .chip.on, .lg-kats .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(79, 70, 229, .3); }
main { padding: 16px 14px 110px; }

/* Kartu */
.card { border: 0; border-radius: 20px; box-shadow: var(--sh1); padding: 16px; }
.tag { background: var(--tint); color: #4a46b8; }
.btn { background: linear-gradient(180deg, var(--accent2), var(--accent)); border-radius: 14px; box-shadow: var(--sh-btn); font-weight: 700; transition: transform .12s, box-shadow .12s; }
.btn:active { transform: translateY(1px) scale(.98); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 3px 8px rgba(79, 70, 229, .3); }
.btn.ghost { background: var(--tint); color: var(--accent); box-shadow: none; }
.btn.white { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh1); }
.btn.sm { border-radius: 11px; }
.link, .back { color: var(--accent); }
textarea, input, select { border-color: var(--line); border-radius: 14px; background: #f8f9ff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent2); background: #fff; }
.note { background: #fff6e0; color: #6b4e0c; border-radius: 14px; }
.sheet { border-radius: 26px 26px 0 0; box-shadow: 0 -10px 40px rgba(20, 16, 120, .25); }
.modal { background: rgba(20, 18, 70, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.toast { background: #1f1b7a; border-radius: 14px; box-shadow: var(--sh2); bottom: 104px; }
.tabs2 { background: var(--tint2); border-radius: 14px; }
.tabs2 button.on { color: var(--accent); border-radius: 11px; box-shadow: var(--sh1); }
.bar { background: var(--tint2); } .bar i { background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.date { background: linear-gradient(160deg, var(--accent2), var(--deep)); border-radius: 14px; box-shadow: 0 6px 14px rgba(79, 70, 229, .3); }
.item { border: 0; border-radius: 20px; box-shadow: var(--sh1); }
.price { color: var(--accent); }
.bub { border-radius: 18px; } .bub.me { background: linear-gradient(160deg, var(--accent2), var(--accent)); border-color: transparent; }
.node.top { background: var(--dark); border-color: var(--dark); } .node.top2 { background: var(--accent); border-color: var(--accent); }
.qrhead { background: var(--dark); }

/* Ikon 3D */
img.e3d { width: 1.15em; height: 1.15em; object-fit: contain; vertical-align: -0.2em; display: inline-block; filter: drop-shadow(0 3px 4px rgba(30, 25, 120, .22)); }

/* Grid menu: kartu putih, ikon 3D di gelembung lembut */
.menu-grid { gap: 12px; }
.mi { border: 0; border-radius: 22px; padding: 16px 6px 13px; box-shadow: var(--sh1); transition: transform .15s, box-shadow .15s; }
.mi:hover { transform: translateY(-2px); box-shadow: var(--sh2); }
.mi .e { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 18px; display: grid; place-items: center; font-size: 30px;
  background: radial-gradient(circle at 30% 25%, #fff, var(--tint) 60%, var(--tint2)); box-shadow: 0 1px 0 #fff inset, 0 6px 12px rgba(79, 70, 229, .14); }
.mi .e img.e3d { width: 36px; height: 36px; }
.mi b { font-size: 12.5px; }

/* Baris pengaturan */
.setrow .ic { width: 38px; height: 38px; border-radius: 12px; background: radial-gradient(circle at 30% 25%, #fff, var(--tint) 60%, var(--tint2)); font-size: 19px; box-shadow: 0 1px 0 #fff inset, 0 4px 10px rgba(79, 70, 229, .12); }
.setrow .ic img.e3d { width: 26px; height: 26px; }
.setrow:active { background: var(--tint); }

/* Menu bawah melayang */
nav { bottom: 12px; left: 50%; transform: translateX(-50%); width: calc(100% - 24px); max-width: 436px; border: 0; border-radius: 26px; padding: 6px; margin-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(135deg, #3b33d6, #5a50f5); box-shadow: 0 14px 30px rgba(55, 48, 200, .45), 0 1px 0 rgba(255,255,255,.2) inset; }
nav button { color: rgba(255, 255, 255, .72); border-radius: 18px; padding: 7px 0 6px; font-size: 10px; transition: background .15s; }
nav button .ic { filter: none; opacity: .85; font-size: 20px; height: 24px; display: grid; place-items: center; }
nav button .ic img.e3d { width: 24px; height: 24px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
nav button.on { color: #fff; background: rgba(255, 255, 255, .18); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset; }
nav button.on .ic { opacity: 1; transform: translateY(-1px) scale(1.08); }
.composer { bottom: calc(84px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }

/* Kartu sapaan beranda (gaya kartu profil + statistik) */
.hero3d { position: relative; overflow: hidden; border-radius: 26px; padding: 18px 18px 16px; color: #fff; margin-bottom: 14px;
  background: radial-gradient(140px 140px at 100% 0%, rgba(255,255,255,.18), transparent 70%), linear-gradient(140deg, #3b33d6 0%, #5a50f5 55%, #7b72ff 100%);
  box-shadow: 0 16px 34px rgba(63, 55, 220, .35), 0 1px 0 rgba(255,255,255,.25) inset; }
.hero3d::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; bottom: -90px; background: rgba(255, 255, 255, .08); }
.hero3d .hx { display: flex; align-items: center; gap: 12px; position: relative; }
.hero3d .ava { width: 52px; height: 52px; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.hero3d .ava img { width: 100%; height: 100%; object-fit: cover; }
.hero3d h2 { margin: 0; font-size: 18px; color: #fff; }
.hero3d .sub { font-size: 12.5px; color: #dcd9ff; }
.hero3d .ill { position: absolute; right: 8px; top: 6px; width: 74px; height: 74px; animation: melayang 4s ease-in-out infinite; filter: drop-shadow(0 10px 12px rgba(10, 8, 80, .35)); }
.hero3d .stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; background: rgba(255, 255, 255, .14); border-radius: 18px; padding: 10px 4px; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset; }
.hero3d .stats button { border: 0; background: none; color: #fff; font: inherit; cursor: pointer; text-align: center; padding: 0; }
.hero3d .stats b { display: block; font-size: 19px; font-weight: 800; line-height: 1.1; }
.hero3d .stats small { font-size: 10.5px; color: #dcd9ff; }
@keyframes melayang { 50% { transform: translateY(-6px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .hero3d .ill { animation: none; } }
