:root {
  --utama: #003092;
  --utama-tua: #00226b;
  --utama-muda: #e6ecfa;
  --aksen: #fc6c18;
  --aksen-tua: #c2470a;
  --aksen-muda: #ffeadb;
  --tinta: #121b30;
  --abu: #5a606f;
  --garis: #e3e5eb;
  --latar: #f3f4f6;
  --putih: #fff;
  --merah: #b3261e;
  --wa: #0f7a40;
  --radius: 16px;
  --bayang: 0 1px 2px rgba(15, 28, 56, .05), 0 6px 18px -8px rgba(15, 28, 56, .16);
  --gerak: .18s cubic-bezier(.2, .7, .3, 1);
  --tab: 70px;
  --tab-tinggi: 54px;
  --huruf: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body { margin: 0; font-family: var(--huruf); font-size: 15px; line-height: 1.55; color: var(--tinta); background: #dfe1e7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, label, summary { touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--aksen); outline-offset: 2px; border-radius: 8px; }
.ik { width: 1.3em; height: 1.3em; flex: none; }

/* Kerangka aplikasi: selebar ponsel, di tengah pada layar besar */
.app { position: relative; max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--latar); box-shadow: 0 0 60px rgba(15, 28, 56, .12); padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 16px); }
body.lebar .app { max-width: 1040px; padding-bottom: 40px; }
main { display: block; }

.pratinjau { background: #fff3d6; color: #6f4700; font-size: .78rem; font-weight: 700; text-align: center; padding: 5px 12px; }
.kepala, .bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 6px 12px; background: var(--putih); border-bottom: 1px solid var(--garis); }
.kepala { justify-content: space-between; padding-left: 16px; }
.bar h1 { flex: 1; font-size: 1.05rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__tombol { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--tinta); }
.bar__tombol:active { background: var(--utama-muda); }
.bar__tombol .ik { width: 24px; height: 24px; }
.lencana-angka { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--aksen-tua); color: #fff; font-size: .72rem; font-weight: 800; line-height: 19px; text-align: center; }
.merek { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; }
.merek img { height: 40px; width: auto; }
.merek__teks { font-weight: 800; font-style: italic; font-size: 1.1rem; line-height: 1.05; letter-spacing: -.02em; color: #003092; }
.merek__teks small { display: block; font-size: 1em; color: var(--aksen); }

.kilat { margin: 12px 16px 0; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: .92rem; background: #dff5e7; color: #0e5a31; }
.kilat--galat { background: #fde7e5; color: #8c1d18; }
.roti { position: fixed; left: 50%; bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 20px); transform: translateX(-50%); z-index: 60; max-width: min(90vw, 420px); padding: 11px 18px; border-radius: 999px; background: #121b30; color: #fff; font-weight: 600; font-size: .9rem; box-shadow: var(--bayang); }

/* Tombol */
.tombol { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 999px; background: var(--utama); color: #fff; font-weight: 700; font-size: .95rem; white-space: nowrap; transition: background-color var(--gerak), transform var(--gerak), border-color var(--gerak); }
.tombol:hover { background: var(--utama-tua); }
.tombol:active { transform: scale(.97); }
.tombol:disabled { background: #c9ccd4; color: #fff; cursor: not-allowed; transform: none; }
.tombol--kecil { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.tombol--penuh { width: 100%; }
.tombol--garis { background: var(--putih); color: var(--utama); border-color: #bcc4d6; }
.tombol--garis:hover { background: var(--utama-muda); }
.tombol--putih { background: #fff; color: var(--utama-tua); }
.tombol--putih:hover { background: #f1f3f8; }
.tombol--wa { background: var(--wa); }
.tombol--wa:hover { background: #0b6534; }
.tombol--bahaya { color: var(--merah); border-color: #edc4c1; }
.tombol--bahaya:hover { background: #fde7e5; }
.tautan-tombol { border: 0; background: none; color: var(--merah); font-weight: 700; min-height: 44px; padding: 0 8px; }
.baris { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.baris--antara { justify-content: space-between; margin-bottom: 14px; }
.tumbuh { flex: 1; }

/* Beranda */
.sapa { padding: 18px 16px 22px; background: linear-gradient(160deg, #003092, #00226b); color: #fff; border-radius: 0 0 26px 26px; }
.sapa__halo { font-size: .88rem; font-weight: 600; opacity: .85; }
.sapa h1 { font-size: 1.35rem; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; margin: 2px 0 16px; max-width: 16em; }
.cari { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--abu); border: 1.5px solid transparent; }
.cari:focus-within { border-color: var(--aksen); }
.cari input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--tinta); font-size: 1rem; }
.cari--kecil { flex: 1; max-width: 360px; height: 42px; border-color: var(--garis); }
.lengket .cari { border-color: var(--garis); }

.layanan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; margin: -8px 12px 0; padding: 18px 8px 14px; background: var(--putih); border-radius: 20px; box-shadow: var(--bayang); position: relative; }
.layanan a { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: .76rem; font-weight: 700; text-align: center; line-height: 1.25; }
.layanan__ikon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; transition: transform var(--gerak); }
.layanan a:active .layanan__ikon { transform: scale(.94); }
.layanan__ikon .ik { width: 26px; height: 26px; }
.l1 { background: var(--utama-muda); color: var(--utama); }
.l2 { background: var(--aksen-muda); color: #a83c06; }
.l3 { background: #e6efff; color: #2456b8; }
.l4 { background: #f3e9ff; color: #6a3bb0; }

.spanduk { position: relative; overflow: hidden; display: flex; margin: 18px 16px 0; padding: 18px; border-radius: 20px; background: linear-gradient(120deg, #e2560a, #ff8a3d); color: #fff; }
.spanduk__atas { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.spanduk h2 { font-size: 1.12rem; font-weight: 800; line-height: 1.25; margin: 2px 0 4px; max-width: 13em; }
.spanduk p { font-size: .86rem; margin-bottom: 12px; max-width: 17em; }
.spanduk__gambar { position: absolute; right: -14px; bottom: -18px; width: 132px; height: 132px; opacity: .22; }

.blok { padding: 20px 16px 0; }
.blok__judul { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.blok__judul h2 { font-size: 1.05rem; font-weight: 800; }
.blok__judul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--utama); font-weight: 700; font-size: .86rem; }

.kategori { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; }
.kategori a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; text-align: center; line-height: 1.25; }
.kategori .kategori__ikon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--putih); color: var(--utama); box-shadow: var(--bayang); }
.kategori .ik { width: 26px; height: 26px; }

/* Kartu produk */
.geser { display: flex; gap: 12px; margin: 0 -16px; padding: 2px 16px 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.geser::-webkit-scrollbar { display: none; }
.geser .kp { flex: 0 0 148px; scroll-snap-align: start; }
.kisi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px; }
.kp { position: relative; display: flex; flex-direction: column; padding: 10px; background: var(--putih); border-radius: var(--radius); box-shadow: var(--bayang); }
.kp__gambar { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.kp__gambar img, .pd__gambar img, .isi-keranjang__gambar img { width: 100%; height: 100%; object-fit: cover; }
.thumb { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(145deg, #e6ecfa, #cfd7e9); color: var(--utama); }
.thumb .ik { width: 42%; height: 42%; opacity: .85; }
.thumb--T { background: linear-gradient(145deg, #e6efff, #d3e2fb); color: #2456b8; }
.thumb--K { background: linear-gradient(145deg, #fde7e5, #f8d3cf); color: var(--merah); }
.thumb--N { background: linear-gradient(145deg, #ffeadb, #ffd9bf); color: #a83c06; }
.kp__resep { position: absolute; top: 16px; left: 16px; }
.kp__nama { font-weight: 700; font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.kp__satuan { font-size: .76rem; color: var(--abu); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp__bawah { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.kp__bawah strong { font-size: .98rem; font-weight: 800; color: var(--aksen-tua); }
.tambah { display: grid; place-items: center; width: 40px; height: 40px; margin: -2px; border: 1.5px solid var(--utama); border-radius: 12px; background: var(--putih); color: var(--utama); transition: background-color var(--gerak), color var(--gerak), transform var(--gerak); }
.tambah:hover { background: var(--utama); color: #fff; }
.tambah:active { transform: scale(.92); }
.habis { font-size: .78rem; font-weight: 700; color: var(--abu); }
.hitung { padding: 12px 16px 10px; font-size: .84rem; color: var(--abu); }

.lencana { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.lencana--bebas { background: #dff5e7; color: #0e5a31; }
.lencana--terbatas { background: #e6efff; color: #1d4699; }
.lencana--keras { background: #fde7e5; color: #8c1d18; }
.lencana--non { background: #eeeff1; color: #4a4f5c; }

.lengket { position: sticky; top: 58px; z-index: 20; padding: 12px 16px 0; background: var(--latar); }
.cip { display: flex; gap: 8px; margin: 0 -16px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none; }
.cip::-webkit-scrollbar { display: none; }
.cip a { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 15px; border-radius: 999px; background: var(--putih); border: 1.5px solid var(--garis); font-size: .84rem; font-weight: 700; color: var(--abu); }
.cip a[aria-current] { background: var(--utama); border-color: var(--utama); color: #fff; }
.cip--lega { margin: 0; flex-wrap: wrap; overflow: visible; }

/* Detail produk */
.pd__gambar { aspect-ratio: 16 / 11; background: var(--putih); }
.pd { margin: -18px 0 0; padding: 20px 16px 8px; background: var(--putih); border-radius: 22px 22px 0 0; position: relative; }
.pd h2 { font-size: 1.3rem; font-weight: 800; line-height: 1.25; margin-top: 8px; }
.pd__satuan { color: var(--abu); font-size: .88rem; }
.pd .pd__harga { font-size: 1.5rem; font-weight: 800; color: var(--aksen-tua); margin: 8px 0 14px; }
.pd h3 { font-size: .95rem; font-weight: 800; margin: 16px 0 4px; }
.pd p { color: #3e4555; }
.pd a { color: var(--utama); font-weight: 700; text-decoration: underline; }
.pra { white-space: pre-line; }
.info { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--utama-muda); color: #00226b; font-size: .88rem; }
.info .ik { margin-top: 1px; }
.info p { color: inherit; }
.info--keras { background: #fde7e5; color: #7a1a15; }
.blok-info { margin: 16px 16px 0; }

.aksi-bawah { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 40; display: flex; gap: 10px; align-items: center; width: 100%; max-width: 480px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--putih); border-top: 1px solid var(--garis); box-shadow: 0 -8px 24px -16px rgba(15, 28, 56, .35); }
body.lebar .aksi-bawah { max-width: 1040px; }
.aksi-bawah--total { justify-content: space-between; }
.aksi-bawah--total span { display: block; font-size: .78rem; color: var(--abu); }
.aksi-bawah--total strong { font-size: 1.2rem; font-weight: 800; }
.formulir { padding-bottom: 76px; }

/* Keranjang */
.isi-keranjang { display: grid; gap: 10px; margin-top: 12px; }
.isi-keranjang li { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--putih); border-radius: var(--radius); box-shadow: var(--bayang); }
.isi-keranjang__gambar { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; }
.isi-keranjang__teks { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.isi-keranjang__teks a { font-weight: 700; line-height: 1.3; }
.isi-keranjang__teks span { font-size: .78rem; color: var(--abu); }
.isi-keranjang__teks strong { color: var(--aksen-tua); font-weight: 800; }
.jumlah { display: flex; align-items: center; gap: 2px; }
.jumlah button { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--garis); border-radius: 12px; background: var(--putih); color: var(--utama); }
.jumlah button:disabled { color: #b9bdc6; cursor: not-allowed; }
.jumlah output { min-width: 28px; text-align: center; font-weight: 800; }

/* Formulir */
.kelompok { margin: 16px 16px 0; padding: 16px; background: var(--putih); border-radius: var(--radius); box-shadow: var(--bayang); display: grid; gap: 12px; }
.kelompok legend, .kelompok__judul { float: left; width: 100%; font-size: 1rem; font-weight: 800; }
.kelompok legend + * { clear: both; }
.isian { display: grid; gap: 6px; font-size: .86rem; font-weight: 700; }
.isian input, .isian select, .isian textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid #cfd3dc; border-radius: 12px; background: var(--putih); font-size: 1rem; font-weight: 500; }
.isian textarea { resize: vertical; }
.isian input[type="file"] { padding: 9px; font-size: .9rem; }
.isian input:focus, .isian select:focus, .isian textarea:focus { outline: 0; border-color: var(--utama); box-shadow: 0 0 0 3px rgba(0, 48, 146, .18); }
.isian small, .catatan-kecil { font-size: .8rem; font-weight: 500; color: var(--abu); }
.catatan-kecil { margin-top: 12px; }
.opsional { font-weight: 500; color: var(--abu); }
.dua { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pilih { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--garis); border-radius: 12px; cursor: pointer; }
.pilih:has(input:checked) { border-color: var(--utama); background: #f2f4fa; }
.pilih input, .centang input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--utama); flex: none; }
.pilih strong { display: block; font-size: .95rem; }
.pilih small { font-size: .82rem; color: var(--abu); }
.centang { display: flex; gap: 10px; align-items: flex-start; min-height: 32px; font-weight: 600; cursor: pointer; }
.pratonton { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }
.rincian { display: grid; gap: 8px; }
.rincian li { display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; }
.rincian li span:last-child { white-space: nowrap; font-weight: 600; }
.rincian small { display: block; color: var(--abu); font-size: .78rem; }
.rincian__garis { padding-top: 10px; border-top: 1px dashed var(--garis); }
.rincian__total { font-size: 1.05rem !important; font-weight: 800; }
.rincian__total span:last-child { color: var(--aksen-tua); font-weight: 800 !important; }
.data { display: grid; gap: 8px; }
.data > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: .92rem; }
.data dt { color: var(--abu); }
.data dd { font-weight: 600; }
.redup { color: var(--abu); font-size: .9rem; }
.merah { color: var(--merah); font-weight: 800; }

.langkah { counter-reset: l; display: grid; gap: 12px; padding: 16px; background: var(--putih); border-radius: var(--radius); box-shadow: var(--bayang); }
.langkah li { counter-increment: l; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.langkah li::before { content: counter(l); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--utama-muda); color: var(--utama); font-weight: 800; }
.langkah span { font-size: .86rem; color: var(--abu); }

/* Pesanan */
.baris-pesanan { display: block; padding: 14px; margin-bottom: 10px; background: var(--putih); border-radius: var(--radius); box-shadow: var(--bayang); }
.baris-pesanan__atas, .baris-pesanan__bawah { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.baris-pesanan p { margin: 6px 0; font-size: .88rem; color: #3e4555; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.baris-pesanan__bawah span { font-size: .8rem; color: var(--abu); }
.baris-pesanan__bawah strong { color: var(--aksen-tua); }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.status--kuning { background: #fff3d6; color: #6f4700; }
.status--biru { background: #e6efff; color: #1d4699; }
.status--hijau { background: #dff5e7; color: #0e5a31; }
.status--abu { background: #eeeff1; color: #4a4f5c; }
.kepala-pesanan { padding: 20px 16px 4px; }
.kepala-pesanan h2 { font-size: 1.3rem; font-weight: 800; margin-top: 6px; }
.alur { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; }
.alur li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--abu); text-align: center; }
.alur i { width: 16px; height: 16px; border-radius: 50%; background: #cfd3dc; z-index: 1; }
.alur li + li::before { content: ''; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: #cfd3dc; }
.alur .lewat { color: var(--utama); }
.alur .lewat i, .alur .lewat::before { background: var(--utama); }
.bayar__total { font-size: 1.6rem; font-weight: 800; color: var(--aksen-tua); }
.bayar form { display: grid; gap: 12px; }

/* Dokter & chat */
.daftar-dokter { display: grid; gap: 10px; }
.kd { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--putih); border-radius: var(--radius); box-shadow: var(--bayang); }
.kd--polos { align-items: flex-start; }
.kd__foto { position: relative; flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--utama-muda); color: var(--utama); }
.kd__foto img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.kd__foto .ik { width: 26px; height: 26px; }
.kd__foto i { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #fff; }
.kd__foto .on { background: #1aa35a; }
.kd__foto .off { background: #a9adb6; }
.kd__isi { flex: 1; min-width: 0; }
.kd__isi h3 { font-size: .95rem; font-weight: 800; line-height: 1.3; }
.kd__isi p { font-size: .82rem; color: var(--abu); }
.kd__harga { font-weight: 800; color: var(--aksen-tua) !important; }
.kd__harga span { font-weight: 600; }
.hijau { color: #0e7a40; }
.abu { color: var(--abu); }
.kartu-resep { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--putih); border-radius: var(--radius); box-shadow: var(--bayang); }
.kartu-resep div { flex: 1; }
.kartu-resep strong { display: block; }
.kartu-resep span:not(.layanan__ikon) { font-size: .84rem; color: var(--abu); }
.baris-chat { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 10px; background: var(--putih); border-radius: var(--radius); box-shadow: var(--bayang); }
.baris-chat div { flex: 1; min-width: 0; }
.baris-chat p { font-size: .84rem; color: var(--abu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-dokter { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; background: var(--putih); border-radius: var(--radius); box-shadow: var(--bayang); }
.status-dokter span { display: block; font-size: .84rem; color: var(--abu); }

.chat__info { position: sticky; top: 58px; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 16px; background: var(--putih); border-bottom: 1px solid var(--garis); font-size: .84rem; color: var(--abu); font-weight: 600; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px 90px; }
.gelembung { max-width: 82%; padding: 9px 13px 6px; border-radius: 16px; background: var(--putih); box-shadow: 0 1px 1px rgba(15, 28, 56, .08); align-self: flex-start; border-bottom-left-radius: 4px; overflow-wrap: anywhere; }
.gelembung p { white-space: pre-wrap; }
.gelembung time { display: block; text-align: right; font-size: .68rem; opacity: .65; margin-top: 2px; }
.gelembung img { max-width: 220px; border-radius: 10px; margin-bottom: 4px; }
.gelembung--saya { align-self: flex-end; background: var(--utama); color: #fff; border-radius: 16px; border-bottom-right-radius: 4px; }
.gelembung--sistem { align-self: center; max-width: 92%; background: #e9ebef; color: var(--abu); font-size: .8rem; text-align: center; border-radius: 12px; box-shadow: none; padding: 8px 12px; }
.chat__tulis { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 40; display: flex; align-items: flex-end; gap: 8px; width: 100%; max-width: 480px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--putih); border-top: 1px solid var(--garis); }
.chat__tulis textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 10px 14px; border: 1.5px solid #cfd3dc; border-radius: 22px; resize: none; font-size: 1rem; outline: 0; }
.chat__tulis textarea:focus { border-color: var(--utama); }
.chat__tulis button, .chat__lampir { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--utama); color: #fff; cursor: pointer; }
.chat__lampir { background: var(--utama-muda); color: var(--utama); }
.chat__lampir.terisi { background: var(--aksen-tua); color: #fff; }
.chat__tutup { margin: 0 16px; padding: 14px; border-radius: 12px; background: #e9ebef; text-align: center; font-size: .9rem; color: var(--abu); }
.chat__tutup a { color: var(--utama); font-weight: 700; }

/* Akun */
.masuk { padding: 32px 20px; text-align: center; }
.masuk img { margin: 0 auto 14px; }
.masuk h2 { font-size: 1.35rem; font-weight: 800; }
.masuk > p { color: var(--abu); margin: 4px 0 20px; }
.formulir--polos { display: grid; gap: 14px; text-align: left; padding-bottom: 0; }
.masuk__ganti a { color: var(--utama); font-weight: 800; }
.profil { display: flex; align-items: center; gap: 14px; padding: 22px 16px; background: var(--putih); }
.profil__foto { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #2a5fd0, var(--utama-tua)); color: #fff; font-size: 1.5rem; font-weight: 800; }
.profil h2 { font-size: 1.15rem; font-weight: 800; }
.profil p { color: var(--abu); }
.menu-baris { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 14px; margin-bottom: 8px; border: 0; border-radius: 14px; background: var(--putih); box-shadow: var(--bayang); font-weight: 700; text-align: left; }
.menu-baris .ik:first-child { color: var(--utama); }
.menu-baris .ik:last-child:not(:first-child) { margin-left: auto; color: #a9adb6; }
.menu-baris--bahaya, .menu-baris--bahaya .ik:first-child { color: var(--merah); }

.kosong { padding: 56px 28px; text-align: center; }
.kosong--rapat { padding-top: 24px; }
.kosong > .ik { width: 64px; height: 64px; padding: 16px; border-radius: 50%; background: var(--utama-muda); color: var(--utama); margin-bottom: 14px; }
.kosong h2 { font-size: 1.15rem; font-weight: 800; }
.kosong p { color: var(--abu); margin: 6px 0 18px; }

.cabang { background: var(--putih); border-radius: 20px; overflow: hidden; box-shadow: var(--bayang); margin-bottom: 16px; }
.cabang img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cabang__isi { padding: 16px; }
.cabang h2 { font-size: 1.15rem; font-weight: 800; }
.cabang__label { color: var(--aksen-tua); font-weight: 700; font-size: .86rem; }
.cabang ul { display: grid; gap: 8px; margin: 12px 0 16px; }
.cabang li { display: flex; gap: 10px; font-size: .9rem; }
.cabang li .ik { color: var(--utama); margin-top: 2px; }
.cabang li a { font-weight: 700; color: var(--utama); }

/* Tab bawah */
.tab { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 35; display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; max-width: 480px; padding-bottom: env(safe-area-inset-bottom); background: var(--putih); border-top: 1px solid var(--garis); }
.tab a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tab); font-size: .68rem; font-weight: 700; color: #7f8491; }
.tab .ik { width: 24px; height: 24px; }
.tab a[aria-current] { color: var(--utama); }

/* Panel apotek */
.anav { display: flex; gap: 6px; padding: 12px 16px; overflow-x: auto; background: var(--putih); border-bottom: 1px solid var(--garis); scrollbar-width: none; }
.anav a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--abu); }
.anav a[aria-current] { background: var(--utama-muda); color: var(--utama-tua); }
.angka { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.angka a { padding: 14px; background: var(--putih); border-radius: var(--radius); box-shadow: var(--bayang); font-size: .84rem; color: var(--abu); font-weight: 600; }
.angka strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--tinta); line-height: 1.2; }
.tabel-gulir { overflow-x: auto; background: var(--putih); border-radius: var(--radius); box-shadow: var(--bayang); }
.tabel { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tabel th, .tabel td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--garis); }
.tabel th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--abu); white-space: nowrap; }
.tabel tr:last-child td { border-bottom: 0; }
.tabel a { color: var(--utama); }
.tabel small { color: var(--abu); }
.kanan { text-align: right !important; white-space: nowrap; }
.tindakan { display: grid; gap: 12px; }
body.lebar .kelompok, body.lebar .kepala-pesanan { max-width: 720px; }
body.lebar .formulir { padding-bottom: 0; }

@media (min-width: 420px) {
  .geser .kp { flex-basis: 158px; }
}
@media (max-width: 360px) {
  .dua { grid-template-columns: 1fr; }
  .layanan a, .kategori a { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.halaman { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 18px 16px 8px; }
.halaman > :last-child { justify-self: end; }
.halaman > :first-child { justify-self: start; }
.halaman__posisi { color: var(--abu); font-weight: 700; font-size: .9rem; }

/* Ikon bergambar (public/img/ikon): bulat, tanpa latar tambahan. */
.ikon-gbr { background: none !important; border-radius: 50% !important; overflow: hidden; }
.ikon-gbr img { width: 100%; height: 100%; display: block; }
.layanan__ikon.ikon-gbr { width: 58px; height: 58px; }
.kategori .kategori__ikon.ikon-gbr { width: 60px; height: 60px; }
.thumb .thumb__ikon { width: 62%; height: 62%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 28, 90, .16)); }
.kp__gambar .thumb .thumb__ikon, .pd__gambar .thumb .thumb__ikon, .isi-keranjang__gambar .thumb .thumb__ikon { width: 62%; height: 62%; }
.pd__gambar .thumb .thumb__ikon { width: auto; height: 70%; }

.bayar__batas { margin: -4px 0 2px; font-weight: 600; }
.bayar__sisa { display: block; margin-top: 4px; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--aksen-tua); }
.bayar__sisa.genting { color: var(--merah); }

/* Kartu pembayaran: QRIS (logo dan kode dipotong dari poster bank oleh alat/potong-qris.js) dan rekening bank */
.bayar__total { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.salin { min-height: 34px; padding: 0 14px; border: 1.5px solid #bcc4d6; border-radius: 999px; background: var(--putih); color: var(--utama); font: 700 .8rem var(--huruf); cursor: pointer; transition: transform var(--gerak), background var(--gerak); }
.salin:hover { background: var(--utama-muda); }
.salin:active { transform: scale(.94); }
.salin--putih { min-height: 40px; border-color: transparent; color: var(--utama-tua); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45); }
.bayar__cara { display: grid; gap: 14px; }
.kqris { overflow: hidden; border: 1px solid var(--garis); border-radius: 20px; background: var(--putih); box-shadow: var(--bayang); text-align: center; }
.kqris__atas { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--garis); }
.kqris__atas img:first-child { flex: 0 1 auto; min-width: 0; width: auto; height: auto; max-height: 34px; }
.kqris__atas img:last-child { flex: none; width: auto; height: 40px; }
.kqris__isi { display: grid; justify-items: center; gap: 4px; padding: 16px 16px 18px; background: radial-gradient(120% 70% at 50% 0, #f4f7ff 0, #fff 70%); }
.kqris__nama { font-size: 1.12rem; font-weight: 800; letter-spacing: .02em; }
.kqris__nmid { font-size: .8rem; color: var(--abu); font-variant-numeric: tabular-nums; }
.kqris__bingkai { width: min(256px, 100%); margin: 12px 0 10px; padding: 6px; border: 3px solid transparent; border-radius: 20px; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--utama), var(--aksen)) border-box; box-shadow: 0 14px 28px -18px rgba(0, 48, 146, .55); }
.kqris__bingkai img { width: 100%; height: auto; border-radius: 10px; }
.kqris__semua { font-size: .7rem; font-weight: 800; letter-spacing: .16em; }
.kqris__cara { max-width: 30em; margin-top: 6px; font-size: .88rem; color: var(--abu); }
.kqris__cara strong { color: var(--tinta); white-space: nowrap; }
.kqris__simpan { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 6px; padding: 0 14px; border-radius: 999px; color: var(--utama); font-size: .86rem; font-weight: 700; }
.kqris__simpan:hover { background: var(--utama-muda); }
.kqris__simpan .ik { width: 18px; height: 18px; }
.bayar__atau { display: flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--abu); }
.bayar__atau::before, .bayar__atau::after { content: ''; flex: 1; height: 1px; background: var(--garis); }
.krek { position: relative; overflow: hidden; display: grid; gap: 2px; padding: 18px 18px 16px; border-radius: 20px; background: linear-gradient(135deg, var(--utama-tua) 0%, var(--utama) 45%, #0b4fc4 100%); color: #fff; box-shadow: 0 16px 30px -18px rgba(0, 48, 146, .8); }
.krek::before { content: ''; position: absolute; top: -70px; right: -50px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(252, 108, 24, .85) 0, rgba(252, 108, 24, 0) 68%); }
.krek::after { content: ''; position: absolute; bottom: -90px; left: -40px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .06); }
.krek > * { position: relative; z-index: 1; }
.krek__atas { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.krek__atas b { padding: 5px 14px; border-radius: 999px; background: #fff; color: var(--utama-tua); font-size: .95rem; font-weight: 800; letter-spacing: .02em; text-transform: none; }
.krek__label { display: block; font-size: .74rem; font-weight: 600; opacity: .78; }
.krek__nomor { font-size: clamp(1.02rem, 5.6vw, 1.6rem); font-weight: 800; letter-spacing: .05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.krek__bawah { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 12px; }
.krek__bawah strong { display: block; font-size: 1rem; letter-spacing: .03em; }
