:root {
  --green: #2e7d32;
  --green-d: #1b5e20;
  --green-l: #e8f3e8;
  --bg: #f6f4ee;
  --card: #ffffff;
  --text: #1f2a1f;
  --muted: #6b746b;
  --line: #e2e0d8;
  --accent: #ff9f1c;
  --red: #c62828;
  --red-l: #fdecec;
  --amber: #b26a00;
  --radius: 14px;
  --nav-h: 64px;
  --top-h: 52px;
  --badge-h: 0px; /* tinggi badge "Powered by Netlify" (diisi otomatis oleh app.js) */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  font-size: 16px;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
.hidden { display: none !important; }

/* ---------- Bar atas & navigasi ---------- */
.topbar {
  height: var(--top-h);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  padding-top: env(safe-area-inset-top);
  background: var(--green);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; font-size: 18px; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand img { flex: none; width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.35); }
.badge {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
}
.badge.on { background: #fff; color: var(--green-d); font-weight: 600; }

main { flex: 1; min-height: 0; overflow: auto; }

.tabs {
  flex: none;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom) + var(--badge-h));
  padding-bottom: calc(env(safe-area-inset-bottom) + var(--badge-h));
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--card);
  border-top: 1px solid var(--line);
}
.tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}
.tabs button span { font-size: 22px; line-height: 1; filter: grayscale(1); opacity: .7; }
.tabs button.active { color: var(--green); font-weight: 700; }
.tabs button.active span { filter: none; opacity: 1; }

/* ---------- Umum ---------- */
.page { padding: 14px; max-width: 900px; margin: 0 auto; }
.page h2 { margin: 4px 0 12px; font-size: 20px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.card h3 { margin: 0 0 10px; font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--green-l);
  color: var(--green-d);
  font-weight: 600;
}
.btn.primary { background: var(--green); color: #fff; }
.btn.danger { background: var(--red-l); color: var(--red); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(.98); }

label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.input, select.input, textarea.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.input:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: transparent; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.check input { width: 22px; height: 22px; accent-color: var(--green); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 14px;
  white-space: nowrap;
}
.chip.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }

.seg { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-height: 40px; border-radius: 9px; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--green-d); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.empty .big { font-size: 40px; display: block; margin-bottom: 6px; }

/* ---------- Kasir ---------- */
.kasir { height: 100%; display: grid; grid-template-columns: 1fr; }
.catalog { min-height: 0; overflow: auto; padding-bottom: 90px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 10px 14px;
}
.item {
  position: relative;
  min-height: 96px;
  text-align: left;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.item:active:not(:disabled) { transform: scale(.97); background: var(--green-l); }
.item .nm { font-weight: 600; line-height: 1.25; }
.item .pr { color: var(--green-d); font-weight: 700; }
.item.in { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.item .qty {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 28px; height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.item:disabled { opacity: .5; }
.item .habis { color: var(--red); font-weight: 700; font-size: 13px; }

.cart {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--card);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .2s ease;
}
.cart-open .cart { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; padding-top: calc(12px + env(safe-area-inset-top)); }
.cart-head h2 { margin: 0; font-size: 20px; }
.cart-close { font-size: 22px; width: 44px; height: 44px; border-radius: 12px; background: var(--bg); }
.cart-opts { padding: 0 14px 8px; display: grid; gap: 8px; }
.lines { flex: 1; min-height: 0; overflow: auto; padding: 0 14px; border-top: 1px solid var(--line); }
.line { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.line .top { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.line .note { font-size: 13px; color: var(--amber); margin-top: 2px; }
.line .ctrl { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qbtn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--green-l);
  color: var(--green-d);
  font-size: 22px; font-weight: 700;
}
.qval { min-width: 28px; text-align: center; font-weight: 700; font-size: 17px; }
.notebtn { margin-left: auto; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--bg); }
.cart-foot { padding: 12px 14px calc(12px + env(safe-area-inset-bottom) + var(--badge-h)); border-top: 1px solid var(--line); background: var(--card); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.total-row b { font-size: 24px; color: var(--green-d); }
.cart-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }

.cartbar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + var(--badge-h) + 10px);
  z-index: 20;
  min-height: 56px;
  border-radius: 16px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-weight: 700;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--green-d) 35%, transparent);
}
.cartbar.hidden-bar { display: none; }

@media (min-width: 820px) {
  .kasir { grid-template-columns: 1fr 380px; }
  .catalog { padding-bottom: 14px; }
  .cart {
    position: static;
    transform: none;
    border-left: 1px solid var(--line);
    min-height: 0;
  }
  .cart-head { padding-top: 12px; }
  .cart-close, .cartbar { display: none !important; }
  .cart-foot { padding-bottom: 12px; }
}

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  overflow: auto;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom) + var(--badge-h));
}
@media (min-width: 600px) {
  .modal { align-items: center; }
  .sheet { border-radius: 20px; }
}
.sheet h2 { margin: 0 0 12px; font-size: 20px; }
.actions { display: flex; gap: 8px; margin-top: 14px; }
.actions .btn { flex: 1; }

.pay-total { font-size: 34px; font-weight: 800; color: var(--green-d); text-align: center; margin: 4px 0 14px; }
.paid-input { font-size: 26px; font-weight: 700; text-align: right; }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0; }
.change-box { display: flex; justify-content: space-between; align-items: baseline; padding: 12px; border-radius: 12px; background: var(--bg); }
.change-box b { font-size: 24px; }
.change-box.ok b { color: var(--green-d); }
.change-box.bad b { color: var(--red); }

.receipt {
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 12.5px;
  line-height: 1.35;
  background: #fffef8;
  border: 1px dashed #cfcab8;
  border-radius: 8px;
  padding: 12px;
  margin: 0 auto;
  white-space: pre;
  overflow-x: auto;
  width: fit-content;
  max-width: 100%;
}
.done-badge { text-align: center; color: var(--green-d); font-weight: 700; margin-bottom: 10px; font-size: 18px; }

/* ---------- Riwayat / laporan / menu ---------- */
.list { display: flex; flex-direction: column; }
.list .li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  width: 100%;
}
.list .li:last-child { border-bottom: 0; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.tag.red { background: var(--red-l); color: var(--red); }
.tag.green { background: var(--green-l); color: var(--green-d); }
.struck { text-decoration: line-through; opacity: .6; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 20px; font-weight: 800; margin-top: 4px; }
.stat.main { background: var(--green); color: #fff; border-color: var(--green); }
.stat.main .k { color: rgba(255,255,255,.85); }

.bar { height: 6px; border-radius: 6px; background: var(--green-l); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 6px; }

.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #cfcfcf; transition: .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }

.cat-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 2px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + var(--badge-h) + 80px);
  transform: translateX(-50%);
  z-index: 60;
  background: #263226;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  max-width: calc(100% - 32px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.toast.err { background: var(--red); }

/* ---------- Dashboard ---------- */
.dash { max-width: 1100px; }
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 18px 18px 16px;
  margin-bottom: 12px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(135deg, var(--green) 0%, var(--green-d) 100%);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--green-d) 28%, transparent);
}
.hero::after {
  content: "";
  position: absolute;
  right: -30px; bottom: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 22px solid rgba(255,255,255,.07);
}
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; opacity: .9; }
.hero-num { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.hero-print { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.16); color: #fff; font-size: 18px; position: relative; z-index: 1; }
.hero-print:disabled { opacity: .4; }
.hero .delta { background: rgba(255,255,255,.16); color: #fff; }

.delta { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; margin-top: 6px; }
.delta.up { background: var(--green-l); color: var(--green-d); }
.delta.down { background: var(--red-l); color: var(--red); }
.delta.flat { background: transparent; color: var(--muted); padding-left: 0; font-weight: 500; }
.stat .v { font-variant-numeric: tabular-nums; }

.dash-grid { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 820px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid .span2 { grid-column: 1 / -1; }
  .hero-num { font-size: 42px; }
}

.chart { position: relative; width: 100%; margin-top: 6px; touch-action: pan-y; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .base { stroke: #cfccc0; stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 11px; }
.chart .ax.strong { fill: var(--green-d); font-weight: 700; }
.chart .bar { fill: #81c784; transition: fill .15s; }
.chart .bar.hi { fill: var(--green); }
.chart .peak { fill: var(--green-d); font-size: 11px; font-weight: 700; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit.on { fill: color-mix(in srgb, var(--green) 8%, transparent); }
.chart .tip {
  position: absolute;
  pointer-events: none;
  background: #1f2a1f;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  padding: 7px 10px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
  z-index: 2;
}

.hbar { margin-bottom: 12px; }
.hbar .bar { height: 8px; }

.stack { display: flex; gap: 2px; height: 14px; border-radius: 8px; overflow: hidden; margin: 4px 0 10px; }
.stack i, .legend i { display: block; background: var(--green); }
.stack i.m1, .legend i.m1 { background: #e0a100; }
.stack i.m2, .legend i.m2 { background: #3b6fd4; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

.rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-right: 8px;
  border-radius: 7px;
  background: var(--bg); color: var(--muted);
  font-size: 12px; font-weight: 700;
}
.rank.top { background: var(--green); color: #fff; }
.unsold { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.unsold .tag { display: inline-block; margin: 0 4px 6px 0; }
.empty.small { padding: 16px 0; font-size: 14px; }

/* ---------- Kas laci ---------- */
.kas-card { border-color: #e7d9a8; background: linear-gradient(180deg, #fffcf0 0%, #fff 60%); }
.kas-lines { margin-top: 10px; display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.kas-total { padding-top: 8px; border-top: 1px dashed var(--line); }
.kas-total b { font-size: 18px; color: var(--green-d); }
.kas-lines .pos { color: var(--green-d); }
.kas-lines .neg { color: var(--red); }
.link { color: var(--green); font-size: 13px; text-decoration: underline; padding: 0 4px; }
.top-actions { display: flex; gap: 6px; min-width: 0; flex: none; }
.badge { flex: none; }
.move-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.note-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.li.move { gap: 10px; }
.mv-ic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.mv-ic.in { background: var(--green-l); color: var(--green-d); }
.mv-ic.out { background: var(--red-l); color: var(--red); }
.mv-del { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--bg); color: var(--muted); }
.pos { color: var(--green-d); }
.neg { color: var(--red); }
.badge.off { position: relative; }
.badge.off::after { content: ""; position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #ff8a80; box-shadow: 0 0 0 1.5px var(--green); }
.bar.red { background: var(--red-l); }
.bar.red i { background: #e57373; }
.biaya-card .kas-total b { font-size: 18px; }
.biaya-card .delta { margin-top: 8px; }

/* ---------- Rekap harian ---------- */
.rekap-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.rekap-filter label span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.rekap-filter .input { min-height: 42px; padding: 8px 10px; }
.rekap-wrap { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
table.rekap { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.rekap th, table.rekap td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.rekap th { position: sticky; top: 0; background: var(--bg); font-size: 12px; color: var(--muted); font-weight: 700; z-index: 1; }
table.rekap .num { text-align: right; }
table.rekap td.strong { font-weight: 700; }
table.rekap tr.today td { background: var(--green-l); }
table.rekap tfoot td { position: sticky; bottom: 0; background: var(--green); color: #fff; font-weight: 800; border: 0; }
table.rekap tfoot td.neg { color: #ffd6d2; }
.tiny { font-size: 11px; }
.btn.wa { background: #25d366; color: #fff; }
@media (max-width: 480px) {
  table.rekap { font-size: 13px; }
  table.rekap th, table.rekap td { padding: 8px 5px; }
  table.rekap th:first-child, table.rekap td:first-child { padding-left: 10px; }
  table.rekap th:last-child, table.rekap td:last-child { padding-right: 10px; }
  table.rekap tfoot td:first-child { font-size: 11px; }
}

/* ---------- Belanja & saldo ---------- */
.saldo-card { border-color: color-mix(in srgb, var(--green) 30%, #fff); background: linear-gradient(180deg, var(--green-l) 0%, #fff 70%); }
.bi-row { display: grid; grid-template-columns: 1fr 112px 36px; gap: 6px; margin-bottom: 6px; align-items: center; }
.bi-row .input { min-height: 44px; padding: 8px 10px; }
.bi-row .bi-price { text-align: right; font-variant-numeric: tabular-nums; }
.bi-row .mv-del { height: 44px; width: 36px; }
.cat-title.row { display: flex; }
@media (max-width: 400px) { .tabs button { font-size: 11px; } .tabs button span { font-size: 20px; } }

/* ---------- Logo, pilih menu, kategori, reset ---------- */
.logo-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.logo-prev { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; flex: none; border: 1px solid var(--line); background: var(--bg); }
.brand img { object-fit: cover; }
.pick-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
.li.picked { background: var(--red-l); border-radius: 10px; }
.li .pick { width: 24px; height: 24px; flex: none; accent-color: var(--red); margin-left: 6px; }
.cat-row .mv-del { width: 38px; height: 38px; }
.mv-del:disabled { opacity: .3; }
.reset-card { border-color: #f1c4c4; }
.menu-tools { display: flex; gap: 8px; margin-bottom: 12px; }
.menu-tools .btn { flex: 1; padding: 0 10px; }
.welcome { text-align: center; margin-bottom: 12px; }
.welcome-logo { width: 88px; height: 88px; border-radius: 22px; object-fit: cover; margin: 4px auto 10px; display: block; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.welcome h2 { margin-bottom: 6px; }
.welcome p { margin: 0; }
.gate-err { background: var(--red-l); color: var(--red); padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 0 0 10px; }
.key-input { text-align: center; letter-spacing: 2px; font-family: ui-monospace, "Courier New", monospace; font-size: 22px; }
.gate-step { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.gate-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; color: var(--muted); font-size: 13px; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }
.gate-ok { background: var(--green-l); color: var(--green-d); padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 8px; }
.usage-box { background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 14px; }

/* ---------- Bar update aplikasi ---------- */
.upd-bar {
  position: fixed; z-index: 80;
  top: calc(var(--top-h) + env(safe-area-inset-top) + 8px); left: 12px; right: 12px;
  max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 16px; border-radius: 14px;
  background: #1F2A1F; color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.upd-bar span { flex: 1; }
.upd-bar #updGo, .upd-bar #instGo { background: var(--accent); color: #1F2A1F; font-weight: 800; padding: 10px 14px; border-radius: 10px; min-height: 40px; }
.upd-bar .upd-x { color: #cfd8cf; width: 36px; height: 40px; border-radius: 10px; }
