/*
 * TEMPLATE 28 "CARI" — etalase sebagai command palette.
 *
 * Kanvas near-black dengan tangga permukaan + garis rambut 1px. Aksen toko
 * HANYA di cincin fokus, baris terpilih, sorotan huruf cocok, dan tombol
 * Bayar — jadi aksen apa pun tetap terlihat mahal.
 *
 * WAJIB: rumus --accent-2 (55% aksen + putih) == uji.tinta config t28
 *        (['campur' => '#ffffff', 'porsi' => 0.55]).
 * WAJIB: --ff-wrap / --ff-gutter == kontainer .c28-wrap.
 * Kelas prefiks c28-. Kelas angka/kode memuat "mono" supaya font seller
 * (FontToko, !important) tak menimpanya.
 */

@font-face {
    font-family: "C28 Geist";
    src: url("font/geist-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "C28 Geist Mono";
    src: url("font/geist-mono-latin.woff2") format("woff2");
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --accent: #22C55E;
    --brand: #7C3AED;
    --on-accent: #0b0f19;
    /* Tinta beraksen yang terbaca sebagai TEKS di kanvas gelap. == uji.tinta */
    --accent-2: color-mix(in srgb, var(--accent) 55%, #ffffff);
    --accent-t: color-mix(in srgb, var(--accent) 16%, transparent);
    --accent-g: color-mix(in srgb, var(--accent) 50%, transparent);

    --bg: #0A0B0D;
    --s1: #111215;
    --s2: #16171B;
    --s3: #1D1E23;
    --card: #16171B;
    --card-2: #1D1E23;
    --bg-soft: #111215;
    --ink: #EDEEF0;
    --ink-2: #A9ACB4;
    --ink-3: #8E919A;
    --line: rgba(255, 255, 255, .085);
    --line-2: rgba(255, 255, 255, .15);
    --ok: #4ADE80;
    --danger: #F87171;
    --warn: #FBBF24;

    --ff-wrap: 1120px;
    --ff-gutter: 16px;
    --tab-h: 68px;            /* tinggi dock bawah di HP; 0 di desktop */
    --dock-h: 68px;
    --c28-kb: 0px;            /* papan ketik HP (visualViewport), diisi cari.js */
    --top-h: 56px;

    --ff-teks: "C28 Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ff-mono: "C28 Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --r: 14px;
    --r-s: 10px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); scroll-padding-bottom: calc(var(--dock-h) + 24px); }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--ff-teks);
    font-size: 15px;
    line-height: 1.5;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.c28-mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.c28-dim { color: var(--ink-3); }
.c28-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.c28-wrap { width: 100%; max-width: var(--ff-wrap); margin-inline: auto; padding-inline: var(--ff-gutter); }
.c28-sempit { max-width: 640px; }

/* Cahaya diam di atas halaman: satu gradien, tak bergerak, berat 0. */
.c28-glow {
    position: absolute; inset: 0 0 auto 0; height: 420px; z-index: -1; pointer-events: none;
    background:
        radial-gradient(60% 70% at 50% -20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
        radial-gradient(40% 50% at 100% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%);
}

/* ═══ BILAH ATAS ═══ */
.c28-top {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.c28-top-in { display: flex; align-items: center; gap: 10px; min-height: var(--top-h); }
.c28-merk { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; min-height: 44px; }
.c28-merk-logo {
    flex: none; width: 32px; height: 32px; border-radius: 9px; overflow: hidden;
    display: grid; place-items: center; font-weight: 700; font-size: 15px;
    background: var(--accent); color: var(--on-accent);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.c28-merk-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c28-merk-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.c28-merk-nm { font-weight: 650; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c28-merk-sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.c28-top-kanan { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.c28-saldo {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 11px; border-radius: 999px;
    font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
    background: var(--s2); border: 1px solid var(--line-2); color: var(--ink);
}
.c28-ibtn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid transparent; background: transparent; cursor: pointer; text-decoration: none; color: var(--ink-2);
}
.c28-ibtn:hover { background: var(--s2); color: var(--ink); }
.c28-ibtn svg { width: 20px; height: 20px; }
.c28-ibtn-cari { display: none; }
body.c28-has-bar .c28-ibtn-cari { display: inline-grid; }
.c28-nav { display: none; }

/* ═══ DOCK: kotak ketik di zona jempol (HP) / di tengah bilah atas (desktop) ═══ */
.c28-dock {
    position: fixed; left: 0; right: 0; bottom: var(--c28-kb); z-index: 60; margin: 0;
    padding: 9px var(--ff-gutter) max(9px, env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--s1) 88%, transparent);
    -webkit-backdrop-filter: saturate(150%) blur(18px); backdrop-filter: saturate(150%) blur(18px);
    border-top: 1px solid var(--line);
}
.c28-dock-in { display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 0 auto; }
.c28-pill {
    position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
    height: 50px; padding: 0 8px 0 14px; border-radius: 14px; cursor: text;
    background: var(--s3); border: 1px solid var(--line-2);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 8px 24px -12px rgba(0, 0, 0, .8);
    transition: border-color .15s, box-shadow .15s;
}
.c28-pill:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-t); }
.c28-pill > svg { flex: none; width: 19px; height: 19px; color: var(--ink-3); }
.c28-pill:focus-within > svg { color: var(--accent-2); }
.c28-q {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
    font-size: 16px; color: var(--ink); padding: 0; -webkit-appearance: none; appearance: none;
}
.c28-q::placeholder { color: var(--ink-3); opacity: 1; }
.c28-q-ph {
    position: absolute; left: 43px; right: 12px; top: 50%; transform: translateY(-50%);
    font-size: 16px; color: var(--ink-3); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.c28-q-ph b { font-family: var(--ff-mono); font-weight: 500; color: var(--ink-2); }
.c28-q:not(:placeholder-shown) ~ .c28-q-ph { display: none; }
.c28-kbd {
    display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 7px; border-radius: 6px;
    font-family: var(--ff-mono); font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
    background: var(--s2); border: 1px solid var(--line-2); border-bottom-width: 2px;
}
.c28-kbd svg { width: 13px; height: 13px; }
.c28-pill .c28-kbd { display: none; }
.c28-hapus {
    flex: none; display: none; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px;
    background: transparent; color: var(--ink-3); cursor: pointer;
}
.c28-q:not(:placeholder-shown) ~ .c28-hapus { display: inline-grid; }
.c28-hapus svg { width: 16px; height: 16px; }
.c28-menubtn, .c28-batal {
    flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    min-width: 52px; height: 50px; padding: 0 6px; border-radius: 14px; text-decoration: none; cursor: pointer;
    font-size: 12px; font-weight: 600; color: var(--ink-2); background: transparent; border: 1px solid var(--line);
}
.c28-menubtn svg { width: 19px; height: 19px; }
.c28-menubtn:hover { color: var(--ink); background: var(--s2); }
.c28-batal { display: none; font-size: 15px; color: var(--accent-2); border-color: transparent; min-width: 64px; }
body.c28-pal-open .c28-batal { display: inline-flex; }
body.c28-pal-open .c28-menubtn { display: none; }
/* Halaman beli: bilah bayar menggantikan dock; dock muncul lagi saat palet dibuka. */
body.c28-has-bar .c28-dock { display: none; }
body.c28-has-bar.c28-pal-open .c28-dock { display: block; }

/* ═══ PALET (hasil) ═══ */
.c28-pal {
    position: fixed; z-index: 55; left: 0; right: 0; top: 0;
    bottom: calc(var(--c28-kb) + var(--dock-h) + env(safe-area-inset-bottom, 0px));
    background: var(--bg); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.c28-pal-in { min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: max(12px, env(safe-area-inset-top)) var(--ff-gutter) 10px; max-width: 640px; margin: 0 auto; }
.c28-pal-urai {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; font-size: 13px; color: var(--ink-3);
}
.c28-pal-urai span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 7px; background: var(--s2); border: 1px solid var(--line); color: var(--ink-2); font-family: var(--ff-mono); font-size: 12.5px; }
.c28-pal-urai span b { color: var(--accent-2); font-weight: 500; }
.c28-pal-list { display: flex; flex-direction: column; }
.c28-grp {
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
    margin: 14px 4px 6px; font-family: var(--ff-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em;
    text-transform: uppercase; color: var(--ink-3);
}
.c28-grp:first-child { margin-top: 4px; }
.c28-grp button { border: 0; background: none; color: var(--ink-3); font: inherit; text-transform: none; letter-spacing: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.c28-opsi {
    position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px;
    border-radius: 12px; text-decoration: none; color: var(--ink); cursor: pointer; border: 1px solid transparent;
    -webkit-tap-highlight-color: transparent;
}
.c28-opsi:hover { background: var(--s1); }
.c28-opsi.is-aktif { background: color-mix(in srgb, var(--accent) 13%, var(--s1)); border-color: color-mix(in srgb, var(--accent) 38%, transparent); }
.c28-opsi.is-aktif::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.c28-opsi-ic {
    flex: none; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
    background: var(--s3); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-weight: 650; font-size: 14px;
}
.c28-opsi-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c28-opsi-ic svg { width: 19px; height: 19px; }
.c28-opsi-in { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.c28-opsi-nm { font-weight: 560; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c28-opsi-sub { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c28-opsi-sub b { color: var(--accent-2); font-weight: 600; }
.c28-opsi-sub.is-isi { white-space: normal; }
.c28-opsi-sub.is-isi b { font-family: var(--ff-mono); font-weight: 500; }
.c28-opsi-kn { flex: none; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.c28-opsi-kn .c28-kbd { display: none; }
.c28-opsi.is-aktif .c28-opsi-kn .c28-kbd { display: inline-flex; }
mark.c28-hl { background: transparent; color: var(--accent-2); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.c28-pal-kosong { padding: 18px 8px; color: var(--ink-2); font-size: 14px; text-align: center; }
.c28-pal-kaki { display: none; }

/* ═══ LEMBAR MENU ═══ */
.c28-sheet { position: fixed; inset: 0; z-index: 70; display: none; }
.c28-sheet:target, .c28-sheet.is-buka { display: block; }
.c28-sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.c28-sheet-in {
    position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto;
    background: var(--s1); border-top: 1px solid var(--line-2); border-radius: 20px 20px 0 0;
    padding: 8px var(--ff-gutter) max(16px, env(safe-area-inset-bottom));
}
.c28-sheet-gagang { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 4px auto 6px; }
.c28-sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.c28-sheet-h p { margin: 0; font-family: var(--ff-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.c28-sheet .c28-opsi { min-height: 50px; }
.c28-sheet .c28-opsi[aria-current="page"] { background: var(--s2); }
.c28-sheet .c28-opsi[aria-current="page"] .c28-opsi-nm { color: var(--accent-2); }
.c28-sheet-kecil { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 6px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.c28-sheet-kecil a { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
    .c28-sheet.is-buka .c28-sheet-in, .c28-sheet:target .c28-sheet-in { animation: c28Naik .26s var(--ease); }
    .c28-sheet.is-buka .c28-sheet-bg, .c28-sheet:target .c28-sheet-bg { animation: c28Pudar .2s ease; }
    body.c28-pal-open .c28-pal-list { animation: c28Pudar .16s ease; }
}
@keyframes c28Naik { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes c28Pudar { from { opacity: 0; } to { opacity: 1; } }

/* ═══ BLOK UMUM ═══ */
.c28-sec { margin-top: 26px; }
.c28-h { display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; }
.c28-h-t { margin: 0; font-family: var(--ff-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.c28-h-n { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-3); padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); }
.c28-h-a {
    margin-left: auto; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 2px;
    font-size: 14px; font-weight: 550; color: var(--ink-2); text-decoration: none;
}
.c28-h-a:hover { color: var(--ink); }
.c28-h-a svg { width: 15px; height: 15px; }
.c28-sub { margin: -4px 2px 10px; font-size: 13.5px; color: var(--ink-3); }

.c28-list {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r);
    overflow: hidden;
}
.c28-row {
    position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 62px; padding: 10px 12px;
    background: var(--s1); text-decoration: none; color: var(--ink); -webkit-tap-highlight-color: transparent;
    transition: background-color .12s;
}
a.c28-row:hover { background: var(--s2); }
a.c28-row:active { background: var(--s3); }
.c28-row-no { flex: none; width: 20px; font-family: var(--ff-mono); font-size: 12.5px; color: var(--ink-3); text-align: right; }
.c28-row-ic {
    flex: none; width: 42px; height: 42px; border-radius: 11px; overflow: hidden; display: grid; place-items: center;
    background: var(--s3); box-shadow: inset 0 0 0 1px var(--line); font-weight: 650; font-size: 14px; color: var(--ink-2);
}
.c28-row-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c28-row-in { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.c28-row-nm { font-weight: 560; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c28-row-sub { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c28-row-hrg { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.c28-row-hrg small { font-size: 12px; color: var(--ink-3); }
.c28-row-hrg b { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.c28-row-go { flex: none; color: var(--ink-3); display: grid; place-items: center; }
.c28-row-go svg { width: 16px; height: 16px; }
.c28-row-aksi { position: relative; z-index: 1; flex: none; }
.c28-row-tutup { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.c28-pesan-row:hover { background: var(--s2); }
.c28-pesan-row .c28-row-ic, .c28-pesan-row .c28-row-in { pointer-events: none; }
.c28-st::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.c28-st-ok { color: var(--ok); } .c28-st-bad { color: var(--danger); } .c28-st-run { color: var(--accent-2); } .c28-st-wait { color: var(--warn); }
/* Deret populer bergeser (partials/populer-geser): baris jadi kartu mendatar. */
.c28-list.ff-gs-rel { background: transparent; border: 0; border-radius: 0; overflow: visible; --ff-gs-gap: 10px; }
.c28-list.ff-gs-rel > .c28-row { border: 1px solid var(--line); border-radius: 12px; }

.c28-tok.c28-sec { margin-top: 18px; }
.c28-home-main { min-width: 0; }
.c28-tok { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 calc(var(--ff-gutter) * -1); padding-inline: var(--ff-gutter); scroll-padding-inline: var(--ff-gutter); }
.c28-tok::-webkit-scrollbar { display: none; }
.c28-tok-a {
    flex: none; display: inline-flex; align-items: center; gap: 0; min-height: 40px; padding: 0 13px; border-radius: 10px;
    font-family: var(--ff-mono); font-size: 13.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; cursor: pointer;
    background: var(--s1); border: 1px solid var(--line-2);
}
.c28-tok-a i { font-style: normal; color: var(--ink-3); }
.c28-tok-a small { margin-left: 8px; font-size: 12px; color: var(--ink-3); }
.c28-tok-a i { margin-right: 1px; }
.c28-tok-a:hover { color: var(--ink); border-color: var(--ink-3); }
.c28-tok-a.is-active, .c28-tok-a[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.c28-tok-a.is-active i, .c28-tok-a.is-active small, .c28-tok-a[aria-pressed="true"] i, .c28-tok-a[aria-pressed="true"] small { color: inherit; opacity: .8; }

.c28-panel { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-top: 14px; }
.c28-label:first-child { margin-top: 0; }
.c28-label { display: block; margin: 14px 0 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.c28-input {
    display: block; width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; font-size: 16px;
    background: var(--s3); border: 1px solid var(--line-2); color: var(--ink); outline: 0; -webkit-appearance: none; appearance: none;
    transition: border-color .15s, box-shadow .15s;
}
select.c28-input { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A9ACB4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.c28-input::placeholder { color: var(--ink-3); opacity: 1; }
.c28-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-t); }
.c28-hint { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.c28-hint strong { color: var(--ink-2); }
.c28-hint a, .c28-tautan { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.c28-row-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; }
.c28-row-2 > div > .c28-label, .c28-row-2 .ff-tmp-row { min-height: 40px; display: flex; align-items: center; gap: 8px; margin: 0 0 7px; }
.c28-row-2 .ff-tmp-row .c28-label { margin: 0; }
.c28-nom-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px; color: var(--ink-2); background: color-mix(in srgb, var(--warn) 8%, var(--s1)); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.c28-nom-info b { font-family: var(--ff-mono); font-weight: 500; color: var(--ink); }

.c28-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px;
    border-radius: 12px; border: 1px solid var(--accent); cursor: pointer; text-decoration: none;
    font-size: 16px; font-weight: 650; letter-spacing: -.005em; color: var(--on-accent); background: var(--accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 28px -14px var(--accent-g);
    transition: filter .15s, transform .12s;
}
.c28-btn:hover { filter: brightness(1.07); }
.c28-btn:active { transform: translateY(1px); }
.c28-btn:disabled, .c28-btn[disabled] { cursor: not-allowed; color: var(--ink-3); background: var(--s3); border-color: var(--line-2); box-shadow: none; filter: none; transform: none; }
.c28-btn-full { display: flex; width: 100%; }
.c28-btn-ghost { color: var(--ink); background: transparent; border-color: var(--line-2); box-shadow: none; }
.c28-btn-ghost:hover { background: var(--s2); filter: none; }
.c28-btn-ghost:disabled { background: transparent; }
.c28-danger { color: var(--danger); }
.c28-mt-1 { margin-top: 8px; } .c28-mt-2 { margin-top: 14px; } .c28-mt-3 { margin-top: 22px; }

.c28-alert { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; border: 1px solid var(--line-2); background: var(--s2); }
.c28-alert-info { border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 9%, var(--s1)); }
.c28-alert-error { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 10%, var(--s1)); }
.c28-alert-ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 9%, var(--s1)); }

.c28-badge {
    flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 9px; border-radius: 7px;
    font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid var(--line-2); background: var(--s2); color: var(--ink-2);
}
.c28-badge-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 9%, var(--s1)); }
.c28-badge-bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: color-mix(in srgb, var(--danger) 9%, var(--s1)); }
.c28-badge-run { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 9%, var(--s1)); }
.c28-badge-wait { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 8%, var(--s1)); }
.c28-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: no-preference) { .c28-dot { animation: c28Denyut 1.4s ease-in-out infinite; } }
@keyframes c28Denyut { 50% { opacity: .3; } }

/* ═══ BERANDA ═══ */
.c28-intro { padding: 18px 2px 2px; }
.c28-alis { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--ff-mono); font-size: 12.5px; color: var(--ink-3); }
.c28-alis i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.c28-intro h1 { margin: 0; font-size: clamp(26px, 7.4vw, 44px); line-height: 1.08; font-weight: 650; letter-spacing: -.035em; text-wrap: balance; }
.c28-intro h1 em { font-style: normal; color: var(--ink-3); }
.c28-lead { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); max-width: 560px; }
.c28-contoh { display: flex; gap: 8px; margin: 14px calc(var(--ff-gutter) * -1) 0; padding: 0 var(--ff-gutter) 2px; overflow-x: auto; scrollbar-width: none; }
.c28-contoh::-webkit-scrollbar { display: none; }
.c28-contoh-a {
    flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; cursor: pointer; white-space: nowrap;
    font-family: var(--ff-mono); font-size: 14px; color: var(--ink); background: var(--s2); border: 1px solid var(--line-2); text-decoration: none;
}
.c28-contoh-a svg { width: 14px; height: 14px; color: var(--ink-3); }
.c28-contoh-a:hover { border-color: var(--accent); }
.c28-home-grid { display: block; }
.c28-aside { display: none; }
.c28-pesan-row .c28-row-in { padding-right: 4px; }
.c28-beli-lagi {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px; text-decoration: none;
    font-size: 13.5px; font-weight: 650; color: var(--on-accent); background: var(--accent); white-space: nowrap;
}
.c28-beli-lagi svg { width: 14px; height: 14px; }
.c28-blok { scroll-margin-top: calc(var(--top-h) + 14px); }
.c28-janji-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.c28-janji-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--s1); font-size: 14px; color: var(--ink-2); }
.c28-janji-item svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--ok); }

/* ═══ HALAMAN BELI ═══ */
.c28-jejak { display: flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; font-family: var(--ff-mono); font-size: 13px; color: var(--ink-3); overflow: hidden; white-space: nowrap; }
.c28-jejak a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; color: var(--ink-2); text-decoration: none; }
.c28-jejak a:hover { color: var(--ink); }
.c28-jejak svg { width: 15px; height: 15px; flex: none; }
.c28-jejak span:last-child { overflow: hidden; text-overflow: ellipsis; }
.c28-gh { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; overflow: hidden; isolation: isolate;
    background: var(--s1); border: 1px solid var(--line); }
.c28-gh-glow { position: absolute; z-index: -1; inset: -30%; width: 160%; height: 160%; object-fit: cover; filter: blur(40px) saturate(1.3); opacity: .22; pointer-events: none; }
.c28-gh::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--s1) 30%, color-mix(in srgb, var(--s1) 70%, transparent)); }
.c28-gh-art { flex: none; width: 64px; height: 64px; border-radius: 15px; overflow: hidden; display: grid; place-items: center; background: var(--s3); box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 24px -12px rgba(0, 0, 0, .9); font-weight: 700; }
.c28-gh-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c28-gh-in { min-width: 0; }
.c28-gh h1 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; }
.c28-gh-meta { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-3); }
.c28-gh-meta b { font-family: var(--ff-mono); font-weight: 500; color: var(--ink-2); }
.c28-nowrap { white-space: nowrap; }
.c28-janji { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 2px 0; font-size: 13px; color: var(--ink-3); }
.c28-janji span { display: inline-flex; align-items: center; gap: 6px; }
.c28-janji svg { width: 14px; height: 14px; color: var(--ok); }
.c28-desk { display: none; }

.c28-beli { display: block; }
.c28-step { margin-top: 18px; }
.c28-step-h { display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; }
.c28-step-h h2 { margin: 0; font-size: 16.5px; font-weight: 650; letter-spacing: -.015em; }
.c28-no {
    flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
    font-family: var(--ff-mono); font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--s2); border: 1px solid var(--line-2);
    transition: background-color .2s, color .2s, border-color .2s;
}
.c28-step.is-done .c28-no { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.c28-step-n { margin-left: auto; font-family: var(--ff-mono); font-size: 12.5px; color: var(--ink-3); }
.c28-step-body { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.c28-step-body > :first-child { margin-top: 0; }
/* Langkah nominal: tanpa bingkai ganda — daftarnya sendiri sudah panel. */
.c28-step-nom .c28-step-body { background: transparent; border: 0; padding: 0; }
.c28-step-nom .nz { margin-bottom: 12px; }

.c28-saved { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 12px; padding-bottom: 2px; }
.c28-saved::-webkit-scrollbar { display: none; }
.c28-saved-btn {
    flex: none; display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 6px 12px 6px 6px; border-radius: 12px; cursor: pointer; text-align: left;
    background: var(--s2); border: 1px solid var(--line-2); color: var(--ink);
}
.c28-saved-btn.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-t); }
.c28-saved-av { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--s3); font-weight: 650; font-size: 14px; color: var(--ink-2); }
.c28-saved-in { display: flex; flex-direction: column; line-height: 1.25; }
.c28-saved-in strong { font-size: 14px; font-weight: 600; }
.c28-saved-in span { font-size: 12.5px; color: var(--ink-3); }
.c28-saved-cap { margin: 0 0 8px; font-family: var(--ff-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.c28-nick { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-2); background: var(--s2); border: 1px dashed var(--line-2); }
.c28-nick.is-ok { color: var(--ink); border-style: solid; border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 9%, var(--s1)); }
.c28-nick.is-ok::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0B0D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.c28-nick.is-bad { color: var(--ink); border-style: solid; border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 9%, var(--s1)); }

html:not(.c28-js) .c28-saring { display: none; }
.c28-saring { position: relative; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px 0 12px; margin: 0 0 10px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line-2); }
.c28-saring:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-t); }
.c28-saring > svg { flex: none; width: 17px; height: 17px; color: var(--ink-3); }
.c28-saring input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; }
.c28-saring input::placeholder { color: var(--ink-3); opacity: 1; }
.c28-saring .c28-kbd { display: none; }
.c28-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 10px; }
.c28-chips::-webkit-scrollbar { display: none; }
.c28-chip {
    flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px; cursor: pointer; white-space: nowrap;
    font-size: 13.5px; font-weight: 550; color: var(--ink-2); background: transparent; border: 1px solid var(--line-2);
}
.c28-chip small { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-3); }
.c28-chip.is-active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.c28-chip.is-active small { color: inherit; opacity: .8; }
.c28-tier { margin: 14px 2px 6px; font-family: var(--ff-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.c28-nom-group:first-child .c28-tier { margin-top: 2px; }
#c28Noms { position: relative; }
.c28-noms { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.c28-nom {
    position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 12px 8px 10px;
    background: var(--s1); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .15s;
}
.c28-nom:hover { background: var(--s2); }
.c28-nom input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.c28-nom .ff-nom-gbr { width: 40px !important; height: 40px !important; margin: 0 !important; flex: none; }
.c28-nom .nz-hias { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; opacity: .6; }
.c28-nom-in { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.c28-nom-name { font-size: 15px; font-weight: 560; line-height: 1.3; }
/* Harga: desktop = kolom kanan (coret + hemat di atas, harga di bawah); HP = baris kedua di bawah nama. */
.c28-nom-harga { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 2px 6px; max-width: 170px; line-height: 1.2; }
.c28-nom-harga .c28-nom-price { order: 2; flex-basis: 100%; text-align: right; }
.c28-nom-harga .ff-coret { order: 1; display: inline !important; font-size: 12px !important; font-weight: 400 !important; color: var(--ink-3); opacity: 1 !important; }
.c28-nom-harga .ff-hemat { order: 1; margin: 0 !important; padding: 1px 6px !important; border-radius: 6px !important; font-size: 12px !important; font-weight: 600 !important; color: var(--ok) !important; background: color-mix(in srgb, var(--ok) 13%, transparent) !important; }
.c28-nom-kaki { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.c28-nom-kaki:empty { display: none; }
.c28-nom-kaki .ff-coret { font-family: var(--ff-mono); font-size: 12.5px; color: var(--ink-3); }
.c28-nom-price { flex: none; font-family: var(--ff-mono); font-variant-numeric: tabular-nums; font-size: 14.5px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.c28-nom-cek {
    flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background-color .15s, border-color .15s;
}
.c28-nom-cek::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-accent); transform: scale(0); transition: transform .18s var(--ease); }
/* Terpilih: :has untuk peramban baru, .is-active (JS) untuk WebView lawas. */
.c28-nom:has(input:checked), .c28-nom.is-active { background: color-mix(in srgb, var(--accent) 12%, var(--s1)); }
.c28-nom:has(input:checked) .c28-nom-cek, .c28-nom.is-active .c28-nom-cek { background: var(--accent); border-color: var(--accent); }
.c28-nom:has(input:checked) .c28-nom-cek::after, .c28-nom.is-active .c28-nom-cek::after { transform: scale(1); }
.c28-nom:has(input:focus-visible), .c28-nom.is-fokus { outline: 2px solid var(--accent); outline-offset: -2px; }
.c28-nom-ind { position: absolute; left: 0; top: 0; width: 3px; height: 0; z-index: 2; border-radius: 0 3px 3px 0; background: var(--accent); pointer-events: none; opacity: 0; }
.c28-nom-ind.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .c28-nom-ind { transition: transform .26s var(--ease), height .26s var(--ease), opacity .15s; } }
.c28-nom-name mark.c28-hl { text-decoration: none; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); border-radius: 3px; }
.c28-nom-kosong { margin: 10px 2px 0; font-size: 14px; color: var(--ink-3); }
.c28-kunci { display: none; margin-left: auto; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }

.c28-ring { margin-top: 18px; }
.c28-ring-in { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.c28-ring-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.c28-kv { margin: 0; }
.c28-kv-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 14px; }
.c28-kv-row > span:first-child { flex: none; color: var(--ink-3); }
.c28-kv-row > span:last-child { min-width: 0; text-align: right; overflow-wrap: anywhere; color: var(--ink); font-weight: 500; }
.c28-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 0 2px; }
.c28-total > span { font-size: 14px; color: var(--ink-2); }
.c28-total b { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.c28-total .ff-total-qris { flex-basis: 100%; color: var(--ink-3); opacity: 1 !important; }
.c28-enter { display: none; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
.c28-bantu { margin-top: 12px; }
.c28-bantu p { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.c28-bantu-list { display: flex; flex-wrap: wrap; gap: 8px; }
.c28-bantu-list a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; text-decoration: none; color: var(--ink); background: var(--s2); border: 1px solid var(--line-2); }

.c28-bar {
    position: fixed; left: 0; right: 0; bottom: var(--c28-kb); z-index: 50; display: flex; align-items: center; gap: 10px;
    padding: 9px var(--ff-gutter) max(10px, env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--s1) 90%, transparent); -webkit-backdrop-filter: saturate(150%) blur(18px); backdrop-filter: saturate(150%) blur(18px);
    border-top: 1px solid var(--line-2);
}
.c28-bar-art { flex: none; width: 42px; height: 42px; border-radius: 11px; overflow: hidden; background: var(--s3); box-shadow: inset 0 0 0 1px var(--line); }
.c28-bar-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c28-bar-info { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; line-height: 1.25; }
.c28-bar-info > span { flex-basis: 100%; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c28-bar-info strong { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.c28-bar-info .ff-total-qris { font-size: 12px !important; color: var(--ink-3); opacity: 1 !important; }
.c28-bar .c28-btn { min-height: 48px; padding: 0 18px; font-size: 15px; }
.c28-bar.is-kosong .c28-bar-info strong { color: var(--ink-3); }
body.c28-has-bar.c28-pal-open .c28-bar { visibility: hidden; }
body.c28-has-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

/* ═══ PESANAN / CEK / AKUN ═══ */
.c28-status { display: flex; align-items: flex-start; gap: 14px; }
.c28-status-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--s3); border: 1px solid var(--line-2); color: var(--warn); }
.c28-status-ic svg { width: 24px; height: 24px; }
.c28-status.is-ok .c28-status-ic { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--s1)); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.c28-status.is-bad .c28-status-ic { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--s1)); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.c28-status.is-run .c28-status-ic { color: var(--accent-2); background: color-mix(in srgb, var(--accent) 12%, var(--s1)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.c28-status-in { min-width: 0; }
.c28-status h1 { margin: 8px 0 2px; font-size: 22px; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; overflow-wrap: anywhere; }
.c28-status p { margin: 0; color: var(--ink-3); font-size: 14px; }
.c28-kode { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--s3); border: 1px solid var(--line-2); }
.c28-kode > span { display: flex; flex-direction: column; min-width: 0; }
.c28-kode small { font-size: 12px; color: var(--ink-3); }
.c28-kode b { font-family: var(--ff-mono); font-size: 17px; font-weight: 600; letter-spacing: .02em; overflow-wrap: anywhere; }
.c28-salin { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--s2); border: 1px solid var(--line-2); }
.c28-salin svg { width: 15px; height: 15px; }
.c28-serial { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--s3); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.c28-serial small { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.c28-serial code { display: block; font-family: var(--ff-mono); font-size: 16px; overflow-wrap: anywhere; color: var(--ink); }
.c28-pagehead { padding: 18px 2px 4px; }
.c28-pagehead h1 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 650; letter-spacing: -.03em; }
.c28-pagehead p { margin: 6px 0 0; color: var(--ink-3); font-size: 14px; }
.c28-cmd { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--s3); border: 1px solid var(--line-2); }
.c28-cmd:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-t); }
.c28-cmd > svg { flex: none; width: 18px; height: 18px; color: var(--ink-3); }
.c28-cmd input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-family: var(--ff-mono); font-size: 16px; letter-spacing: .02em; text-transform: uppercase; }
.c28-cmd input::placeholder { color: var(--ink-3); opacity: 1; text-transform: none; letter-spacing: 0; font-family: var(--ff-teks); }
.c28-cmd .c28-btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.c28-amt { margin: 4px 0 0; font-family: var(--ff-mono); font-size: 30px; font-weight: 600; letter-spacing: -.035em; }
.c28-lupa { border: 0; background: transparent; color: var(--danger); font-size: 13.5px; font-weight: 600; min-height: 40px; padding: 0 8px; cursor: pointer; }

/* ═══ KATALOG ═══ */
.c28-kat-cari { position: sticky; top: calc(var(--top-h) + 6px); z-index: 20; margin: 14px 0 10px; }
.c28-kat-cari .c28-cmd { background: color-mix(in srgb, var(--s3) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -14px #000; }
.c28-kat-cari input { text-transform: none; letter-spacing: 0; font-family: var(--ff-teks); }
.c28-kat-cari .c28-kbd { display: none; margin-right: 6px; }
.c28-kat-dock .c28-kat-cari { display: none; }
.c28-kat-n { margin: 12px 2px 0; font-family: var(--ff-mono); font-size: 12.5px; color: var(--ink-3); }

/* ═══ KAKI HALAMAN ═══ */
.c28-foot { margin-top: 48px; border-top: 1px solid var(--line); background: var(--s1); padding: 26px 0 18px; font-size: 14px; }
.c28-foot-kisi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.c28-foot-merk { grid-column: 1 / -1; }
.c28-foot-merk p { margin: 8px 0 0; color: var(--ink-3); font-size: 14px; max-width: 380px; }
.c28-foot-kontak { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.c28-foot-kontak a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border-radius: 10px; text-decoration: none; background: var(--s2); border: 1px solid var(--line-2); font-size: 14px; }
.c28-foot .ff-kaki-judul { font-family: var(--ff-mono); font-weight: 500 !important; opacity: 1 !important; color: var(--ink-3); }
.c28-foot .ff-kaki-list a { color: var(--ink-2); opacity: 1 !important; font-size: 14px !important; text-decoration: none; }
.c28-foot .ff-kaki-list a:hover { color: var(--ink); }
.c28-bayar { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.c28-bayar p { margin: 0 0 10px; font-family: var(--ff-mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.c28-bayar div { display: flex; flex-wrap: wrap; gap: 6px; }
.c28-bayar span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 7px; font-size: 13px; color: var(--ink-2); background: var(--s2); border: 1px solid var(--line); }
.c28-hak { margin: 18px 0 0; font-size: 13px; color: var(--ink-3); }

/* ═══ BUKTI SOSIAL (toast) ═══ */
.c28-proof {
    position: fixed; z-index: 45; left: var(--ff-gutter); right: var(--ff-gutter); top: calc(var(--top-h) + 8px); max-width: 420px; margin: 0 auto;
    display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 12px; border-radius: 12px;
    background: color-mix(in srgb, var(--s2) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--line-2); box-shadow: 0 16px 40px -18px #000; opacity: 0; transform: translateY(-8px); pointer-events: none;
}
.c28-proof.is-in { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: no-preference) { .c28-proof { transition: opacity .25s ease, transform .25s var(--ease); } }
.c28-proof-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.c28-proof-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.c28-proof-title { font-size: 14px; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c28-proof-meta { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-3); }
.c28-proof-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); font-size: 20px; cursor: pointer; }
body.c28-pal-open .c28-proof { display: none; }

/* ═══ HALAMAN BERSAMA: rapikan agar seragam dengan tema ═══ */
.ff-kat-wrap input[type="search"], .ff-dok-wrap input[type="text"] { font-size: 16px; }

/* ═══ HP sempit ═══ */
@media (max-width: 380px) {
    .c28-row { gap: 10px; padding-inline: 10px; }
    .c28-row-no { display: none; }
    .c28-merk-sub { display: none; }
    .c28-menubtn { min-width: 48px; }
}

/* ═══ HP: halaman beli ringkas (nominal pertama di layar pertama) ═══ */
@media (max-width: 640px) {
    .c28-janji { display: none; }
    .c28-hal-beli .c28-jejak { display: none; }
    .c28-hal-beli .c28-gh { margin-top: 12px; }
    .c28-gh { padding: 12px; gap: 12px; }
    .c28-gh-art { width: 56px; height: 56px; border-radius: 13px; }
    .c28-gh h1 { font-size: 19px; }
    .c28-gh-meta { font-size: 13px; }
    .c28-step { margin-top: 16px; }
    .c28-step-nom .nz { min-height: 0 !important; padding: 12px 12px 12px 14px !important; grid-template-columns: minmax(0, 1fr) 64px !important; }
    .c28-step-nom .nz-teks, .c28-step-nom .nz-poin { display: none !important; }
    .c28-step-nom .nz-judul { font-size: 15px !important; }
    .c28-step-nom .nz-gbr { width: 64px !important; height: 48px !important; }
    .c28-step-nom .nz-alis { margin-bottom: 4px !important; }
    .c28-nom { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; grid-template-areas: "ic nm ck" "ic hg ck"; column-gap: 12px; row-gap: 3px; align-items: center; min-height: 60px; }
    .c28-nom .ff-nom-gbr { grid-area: ic; }
    .c28-nom-in { grid-area: nm; align-self: end; }
    .c28-nom-harga { grid-area: hg; align-self: start; justify-content: flex-start; max-width: none; gap: 2px 8px; }
    .c28-nom-harga .c28-nom-price { order: 0; flex-basis: auto; text-align: left; font-size: 14.5px; }
    .c28-nom-cek { grid-area: ck; }
}

/* ═══ TABLET+ ═══ */
@media (min-width: 640px) {
    .c28-gh { padding: 18px; }
    .c28-gh-art { width: 84px; height: 84px; border-radius: 18px; }
    .c28-gh h1 { font-size: 26px; }
    .c28-list.is-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .c28-list.is-2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ═══ DESKTOP ═══ */
@media (min-width: 900px) {
    :root { --tab-h: 0px; --dock-h: 0px; --top-h: 64px; --ff-gutter: 24px; }
    body { padding-bottom: 0; }
    body.c28-has-bar { padding-bottom: 0; }
    .c28-top-in { min-height: var(--top-h); }
    .c28-merk-sub { max-width: 220px; }
    .c28-nav { display: flex; align-items: center; gap: 2px; }
    .c28-nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 11px; border-radius: 10px; font-size: 14px; font-weight: 550; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
    .c28-nav a svg { opacity: .7; }
    .c28-nav a:hover { color: var(--ink); background: var(--s2); }
    .c28-nav a[aria-current="page"] { color: var(--ink); background: var(--s2); }
    .c28-ibtn-cari, body.c28-has-bar .c28-ibtn-cari { display: none; }
    .c28-ibtn-pesan { display: none; }

    /* Dock pindah ke tengah bilah atas: satu kolom ketik, satu palet. */
    /* Kolom ketik di bilah atas: mulai sesudah merek (±270px dari tepi isi), berhenti sebelum menu kanan. */
    .c28-dock, body.c28-has-bar .c28-dock {
        --tepi: max(var(--ff-gutter), calc((100vw - var(--ff-wrap)) / 2 + var(--ff-gutter)));
        display: block; top: 9px; bottom: auto; left: calc(var(--tepi) + 270px); right: auto;
        width: clamp(220px, calc(100vw - 2 * var(--tepi) - 270px - 290px), 500px);
        padding: 0; background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; z-index: 62;
    }
    .c28-dock-in { max-width: none; }
    .c28-pill { height: 46px; box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset; }
    .c28-q, .c28-q-ph { font-size: 15px; }
    .c28-q-ph { right: 92px; }
    .c28-pill .c28-kbd { display: inline-flex; }
    .c28-pill.is-isi .c28-kbd { display: none; }
    .c28-menubtn, body.c28-pal-open .c28-batal { display: none; }

    .c28-pal {
        top: 64px; bottom: auto; left: max(var(--ff-gutter), calc((100vw - var(--ff-wrap)) / 2 + var(--ff-gutter) + 270px)); right: auto; width: min(640px, calc(100vw - 48px)); max-height: min(72vh, 640px);
        border-radius: 16px; background: var(--s1); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px #000, 0 0 0 100vmax rgba(0, 0, 0, .45);
    }
    .c28-pal-in { min-height: 0; justify-content: flex-start; padding: 8px 8px 0; }
    .c28-pal-kaki { position: sticky; bottom: 0; display: flex; gap: 14px; align-items: center; margin: 8px -8px 0; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--s1); font-size: 12.5px; color: var(--ink-3); }
    .c28-pal-kaki span { display: inline-flex; align-items: center; gap: 6px; }
    .c28-opsi:hover { background: var(--s2); }
    .c28-pal-urai { margin: 4px 4px 4px; }

    .c28-sheet-in { left: auto; right: 24px; top: 70px; bottom: auto; width: 340px; max-height: calc(100vh - 90px); border-radius: 16px; border: 1px solid var(--line-2); padding-top: 12px; }
    .c28-sheet-gagang { display: none; }
    .c28-sheet-bg { background: rgba(0, 0, 0, .35); }

    .c28-home-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 36px; align-items: start; }
    .c28-aside { display: block; position: sticky; top: calc(var(--top-h) + 20px); padding-top: 26px; }
    .c28-aside .c28-h { margin-top: 0; }
    .c28-aside-nav { display: flex; flex-direction: column; gap: 2px; }
    .c28-aside-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; font-family: var(--ff-mono); font-size: 14px; color: var(--ink-2); text-decoration: none; }
    .c28-aside-nav a small { font-size: 12px; color: var(--ink-3); }
    .c28-aside-nav a:hover, .c28-aside-nav a.is-active { background: var(--s1); color: var(--ink); }
    .c28-aside-nav a.is-active { box-shadow: inset 2px 0 0 var(--accent); }
    .c28-home-tok { display: none; }
    .c28-intro { padding-top: 34px; }
    .c28-list.is-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

    .c28-beli { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
    .c28-ring { position: sticky; top: calc(var(--top-h) + 16px); margin-top: 18px; }
    .c28-bar { display: none; }
    .c28-desk { display: block; margin: 12px 2px 0; font-size: 14px; color: var(--ink-3); max-width: 680px; }
    .c28-saring .c28-kbd, .c28-kunci { display: inline-flex; }
    .c28-enter { display: flex; }
    .c28-kat-cari .c28-kbd { display: inline-flex; }
    .c28-foot-kisi { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
    .c28-foot-merk { grid-column: auto; }
    .c28-proof { left: 24px; right: auto; top: auto; bottom: 24px; margin: 0; transform: translateY(8px); }
    .c28-proof.is-in { transform: none; }
}

/* ═══ GERAK MATI ═══ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
