/* ============================================================
   EDUPOS - EDUKASI POINT OF SALE UNTUK SISWA SLB
   Gaya tampilan untuk index.php.
   ============================================================ */

:root{
  --bg:#eef7ff;
  --bg2:#fff7e8;
  --ink:#1b2e4a;
  --muted:#4d5f7a;
  --kartu:#ffffff;
  --biru:#1976d2;
  --biru-tua:#104fa8;
  --hijau:#1ca85c;
  --hijau-tua:#0d7f43;
  --oranye:#f29f05;
  --merah:#d94b42;
  --ungu:#7b3fe4;
  --garis:#dfeafc;
  --radius:26px;
  --fokus:#0b5ed7;
  --bayang:0 12px 28px rgba(17,57,113,.12);
  --bayang-besar:0 18px 42px rgba(17,57,113,.18);
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;}

html,body{margin:0;padding:0;}

body{
  font-family:"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
  color:var(--ink);
  font-size:18px;
  line-height:1.5;
  letter-spacing:.01em;
  min-height:100vh;
  background:
    radial-gradient(1000px 540px at 10% -12%, #dff1ff, transparent 58%),
    radial-gradient(980px 520px at 106% 8%, #ffe7c2, transparent 56%),
    var(--bg);
  background-attachment:fixed;
  overflow-x:hidden;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

button,input,select{font-family:inherit;}

button{cursor:pointer;}

:where(a,button,input,select,textarea,[tabindex]):focus-visible{
  outline:4px solid var(--fokus);
  outline-offset:3px;
}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.lewati-konten{
  position:fixed;
  left:12px;
  top:-90px;
  z-index:200;
  background:#fff;
  color:var(--ink);
  padding:12px 18px;
  border-radius:12px;
  font-weight:800;
  box-shadow:var(--bayang-besar);
  text-decoration:none;
}
.lewati-konten:focus{top:12px;}

/* ---------- HEADER ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:30;
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px clamp(12px,3vw,28px);
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(24,42,68,.09);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:clamp(1.15rem,2.4vw,1.6rem);
  font-weight:800;
  letter-spacing:.2px;
  white-space:nowrap;
}
.brand .brand-emoji{font-size:1.7em;line-height:1;}
.brand-teks{display:flex;flex-direction:column;line-height:1.02;}
.brand-nama{display:block;letter-spacing:.02em;}
.brand-sub{
  display:block;
  margin-top:3px;
  font-size:.46em;
  font-weight:700;
  letter-spacing:.11em;
  line-height:1.1;
  text-transform:uppercase;
  color:#6b7c90;
}

.topbar-tengah{flex:1;display:flex;align-items:center;justify-content:center;gap:12px;min-width:0;}

.steps{display:flex;align-items:center;gap:10px;}
.step{
  width:16px;height:16px;border-radius:50%;
  background:#d8e6f8;
  transition:background .25s ease, transform .25s ease;
}
.step.aktif{background:var(--biru);}
.step.sekarang{background:var(--oranye);transform:scale(1.45);}
.steps.sembunyi{visibility:hidden;}

.btn-lingkaran{
  width:58px;height:58px;min-width:58px;
  border-radius:50%;
  border:3px solid var(--garis);
  background:#fff;
  color:var(--ink);
  font-size:1.5rem;
  font-weight:800;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:var(--bayang);
  transition:transform .12s ease;
}
.btn-lingkaran:active{transform:scale(.94);}
.btn-lingkaran[hidden]{display:none;}

.btn-guru{
  border:3px solid var(--garis);
  background:#fff;
  color:var(--ink);
  min-height:58px;
  border-radius:18px;
  padding:0 18px;
  font-size:1rem;
  font-weight:800;
  display:inline-flex;align-items:center;gap:8px;
  box-shadow:var(--bayang);
}
.btn-guru:active{transform:scale(.97);}

.btn-tenang{
  min-height:58px;
  border:3px solid var(--garis);
  background:#fff;
  color:var(--ink);
  border-radius:16px;
  padding:0 14px;
  font-size:.95rem;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  gap:7px;
  box-shadow:var(--bayang);
  touch-action:manipulation;
}
.btn-tenang svg{width:20px;height:20px;flex:none;}
.btn-tenang[aria-pressed="true"]{
  background:#e6f1ff;
  border-color:#8cb9f4;
  color:var(--biru-tua);
}
.btn-tenang:active{transform:scale(.97);}

/* ---------- LAYOUT ---------- */
main{
  width:min(1180px,100%);
  margin:0 auto;
  padding:clamp(18px,3vw,30px) clamp(12px,3vw,28px) 40px;
}

.screen{display:none;scroll-margin-top:92px;padding-bottom:10px;}
.screen.active{display:block;animation:masuk .32s ease both;}

.langkah-label{
  display:block;
  width:max-content;
  max-width:100%;
  margin:0 auto 10px;
  padding:6px 14px;
  border-radius:999px;
  background:#e7f1ff;
  color:var(--biru-tua);
  font-size:.9rem;
  font-weight:800;
  text-align:center;
}

@keyframes masuk{
  from{opacity:0;transform:translateY(14px);}
  to{opacity:1;transform:translateY(0);}
}

h1,h2,h3{margin:0;line-height:1.2;text-wrap:balance;}

.judul-halaman{
  font-size:clamp(1.7rem,4vw,2.6rem);
  font-weight:800;
  text-align:center;
  margin:6px 0 4px;
}
.sub-halaman{
  max-width:62ch;
  margin:0 auto 20px;
  text-align:center;
  color:var(--muted);
  font-size:clamp(1rem,2vw,1.2rem);
  font-weight:600;
  text-wrap:pretty;
}

/* ---------- BARCODE ---------- */
.barcode-panel{
  display:flex;
  align-items:flex-start;
  gap:clamp(12px,2vw,18px);
  max-width:860px;
  margin:0 auto 18px;
  padding:14px clamp(14px,2.4vw,20px);
  background:linear-gradient(180deg,#fff,#f5f9ff);
  border:2px solid #d9e9ff;
  border-radius:20px;
  box-shadow:var(--bayang);
}
.barcode-ikon{
  flex:none;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#e9f2ff;
  border:1px solid #d3e5fb;
  color:#2563a6;
}
.barcode-ikon svg{width:24px;height:24px;}
.barcode-isi{flex:1 1 auto;min-width:0;}
.barcode-isi label{
  display:block;
  margin:0 0 6px;
  font-size:1rem;
  font-weight:800;
  color:#184b80;
}
.barcode-baris{
  display:flex;
  align-items:stretch;
  gap:8px;
  flex-wrap:wrap;
  margin:0;
}
.barcode-input-wrap{
  position:relative;
  flex:1 1 240px;
  min-width:0;
  display:flex;
  align-items:center;
}
.barcode-input-ikon{
  position:absolute;
  left:13px;
  width:20px;
  height:20px;
  color:#6b7c90;
  pointer-events:none;
}
#inputBarcode{
  width:100%;
  min-height:56px;
  padding:10px 14px 10px 42px;
  border:2px solid #cfe1f6;
  border-radius:14px;
  background:#fff;
  color:var(--ink);
  font-size:1.05rem;
  font-weight:800;
  letter-spacing:.06em;
  transition:border-color .15s ease,box-shadow .15s ease;
}
#inputBarcode::placeholder{
  color:#8b9bb0;
  font-weight:600;
  letter-spacing:0;
}
#inputBarcode:focus{
  outline:none;
  border-color:#2563a6;
  box-shadow:0 0 0 4px rgba(37,99,166,.14);
}
.barcode-baris .btn{
  min-height:56px;
  padding:0 20px;
  border-radius:14px;
  font-size:1rem;
  white-space:nowrap;
}
.btn-kamera[hidden]{display:none;}
.barcode-bantuan{
  margin:7px 0 0;
  color:var(--muted);
  font-size:.8rem;
  font-weight:600;
  line-height:1.45;
}
.barcode-status{
  min-height:1.15em;
  margin:5px 0 0;
  font-size:.88rem;
  font-weight:800;
  line-height:1.3;
}
.barcode-status.ok{color:var(--hijau-tua);}
.barcode-status.gagal{color:var(--merah);}
.barcode-panel.gagal{animation:getarBarcode .45s ease;}
@keyframes getarBarcode{
  0%,100%{transform:translateX(0);}
  20%{transform:translateX(-6px);}
  40%{transform:translateX(5px);}
  60%{transform:translateX(-4px);}
  80%{transform:translateX(3px);}
}
body.mode-tenang .barcode-panel.gagal{animation:none;}

@media (max-width:600px){
  .barcode-panel{padding:13px 14px;gap:10px;}
  .barcode-ikon{width:40px;height:40px;border-radius:11px;}
  .barcode-ikon svg{width:21px;height:21px;}
  .barcode-isi label{font-size:.94rem;}
  .barcode-input-wrap{flex-basis:100%;}
  #inputBarcode{min-height:54px;font-size:1rem;}
  .barcode-baris .btn{min-height:52px;padding:0 16px;}
  .barcode-baris .btn-cek-barcode,
  .barcode-baris .btn-kamera{flex:1 1 auto;}
}

@media (prefers-reduced-motion: reduce){
  .barcode-panel.gagal{animation:none;}
}

.angka-total,
.ringkas-item strong,
.produk-harga,
.cart-info span,
.ki-subtotal,
.uang-label,
.rincian-baris strong,
.kembalian-nilai{
  font-variant-numeric:tabular-nums;
}

/* ---------- TOMBOL BESAR ---------- */
.btn{
  min-height:78px;
  border:none;
  border-radius:22px;
  padding:12px 28px;
  font-size:clamp(1.2rem,2.4vw,1.5rem);
  font-weight:800;
  letter-spacing:.02em;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  box-shadow:var(--bayang);
  transition:transform .12s ease, filter .12s ease, opacity .2s ease, box-shadow .12s ease;
  line-height:1.15;
  touch-action:manipulation;
}

.btn:hover{
  box-shadow:0 14px 30px rgba(17,57,113,.16);
}
.btn:active{transform:scale(.97);}
.btn:disabled{opacity:.45;box-shadow:none;cursor:not-allowed;filter:grayscale(.2);}
.btn-biru{background:linear-gradient(180deg,#2f7df0,#1668e3);color:#fff;}
.btn-hijau{background:linear-gradient(180deg,#22b35c,#17994c);color:#fff;}
.btn-kuning{background:linear-gradient(180deg,#ffc247,#f39c12);color:#3a2600;}
.btn-putih{background:#fff;color:var(--ink);border:3px solid var(--garis);}
.btn-kecil{min-height:64px;font-size:1.05rem;padding:8px 18px;border-radius:16px;}

/* ---------- BERANDA ---------- */
.beranda{
  position:relative;
  width:min(1080px,100%);
  min-height:min(610px,calc(100vh - 150px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(300px,.92fr);
  align-items:center;
  gap:clamp(20px,4vw,48px);
  padding:clamp(28px,4vw,48px);
  overflow:hidden;
  text-align:left;
  background:linear-gradient(135deg,#fff 0%,#f7fbff 62%,#eef8ff 100%);
  border:3px solid rgba(255,255,255,.92);
  border-radius:36px;
  box-shadow:0 24px 70px rgba(24,60,120,.15);
}
.beranda-konten{position:relative;z-index:1;}
.beranda-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
  padding:8px 14px;
  border:2px solid #dcecff;
  border-radius:999px;
  background:#f0f7ff;
  color:var(--biru-tua);
  font-size:.95rem;
  font-weight:800;
}
.beranda h1{
  max-width:600px;
  font-size:clamp(2.5rem,4.5vw,3.6rem);
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1.08;
}
.beranda h1 span{color:var(--biru-tua);}
.beranda .slogan{
  max-width:560px;
  font-size:clamp(1.12rem,2vw,1.35rem);
  color:var(--muted);
  font-weight:600;
  line-height:1.6;
  margin:14px 0 18px;
}
.beranda-fitur{
  display:grid;
  gap:8px;
  margin:0 0 20px;
  padding:0;
  list-style:none;
}
.beranda-fitur li{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--ink);
  font-weight:700;
  font-size:1.02rem;
}
.fitur-ikon{
  width:36px;
  height:36px;
  flex:none;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#edf6ff;
  font-size:1.3rem;
}
.beranda .btn-mulai{
  min-height:80px;
  padding:0 30px;
  font-size:clamp(1.35rem,2.5vw,1.7rem);
  border-radius:24px;
  background:linear-gradient(180deg,#27bd65,#148c45);
  color:#fff;
  box-shadow:0 14px 30px rgba(23,153,76,.28);
}
.beranda .btn-mulai .ikon{font-size:1.25em;}
.btn-panah{font-size:1.3em;line-height:1;}
.catatan-bawah{
  max-width:500px;
  margin:14px 0 0;
  color:var(--muted);
  font-size:.92rem;
  font-weight:700;
}
.beranda-ilustrasi{
  position:relative;
  display:grid;
  min-height:380px;
  place-items:center;
  isolation:isolate;
}
.ilustrasi-lingkaran{
  position:absolute;
  z-index:-1;
  width:min(100%,360px);
  aspect-ratio:1;
  border-radius:50%;
  background:linear-gradient(145deg,#dff2ff,#d8eaff 58%,#fff0d6);
  box-shadow:inset 0 0 0 18px rgba(255,255,255,.35);
}
.ilustrasi-keranjang{
  display:grid;
  place-items:center;
  width:220px;
  height:220px;
  border-radius:48px;
  background:linear-gradient(145deg,#fff,#f8fbff);
  box-shadow:0 24px 50px rgba(24,60,120,.18);
  font-size:clamp(7rem,13vw,10rem);
  transform:rotate(-5deg);
}
.ilustrasi-produk{
  position:absolute;
  display:grid;
  place-items:center;
  width:82px;
  height:82px;
  border:4px solid #fff;
  border-radius:24px;
  background:#fff;
  box-shadow:0 12px 26px rgba(24,60,120,.16);
  font-size:2.7rem;
}
.ilustrasi-roti{top:12%;left:5%;transform:rotate(-9deg);}
.ilustrasi-susu{top:7%;right:7%;transform:rotate(8deg);}
.ilustrasi-buku{bottom:14%;right:3%;transform:rotate(9deg);}
.ilustrasi-bintang{
  position:absolute;
  color:#f0a900;
  font-size:2.5rem;
}
.bintang-satu{top:18%;right:19%;}
.bintang-dua{bottom:17%;left:10%;font-size:1.7rem;color:#5a9ae8;}
.ilustrasi-label{
  position:absolute;
  bottom:4%;
  left:50%;
  transform:translateX(-50%) rotate(-2deg);
  white-space:nowrap;
  padding:12px 20px;
  border-radius:18px;
  background:#fff;
  color:var(--hijau-tua);
  font-size:1.15rem;
  font-weight:800;
  box-shadow:var(--bayang);
}

/* ---------- PILIH PRODUK ---------- */
.mic-zone{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(14px,3vw,28px);
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(240,247,255,.98));
  border:3px solid #d9e9ff;
  border-radius:30px;
  padding:18px clamp(18px,3vw,30px);
  margin:0 auto 20px;
  max-width:860px;
  box-shadow:var(--bayang);
  flex-wrap:wrap;
}
.mic-btn{
  position:relative;
  width:clamp(104px,17vw,132px);
  height:clamp(104px,17vw,132px);
  min-width:104px;
  border-radius:50%;
  border:none;
  background:linear-gradient(180deg,#3f8bf5,#1668e3);
  color:#fff;
  font-size:clamp(2.4rem,5vw,3.2rem);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 14px 30px rgba(22,104,227,.38);
  transition:transform .15s ease, background .2s ease;
  touch-action:manipulation;
}
.mic-btn:active{transform:scale(.95);}
.mic-btn.mendengar{
  background:linear-gradient(180deg,#ff8f5a,#e85d2a);
  box-shadow:0 0 0 0 rgba(232,93,42,.45);
  animation:denyutMic 1.7s ease-out infinite;
}
@keyframes denyutMic{
  0%{box-shadow:0 0 0 0 rgba(232,93,42,.42);}
  70%{box-shadow:0 0 0 26px rgba(232,93,42,0);}
  100%{box-shadow:0 0 0 0 rgba(232,93,42,0);}
}
.mic-btn:disabled{
  background:#c8d6e8;
  box-shadow:none;
  cursor:not-allowed;
}
.mic-teks{text-align:left;min-width:180px;flex:1;}
.mic-teks strong{
  display:block;
  font-size:clamp(1.25rem,2.8vw,1.7rem);
  font-weight:800;
}
.mic-teks span{
  display:block;
  color:var(--muted);
  font-weight:700;
  font-size:clamp(.95rem,1.9vw,1.1rem);
  margin-top:2px;
}

.banner-suara{
  max-width:820px;
  margin:0 auto 18px;
  background:#fff4d9;
  border:3px solid #ffd98a;
  border-radius:20px;
  padding:14px 20px;
  color:#6b4a00;
  font-weight:800;
  text-align:center;
}
.banner-suara[hidden]{display:none;}

.grid-produk{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
  gap:clamp(12px,2vw,20px);
}

.produk-card{
  position:relative;
  min-height:clamp(280px,32vw,360px);
  aspect-ratio:auto;
  background:linear-gradient(180deg,#ffffff,#f4f9ff);
  border:3px solid #dfeafc;
  border-radius:28px;
  box-shadow:var(--bayang);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:18px 12px 16px;
  overflow:hidden;
  transition:transform .14s ease, border-color .2s ease, box-shadow .2s ease;
}
.produk-card:active{transform:scale(.96);}
.produk-card:hover{border-color:#b7d3ff;}
.produk-card.ditambahkan{
  border-color:#4fc77a;
  box-shadow:0 0 0 6px rgba(84,201,126,.22), var(--bayang-besar);
  animation:lompat .55s ease;
}
@keyframes lompat{
  0%{transform:scale(1);}
  35%{transform:scale(1.06) rotate(-1deg);}
  70%{transform:scale(.99) rotate(1deg);}
  100%{transform:scale(1);}
}
.produk-gambar{
  width:clamp(130px, 28vw, 210px);
  height:clamp(130px, 28vw, 210px);
  object-fit:cover;
  border-radius:20px;
  display:block;
  background:#edf5ff;
  box-shadow:inset 0 0 0 1px rgba(17,57,113,.06);
}
.produk-emoji{
  font-size:clamp(5rem,12vw,8rem);
  line-height:1;
  filter:drop-shadow(0 6px 8px rgba(24,60,120,.14));
}
.produk-nama{
  font-size:clamp(1.1rem,2.2vw,1.4rem);
  font-weight:800;
  text-align:center;
  word-break:break-word;
}
.produk-harga{
  margin-top:2px;
  background:#eaf3ff;
  color:var(--biru-tua);
  border-radius:999px;
  padding:5px 16px;
  font-size:clamp(1rem,2vw,1.2rem);
  font-weight:800;
}
.tanda-tambah{
  position:absolute;
  top:10px;right:10px;
  width:34px;height:34px;
  border-radius:50%;
  background:#e7f8ec;
  color:var(--hijau);
  font-weight:800;
  display:flex;align-items:center;justify-content:center;
  opacity:0;
  transform:scale(.5);
  transition:opacity .2s ease, transform .2s ease;
}
.produk-card.ditambahkan .tanda-tambah{opacity:1;transform:scale(1);}
.plus-satu{
  position:absolute;
  left:50%;top:44%;
  transform:translate(-50%,-50%);
  font-size:2.2rem;
  font-weight:800;
  color:var(--hijau);
  pointer-events:none;
  animation:naikPlus .8s ease-out forwards;
}
@keyframes naikPlus{
  from{opacity:1;transform:translate(-50%,-40%) scale(.8);}
  to{opacity:0;transform:translate(-50%,-130%) scale(1.3);}
}

.cart-bar{
  position:sticky;
  bottom:14px;
  z-index:20;
  margin-top:22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:rgba(255,255,255,.96);
  border:3px solid #d9e9ff;
  border-radius:26px;
  padding:12px 14px 12px 20px;
  box-shadow:var(--bayang-besar);
  flex-wrap:wrap;
}
.cart-info{display:flex;align-items:center;gap:14px;}
.cart-ikon{font-size:2rem;line-height:1;}
.cart-info strong{display:block;font-size:1.15rem;font-weight:800;}
.cart-info span{display:block;color:var(--muted);font-weight:800;font-size:1.05rem;}
.cart-bar .btn{min-height:66px;font-size:1.1rem;padding:8px 22px;}

/* ---------- KERANJANG ---------- */
.keranjang-layout{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(260px,.9fr);
  gap:22px;
  align-items:start;
}
.daftar-keranjang{display:flex;flex-direction:column;gap:12px;}
.keranjang-item{
  display:flex;
  align-items:center;
  gap:16px;
  background:#fff;
  border:3px solid #e1edfc;
  border-radius:22px;
  padding:14px 16px;
  box-shadow:var(--bayang);
}
.ki-emoji{font-size:2.5rem;line-height:1;}
.ki-info{flex:1;min-width:0;}
.ki-info strong{display:block;font-size:1.2rem;font-weight:800;}
.ki-info span{display:block;color:var(--muted);font-weight:700;font-size:.98rem;}
.ki-subtotal{
  font-size:1.15rem;
  font-weight:800;
  white-space:nowrap;
  color:var(--biru-tua);
}
.ki-hapus{
  width:58px;height:58px;
  border-radius:16px;
  border:2px solid #f2d6d3;
  background:#fff7f6;
  color:#b43a31;
  font-size:1.25rem;
  display:flex;align-items:center;justify-content:center;
}
.ki-hapus:active{transform:scale(.94);}
.keranjang-kosong{
  background:#fff;
  border:3px dashed #cfe0f6;
  border-radius:24px;
  padding:38px 20px;
  text-align:center;
  color:var(--muted);
  font-weight:800;
  font-size:1.1rem;
}
.keranjang-kosong .besar{font-size:3.4rem;display:block;margin-bottom:8px;}
.panel-total{
  background:#fff;
  border:3px solid #e1edfc;
  border-radius:26px;
  padding:22px;
  box-shadow:var(--bayang);
  position:sticky;
  top:90px;
}
.label-total{
  color:var(--muted);
  font-weight:800;
  font-size:1.05rem;
  text-align:center;
}
.angka-total{
  text-align:center;
  font-size:clamp(2.2rem,5vw,3.1rem);
  font-weight:800;
  color:var(--hijau-tua);
  margin:2px 0 18px;
  word-break:break-word;
}
.panel-total .btn{width:100%;}
.panel-total .btn + .btn{margin-top:10px;}

/* ---------- PEMBAYARAN ---------- */
.ringkas-bayar{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:18px;
}
.ringkas-item{
  background:#fff;
  border:3px solid #e1edfc;
  border-radius:22px;
  padding:14px 16px;
  box-shadow:var(--bayang);
  min-width:0;
}
.ringkas-item span{display:block;color:var(--muted);font-weight:800;font-size:.95rem;}
.ringkas-item strong{display:block;font-size:clamp(1.25rem,2.6vw,1.8rem);font-weight:800;margin-top:2px;word-break:break-word;}
.ringkas-item.sisa{background:#fff8e8;border-color:#ffdf9f;}
.ringkas-item.sisa strong{color:#a56000;}
.ringkas-item.sisa.lunas{background:#eafaf0;border-color:#a9e6c2;}
.ringkas-item.sisa.lunas strong{color:var(--hijau-tua);}

.area-bayar-bungkus{
  background:#fff;
  border:3px dashed #c9dcf5;
  border-radius:24px;
  padding:14px;
  margin-bottom:18px;
  min-height:110px;
}
.area-bayar-label{
  font-weight:800;
  color:var(--muted);
  font-size:.95rem;
  margin-bottom:8px;
  letter-spacing:.01em;
}
.area-bayar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  min-height:64px;
}
.area-bayar.berdenyut{animation:denyutArea .4s ease;}
@keyframes denyutArea{
  0%{transform:scale(1);}
  50%{transform:scale(1.02);}
  100%{transform:scale(1);}
}
.area-kosong{
  color:var(--muted);
  font-weight:700;
  margin:0;
  font-size:1rem;
}
.uang-terpilih{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:clamp(130px,18vw,170px);
  height:clamp(78px,11vw,104px);
  border-radius:12px;
  border:3px solid var(--warna,#ccc);
  background:#f8fbff;
  overflow:hidden;
  box-shadow:0 4px 10px rgba(24,60,120,.12);
}
.uang-terpilih img{width:100%;height:100%;object-fit:contain;}
.uang-terpilih .mini-koin{
  width:58px;height:58px;border-radius:50%;
  background:radial-gradient(circle at 34% 28%,#ffe89a,#c8a02c 70%);
  border:3px solid #a78016;
  color:#5a4300;
  font-weight:800;
  display:flex;align-items:center;justify-content:center;
  font-size:.95rem;
}
.uang-terpilih .kali{
  position:absolute;
  right:-1px;bottom:-1px;
  background:var(--ink);
  color:#fff;
  font-size:.82rem;
  font-weight:800;
  padding:1px 7px;
  border-radius:8px 0 0 0;
}

.judul-pilih-uang{
  font-size:clamp(1.15rem,2.4vw,1.4rem);
  font-weight:800;
  margin:0 0 10px;
  text-align:center;
}
.grid-uang{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:clamp(12px,1.8vw,16px);
}
.uang-card{
  position:relative;
  background:#fff;
  border:3px solid #e1edfc;
  border-top:9px solid var(--warna,#999);
  border-radius:20px;
  padding:12px 12px 14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
  min-height:clamp(178px,23vw,218px);
  box-shadow:var(--bayang);
  transition:transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}
.uang-card:active{transform:scale(.96);}
.uang-card.petunjuk{
  border-color:#ffb703;
  animation:petunjukLembut 1.8s ease-in-out infinite;
}
@keyframes petunjukLembut{
  0%,100%{box-shadow:0 0 0 0 rgba(255,183,3,.55), var(--bayang);}
  50%{box-shadow:0 0 0 9px rgba(255,183,3,0), var(--bayang-besar);}
}
.uang-visual{
  width:100%;
  aspect-ratio:2.2 / 1;
  min-height:80px;
  background:#f8fbff;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.uang-visual img{width:100%;height:100%;object-fit:contain;display:block;}
.uang-cadangan{display:none;}
.uang-visual.cadangan-aktif .uang-cadangan{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  width:100%;height:100%;
  background:var(--warna);
  color:#fff;
  font-weight:800;
  font-size:1.15rem;
  text-shadow:0 1px 2px rgba(0,0,0,.25);
}
.uang-label{font-size:clamp(1.15rem,1.8vw,1.35rem);font-weight:800;}
.uang-jenis{
  margin-top:-5px;
  font-size:.78rem;
  font-weight:700;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.04em;
}
.uang-jumlah{
  position:absolute;
  top:4px;right:4px;
  background:var(--hijau-tua);
  color:#fff;
  font-size:.9rem;
  font-weight:800;
  padding:2px 9px;
  border-radius:999px;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
}
.koin{
  width:clamp(58px,8vw,74px);
  height:clamp(58px,8vw,74px);
  border-radius:50%;
  background:radial-gradient(circle at 34% 28%,#ffeaa0,#d4ad34 62%,#a9821a 100%);
  border:4px solid #8f6d10;
  color:#4a3700;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  line-height:1;
  box-shadow:inset 0 -3px 6px rgba(0,0,0,.18), 0 4px 8px rgba(0,0,0,.18);
}
.koin .angka{font-size:clamp(1.1rem,2.5vw,1.5rem);font-weight:800;}
.koin .kata{font-size:.55rem;font-weight:800;letter-spacing:.5px;}
.koin-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:50%;
  mix-blend-mode:multiply;
}

.bayar-actions{
  position:sticky;
  bottom:14px;
  z-index:20;
  display:flex;
  gap:12px;
  margin-top:22px;
  background:rgba(238,247,255,.94);
  border-radius:24px;
  padding:10px;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.bayar-actions .btn{flex:1;}
.bayar-actions .btn-ulangi{flex:.7;}

/* ---------- HASIL ---------- */
.hasil-bungkus{
  max-width:760px;
  margin:0 auto;
  background:#fff;
  border:3px solid #e1edfc;
  border-radius:34px;
  padding:clamp(24px,5vw,44px);
  text-align:center;
  box-shadow:var(--bayang-besar);
  position:relative;
  overflow:hidden;
}
.hasil-bungkus.sukses{border-color:#a9e6c2;background:linear-gradient(180deg,#f2fff7,#fff);}
.hasil-bungkus.kurang{border-color:#ffdf9f;background:linear-gradient(180deg,#fffaf0,#fff);}
.hasil-ikon{
  font-size:clamp(4.6rem,12vw,7rem);
  line-height:1;
  margin-bottom:10px;
  display:inline-block;
}
.hasil-bungkus.sukses .hasil-ikon{animation:bintangMasuk .8s cubic-bezier(.2,1.4,.4,1) both;}
@keyframes bintangMasuk{
  0%{transform:scale(0) rotate(-40deg);}
  70%{transform:scale(1.15) rotate(8deg);}
  100%{transform:scale(1) rotate(0);}
}
.hasil-bungkus h1{
  font-size:clamp(1.8rem,4.6vw,2.9rem);
  font-weight:800;
}
.hasil-pesan{
  font-size:clamp(1.05rem,2.2vw,1.3rem);
  color:var(--muted);
  font-weight:700;
  margin:8px 0 20px;
}
.rincian-hasil{
  display:grid;
  gap:10px;
  max-width:470px;
  margin:0 auto 22px;
}
.rincian-baris{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background:#f4f9ff;
  border-radius:16px;
  padding:12px 18px;
  font-weight:800;
}
.rincian-baris span{color:var(--muted);}
.rincian-baris strong{font-size:clamp(1.1rem,2.2vw,1.35rem);font-weight:800;}
.rincian-baris.kembalian{background:#eafaf0;}
.rincian-baris.kembalian strong{color:var(--hijau-tua);font-size:clamp(1.3rem,2.8vw,1.7rem);}
.rincian-baris.kurang{background:#fff4d9;}
.rincian-baris.kurang strong{color:#a56000;}
.hasil-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}
.hasil-actions .btn{min-width:220px;}
.hasil-actions .btn[hidden]{display:none;}

/* ---------- UANG KEMBALIAN ---------- */
.kembalian-visual{
  max-width:820px;
  margin:0 auto 22px;
  background:#f0fbf4;
  border:3px solid #b9e8cd;
  border-radius:24px;
  padding:20px 18px 22px;
}
.kembalian-visual[hidden]{display:none;}
.kembalian-judul{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:clamp(1.05rem,2.2vw,1.25rem);
  font-weight:800;
  color:var(--hijau-tua);
}
.kembalian-sub{
  text-align:center;
  color:var(--muted);
  font-weight:700;
  font-size:.95rem;
  margin:4px 0 12px;
}
.kembalian-daftar{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:center;
}
.kembalian-item{
  position:relative;
  width:min(100%,740px);
  border:3px solid #cfeedd;
  background:#fff;
  border-radius:18px;
  padding:10px 10px 12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  box-shadow:var(--bayang);
  color:var(--ink);
  font-family:inherit;
  transition:transform .12s ease;
  animation:munculKembalian .36s ease both;
}
.kembalian-item:active{transform:scale(.95);}
@keyframes munculKembalian{
  from{opacity:0;transform:translateY(10px) scale(.95);}
  to{opacity:1;transform:translateY(0) scale(1);}
}
.kembalian-gambar{
  width:clamp(210px, 34vw, 300px);
  aspect-ratio:2.2 / 1;
  min-height:96px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f8fbff;
  border-radius:12px;
  overflow:hidden;
}
.kembalian-tumpukan{
  width:100%;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.kembalian-gambar.kembalian-koin{
  width:112px;
  min-height:112px;
  aspect-ratio:1;
  background:transparent;
  overflow:visible;
}
.kembalian-gambar img{width:100%;height:100%;object-fit:contain;display:block;}
.kembalian-cadangan{display:none;font-weight:800;font-size:.9rem;color:#fff;text-align:center;}
.kembalian-gambar.cadangan-aktif{background:var(--warna,#999);}
.kembalian-gambar.cadangan-aktif .kembalian-cadangan{display:block;}
.kembalian-jumlah-teks{
  font-size:.9rem;
  font-weight:800;
  color:var(--hijau-tua);
}
.kembalian-item .koin{
  width:108px;
  height:108px;
  border-width:4px;
}
.kembalian-item .koin .angka{font-size:1.8rem;}
.kembalian-item .koin .kata{font-size:.7rem;}
.kembalian-nilai{font-size:clamp(1rem,1.6vw,1.2rem);font-weight:800;}
.kembalian-jumlah{
  position:absolute;
  top:-9px;
  right:-7px;
  background:var(--hijau-tua);
  color:#fff;
  font-size:.85rem;
  font-weight:800;
  padding:2px 9px;
  border-radius:999px;
  box-shadow:0 2px 5px rgba(0,0,0,.18);
}

/* ---------- KONFETI ---------- */
#konfeti{
  position:fixed;
  inset:0;
  pointer-events:none;
  overflow:hidden;
  z-index:70;
}
.konfeti-potong{
  position:absolute;
  top:-12vh;
  width:15px;
  height:24px;
  border-radius:4px;
  opacity:.95;
  animation:jatuh linear forwards;
}
.konfeti-potong.bulat{border-radius:50%;height:15px;}
.konfeti-potong.bintang{
  background:transparent !important;
  width:auto;height:auto;
  font-size:26px;
  line-height:1;
}
@keyframes jatuh{
  to{transform:translateY(118vh) rotate(620deg);}
}

/* ---------- TOAST ---------- */
#toast{
  position:fixed;
  left:50%;
  bottom:26px;
  transform:translate(-50%,20px);
  z-index:110;
  background:var(--ink);
  color:#fff;
  padding:15px 22px;
  border-radius:18px;
  font-weight:800;
  font-size:1.05rem;
  box-shadow:var(--bayang-besar);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  max-width:calc(100vw - 32px);
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}
#toast.tampil{opacity:1;transform:translate(-50%,0);pointer-events:auto;}
#toast .toast-aksi{
  min-height:46px;
  border:2px solid rgba(255,255,255,.72);
  border-radius:12px;
  background:transparent;
  color:#fff;
  padding:6px 14px;
  font:inherit;
  font-size:.98rem;
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
}
#toast .toast-aksi:hover{background:rgba(255,255,255,.14);}
#toast .toast-aksi[hidden]{display:none;}
#toast.ok{background:#0f7a3e;}
#toast.info{background:#1c4f8a;}

/* ---------- MODAL GURU ---------- */
.modal{
  position:fixed;
  inset:0;
  z-index:90;
  background:rgba(13,30,60,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
}
.modal[hidden],
#panelGuru[hidden],
#pinGate[hidden]{display:none;}
.modal-kartu{
  background:#fff;
  width:min(940px,100%);
  max-height:calc(100vh - 28px);
  max-height:calc(100dvh - 28px);
  border-radius:28px;
  box-shadow:var(--bayang-besar);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  min-height:0;
}
#panelGuru:not([hidden]){
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 22px;
  border-bottom:1px solid var(--garis);
  flex-wrap:wrap;
  flex-shrink:0;
}
.modal-head h2{font-size:clamp(1.3rem,2.8vw,1.7rem);font-weight:800;}
.modal-body{
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding:20px 22px 26px;
  display:grid;
  gap:26px;
  flex:1 1 auto;
  min-height:0;
}
.modal-body section h3{
  font-size:1.18rem;
  font-weight:800;
  margin-bottom:4px;
}
.bantuan{
  color:var(--muted);
  font-size:.95rem;
  font-weight:600;
  margin:0 0 12px;
}

/* PIN */
.pin-gate{
  padding:30px 22px 34px;
  text-align:center;
}
.pin-gate h2{font-size:1.8rem;font-weight:800;}
.pin-gate p{color:var(--muted);font-weight:700;margin:6px 0 18px;}
.pin-dots{
  display:flex;
  justify-content:center;
  gap:16px;
  margin-bottom:8px;
}
.pin-dots span{
  width:24px;height:24px;
  border-radius:50%;
  border:3px solid #b9cde8;
  background:#fff;
  transition:background .15s ease, transform .15s ease;
}
.pin-dots span.isi{background:var(--biru);border-color:var(--biru);transform:scale(1.08);}
.pin-pesan{
  min-height:26px;
  color:#a56000;
  font-weight:800;
  margin:0 0 12px;
}
.pin-pad{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  max-width:340px;
  margin:0 auto 16px;
}
.pin-pad button{
  min-height:66px;
  border-radius:16px;
  border:2px solid var(--garis);
  background:#f7fbff;
  font-size:1.4rem;
  font-weight:800;
  color:var(--ink);
}
.pin-pad button:active{transform:scale(.95);background:#eaf3ff;}
.pin-pad button[data-pin="hapus"],
.pin-pad button[data-pin="bersih"]{font-size:1.1rem;background:#fff4e3;border-color:#ffdfa6;}

/* Form guru */
.produk-guru{
  display:grid;
  grid-template-columns:110px 72px minmax(120px,1fr) minmax(140px,.85fr) minmax(110px,.7fr) 58px;
  gap:10px;
  align-items:center;
  margin-bottom:12px;
}
.produk-guru .produk-gambar-box{grid-area:unset;}
.produk-guru .input-emoji{grid-area:unset;}
.produk-guru .input-nama{grid-area:unset;}
.produk-guru .input-barcode{grid-area:unset;}
.produk-guru .input-harga-wrap{grid-area:unset;}
.produk-guru .btn-hapus-produk{grid-area:unset;}
.produk-gambar-box{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.produk-thumb{
  width:74px;
  height:74px;
  border-radius:18px;
  border:2px solid var(--garis);
  background:#f4f9ff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.produk-thumb-img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.produk-thumb-emoji{
  font-size:2rem;
  line-height:1;
}
.btn-upload-gambar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:34px;
  border-radius:10px;
  background:#edf6ff;
  color:var(--biru-tua);
  border:1px solid #cfe0fa;
  font-size:.74rem;
  font-weight:800;
  cursor:pointer;
}
.btn-hapus-gambar{
  width:100%;
  min-height:30px;
  border-radius:10px;
  border:1px solid #f2d6d3;
  background:#fff7f6;
  color:#b43a31;
  font-size:.72rem;
  font-weight:800;
}
.input-guru{
  width:100%;
  min-height:56px;
  border:2px solid var(--garis);
  border-radius:14px;
  padding:8px 12px;
  font-size:1rem;
  font-weight:700;
  color:var(--ink);
  background:#fff;
}
.input-guru:focus{outline:3px solid #bcd9ff;border-color:#7db3f5;}
.input-emoji{text-align:center;font-size:1.5rem;padding:4px;}
.input-harga-wrap{
  display:flex;align-items:center;gap:6px;
  border:2px solid var(--garis);
  border-radius:14px;
  padding-left:12px;
  background:#fff;
  min-height:54px;
  font-weight:800;
  color:var(--muted);
}
.input-harga-wrap input{
  border:none;
  outline:none;
  font-size:1rem;
  font-weight:800;
  color:var(--ink);
  width:100%;
  min-width:0;
  height:50px;
  background:transparent;
}
.btn-hapus-produk{
  width:58px;height:58px;
  border-radius:14px;
  border:2px solid #f2d6d3;
  background:#fff7f6;
  color:#b43a31;
  font-size:1.2rem;
}
.pilihan-kesulitan{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px;
}
.pilihan-kesulitan label{
  display:flex;
  gap:12px;
  align-items:flex-start;
  border:2px solid var(--garis);
  border-radius:16px;
  padding:14px;
  background:#f9fcff;
  cursor:pointer;
}
.pilihan-kesulitan input{margin-top:4px;transform:scale(1.4);accent-color:var(--biru);}
.pilihan-kesulitan strong{display:block;font-size:1rem;}
.pilihan-kesulitan small{display:block;color:var(--muted);font-weight:600;font-size:.88rem;line-height:1.35;margin-top:2px;}

.baris-pengaturan{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  padding:12px 0;
  border-bottom:1px dashed var(--garis);
}
.baris-pengaturan:last-child{border-bottom:none;}
.baris-pengaturan .label-pengaturan{font-weight:800;min-width:190px;}
.baris-pengaturan input[type="range"]{
  flex:1;
  min-width:140px;
  accent-color:var(--biru);
  height:30px;
}
.pilihan-suara{
  flex:1;
  min-width:180px;
  min-height:54px;
  padding:8px 12px;
  border:2px solid var(--garis);
  border-radius:14px;
  background:#fff;
  color:var(--ink);
  font-size:1rem;
  font-weight:700;
}
.pilihan-suara:disabled{color:var(--muted);background:#f4f7fa;}
.nilai-slider{
  min-width:64px;
  text-align:center;
  font-weight:800;
  background:#eaf3ff;
  border-radius:10px;
  padding:6px 10px;
  color:var(--biru-tua);
}
.switch{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  cursor:pointer;
}
.switch input{
  appearance:none;
  width:62px;height:34px;
  border-radius:999px;
  background:#cfdcec;
  position:relative;
  outline:none;
  transition:background .2s ease;
  cursor:pointer;
  flex:none;
}
.switch input::after{
  content:"";
  position:absolute;
  width:26px;height:26px;
  border-radius:50%;
  background:#fff;
  top:4px;left:4px;
  box-shadow:0 2px 4px rgba(0,0,0,.2);
  transition:left .2s ease;
}
.switch input:checked{background:var(--hijau);}
.switch input:checked::after{left:32px;}
.switch input:disabled{opacity:.5;cursor:not-allowed;}

.statistik-riwayat{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:10px;
  margin-bottom:14px;
}
.stat-kartu{
  background:#f4f9ff;
  border:2px solid var(--garis);
  border-radius:16px;
  padding:14px 16px;
}
.stat-kartu span{display:block;color:var(--muted);font-size:.9rem;font-weight:700;}
.stat-kartu strong{display:block;font-size:1.6rem;font-weight:800;margin-top:2px;}
.daftar-riwayat{display:flex;flex-direction:column;gap:8px;max-height:250px;overflow-y:auto;}
.riwayat-baris{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#fff;
  border:2px solid var(--garis);
  border-radius:14px;
  padding:10px 14px;
  font-weight:700;
  font-size:.95rem;
}
.riwayat-baris .status{font-weight:800;white-space:nowrap;}
.riwayat-baris .status.ok{color:var(--hijau-tua);}
.riwayat-baris .status.kurang{color:#a56000;}
.kosong{color:var(--muted);font-weight:700;margin:0;}

/* ---------- RESPONSIF ---------- */
@media (max-width:820px){
  .keranjang-layout{grid-template-columns:1fr;}
  .panel-total{position:static;}
  .brand-teks{display:none;}
  .btn-guru span{display:none;}
  .btn-guru{padding:0 14px;font-size:1.3rem;}
  .topbar-tengah{justify-content:flex-end;}
  .steps{gap:7px;}
  .step{width:12px;height:12px;}
  .beranda{min-height:0;gap:24px;padding:clamp(24px,5vw,44px);}
  .beranda-ilustrasi{min-height:300px;}
  .ilustrasi-lingkaran{width:min(84%,320px);}
}

@media (min-width:601px) and (max-width:900px){
  .grid-produk{grid-template-columns:repeat(3,minmax(0,1fr));}
}

@media (min-width:601px) and (max-width:720px){
  .beranda{grid-template-columns:1fr;padding:32px;}
  .beranda-ilustrasi{grid-row:1;min-height:260px;}
  .ilustrasi-lingkaran{width:240px;}
  .ilustrasi-keranjang{width:160px;height:160px;font-size:7rem;}
}

@media (max-width:600px){
  body{font-size:18px;}
  .topbar{gap:10px;}
  .btn-tenang{padding:0 10px;font-size:.9rem;}
  .beranda{
    grid-template-columns:1fr;
    gap:4px;
    padding:22px 18px 26px;
    border-radius:28px;
  }
  .beranda-ilustrasi{grid-row:1;min-height:180px;margin-bottom:4px;}
  .ilustrasi-lingkaran{width:175px;}
  .ilustrasi-keranjang{width:120px;height:120px;border-radius:30px;font-size:5.5rem;}
  .ilustrasi-produk{width:54px;height:54px;border-radius:16px;font-size:1.8rem;}
  .ilustrasi-roti{top:8%;left:10%;}
  .ilustrasi-susu{top:5%;right:10%;}
  .ilustrasi-buku{bottom:8%;right:7%;}
  .ilustrasi-label{bottom:0;padding:9px 14px;font-size:.98rem;}
  .beranda-konten{text-align:center;}
  .beranda-label{margin-bottom:14px;}
  .beranda h1{font-size:clamp(2.2rem,10vw,3rem);}
  .beranda .slogan{font-size:1.05rem;margin:12px auto 14px;}
  .beranda-fitur{max-width:370px;margin:0 auto 18px;text-align:left;}
  .beranda-fitur li{font-size:.96rem;}
  .beranda .btn-mulai{width:100%;min-height:78px;padding:0 18px;}
  .catatan-bawah{margin:12px auto 0;font-size:.86rem;}
  .grid-produk{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .produk-card{min-height:190px;aspect-ratio:auto;padding:16px 8px 14px;}
  .produk-nama{font-size:clamp(1rem,4vw,1.2rem);}
  .produk-harga{padding:5px 10px;font-size:clamp(.9rem,3.8vw,1.05rem);}
  main{padding-bottom:22px;}
  .hasil-bungkus{padding:18px;}
  .kembalian-visual{padding:12px 10px 14px;}
  .kembalian-item{width:100%;padding:10px 8px 12px;}
  .kembalian-gambar{width:min(100%,280px);min-height:96px;}
  .kembalian-tumpukan{gap:10px;}
  .kembalian-gambar.kembalian-koin{width:96px;min-height:96px;}
  .kembalian-item .koin{width:92px;height:92px;}
  .kembalian-item .koin .angka{font-size:1.55rem;}
  .kembalian-item .koin .kata{font-size:.62rem;}
  .ringkas-bayar{grid-template-columns:1fr 1fr;}
  .ringkas-item.sisa{grid-column:1 / -1;}
  .bayar-actions{flex-wrap:wrap;}
  .bayar-actions .btn{min-height:74px;}
  .bayar-actions .btn-ulangi{flex-basis:100%;order:2;}
  .bayar-actions .btn-selesai{order:1;flex-basis:100%;}
  .keranjang-item{flex-wrap:wrap;}
  .ki-hapus{width:52px;height:52px;}
  .produk-guru{
    grid-template-columns:1fr 58px;
    grid-template-areas:
      "gambar hapus"
      "emoji nama"
      "harga nama";
    align-items:start;
  }
  .produk-guru .produk-gambar-box{grid-area:gambar;}
  .produk-guru .input-emoji{grid-area:emoji;}
  .produk-guru .input-nama{grid-area:nama;}
  .produk-guru .input-harga-wrap{grid-area:harga;}
  .produk-guru .btn-hapus-produk{grid-area:hapus;height:100%;}
  .hasil-actions .btn{width:100%;min-width:0;}
  .modal-head{padding:14px 16px;}
  .modal-body{padding:16px;}
  .cart-bar .btn{width:100%;}
  .cart-info{width:100%;}
}

@media (max-width:480px){
  .steps{display:none;}
  .topbar-tengah{flex:0 1 auto;}
}

@media (max-width:390px){
  .grid-produk{gap:10px;}
  .produk-card{min-height:210px;border-radius:22px;gap:6px;padding:14px 6px 12px;}
  .produk-gambar{width:130px;height:130px;border-radius:16px;}
  .produk-emoji{font-size:4.6rem;}
  .produk-nama{font-size:.98rem;}
  .produk-harga{font-size:.88rem;padding:4px 8px;}
}

@media (min-width:901px){
  .grid-produk{grid-template-columns:repeat(4,minmax(0,1fr));}
}

@media (min-width:821px){
  .grid-uang{grid-template-columns:repeat(3,1fr);}
}

@media (min-width:1100px){
  .grid-produk{grid-template-columns:repeat(4,1fr);}
}

/* ---------- MODE TENANG ---------- */
body.mode-tenang{
  --bayang:0 4px 12px rgba(24,60,120,.08);
  --bayang-besar:0 8px 20px rgba(24,60,120,.12);
  background:#f4f8ff;
}
body.mode-tenang .topbar{
  background:#fff;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
body.mode-tenang .beranda-hero{animation:none;filter:none;}
body.mode-tenang .screen.active{animation:none;}
body.mode-tenang .mic-btn.mendengar{animation:none;}
body.mode-tenang .produk-card.ditambahkan{animation:none;}
body.mode-tenang .uang-card.petunjuk{
  animation:none;
  box-shadow:0 0 0 4px rgba(255,183,3,.35), var(--bayang);
}
body.mode-tenang .hasil-bungkus.sukses,
body.mode-tenang .hasil-bungkus.kurang{background:#fff;}
body.mode-tenang #konfeti{display:none;}
body.mode-tenang .plus-satu{display:none;}
body.mode-tenang *,
body.mode-tenang *::before,
body.mode-tenang *::after{
  animation-duration:.001ms !important;
  animation-delay:0s !important;
  animation-iteration-count:1 !important;
  transition-duration:.001ms !important;
  scroll-behavior:auto !important;
}

/* Hormati pengaturan animasi minim */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-delay:0s !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
}

@media (prefers-contrast: more){
  :root{
    --muted:#2d3e56;
    --garis:#7895b8;
  }
  .btn-putih,
  .btn-guru,
  .btn-tenang,
  .produk-card,
  .uang-card,
  .keranjang-item,
  .panel-total,
  .ringkas-item,
  .hasil-bungkus{
    border-color:#5b7597;
  }
}

/* ---------- POLISH VISUAL PROFESIONAL ---------- */
:root{
  --bg:#f4f7fb;
  --bg2:#fff8ec;
  --ink:#1d2b3f;
  --muted:#58677a;
  --kartu:#fff;
  --biru:#2563a6;
  --biru-tua:#184b80;
  --hijau:#16845b;
  --hijau-tua:#116b49;
  --oranye:#d98912;
  --merah:#c9433a;
  --ungu:#7041b8;
  --garis:#dce4ee;
  --fokus:#1769aa;
  --bayang:0 4px 14px rgba(27,48,75,.07);
  --bayang-besar:0 10px 28px rgba(27,48,75,.11);
}

body{
  background:#f4f7fb;
  background-attachment:initial;
}

.topbar{
  background:rgba(255,255,255,.97);
  border-bottom:1px solid #e1e7ef;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.brand{letter-spacing:0;}
.brand .brand-emoji{font-size:1.45em;}
.btn-lingkaran,
.btn-guru,
.btn-tenang{
  border-width:2px;
  border-color:#dfe6ef;
  border-radius:14px;
  box-shadow:none;
}
.btn-lingkaran{border-radius:16px;}
.btn-guru:hover,
.btn-tenang:hover,
.btn-lingkaran:hover{background:#f7f9fc;}
.btn-tenang[aria-pressed="true"]{
  background:#eaf2fa;
  border-color:#9bb8d3;
  color:#184b80;
}

.langkah-label{
  background:#eaf2fa;
  color:#184b80;
  border:1px solid #d5e2ef;
}
.judul-halaman{letter-spacing:-.02em;}
.sub-halaman{font-weight:500;}

.btn{
  border-radius:16px;
  box-shadow:none;
  letter-spacing:0;
}
.btn:hover{box-shadow:0 5px 14px rgba(27,48,75,.12);}
.btn-biru{background:#2563a6;}
.btn-hijau{background:#16845b;}
.btn-kuning{background:#f1b94c;color:#352600;}
.btn-putih{border-width:2px;}
.btn-putih:hover{background:#f7f9fc;}

.beranda{
  background:#fff;
  border:1px solid #e0e7ef;
  border-radius:26px;
  box-shadow:0 12px 34px rgba(27,48,75,.09);
}
.beranda-label{
  background:#eff5fa;
  border:1px solid #dce7f1;
  color:#184b80;
}
.beranda h1 span{color:#2563a6;}
.fitur-ikon{background:#eff5fa;border-radius:12px;}
.beranda .btn-mulai{
  background:#16845b;
  border-radius:16px;
  box-shadow:0 6px 16px rgba(22,132,91,.18);
}
.beranda .btn-mulai:hover{background:#116b49;}
.ilustrasi-lingkaran{
  background:linear-gradient(145deg,#eaf2fa,#e3edf6 65%,#f7efdf);
  box-shadow:none;
}
.ilustrasi-keranjang{
  border:1px solid #e3eaf1;
  box-shadow:0 12px 28px rgba(27,48,75,.12);
}
.ilustrasi-produk{
  border:2px solid #fff;
  box-shadow:0 6px 16px rgba(27,48,75,.12);
}
.ilustrasi-label{
  border:1px solid #e3eaf1;
  box-shadow:var(--bayang);
}

.mic-zone{
  background:#fff;
  border:1px solid #dce4ee;
  border-radius:20px;
  box-shadow:var(--bayang);
}
.mic-btn{
  background:#2563a6;
  box-shadow:0 6px 16px rgba(37,99,166,.2);
}
.mic-btn.mendengar{
  background:#c85c35;
  box-shadow:0 0 0 0 rgba(200,92,53,.28);
}
.produk-card{
  background:#fff;
  border:1px solid #dfe6ef;
  border-radius:18px;
  box-shadow:var(--bayang);
}
.produk-card:hover{border-color:#9bb8d3;}
.produk-card.ditambahkan{
  border-color:#16845b;
  box-shadow:0 0 0 3px rgba(22,132,91,.14),var(--bayang);
}
.produk-gambar{border-radius:14px;box-shadow:none;}
.produk-harga{background:#eff5fa;color:#184b80;}
.tanda-tambah{background:#e8f4ee;color:#116b49;}
.cart-bar{
  background:#fff;
  border:1px solid #dce4ee;
  border-radius:18px;
  box-shadow:0 8px 22px rgba(27,48,75,.12);
}

.keranjang-item,
.panel-total,
.ringkas-item{
  background:#fff;
  border:1px solid #dfe6ef;
  border-radius:18px;
  box-shadow:var(--bayang);
}
.ki-hapus,
.btn-hapus-produk,
.btn-hapus-gambar{
  border-color:#edd4d1;
  background:#fff8f7;
  color:#a8322c;
}
.keranjang-kosong{border-color:#cdd8e5;border-radius:18px;}
.angka-total{color:#116b49;}
.ringkas-item.sisa{background:#fff7e7;border-color:#ecd8ae;}
.ringkas-item.sisa.lunas{background:#edf7f1;border-color:#c5e1d1;}
.area-bayar-bungkus{border-color:#cbd8e6;border-radius:18px;}
.uang-card{
  border:1px solid #dfe6ef;
  border-radius:16px;
  box-shadow:var(--bayang);
}
.bayar-actions{
  background:rgba(244,247,251,.96);
  border:1px solid #e1e7ef;
  border-radius:18px;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.hasil-bungkus{
  border:1px solid #dfe6ef;
  border-radius:24px;
  box-shadow:var(--bayang-besar);
}
.hasil-bungkus.sukses{border-color:#c5e1d1;background:#f8fcf9;}
.hasil-bungkus.kurang{border-color:#ecd8ae;background:#fffdf8;}
.rincian-baris{background:#f4f7fa;border-radius:12px;}
.rincian-baris.kembalian{background:#edf7f1;}
.rincian-baris.kurang{background:#fff7e7;}
.kembalian-visual{
  background:#f4faf6;
  border:1px solid #c9e2d2;
  border-radius:18px;
}
.kembalian-item{
  border:1px solid #d5e5db;
  border-radius:14px;
  box-shadow:var(--bayang);
}

#toast{border-radius:14px;box-shadow:var(--bayang-besar);}
#toast.ok{background:#116b49;}
#toast.info{background:#184b80;}

.modal{background:rgba(20,34,52,.52);}
.modal-kartu{
  border:1px solid #e0e7ef;
  border-radius:20px;
  box-shadow:0 18px 54px rgba(20,34,52,.2);
}
.modal-head{border-color:#e4e9f0;}
.produk-guru .input-guru,
.input-guru,
.input-harga-wrap,
.pilihan-kesulitan label{
  border-color:#dce4ee;
  border-radius:12px;
}
.produk-thumb{border-color:#dce4ee;border-radius:14px;}
.btn-upload-gambar{
  background:#eff5fa;
  color:#184b80;
  border-color:#d5e2ef;
}
.stat-kartu{background:#f5f8fb;border-color:#dce4ee;}
.riwayat-baris{border-color:#dce4ee;border-radius:12px;}

body.mode-tenang{
  --bayang:0 2px 8px rgba(27,48,75,.05);
  --bayang-besar:0 6px 18px rgba(27,48,75,.08);
  background:#f4f7fb;
}
body.mode-tenang .topbar{background:#fff;}

.kembalian-daftar{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.kembalian-pilihan{
  padding:14px;
  border:2px solid #d5e5db;
  border-radius:14px;
  background:#fff;
}
.kembalian-pilihan.terpilih{
  border-color:#16845b;
  background:#f6fbf8;
  box-shadow:0 0 0 2px rgba(22,132,91,.1);
}
.kembalian-pilihan-label{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
  cursor:pointer;
  text-align:left;
}
.kembalian-pilihan-label input{
  width:24px;
  height:24px;
  margin:2px 0 0;
  flex:none;
  accent-color:#16845b;
}
.kembalian-pilihan-label strong,
.kembalian-pilihan-label small{display:block;}
.kembalian-pilihan-label strong{font-size:1.05rem;}
.kembalian-pilihan-label small{
  margin-top:3px;
  color:var(--muted);
  font-size:.9rem;
  font-weight:600;
}
.kembalian-tumpukan{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:center;
  gap:10px;
}
.kembalian-tumpukan .kembalian-item{
  width:clamp(195px,28.6vw,286px);
  padding:8px;
  border:1px solid #dce4ee;
  border-radius:12px;
  gap:4px;
  box-shadow:none;
}
.kembalian-tumpukan .kembalian-gambar{
  width:100%;
  min-height:107px;
  aspect-ratio:2.2 / 1;
}
.kembalian-tumpukan .kembalian-gambar.kembalian-koin{
  width:101px;
  min-height:101px;
  aspect-ratio:1;
}
.kembalian-tumpukan .koin{width:94px;height:94px;border-width:4px;}
.kembalian-tumpukan .koin .angka{font-size:1.63rem;}
.kembalian-tumpukan .koin .kata{font-size:.62rem;}
.kembalian-tumpukan .kembalian-nilai{font-size:.95rem;}

@media (max-width:600px){
  .beranda{border-radius:20px;}
  .produk-card{border-radius:15px;}
  .cart-bar{border-radius:16px;}
  .kembalian-pilihan{padding:10px;}
  .kembalian-pilihan-label small{font-size:.82rem;}
  .kembalian-tumpukan .kembalian-item{width:calc(50% - 5px);}
  .kembalian-tumpukan .kembalian-gambar{min-height:81px;}
}

/* ============================================================
   MODE GURU — PANEL PROFESIONAL
   ============================================================ */
.modal-guru{
  width:min(1080px,100%);
  background:#fff;
  border:1px solid #dbe3ec;
  border-radius:16px;
  box-shadow:0 24px 70px rgba(16,32,52,.28);
}
.modal-guru .modal-head{
  padding:18px 26px;
  align-items:center;
  flex-wrap:nowrap;
  background:#fff;
  border-bottom:1px solid #e6ebf2;
}
.modal-guru .modal-judul{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.modal-guru .modal-ikon{
  width:44px;height:44px;
  flex:none;
  display:grid;place-items:center;
  border-radius:12px;
  background:#eef4fb;
  border:1px solid #dde7f2;
  font-size:1.3rem;
}
.modal-guru .modal-judul h2{
  margin:0;
  font-size:1.22rem;
  font-weight:800;
  letter-spacing:-.01em;
  color:#16324f;
}
.modal-guru .modal-judul p{
  margin:2px 0 0;
  font-size:.84rem;
  font-weight:500;
  line-height:1.4;
  color:#6b7c90;
}
.modal-guru .btn-tutup{
  width:40px;height:40px;
  flex:none;
  display:grid;place-items:center;
  border-radius:10px;
  border:1px solid #e0e7ef;
  background:#fff;
  color:#5c6e83;
  font-size:1rem;
  font-weight:700;
  cursor:pointer;
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.modal-guru .btn-tutup:hover{
  background:#f4f7fa;
  border-color:#c9d6e4;
  color:#16324f;
}
.guru-nav{
  display:flex;
  gap:6px;
  flex:none;
  overflow-x:auto;
  padding:10px 24px;
  border-bottom:1px solid #e6ebf2;
  background:#fff;
  scrollbar-width:thin;
}
.guru-nav-item{
  min-height:40px;
  flex:none;
  padding:0 14px;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:#526980;
  font:inherit;
  font-size:.84rem;
  font-weight:750;
  white-space:nowrap;
  cursor:pointer;
}
.guru-nav-item:hover{background:#f5f8fc;color:#1b3552;}
.guru-nav-item.aktif{
  border-color:#d6e5f4;
  background:#eef5fc;
  color:#1e5f9e;
}
.guru-nav-item:focus-visible,
.guru-quick-links button:focus-visible{
  outline:3px solid rgba(37,99,166,.35);
  outline-offset:2px;
}

.modal-guru .modal-body{
  padding:22px 26px 26px;
  gap:16px;
  background:#f5f8fc;
}
.modal-guru .panel-section{
  padding:20px 22px;
  background:#fff;
  border:1px solid #e2e9f1;
  border-radius:14px;
}
.modal-guru .section-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:16px;
}
.modal-guru .section-ikon{
  width:36px;height:36px;
  flex:none;
  display:grid;place-items:center;
  border-radius:10px;
  background:#f1f6fb;
  border:1px solid #e3ebf4;
  font-size:1.02rem;
}
.modal-guru .section-teks{flex:1;min-width:0;}
.modal-guru .modal-body section h3,
.modal-guru .section-teks h3{
  margin:0;
  font-size:1rem;
  font-weight:800;
  letter-spacing:-.005em;
  color:#1b3552;
}
.modal-guru .section-teks .bantuan{
  margin:3px 0 0;
  font-size:.84rem;
  font-weight:500;
  line-height:1.45;
  color:#6b7c90;
}
.modal-guru .section-badge{
  flex:none;
  align-self:center;
  padding:5px 10px;
  border-radius:999px;
  background:#f1f6fb;
  border:1px solid #e1eaf4;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.02em;
  color:#4c6885;
  white-space:nowrap;
}
.guru-quick-links{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}
.guru-quick-links button{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:2px 9px;
  min-width:0;
  padding:12px;
  border:1px solid #e2e9f1;
  border-radius:11px;
  background:#fbfdff;
  text-align:left;
  cursor:pointer;
}
.guru-quick-links button:hover{border-color:#bfd4ea;background:#f5f9fe;}
.guru-quick-links button > span{grid-row:span 2;font-size:1.25rem;}
.guru-quick-links strong{color:#1b3552;font-size:.81rem;}
.guru-quick-links small{color:#6b7c90;font-size:.7rem;line-height:1.35;}

/* Daftar produk */
.guru-head-row{
  display:grid;
  grid-template-columns:110px 72px minmax(120px,1fr) minmax(140px,.85fr) minmax(110px,.7fr) 58px;
  gap:10px;
  padding:0 13px 8px;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#8796a8;
}
.modal-guru .daftar-produk-guru{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.modal-guru .produk-guru{
  padding:10px 12px;
  margin-bottom:0;
  background:#fbfdff;
  border:1px solid #e5ecf4;
  border-radius:12px;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.modal-guru .produk-guru:focus-within{
  background:#fff;
  border-color:#9dc0e8;
  box-shadow:0 0 0 3px rgba(37,99,166,.08);
}
.modal-guru .produk-gambar-box{
  flex-direction:row;
  align-items:center;
  gap:6px;
}
.modal-guru .produk-thumb{
  width:64px;height:64px;
  flex:none;
  border-radius:10px;
  border:1px solid #dce4ee;
  background:#f4f8fc;
}
.modal-guru .produk-thumb-emoji{font-size:1.7rem;}
.modal-guru .pg-gambar-aksi{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.modal-guru .btn-upload-gambar,
.modal-guru .btn-hapus-gambar{
  width:30px;
  height:28px;
  min-height:28px;
  padding:0;
  display:grid;
  place-items:center;
  border-radius:7px;
  font-size:.85rem;
  font-weight:800;
  line-height:1;
  cursor:pointer;
}
.modal-guru .btn-upload-gambar{
  background:#eef5fc;
  border:1px solid #d7e5f4;
  color:#2563a6;
}
.modal-guru .btn-upload-gambar:hover{background:#e3eefb;}
.modal-guru .btn-hapus-gambar{
  background:#fff6f5;
  border:1px solid #f0d6d2;
  color:#b43a31;
}
.modal-guru .btn-hapus-gambar:hover{background:#fdeeec;}

.modal-guru .input-guru{
  min-height:46px;
  padding:8px 11px;
  border:1px solid #d7e0ea;
  border-radius:10px;
  font-size:.92rem;
  font-weight:600;
  background:#fff;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.modal-guru .input-guru:focus{
  outline:none;
  border-color:#2f6fb5;
  box-shadow:0 0 0 3px rgba(47,111,181,.14);
}
.modal-guru .input-emoji{
  padding:4px;
  font-size:1.35rem;
  text-align:center;
}
.modal-guru .input-harga-wrap{
  min-height:46px;
  padding-left:11px;
  border:1px solid #d7e0ea;
  border-radius:10px;
  font-size:.85rem;
  font-weight:700;
  color:#7a8a9d;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.modal-guru .input-harga-wrap:focus-within{
  border-color:#2f6fb5;
  box-shadow:0 0 0 3px rgba(47,111,181,.14);
}
.modal-guru .input-harga-wrap input{
  height:44px;
  font-size:.92rem;
  font-weight:700;
}
.modal-guru .btn-hapus-produk{
  width:100%;
  max-width:44px;
  height:44px;
  justify-self:center;
  border:1px solid #efd5d1;
  border-radius:10px;
  background:#fff7f6;
  color:#b43a31;
  font-size:1rem;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease;
}
.modal-guru .btn-hapus-produk:hover{
  background:#fdeeec;
  border-color:#e7bdb7;
}

/* Aksi di dalam kartu bagian */
.modal-guru .section-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #eef2f7;
}
.modal-guru .section-actions .btn-kecil{
  min-height:40px;
  padding:0 14px;
  justify-content:center;
  border:1px solid #dbe4ee;
  border-radius:9px;
  background:#fff;
  color:#33506f;
  font-size:.82rem;
  font-weight:700;
}
.modal-guru .section-actions .btn-kecil:hover{
  background:#f5f8fc;
  border-color:#c8d6e6;
}
.modal-guru .btn-tambah-produk{
  border-style:dashed;
  border-color:#bcd2ea;
  background:#f7fbff;
  color:#1e5f9e;
}
.modal-guru .btn-tambah-produk:hover{
  background:#eef6ff;
  border-color:#9dc0e8;
}

/* Tingkat kesulitan */
.modal-guru .pilihan-kesulitan{gap:12px;}
.modal-guru .pilihan-kesulitan label{
  padding:14px 16px;
  border:1px solid #dfe7f0;
  border-radius:12px;
  background:#fbfdff;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.modal-guru .pilihan-kesulitan label:hover{
  background:#f7fbff;
  border-color:#bfd4ea;
}
.modal-guru .pilihan-kesulitan label:has(input:checked){
  background:#f2f7fd;
  border-color:#2563a6;
  box-shadow:0 0 0 3px rgba(37,99,166,.1);
}
.modal-guru .pilihan-kesulitan input{
  margin-top:3px;
  transform:scale(1.15);
}
.modal-guru .pilihan-kesulitan strong{font-size:.95rem;color:#1b3552;}
.modal-guru .pilihan-kesulitan small{font-size:.82rem;color:#6b7c90;}

/* Baris pengaturan suara */
.modal-guru .baris-pengaturan{
  gap:12px;
  padding:14px 0;
  border-bottom:1px solid #eef2f7;
}
.modal-guru .baris-pengaturan .label-pengaturan{
  min-width:180px;
  font-size:.88rem;
  font-weight:700;
  color:#33506f;
}
.modal-guru .baris-pengaturan input[type="range"]{
  height:24px;
  accent-color:#2563a6;
}
.modal-guru .pilihan-suara{
  min-height:44px;
  padding:7px 11px;
  border:1px solid #d7e0ea;
  border-radius:10px;
  font-size:.9rem;
  font-weight:600;
}
.modal-guru .pilihan-suara:focus{
  outline:none;
  border-color:#2f6fb5;
  box-shadow:0 0 0 3px rgba(47,111,181,.14);
}
.modal-guru .nilai-slider{
  min-width:58px;
  padding:5px 9px;
  border-radius:8px;
  background:#eef4fa;
  color:#1e5f9e;
  font-size:.82rem;
  font-weight:800;
}
.modal-guru .baris-pengaturan .btn-kecil{
  min-height:38px;
  border-radius:9px;
  font-size:.8rem;
}
.modal-guru .catatan-baris{
  margin:10px 0 0;
  font-size:.8rem;
  line-height:1.45;
}
.modal-guru .switch{
  font-size:.86rem;
  font-weight:700;
  color:#33506f;
}
.modal-guru .switch input{
  width:50px;
  height:28px;
  background:#cfdae7;
}
.modal-guru .switch input::after{
  width:20px;height:20px;
  top:4px;left:4px;
}
.modal-guru .switch input:checked{background:#16845b;}
.modal-guru .switch input:checked::after{left:26px;}

/* Statistik dan riwayat */
.modal-guru .statistik-riwayat{
  gap:12px;
  margin-bottom:14px;
}
.modal-guru .stat-kartu{
  padding:14px 16px;
  background:#f8fafc;
  border:1px solid #e3e9f1;
  border-radius:12px;
}
.modal-guru .stat-kartu span{
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#7a8a9d;
}
.modal-guru .stat-kartu strong{
  margin-top:4px;
  font-size:1.55rem;
  letter-spacing:-.02em;
  color:#1b3552;
}
.modal-guru .stat-kartu:nth-child(2) strong{color:#16845b;}
.modal-guru .stat-kartu:nth-child(3) strong{color:#1e5f9e;}
.modal-guru .daftar-riwayat{
  gap:6px;
  max-height:230px;
  padding-right:4px;
}
.modal-guru .riwayat-baris{
  padding:9px 12px;
  border:1px solid #e8edf3;
  border-radius:9px;
  background:#fff;
  font-size:.84rem;
  font-weight:600;
  color:#33506f;
}
.modal-guru .riwayat-baris .status{
  padding:3px 9px;
  border-radius:999px;
  font-size:.72rem;
  font-weight:800;
  background:#f1f5f9;
}
.modal-guru .riwayat-baris .status.ok{background:#e9f6ef;color:#116b49;}
.modal-guru .riwayat-baris .status.kurang{background:#fff4e3;color:#9a5b00;}
.modal-guru .kosong{
  padding:14px 0;
  font-size:.85rem;
  font-weight:500;
  color:#7a8a9d;
}
.rekap-filter{
  display:flex;
  align-items:flex-end;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:14px;
  padding:14px;
  border:1px solid #e2e9f1;
  border-radius:11px;
  background:#fbfdff;
}
.rekap-filter label{
  display:grid;
  gap:5px;
  color:#526980;
  font-size:.76rem;
  font-weight:750;
}
.rekap-filter input{
  min-height:40px;
  padding:6px 9px;
  border:1px solid #d7e0ea;
  border-radius:8px;
  color:#1b3552;
  font:inherit;
}
.rekap-filter .btn-kecil{min-height:40px;}
.rekap-laporan{
  padding:16px;
  border:1px solid #e2e9f1;
  border-radius:12px;
  background:#fff;
}
.rekap-kop{margin-bottom:14px;}
.rekap-kop h3{margin:0;color:#1b3552;font-size:1.05rem;}
.rekap-kop p{margin:4px 0 0;color:#6b7c90;font-size:.8rem;}
.rekap-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}
.rekap-kartu{
  display:grid;
  gap:4px;
  padding:12px;
  border:1px solid #e3e9f1;
  border-radius:10px;
  background:#f8fafc;
}
.rekap-kartu span{color:#718196;font-size:.68rem;font-weight:800;text-transform:uppercase;}
.rekap-kartu strong{color:#1b3552;font-size:1.2rem;}
.rekap-kartu:last-child strong{color:#16845b;}
.rekap-table-wrap{overflow-x:auto;}
.rekap-table{width:100%;border-collapse:collapse;font-size:.8rem;text-align:left;}
.rekap-table th,.rekap-table td{padding:9px 10px;border-bottom:1px solid #e8edf3;white-space:nowrap;}
.rekap-table thead th{background:#f4f7fa;color:#526980;font-size:.7rem;text-transform:uppercase;}
.rekap-table tbody td{color:#33506f;}
.rekap-table tfoot th{border-top:2px solid #dce5ef;color:#1b3552;font-weight:800;}
.rekap-table .kosong{text-align:center;white-space:normal;}

/* Footer panel */
.modal-guru .modal-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-shrink:0;
  padding:14px 26px;
  background:#fff;
  border-top:1px solid #e6ebf2;
}
.modal-guru .modal-foot-info{
  font-size:.8rem;
  font-weight:500;
  color:#7a8a9d;
}
.modal-guru .btn-simpan-guru{
  min-height:44px;
  padding:0 22px;
  border-radius:10px;
  background:#16845b;
  box-shadow:0 4px 12px rgba(22,132,91,.18);
  font-size:.88rem;
  font-weight:800;
}
.modal-guru .btn-simpan-guru:hover{background:#116b49;}
.modal-guru .btn-simpan-guru:disabled{
  opacity:.6;
  cursor:not-allowed;
  box-shadow:none;
}

/* Gerbang PIN */
.modal-guru .pin-gate{
  padding:42px 24px 38px;
  background:#fff;
}
.modal-guru .pin-brand{
  width:64px;height:64px;
  margin:0 auto 16px;
  display:grid;place-items:center;
  border-radius:16px;
  background:#eef4fb;
  border:1px solid #dde7f2;
  box-shadow:0 6px 18px rgba(16,32,52,.06);
  font-size:1.7rem;
}
.modal-guru .pin-gate h2{
  font-size:1.45rem;
  letter-spacing:-.01em;
  color:#16324f;
}
.modal-guru .pin-gate .pin-sub{
  margin:6px 0 20px;
  font-size:.88rem;
  font-weight:500;
  color:#6b7c90;
}
.modal-guru .pin-dots{
  gap:12px;
  margin-bottom:6px;
}
.modal-guru .pin-dots span{
  width:15px;height:15px;
  border:2px solid #c6d4e3;
  background:#fff;
}
.modal-guru .pin-dots span.isi{
  background:#2563a6;
  border-color:#2563a6;
}
.modal-guru .pin-pesan{
  min-height:22px;
  margin-bottom:10px;
  font-size:.82rem;
  font-weight:700;
  color:#a56000;
}
.modal-guru .pin-pad{
  gap:9px;
  max-width:300px;
  margin-bottom:18px;
}
.modal-guru .pin-pad button{
  min-height:54px;
  border:1px solid #dfe6ef;
  border-radius:10px;
  background:#fff;
  box-shadow:0 1px 2px rgba(16,32,52,.05);
  color:#1b3552;
  font-size:1.12rem;
  font-weight:700;
  transition:background .15s ease,border-color .15s ease,transform .1s ease;
}
.modal-guru .pin-pad button:hover{
  background:#f5f8fc;
  border-color:#c9d6e4;
}
.modal-guru .pin-pad button:active{
  transform:scale(.97);
  background:#eef4fb;
}
.modal-guru .pin-pad button[data-pin="hapus"],
.modal-guru .pin-pad button[data-pin="bersih"]{
  background:#fbfcfe;
  border-color:#e3e9f1;
  color:#5c6e83;
  font-size:.95rem;
}
.modal-guru .pin-gate > .btn{
  min-height:42px;
  padding:0 20px;
  border:1px solid #dbe4ee;
  border-radius:9px;
  background:#fff;
  color:#33506f;
  font-size:.85rem;
}

@media (min-width:601px) and (max-width:860px){
  .guru-head-row,
  .modal-guru .produk-guru{
    grid-template-columns:86px 56px minmax(90px,1fr) minmax(110px,.8fr) 44px;
  }
  .modal-guru .produk-thumb{width:52px;height:52px;}
  .modal-guru .btn-upload-gambar,
  .modal-guru .btn-hapus-gambar{width:26px;height:24px;min-height:24px;}
  .modal-guru .btn-hapus-produk{max-width:38px;height:40px;}
}

@media (max-width:600px){
  .modal-guru .modal-head{padding:14px 16px;}
  .modal-guru .modal-judul h2{font-size:1.05rem;}
  .modal-guru .modal-judul p{display:none;}
  .modal-guru .modal-ikon{width:38px;height:38px;font-size:1.1rem;}
  .modal-guru .modal-body{padding:14px 12px 16px;gap:12px;}
  .modal-guru .panel-section{padding:16px 14px;}
  .modal-guru .section-head{gap:10px;margin-bottom:12px;}
  .modal-guru .section-badge{font-size:.66rem;padding:4px 8px;}
  .guru-head-row{display:none;}
  .modal-guru .produk-guru{padding:10px 8px;}
  .modal-guru .produk-thumb{width:58px;height:58px;}
  .modal-guru .btn-upload-gambar,
  .modal-guru .btn-hapus-gambar{width:28px;height:26px;min-height:26px;}
  .modal-guru .section-actions .btn-kecil{flex:1 1 auto;}
  .modal-guru .baris-pengaturan{gap:10px;}
  .modal-guru .baris-pengaturan .label-pengaturan{width:100%;min-width:0;font-size:.82rem;}
  .modal-guru .pilihan-suara{width:100%;min-width:0;}
  .modal-guru .modal-foot{
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding:12px 14px;
  }
  .modal-guru .modal-foot-info{text-align:center;font-size:.72rem;}
  .modal-guru .btn-simpan-guru{width:100%;}
  .modal-guru .pin-gate{padding:32px 18px 28px;}
}

/* ============================================================
   BERANDA FULL SCREEN
   ============================================================ */
:root{--tinggi-header:83px;}

body.layar-beranda main{
  width:100%;
  max-width:none;
  padding:0;
}
body.layar-beranda #screen-home{
  scroll-margin-top:0;
  padding-bottom:0;
}
body.layar-beranda .beranda{
  width:100%;
  max-width:none;
  min-height:calc(100vh - var(--tinggi-header));
  min-height:calc(100dvh - var(--tinggi-header));
  margin:0;
  padding:clamp(28px,4.5vw,64px) clamp(20px,5vw,72px);
  border:0;
  border-radius:0;
  box-shadow:none;
  background:
    radial-gradient(900px 520px at 12% -12%, #e6f1ff, transparent 60%),
    radial-gradient(820px 500px at 102% 2%, #fff2dd, transparent 55%),
    #fff;
}
body.layar-beranda .beranda-konten{
  width:100%;
  max-width:760px;
}
body.layar-beranda .beranda-ilustrasi{
  min-height:clamp(320px,50vh,560px);
}

@media (min-width:721px){
  body.layar-beranda .ilustrasi-lingkaran{
    width:min(100%,clamp(360px,34vw,470px));
  }
  body.layar-beranda .ilustrasi-keranjang{
    width:clamp(210px,16vw,280px);
    height:clamp(210px,16vw,280px);
    font-size:clamp(7rem,10vw,9.5rem);
  }
}

@media (max-width:820px){
  :root{--tinggi-header:83px;}
  body.layar-beranda .beranda{
    min-height:calc(100vh - var(--tinggi-header));
    min-height:calc(100dvh - var(--tinggi-header));
    padding:clamp(24px,5vw,44px);
  }
}

@media (max-width:600px){
  :root{--tinggi-header:83px;}
  body.layar-beranda .beranda{
    min-height:calc(100vh - var(--tinggi-header));
    min-height:calc(100dvh - var(--tinggi-header));
    padding:22px 18px 26px;
  }
}

/* ============================================================
   BRANDING EDUPOS — HEADER FULL WIDTH
   ============================================================ */
.topbar,
body.mode-tenang .topbar{
  gap:16px;
  padding:12px clamp(14px,3vw,32px);
  background:
    radial-gradient(900px 240px at 88% -70%, rgba(66,145,255,.55), transparent 72%),
    linear-gradient(105deg,#12263f 0%,#1b4f86 48%,#2563a6 100%);
  border-bottom:1px solid rgba(255,255,255,.14);
  box-shadow:0 8px 26px rgba(12,28,48,.18);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.topbar .brand{
  gap:12px;
  color:#fff;
}
.topbar .brand .brand-emoji{
  width:46px;height:46px;
  flex:none;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
  font-size:1.35em;
}
.topbar .brand-nama{
  font-size:clamp(1.2rem,2.2vw,1.5rem);
  font-weight:800;
  letter-spacing:.08em;
  line-height:1;
  color:#fff;
}
.topbar .brand-sub{
  margin-top:3px;
  font-size:.44em;
  letter-spacing:.16em;
  color:rgba(255,255,255,.72);
}
.topbar .step{background:rgba(255,255,255,.26);}
.topbar .step.aktif{background:rgba(255,255,255,.85);}
.topbar .step.sekarang{
  background:#ffb020;
  box-shadow:0 0 0 3px rgba(255,176,32,.25);
}
.topbar .btn-tenang{
  border:1px solid rgba(255,255,255,.3);
  background:rgba(255,255,255,.1);
  color:#fff;
  box-shadow:none;
}
.topbar .btn-tenang:hover{background:rgba(255,255,255,.18);}
.topbar .btn-tenang[aria-pressed="true"]{
  background:#fff;
  border-color:#fff;
  color:#16324f;
}
.topbar .btn-guru{
  border:1px solid rgba(255,255,255,.55);
  background:#fff;
  color:#16324f;
  box-shadow:0 4px 14px rgba(9,23,40,.2);
}
.topbar .btn-guru:hover{
  background:#eef4fb;
  border-color:#fff;
}
.topbar .btn-lingkaran{
  border:1px solid rgba(255,255,255,.3);
  background:rgba(255,255,255,.1);
  color:#fff;
  box-shadow:none;
}
.topbar .btn-lingkaran:hover{background:rgba(255,255,255,.18);}

@media (max-width:820px){
  .topbar .brand-teks{display:flex;}
  .topbar .brand-sub{display:none;}
  .topbar .brand .brand-emoji{
    width:38px;height:38px;
    font-size:1.15em;
  }
  .topbar .brand-nama{
    font-size:1.08rem;
    letter-spacing:.06em;
  }
  .topbar .btn-tenang{padding:0 10px;}
}

@media (max-width:600px){
  .topbar{gap:8px;padding:9px 12px;}
  .topbar .brand{gap:8px;}
  .topbar .brand-nama{font-size:1rem;}
}

/* ============================================================
   PINDAI BARCODE DENGAN KAMERA
   ============================================================ */
.modal-scan{width:min(560px,100%);}
.scan-body{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:18px 22px 22px;
  background:#f5f8fc;
  overflow-y:auto;
}
.scan-video-wrap{
  position:relative;
  width:100%;
  aspect-ratio:4 / 3;
  overflow:hidden;
  border:1px solid #1d3350;
  border-radius:16px;
  background:#0a1522;
}
.scan-video-wrap video{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.scan-bingkai{
  position:absolute;
  inset:16% 10%;
  border:3px solid rgba(255,255,255,.9);
  border-radius:14px;
  box-shadow:0 0 0 999px rgba(3,10,20,.38);
  pointer-events:none;
}
.scan-garis{
  position:absolute;
  left:6%;
  right:6%;
  top:50%;
  height:2px;
  border-radius:999px;
  background:#ffb020;
  box-shadow:0 0 12px rgba(255,176,32,.9);
  animation:scanGaris 2.2s ease-in-out infinite;
}
@keyframes scanGaris{
  0%,100%{top:18%;}
  50%{top:82%;}
}
.scan-pesan{
  min-height:1.4em;
  margin:0;
  color:#33506f;
  font-size:.95rem;
  font-weight:700;
  line-height:1.4;
  text-align:center;
}
.scan-pesan.gagal{color:#c9433a;}
.scan-body .btn{min-height:56px;font-size:1rem;}
body.mode-tenang .scan-garis{animation:none;}

@media (max-width:600px){
  .scan-body{padding:14px 14px 16px;gap:10px;}
  .scan-body .btn{min-height:52px;}
}

@media (prefers-reduced-motion: reduce){
  .scan-garis{animation:none;}
}

/* Beranda: susunan informasi ringkas dan ajakan utama jelas */
body.layar-beranda .beranda{
  grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr);
  gap:clamp(28px,5vw,72px);
  padding:clamp(32px,6vw,88px);
  background:linear-gradient(90deg,#fff 0%,#fff 54%,#f4f8fc 100%);
}
body.layar-beranda .beranda-konten{max-width:650px;}
body.layar-beranda .beranda-label{
  padding:7px 11px;
  border:0;
  border-radius:5px;
  background:#eaf1f8;
  color:#315b82;
  font-size:.78rem;
  letter-spacing:.09em;
}
body.layar-beranda .beranda h1{
  max-width:620px;
  font-size:clamp(2.35rem,4.2vw,3.55rem);
  line-height:1.12;
  letter-spacing:-.035em;
}
body.layar-beranda .beranda h1 span{
  display:block;
  color:#315b82;
}
body.layar-beranda .beranda .slogan{
  max-width:570px;
  margin:16px 0 22px;
  font-size:clamp(1.05rem,1.6vw,1.2rem);
  line-height:1.65;
}
body.layar-beranda .beranda .btn-mulai{
  min-width:260px;
  min-height:68px;
  justify-content:space-between;
  padding:0 22px;
  border-radius:10px;
  font-size:1.2rem;
  box-shadow:0 5px 14px rgba(22,132,91,.16);
}
body.layar-beranda .catatan-bawah{
  margin-top:9px;
  font-size:.84rem;
  font-weight:500;
}
body.layar-beranda .beranda-alur{margin-top:28px;}
body.layar-beranda .beranda-alur h2{
  margin-bottom:12px;
  color:#344960;
  font-size:.85rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
body.layar-beranda .beranda-fitur{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:0;
}
body.layar-beranda .beranda-fitur li{
  min-height:86px;
  align-items:flex-start;
  gap:9px;
  padding:12px 10px;
  border:1px solid #e0e7ef;
  border-radius:10px;
  background:rgba(255,255,255,.82);
  font-size:.84rem;
  line-height:1.35;
}
body.layar-beranda .fitur-ikon{
  width:26px;
  height:26px;
  border-radius:50%;
  background:#eaf1f8;
  color:#315b82;
  font-size:.82rem;
  font-weight:800;
}
body.layar-beranda .beranda-ilustrasi{min-height:clamp(300px,42vh,470px);}
body.layar-beranda .ilustrasi-lingkaran{
  background:#e8f0f7;
  box-shadow:none;
}
body.layar-beranda .ilustrasi-keranjang{
  border-radius:24px;
  transform:none;
  box-shadow:0 14px 32px rgba(27,48,75,.12);
}
body.layar-beranda .ilustrasi-produk{
  width:70px;
  height:70px;
  border-radius:18px;
  box-shadow:0 7px 18px rgba(27,48,75,.11);
}
body.layar-beranda .ilustrasi-bintang{display:none;}
body.layar-beranda .ilustrasi-label{
  bottom:3%;
  border-radius:8px;
  color:#315b82;
  font-size:.95rem;
  transform:translateX(-50%);
}

@media (max-width:900px){
  body.layar-beranda .beranda{
    grid-template-columns:minmax(0,1.1fr) minmax(230px,.9fr);
    gap:24px;
    padding:32px;
  }
  body.layar-beranda .beranda-fitur li{font-size:.77rem;padding:10px 8px;}
}
@media (min-width:601px) and (max-width:760px){
  body.layar-beranda .beranda{
    grid-template-columns:1fr;
    align-content:start;
  }
  body.layar-beranda .beranda-konten{grid-row:1;}
  body.layar-beranda .beranda-ilustrasi{
    grid-row:2;
    min-height:250px;
  }
  body.layar-beranda .beranda-fitur li{
    align-items:center;
    font-size:.86rem;
  }
  body.layar-beranda .ilustrasi-keranjang.ilustrasi-kasir{
    width:190px;
    height:160px;
  }
}
@media (max-width:600px){
  body.layar-beranda .beranda{
    grid-template-columns:1fr;
    gap:18px;
    align-content:start;
    padding:28px 20px 34px;
    background:#fff;
  }
  body.layar-beranda .beranda-konten{
    grid-row:1;
    text-align:left;
  }
  body.layar-beranda .beranda h1{font-size:clamp(2.1rem,9vw,2.8rem);}
  body.layar-beranda .beranda .slogan{font-size:1rem;margin:12px 0 18px;}
  body.layar-beranda .beranda .btn-mulai{width:100%;min-width:0;}
  body.layar-beranda .beranda-alur{margin-top:22px;}
  body.layar-beranda .beranda-fitur{grid-template-columns:1fr;gap:8px;}
  body.layar-beranda .beranda-fitur li{
    min-height:0;
    align-items:center;
    padding:10px 12px;
    font-size:.9rem;
  }
  body.layar-beranda .beranda-ilustrasi{
    grid-row:2;
    min-height:190px;
    margin:0;
  }
  body.layar-beranda .ilustrasi-lingkaran{width:170px;}
  body.layar-beranda .ilustrasi-keranjang{
    width:118px;
    height:118px;
    border-radius:20px;
    font-size:5.3rem;
  }
  body.layar-beranda .ilustrasi-produk{width:50px;height:50px;font-size:1.7rem;}
  body.layar-beranda .ilustrasi-label{bottom:-2%;font-size:.82rem;padding:8px 12px;}
}

@media (max-width:820px){
  .topbar .btn-guru span:first-child{display:inline;}
  .topbar .btn-guru{
    width:46px;
    min-width:46px;
    min-height:44px;
    justify-content:center;
    padding:0;
  }
}

/* Beranda EDUPOS: panel transparan bertema sekolah dan ilustrasi kasir */
body.layar-beranda main{
  background:
    radial-gradient(ellipse at 18% 18%,rgba(111,166,210,.22),transparent 42%),
    radial-gradient(ellipse at 85% 78%,rgba(232,190,115,.19),transparent 40%),
    linear-gradient(135deg,#eaf2f8,#f5f2e9);
}
body.layar-beranda .beranda{
  width:calc(100% - 40px);
  min-height:calc(100vh - var(--tinggi-header) - 40px);
  min-height:calc(100dvh - var(--tinggi-header) - 40px);
  margin:20px auto;
  padding:clamp(28px,5vw,68px);
  border:1px solid rgba(255,255,255,.72);
  border-radius:28px;
  background:linear-gradient(120deg,rgba(255,255,255,.78),rgba(255,255,255,.58));
  box-shadow:0 18px 48px rgba(29,60,90,.1);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
body.layar-beranda .beranda .slogan{max-width:620px;}
body.layar-beranda .ilustrasi-keranjang.ilustrasi-kasir{
  width:clamp(220px,22vw,300px);
  height:clamp(190px,20vw,260px);
  border:1px solid rgba(255,255,255,.85);
  border-radius:30px;
  background:rgba(255,255,255,.84);
  transform:rotate(-3deg);
  box-shadow:0 18px 38px rgba(29,60,90,.14);
}
.ikon-mesin-kasir{
  display:block;
  width:76%;
  max-width:210px;
  height:auto;
}
body.layar-beranda .ilustrasi-label{
  background:rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.85);
}

@media (min-width:1024px){
  body.layar-beranda .beranda{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:clamp(28px,3vw,48px);
    padding:clamp(36px,4vw,60px);
  }
  body.layar-beranda .beranda-konten{
    max-width:none;
  }
  body.layar-beranda .beranda h1{
    max-width:760px;
    font-size:clamp(3rem,4.4vw,4rem);
  }
  body.layar-beranda .beranda .slogan{
    max-width:760px;
    font-size:clamp(1.15rem,1.55vw,1.35rem);
  }
  body.layar-beranda .beranda-fitur li{
    min-height:96px;
    align-items:center;
    padding:14px 12px;
    font-size:.94rem;
  }
  body.layar-beranda .beranda-ilustrasi{
    min-height:clamp(420px,58vh,600px);
  }
  body.layar-beranda .ilustrasi-lingkaran{
    width:min(100%,clamp(420px,40vw,540px));
  }
  body.layar-beranda .ilustrasi-keranjang.ilustrasi-kasir{
    width:clamp(280px,23vw,370px);
    height:clamp(240px,20vw,330px);
  }
  body.layar-beranda .ilustrasi-produk{
    width:82px;
    height:82px;
    font-size:3rem;
  }
}

@media (max-width:820px){
  body.layar-beranda .beranda{
    width:calc(100% - 28px);
    min-height:calc(100vh - var(--tinggi-header) - 28px);
    min-height:calc(100dvh - var(--tinggi-header) - 28px);
    margin:14px auto;
  }
}
@media (max-width:600px){
  body.layar-beranda main{
    background:
      radial-gradient(ellipse at 50% 12%,rgba(111,166,210,.2),transparent 48%),
      linear-gradient(160deg,#eaf2f8,#f5f2e9);
  }
  body.layar-beranda .beranda{
    width:calc(100% - 24px);
    min-height:calc(100vh - var(--tinggi-header) - 24px);
    min-height:calc(100dvh - var(--tinggi-header) - 24px);
    margin:12px auto;
    padding:24px 18px 28px;
    gap:12px;
    background:rgba(255,255,255,.76);
    border-radius:22px;
  }
  body.layar-beranda .ilustrasi-keranjang.ilustrasi-kasir{
    width:138px;
    height:116px;
    border-radius:22px;
  }
  .ikon-mesin-kasir{width:78%;max-width:116px;}
}

.status-offline{
  position:sticky;
  top:0;
  z-index:20;
  padding:10px 16px;
  background:#fff0d3;
  color:#714b00;
  border-bottom:1px solid #e8c97e;
  text-align:center;
  font-weight:800;
}
.status-offline[hidden]{display:none;}
.alat-katalog{
  display:grid;
  gap:12px;
  margin:0 0 18px;
}
.alat-katalog input[type="search"]{
  width:100%;
  min-height:58px;
  padding:12px 18px;
  border:2px solid #d5e0ec;
  border-radius:14px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:1.05rem;
  font-weight:700;
}
.alat-katalog input[type="search"]:focus{
  outline:3px solid #bcd9ff;
  border-color:#4e8ac8;
}
.filter-kategori{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.filter-kategori button{
  min-height:46px;
  padding:8px 16px;
  border:2px solid #d7e3ef;
  border-radius:999px;
  background:#fff;
  color:#31506d;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.filter-kategori button[aria-pressed="true"]{
  border-color:#2563a6;
  background:#e9f2fb;
  color:#184b7d;
}
.filter-kategori button:focus-visible,
.btn-impor-produk:focus-within{
  outline:3px solid #9fc5ef;
  outline-offset:2px;
}
.produk-kosong{
  margin:0;
  padding:18px;
  border:1px dashed #b7c8da;
  border-radius:12px;
  color:#526981;
  text-align:center;
  font-weight:700;
}
.mode-operasional{
  margin:0 0 14px;
  padding:10px 14px;
  border-radius:10px;
  background:#e9f6ef;
  color:#116b49;
  font-weight:800;
}
.mode-operasional-kasir{background:#fff4e3;color:#875000;}
.produk-card:disabled{
  opacity:.56;
  filter:grayscale(.45);
  cursor:not-allowed;
}
.produk-stok{
  color:#45617c;
  font-size:.88rem;
  font-weight:800;
}
.produk-meta-guru{
  display:grid;
  gap:6px;
}
.produk-meta-guru input{
  width:100%;
  min-width:0;
  min-height:40px;
  padding:6px 8px;
  border:1px solid #d7e0ea;
  border-radius:8px;
  font:inherit;
  font-size:.8rem;
}
.produk-meta-guru input:focus{
  outline:3px solid #bcd9ff;
  border-color:#4e8ac8;
}
.btn-impor-produk{cursor:pointer;}
.pengaturan-latihan{
  display:grid;
  grid-template-columns:minmax(180px,1fr) minmax(140px,240px);
  align-items:center;
  gap:10px 16px;
}
.pengaturan-latihan label{
  color:#3e566f;
  font-weight:700;
}
.pengaturan-latihan input[type="number"],
.pengaturan-latihan select{
  width:100%;
  min-height:46px;
  padding:8px 11px;
  border:1px solid #d7e0ea;
  border-radius:10px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-weight:700;
}
.pengaturan-latihan input[type="checkbox"]{
  width:24px;
  height:24px;
  justify-self:start;
  accent-color:#16845b;
}

@media (min-width:601px){
  .produk-guru{
    grid-template-columns:86px 56px minmax(100px,1fr) minmax(100px,.8fr) minmax(130px,.95fr) minmax(100px,.65fr) 48px;
  }
  .guru-head-row{
    grid-template-columns:86px 56px minmax(100px,1fr) minmax(100px,.8fr) minmax(130px,.95fr) minmax(100px,.65fr) 48px;
  }
}
@media (max-width:600px){
  .pengaturan-latihan{grid-template-columns:1fr;gap:7px;}
  .pengaturan-latihan label:not(:first-child){margin-top:8px;}
  .pengaturan-latihan input[type="checkbox"]{margin:0 0 6px;}
  .alat-katalog{gap:10px;}
  .filter-kategori{gap:7px;}
  .filter-kategori button{min-height:44px;padding:7px 12px;font-size:.92rem;}
  .produk-guru{
    grid-template-areas:
      "gambar hapus"
      "emoji nama"
      "meta nama"
      "barcode barcode"
      "harga harga";
  }
  .produk-guru .produk-gambar-box{grid-area:gambar;}
  .produk-guru .input-emoji{grid-area:emoji;}
  .produk-guru .input-nama{grid-area:nama;}
  .produk-guru .input-barcode{grid-area:barcode;}
  .produk-guru .produk-meta-guru{grid-area:meta;}
  .produk-guru .input-harga-wrap{grid-area:harga;}
  .produk-guru .btn-hapus-produk{grid-area:hapus;height:100%;}
}
.btn-install-app{
  min-height:52px;
  margin-top:10px;
  border-radius:12px;
  font-size:1rem;
  font-weight:800;
}
.btn-install-app[hidden]{display:none;}
.catatan-offline{
  max-width:620px;
  margin:12px 0 0;
  color:#526981;
  font-size:.86rem;
  line-height:1.55;
}

/* POS desktop workspace */
.pos-workspace{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(290px,340px);
  align-items:start;
  gap:20px;
  margin-top:22px;
}
.pos-katalog{min-width:0;}
#screen-produk .barcode-panel,
#screen-produk .mic-zone{margin-top:0;}
#screen-produk .grid-produk{
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:14px;
}
#screen-produk .produk-card{
  min-height:230px;
  padding:15px 10px;
  border-radius:16px;
}
#screen-produk .produk-gambar{
  width:min(100%,150px);
  height:130px;
  border-radius:12px;
  object-fit:contain;
}
#screen-produk .produk-emoji{font-size:5rem;}
#screen-produk .produk-nama{font-size:1rem;}
#screen-produk .produk-harga{font-size:.92rem;padding:5px 12px;}
.pos-ringkasan{
  position:sticky;
  top:100px;
  min-width:0;
  padding:18px;
  border:1px solid #dfe6ef;
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 28px rgba(27,48,75,.08);
}
.pos-ringkasan-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:16px;
  border-bottom:1px solid #edf0f4;
}
.pos-ringkasan-head h2{margin:0;color:#16324f;font-size:1.08rem;}
.pos-ringkasan-head p{margin:3px 0 0;color:#748397;font-size:.82rem;}
.pos-order-badge{
  display:grid;
  width:40px;height:40px;
  place-items:center;
  border-radius:12px;
  background:#eef4fb;
}
.pos-order-list{display:grid;gap:12px;padding:14px 0;}
.pos-order-item{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  min-width:0;
}
.pos-order-emoji{
  display:grid;
  width:38px;height:38px;
  place-items:center;
  border-radius:10px;
  background:#f3f6f9;
  font-size:1.3rem;
}
.pos-order-info{display:grid;min-width:0;}
.pos-order-info strong,.pos-order-subtotal{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;}
.pos-order-info small{color:#7a899a;font-size:.73rem;}
.pos-order-subtotal{font-size:.75rem;color:#31506d;}
.pos-order-empty{
  display:grid;
  justify-items:center;
  gap:5px;
  padding:28px 8px;
  color:#78889a;
  text-align:center;
}
.pos-order-empty[hidden]{display:none;}
.pos-order-empty span:first-child{font-size:1.7rem;}
.pos-order-empty strong{color:#4d6176;font-size:.86rem;}
.pos-order-empty span:last-child{font-size:.76rem;}
.pos-ringkasan .cart-bar{
  position:static;
  display:grid;
  gap:12px;
  margin:0;
  padding:14px 0 0;
  border:0;
  border-top:1px solid #edf0f4;
  border-radius:0;
  box-shadow:none;
}
.pos-ringkasan .cart-info{gap:10px;}
.pos-ringkasan .cart-ikon{font-size:1.5rem;}
.pos-ringkasan .cart-info strong{font-size:.9rem;}
.pos-ringkasan .cart-info span{font-size:.86rem;color:#184b80;}
.pos-ringkasan .cart-bar .btn{width:100%;min-height:50px;border-radius:10px;font-size:.9rem;}

.report-layout{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(240px,.9fr);
  gap:12px;
  margin:0 0 16px;
}
.report-card{
  min-width:0;
  padding:16px;
  border:1px solid #e3e9f1;
  border-radius:12px;
  background:#fff;
}
.report-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.report-card-head h4{margin:0;color:#1b3552;font-size:.92rem;}
.report-card-head p{margin:3px 0 0;color:#7a8a9d;font-size:.75rem;}
.report-card-icon{
  display:grid;
  width:32px;height:32px;
  place-items:center;
  border-radius:9px;
  background:#eef5fb;
  color:#2766a2;
  font-weight:800;
}
.report-chart{margin-top:12px;}
.report-chart svg{display:block;width:100%;height:auto;overflow:visible;}
.chart-grid{fill:none;stroke:#e8edf3;stroke-width:1;}
.chart-area{fill:rgba(57,130,207,.12);}
.chart-line{fill:none;stroke:#3782cf;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;}
.chart-points{fill:#fff;stroke:#3782cf;stroke-width:2;}
.chart-labels{fill:#8190a1;font-family:inherit;font-size:10px;}
.chart-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding-top:10px;
  border-top:1px solid #edf0f4;
  color:#738296;
  font-size:.74rem;
}
.chart-summary strong{color:#1b3552;font-size:.9rem;}
.favorite-products{display:grid;gap:4px;margin-top:12px;}
.favorite-product{
  display:grid;
  grid-template-columns:22px 30px minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
  padding:8px 0;
  border-bottom:1px solid #eff2f5;
}
.favorite-product:last-child{border-bottom:0;}
.favorite-rank{color:#8593a3;font-size:.7rem;text-align:center;}
.favorite-emoji{font-size:1.2rem;}
.favorite-product strong{overflow:hidden;color:#354b62;font-size:.77rem;text-overflow:ellipsis;white-space:nowrap;}
.favorite-count{color:#8290a0;font-size:.68rem;white-space:nowrap;}

@media (max-width:900px){
  .pos-workspace{grid-template-columns:minmax(0,1fr) 280px;gap:14px;}
  #screen-produk .grid-produk{grid-template-columns:repeat(2,minmax(0,1fr));}
  .pos-ringkasan{padding:14px;}
}
@media (max-width:700px){
  .pos-workspace{grid-template-columns:1fr;}
  .pos-ringkasan{position:static;order:2;}
  #screen-produk .grid-produk{grid-template-columns:repeat(2,minmax(0,1fr));}
  .report-layout{grid-template-columns:1fr;}
}
@media (max-width:390px){
  #screen-produk .produk-card{min-height:190px;}
  #screen-produk .produk-gambar{height:110px;}
}

.stock-section{scroll-margin-top:16px;}
.stock-summary{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:10px;
  margin-bottom:16px;
}
.stock-stat{
  display:grid;
  gap:4px;
  min-width:0;
  padding:13px 15px;
  border:1px solid #e3e9f1;
  border-radius:11px;
  background:#f8fafc;
}
.stock-stat span{
  color:#718196;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.stock-stat strong{
  overflow-wrap:anywhere;
  color:#1b3552;
  font-size:1.28rem;
  line-height:1.25;
}
.stock-stat-warning{background:#fffaf0;border-color:#f1dfb8;}
.stock-stat-warning strong{color:#9a6600;}
.stock-stat-danger{background:#fff7f6;border-color:#efd6d3;}
.stock-stat-danger strong{color:#a63b34;}
.stock-toolbar{
  display:grid;
  grid-template-columns:minmax(180px,1fr) minmax(170px,230px);
  gap:10px;
  margin-bottom:10px;
}
.stock-toolbar input,.stock-toolbar select{
  width:100%;
  min-height:42px;
  padding:8px 11px;
  border:1px solid #dce4ec;
  border-radius:9px;
  background:#fff;
  color:#263d55;
  font:inherit;
  font-size:.84rem;
}
.stock-table-wrap{
  overflow-x:auto;
  border:1px solid #e4eaf1;
  border-radius:10px;
}
.stock-table{
  width:100%;
  min-width:680px;
  border-collapse:collapse;
  font-size:.8rem;
}
.stock-table th{
  padding:10px 12px;
  background:#f7f9fc;
  color:#758498;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.045em;
  text-align:left;
  text-transform:uppercase;
  white-space:nowrap;
}
.stock-table td{
  padding:10px 12px;
  border-top:1px solid #edf0f4;
  color:#425970;
  white-space:nowrap;
}
.stock-product-name{display:flex;align-items:center;gap:9px;min-width:145px;}
.stock-product-name>span:first-child{
  display:grid;
  width:34px;height:34px;
  place-items:center;
  flex:none;
  border-radius:9px;
  background:#f1f5f9;
  font-size:1.2rem;
}
.stock-product-name>span:last-child{display:grid;min-width:0;}
.stock-product-name strong{overflow:hidden;color:#263d55;text-overflow:ellipsis;}
.stock-product-name small{color:#8290a0;font-size:.7rem;}
.stock-count{color:#1b3552;font-size:.9rem;}
.stock-badge{
  display:inline-flex;
  align-items:center;
  min-height:23px;
  padding:3px 8px;
  border-radius:999px;
  font-size:.69rem;
  font-weight:800;
}
.stock-badge-ok{background:#eaf5ee;color:#26714a;}
.stock-badge-low{background:#fff4dc;color:#966000;}
.stock-badge-empty{background:#fff0ee;color:#a33c34;}
.btn-stock-adjust{
  min-height:32px;
  padding:5px 10px;
  border:1px solid #cbd9e8;
  border-radius:7px;
  background:#fff;
  color:#245d91;
  font:inherit;
  font-size:.73rem;
  font-weight:800;
  cursor:pointer;
}
.btn-stock-adjust:hover{background:#f0f6fc;border-color:#8fb2d4;}
.stock-empty{padding:16px;}
.stock-adjust-form{
  margin-top:14px;
  padding:16px;
  border:1px solid #cfdeee;
  border-radius:12px;
  background:#f6f9fd;
}
.stock-adjust-form[hidden]{display:none;}
.stock-adjust-heading,.stock-history-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.stock-adjust-heading h4,.stock-history-heading h4{
  margin:0;
  color:#1b3552;
  font-size:.92rem;
}
.stock-adjust-heading p,.stock-history-heading p{
  margin:3px 0 0;
  color:#7a8a9d;
  font-size:.76rem;
}
.stock-adjust-fields{
  display:grid;
  grid-template-columns:repeat(3,minmax(130px,1fr));
  gap:10px;
  margin-top:14px;
}
.stock-adjust-fields label{
  display:grid;
  gap:5px;
  color:#53677d;
  font-size:.75rem;
  font-weight:800;
}
.stock-adjust-fields input,.stock-adjust-fields select{
  width:100%;
  min-width:0;
  min-height:40px;
  padding:7px 9px;
  border:1px solid #d7e0ea;
  border-radius:8px;
  background:#fff;
  color:#263d55;
  font:inherit;
  font-size:.82rem;
}
.stock-reason-field{grid-column:1 / -1;}
.stock-available{
  margin:8px 0 0;
  color:#6b7c90;
  font-size:.77rem;
}
.stock-adjust-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:12px;
}
.stock-history{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid #e9edf2;
}
.stock-movements{display:grid;gap:0;margin-top:8px;}
.stock-movement{
  display:grid;
  grid-template-columns:32px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:10px 2px;
  border-bottom:1px solid #eef1f5;
}
.stock-movement:last-child{border-bottom:0;}
.stock-movement-icon{
  display:grid;
  width:30px;height:30px;
  place-items:center;
  border-radius:9px;
  font-size:1rem;
  font-weight:800;
}
.stock-movement-icon.stock-movement-in{background:#eaf5ee;color:#26714a;}
.stock-movement-icon.stock-movement-out{background:#fff4dc;color:#966000;}
.stock-movement-info{display:grid;min-width:0;}
.stock-movement-info strong{overflow:hidden;color:#334a61;font-size:.79rem;text-overflow:ellipsis;white-space:nowrap;}
.stock-movement-info span,.stock-movement-info small{overflow:hidden;color:#7a8a9d;font-size:.69rem;text-overflow:ellipsis;white-space:nowrap;}
.stock-movement-quantity{font-size:.8rem;font-weight:800;text-align:right;white-space:nowrap;}
.stock-movement-quantity.stock-movement-in{color:#26714a;}
.stock-movement-quantity.stock-movement-out{color:#966000;}
.stock-movement-quantity small{display:block;color:#8290a0;font-size:.65rem;font-weight:600;}

@media (max-width:600px){
  .stock-toolbar{grid-template-columns:1fr;}
  .stock-adjust-fields{grid-template-columns:1fr 1fr;}
  .stock-reason-field{grid-column:1 / -1;}
  .stock-summary{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:390px){
  .stock-adjust-fields{grid-template-columns:1fr;}
  .stock-reason-field{grid-column:auto;}
}

@media (max-width:760px){
  .guru-nav{padding:9px 12px;}
  .guru-nav-item{padding:0 11px;font-size:.78rem;}
  .guru-quick-links{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:480px){
  .rekap-filter label{flex:1 1 130px;}
  .rekap-filter .btn-kecil{flex:1 1 100%;}
  .rekap-summary{grid-template-columns:1fr;}
  .rekap-laporan{padding:11px;}
}

@page{margin:14mm;}
@media print{
  body *{visibility:hidden!important;}
  #rekapLaporan,#rekapLaporan *{visibility:visible!important;}
  #rekapLaporan{
    position:absolute;
    inset:0;
    width:100%;
    padding:0;
    overflow:visible;
    border:0;
    background:#fff;
    color:#111;
    font-size:10pt;
  }
  #rekapLaporan .rekap-kop h3{font-size:18pt;color:#111;}
  #rekapLaporan .rekap-kop p{font-size:10pt;color:#333;}
  #rekapLaporan .rekap-summary{grid-template-columns:repeat(3,1fr);}
  #rekapLaporan .rekap-kartu{background:#fff;border-color:#aaa;}
  #rekapLaporan .rekap-kartu span,
  #rekapLaporan .rekap-kartu strong,
  #rekapLaporan .rekap-table th,
  #rekapLaporan .rekap-table td{color:#111;}
  #rekapLaporan .rekap-table{font-size:9pt;}
  #rekapLaporan .rekap-table thead{display:table-header-group;}
  #rekapLaporan .rekap-table tr{break-inside:avoid;}
}

/* Katalog dan keranjang memakai ruang layar yang tersedia. */
body.layar-produk main,
body.layar-keranjang main{
  width:100%;
  max-width:none;
  padding:18px clamp(16px,2.4vw,36px) 28px;
}
body.layar-produk #screen-produk.active,
body.layar-keranjang #screen-keranjang.active{
  display:flex;
  flex-direction:column;
  min-height:calc(100vh - var(--tinggi-header) - 46px);
  min-height:calc(100dvh - var(--tinggi-header) - 46px);
}
body.layar-produk .pos-workspace{
  flex:1;
  grid-template-columns:minmax(0,1fr) clamp(340px,28vw,460px);
  align-items:stretch;
  gap:clamp(18px,2vw,30px);
  margin-top:clamp(18px,2.4vh,28px);
}
body.layar-produk .pos-katalog{
  display:flex;
  flex-direction:column;
}
body.layar-produk #screen-produk .barcode-panel,
body.layar-produk #screen-produk .mic-zone,
body.layar-produk .alat-katalog{
  width:100%;
  max-width:none;
}
body.layar-produk #screen-produk .grid-produk{
  grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));
  gap:clamp(14px,1.4vw,22px);
}
body.layar-produk #screen-produk .produk-card{
  min-height:clamp(240px,31vh,340px);
  padding:clamp(16px,1.6vw,24px);
}
body.layar-produk #screen-produk .produk-gambar{
  width:min(100%,clamp(150px,15vw,220px));
  height:clamp(145px,19vh,210px);
}
body.layar-produk #screen-produk .produk-emoji{
  font-size:clamp(5rem,6.5vw,7.5rem);
}
body.layar-produk #screen-produk .produk-nama{
  font-size:clamp(1.05rem,1.35vw,1.35rem);
}
body.layar-produk #screen-produk .produk-harga{
  font-size:clamp(.95rem,1.1vw,1.15rem);
}
body.layar-produk .pos-ringkasan{
  position:sticky;
  top:calc(var(--tinggi-header) + 12px);
  display:flex;
  flex-direction:column;
  align-self:start;
  height:min(620px,calc(100dvh - 180px));
  min-height:min(340px,calc(100dvh - 180px));
  padding:clamp(18px,1.8vw,28px);
}
body.layar-produk .pos-order-list{
  flex:1;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
}
body.layar-produk .pos-ringkasan-head h2{
  font-size:clamp(1.3rem,1.65vw,1.65rem);
}
body.layar-produk .pos-ringkasan-head p{
  font-size:clamp(.95rem,1.1vw,1.1rem);
}
body.layar-produk .pos-order-list{gap:clamp(14px,1.4vh,20px);}
body.layar-produk .pos-order-item{
  grid-template-columns:clamp(48px,4vw,60px) minmax(0,1fr) auto;
  gap:clamp(10px,1vw,16px);
}
body.layar-produk .pos-order-emoji{
  width:clamp(48px,4vw,60px);
  height:clamp(48px,4vw,60px);
  font-size:clamp(1.7rem,2.1vw,2.2rem);
}
body.layar-produk .pos-order-info strong{
  font-size:clamp(1rem,1.25vw,1.25rem);
}
body.layar-produk .pos-order-info small{
  font-size:clamp(.88rem,1vw,1rem);
}
body.layar-produk .pos-order-subtotal{
  font-size:clamp(.95rem,1.12vw,1.12rem);
}
body.layar-produk .pos-order-empty{
  gap:8px;
  padding:clamp(24px,3vh,38px) 10px;
}
body.layar-produk .pos-order-empty span:first-child{font-size:2.2rem;}
body.layar-produk .pos-order-empty strong{font-size:1rem;}
body.layar-produk .pos-order-empty span:last-child{font-size:.9rem;}
body.layar-produk .pos-ringkasan .cart-bar{
  flex:none;
  gap:14px;
  padding-top:18px;
}
body.layar-produk .pos-ringkasan .cart-info strong{font-size:1rem;}
body.layar-produk .pos-ringkasan .cart-info span{font-size:.98rem;}
body.layar-produk .pos-ringkasan .cart-bar .btn{
  min-height:58px;
  font-size:1rem;
}
body.layar-keranjang .keranjang-layout{
  flex:1;
  grid-template-columns:minmax(0,1.65fr) minmax(340px,.72fr);
  align-items:stretch;
  gap:clamp(20px,3vw,42px);
  margin-top:clamp(24px,4vh,48px);
}
body.layar-keranjang .keranjang-layout > div:first-child{
  min-width:0;
}
body.layar-keranjang .daftar-keranjang{
  gap:clamp(14px,1.8vh,22px);
}
body.layar-keranjang .keranjang-item{
  min-height:clamp(126px,17vh,174px);
  gap:clamp(20px,2.2vw,34px);
  padding:clamp(20px,2.2vw,32px);
  border-radius:20px;
}
body.layar-keranjang .ki-emoji{font-size:clamp(3.5rem,5vw,5rem);line-height:1;}
body.layar-keranjang .ki-visual{
  display:grid;
  width:clamp(88px,7vw,124px);
  height:clamp(88px,7vw,124px);
  flex:none;
  place-items:center;
  overflow:hidden;
  border:1px solid #e3eaf2;
  border-radius:16px;
  background:#f6f9fc;
}
body.layar-keranjang .ki-gambar{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
body.layar-keranjang .ki-emoji-fallback{
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
}
body.layar-keranjang .ki-info strong{
  font-size:clamp(1.5rem,2.1vw,2.1rem);
  line-height:1.2;
}
body.layar-keranjang .ki-info span{font-size:clamp(1.12rem,1.45vw,1.45rem);}
body.layar-keranjang .ki-subtotal{font-size:clamp(1.55rem,2vw,2rem);}
body.layar-keranjang .ki-hapus{
  width:clamp(58px,5vw,72px);
  height:clamp(58px,5vw,72px);
  flex:none;
  font-size:clamp(1.3rem,1.7vw,1.7rem);
}
body.layar-keranjang .panel-total{
  position:sticky;
  top:calc(var(--tinggi-header) + 20px);
  align-self:start;
  padding:clamp(26px,3vw,44px);
  border-radius:22px;
}
body.layar-keranjang .label-total{font-size:clamp(1.1rem,1.5vw,1.4rem);}
body.layar-keranjang .angka-total{
  margin:12px 0 24px;
  font-size:clamp(2.5rem,4.4vw,4.2rem);
}
body.layar-keranjang .panel-total .btn{
  min-height:clamp(60px,8vh,76px);
  font-size:clamp(1.05rem,1.5vw,1.3rem);
}
body.layar-keranjang .keranjang-kosong{
  min-height:36vh;
  display:grid;
  place-content:center;
  font-size:clamp(1.1rem,1.6vw,1.4rem);
}
body.layar-keranjang .keranjang-kosong[hidden]{display:none;}

@media (max-width:1000px){
  body.layar-produk .pos-workspace{
    grid-template-columns:minmax(0,1fr) minmax(300px,34vw);
    gap:16px;
  }
  body.layar-produk #screen-produk .grid-produk{
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  }
  body.layar-keranjang .keranjang-layout{
    grid-template-columns:minmax(0,1.35fr) minmax(300px,.8fr);
  }
}
@media (max-width:760px){
  body.layar-produk main,
  body.layar-keranjang main{
    padding:16px 16px 24px;
  }
  body.layar-produk #screen-produk.active,
  body.layar-keranjang #screen-keranjang.active{
    min-height:0;
  }
  body.layar-produk .pos-workspace{
    display:flex;
    flex-direction:column;
  }
  body.layar-produk .pos-ringkasan{
    position:static;
    order:2;
    width:100%;
    height:auto;
    min-height:0;
    max-height:none;
  }
  body.layar-produk .pos-order-list{overflow:visible;}
  body.layar-produk #screen-produk .grid-produk{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.layar-produk #screen-produk .produk-card{min-height:220px;}
  body.layar-keranjang .keranjang-layout{
    flex:none;
    grid-template-columns:1fr;
    gap:18px;
    margin-top:22px;
  }
  body.layar-keranjang .panel-total{position:static;}
  body.layar-keranjang .keranjang-kosong{min-height:220px;}
}
@media (max-width:420px){
  body.layar-produk #screen-produk .produk-card{
    min-height:200px;
    padding:14px 8px;
  }
  body.layar-produk #screen-produk .produk-gambar{height:125px;}
  body.layar-produk #screen-produk .produk-emoji{font-size:4.7rem;}
  body.layar-keranjang .keranjang-item{min-height:0;gap:12px;padding:14px 12px;}
  body.layar-keranjang .ki-visual{width:64px;height:64px;border-radius:12px;}
  body.layar-keranjang .ki-emoji{font-size:2.6rem;}
  body.layar-keranjang .ki-info strong{font-size:1.1rem;}
  body.layar-keranjang .ki-info span{font-size:.92rem;}
  body.layar-keranjang .ki-subtotal{font-size:1rem;}
  body.layar-keranjang .ki-hapus{width:46px;height:46px;}
}

body.layar-bayar main{
  width:100%;
  max-width:none;
  padding:18px clamp(16px,2.4vw,36px) 28px;
}
body.layar-bayar #screen-bayar.active{
  display:flex;
  flex-direction:column;
  min-height:calc(100vh - var(--tinggi-header) - 46px);
  min-height:calc(100dvh - var(--tinggi-header) - 46px);
}
body.layar-bayar .ringkas-bayar{
  width:100%;
  gap:clamp(14px,1.8vw,22px);
  margin:clamp(18px,2.5vh,28px) 0;
}
body.layar-bayar .ringkas-item{
  padding:clamp(18px,2vw,28px);
  border-radius:18px;
}
body.layar-bayar .ringkas-item span{font-size:clamp(1rem,1.25vw,1.2rem);}
body.layar-bayar .ringkas-item strong{font-size:clamp(1.6rem,2.4vw,2.25rem);}
body.layar-bayar .area-bayar-bungkus{
  padding:clamp(18px,2vw,28px);
  margin-bottom:clamp(18px,2.4vh,28px);
  min-height:clamp(130px,18vh,190px);
}
body.layar-bayar .area-bayar-label{
  font-size:clamp(1rem,1.2vw,1.15rem);
}
body.layar-bayar .area-bayar{
  min-height:clamp(76px,10vh,110px);
  gap:12px;
}
body.layar-bayar .uang-terpilih{
  width:clamp(145px,16vw,190px);
  height:clamp(88px,11vh,120px);
}
body.layar-bayar .judul-pilih-uang{
  margin:0 0 14px;
  font-size:clamp(1.3rem,2vw,1.65rem);
}
body.layar-bayar .grid-uang{
  flex:1;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-content:start;
  gap:clamp(14px,1.5vw,22px);
}
body.layar-bayar .uang-card{
  min-height:clamp(240px,29vh,300px);
  padding:clamp(14px,1.5vw,22px);
  gap:12px;
  border-radius:18px;
}
body.layar-bayar .uang-visual{
  flex:none;
  width:100%;
  aspect-ratio:2.2 / 1;
  min-height:0;
  max-height:190px;
}
body.layar-bayar .uang-label{font-size:clamp(1.25rem,1.7vw,1.6rem);}
body.layar-bayar .uang-jenis{font-size:.85rem;}
body.layar-bayar .koin{
  width:clamp(88px,8vw,116px);
  height:clamp(88px,8vw,116px);
}
body.layar-bayar .bayar-actions{
  flex:none;
  margin-top:clamp(18px,2.5vh,28px);
}
body.layar-bayar .bayar-actions .btn{
  min-height:clamp(62px,8vh,78px);
  font-size:clamp(1.05rem,1.4vw,1.25rem);
}

@media (max-width:760px){
  body.layar-bayar main{padding:16px 16px 24px;}
  body.layar-bayar #screen-bayar.active{min-height:0;}
  body.layar-bayar .ringkas-bayar{grid-template-columns:repeat(2,minmax(0,1fr));}
  body.layar-bayar .ringkas-item.sisa{grid-column:1 / -1;}
  body.layar-bayar .area-bayar-bungkus{min-height:120px;}
  body.layar-bayar .grid-uang{grid-template-columns:repeat(2,minmax(0,1fr));}
  body.layar-bayar .uang-card{min-height:225px;}
  body.layar-bayar .uang-visual{min-height:0;max-height:none;}
}
@media (max-width:420px){
  body.layar-bayar .ringkas-bayar{gap:9px;}
  body.layar-bayar .ringkas-item{padding:13px 12px;}
  body.layar-bayar .ringkas-item span{font-size:.88rem;}
  body.layar-bayar .ringkas-item strong{font-size:1.35rem;}
  body.layar-bayar .uang-card{min-height:205px;padding:12px 9px;}
  body.layar-bayar .koin{width:82px;height:82px;}
}
