/* Laundry POS — clean, Stripe-inspired */
:root {
  --bg: #f6f9fc;
  --card: #ffffff;
  --ink: #0a2540;
  --ink-2: #425466;
  --muted: #6b7c93;
  --line: #e6ebf1;
  --line-soft: #eef2f6;
  --accent: #635bff;
  --accent-hover: #544ded;
  --accent-soft: #f0efff;
  --pos: #0a7e3e;
  --neg: #cd3d64;
  --radius: 12px;
  --shadow: 0 0 0 1px rgba(10, 37, 64, 0.06), 0 1px 3px rgba(10, 37, 64, 0.06);
  --shadow-lg: 0 14px 40px -12px rgba(10, 37, 64, 0.25);
  --nav-h: 60px;
  --top-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.sheet-open { overflow: hidden; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; }
small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }
.neg { color: var(--neg) !important; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- shell ---------- */
#app { max-width: 600px; margin: 0 auto; min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 8px 0 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { border-radius: 8px; }
.brand strong { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

main { padding: 20px 16px calc(var(--nav-h) + var(--safe-b) + 88px); }
.page, .stack { display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 600px; margin: 0 auto;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; font-weight: 500; color: var(--muted);
}
.bottom-nav a .ic { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--accent); }

.fab {
  position: fixed; z-index: 25;
  right: max(16px, calc(50vw - 300px + 16px));
  bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
  display: flex; align-items: center; gap: 6px;
  height: 48px; padding: 0 20px 0 16px;
  border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600;
  box-shadow: 0 8px 20px -6px rgba(99, 91, 255, 0.6);
}
.fab:active { background: var(--accent-hover); }

/* ---------- building blocks ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 16px; }
.group { display: flex; flex-direction: column; gap: 8px; }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.group-title { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 4px; }

.list { overflow: hidden; }
.list > * + * { border-top: 1px solid var(--line-soft); }
.row, .line {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 56px; padding: 10px 16px;
  background: none; border: 0; text-align: left;
}
button.row:active, a.row:active { background: var(--bg); }
.row-main, .line > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.row-main b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main small, .line small { color: var(--muted); }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.row-side b { font-weight: 500; }
.row-end { display: flex; align-items: center; gap: 6px; color: var(--ink-2); flex: none; }
.row-end .ic { color: #a3acb9; width: 18px; height: 18px; }
.row-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.row.danger { color: var(--neg); }
.row.inactive { opacity: .5; }
.line { min-height: 48px; }
.line.strong { font-weight: 600; }
.line.col { flex-direction: column; align-items: flex-start; gap: 2px; }

.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  border-radius: 5px; font-size: 12px; font-weight: 500; white-space: nowrap;
}
.b-proses { background: #e3e8ee; color: #3c4257; }
.b-selesai { background: #fcedb9; color: #a82c00; }
.b-diambil, .b-paid { background: #d7f7c2; color: #05690d; }
.b-batal { background: #ebeef1; color: #8792a2; }
.b-unpaid { background: #ffe7f2; color: #b3093c; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 8px;
  border: 0; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .15s, box-shadow .15s;
}
.btn .ic { width: 18px; height: 18px; }
.btn.lg { height: 48px; font-size: 15px; padding: 0 20px; }
.btn.block { width: 100%; }
.btn.grow { flex: 1; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(10, 37, 64, .15); }
.btn.primary:active { background: var(--accent-hover); }
.btn.secondary { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(10, 37, 64, .05); }
.btn.secondary:active { background: var(--bg); }
.btn.danger { color: var(--neg); }
.btn.primary.danger, .dialog-actions .btn.danger { background: #df1b41; color: #fff; }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn[aria-disabled="true"] { opacity: .5; }

.notify-intro { display: flex; align-items: center; gap: 12px; padding: 2px 4px; }
.notify-intro b { display: block; font-size: 16px; font-weight: 600; }
.notify-intro small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.notify-icon { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #e3f8ec; color: #0e7a3e; }
.notify-icon .ic { width: 20px; height: 20px; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1; }
.btn-row .btn.danger:first-child { flex: 0 0 48px; height: 48px; }
.btn-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 14px; padding: 4px; }
.btn-link .ic { width: 16px; height: 16px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink-2);
}
.icon-btn:active { background: var(--line-soft); }
.icon-btn.sm { width: 32px; height: 32px; color: #a3acb9; }
.icon-btn.sm .ic { width: 16px; height: 16px; }
.icon-btn.outline { background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--ink-2); }
.icon-btn.outline:active { background: var(--bg); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 34px; padding: 0 12px; border-radius: 999px;
  border: 0; background: var(--card); color: var(--ink-2);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 500;
}
.chip .ic { width: 14px; height: 14px; color: var(--accent); }
.chip.active { background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }

.seg { display: flex; padding: 3px; border-radius: 9px; background: #e9edf2; }
.seg button { flex: 1; height: 34px; border: 0; border-radius: 7px; background: none; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.seg button.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(10, 37, 64, .12); }
.seg.sm button { height: 28px; padding: 0 10px; font-size: 13px; }

.tabs {
  display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 0 -16px; padding: 0 16px;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; cursor: grab;
}
.tabs.dragging { cursor: grabbing; user-select: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; height: 40px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--accent); border-color: var(--accent); }

.month-switch { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.month-switch button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); }
.month-switch button:active { background: var(--line-soft); }
.month-switch button:disabled { opacity: .3; }
.month-switch span { min-width: 72px; text-align: center; }

.loading { display: grid; place-items: center; padding: 40px 0; }
.spinner { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); margin: 0; }
.empty p { margin: 0; }
.hint { margin: 0; padding: 0 4px; font-size: 13px; color: var(--muted); }
.note { margin: 0; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.note.warn { background: #fcedb9; color: #a82c00; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
input:not([type=checkbox]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 0; border-radius: 8px; background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 16px; outline: none;
}
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(99, 91, 255, .15); }
input::placeholder, textarea::placeholder { color: #a3acb9; }
textarea { resize: vertical; }
input[type=date], input[type=month] { -webkit-appearance: none; appearance: none; }

.fields { overflow: visible; }
.fields > * + * { border-top: 1px solid var(--line-soft); }
.fields input, .fields textarea, .fields select { box-shadow: none !important; border-radius: 0; min-height: 52px; padding: 14px 16px; background: transparent; }
.fields > :first-child, .fields > :first-child input { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.fields .f { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-left: 16px; }
.fields .f span { color: var(--ink-2); white-space: nowrap; font-size: 15px; }
.fields .f input { text-align: right; padding-left: 0; width: auto; flex: 1; min-width: 0; }
.fields:focus-within { box-shadow: 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(99, 91, 255, .12); }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; padding: 0 4px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.money-input { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 8px 0; }
.money-input span { font-size: 22px; font-weight: 500; color: var(--muted); }
.money-input input { box-shadow: none !important; background: none; font-size: 40px; font-weight: 600; letter-spacing: -0.02em; text-align: center; padding: 0; width: 100%; max-width: 280px; min-height: 56px; font-variant-numeric: tabular-nums; }

details.more > summary { list-style: none; display: flex; align-items: center; gap: 4px; padding: 0 4px; font-size: 14px; font-weight: 500; color: var(--accent); cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary .ic { width: 16px; height: 16px; transition: transform .2s; }
details.more[open] > summary .ic { transform: rotate(180deg); }
details.more[open] > summary { margin-bottom: 0; }

.sticky-tools { position: sticky; top: calc(var(--top-h) + var(--safe-t)); z-index: 10; display: flex; flex-direction: column; gap: 8px; margin: -8px -16px 0; padding: 8px 16px 0; background: var(--bg); }
.search { position: relative; display: block; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #a3acb9; }
.search input { padding-left: 38px; }

.suggest-wrap { position: relative; }
.suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 5; background: var(--card); border-radius: 10px; box-shadow: var(--shadow), var(--shadow-lg); overflow: hidden; }
.suggest button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 10px 16px; border: 0; background: none; text-align: left; }
.suggest button + button { border-top: 1px solid var(--line-soft); }
.suggest b { font-weight: 500; }
.suggest small { color: var(--muted); }

/* order form items */
.item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 12px 8px 12px 16px; }
.item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item-main b { font-weight: 500; }
.item-price { display: flex; align-items: center; gap: 2px; color: var(--muted); font-size: 13px; }
input.plain, select.plain { box-shadow: none !important; background: none; min-height: 0; padding: 0; border-radius: 4px; }
input.plain.name { font-size: 15px; font-weight: 500; }
input.plain.price { width: 4em; field-sizing: content; min-width: 2.5em; margin-right: 2px; font-size: 13px; color: var(--ink-2); border-bottom: 1px dashed #c1c9d2; border-radius: 0; }
select.plain { width: auto; font-size: 13px; color: var(--ink-2); }
.item-qty { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.qty-input { display: flex; align-items: center; width: 96px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); background: var(--card); }
.qty-input:focus-within { box-shadow: 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(99, 91, 255, .15); }
.qty-input input { box-shadow: none !important; background: none; min-height: 40px; padding: 0 4px 0 10px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty-input span { padding-right: 10px; color: var(--muted); font-size: 13px; }
.item-qty small { color: var(--muted); font-size: 12px; }

.pay-extra { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-total { display: flex; flex-direction: column; line-height: 1.2; }
.form-total small { color: var(--muted); font-size: 12px; }
.form-total b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.form-foot .btn { min-width: 132px; }

/* ---------- sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 37, 64, .35); opacity: 0; transition: opacity .25s; }
.sheet {
  position: relative; width: 100%; max-width: 600px; max-height: 90dvh;
  display: flex; flex-direction: column;
  background: var(--bg); border-radius: 16px 16px 0 0;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  box-shadow: var(--shadow-lg);
}
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-head { display: flex; align-items: center; gap: 4px; min-height: 56px; padding: 8px 8px 8px 16px; flex: none; }
.sheet-head h2 { flex: 1; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-right { display: flex; align-items: center; }
.sheet-body { flex: 1; overflow-y: auto; padding: 4px 16px 24px; display: flex; flex-direction: column; gap: 20px; overscroll-behavior: contain; }
.sheet-body > * { flex-shrink: 0; }
.sheet-foot { flex: none; padding: 12px 16px calc(12px + var(--safe-b)); background: var(--card); border-top: 1px solid var(--line); }

.size-page .sheet { height: 100dvh; max-height: 100dvh; border-radius: 0; box-shadow: none; transform: translateX(100%); }
.size-page .sheet-backdrop { display: none; }
.size-page .sheet-head { padding: calc(8px + var(--safe-t)) 8px 8px 4px; background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--line); }
.size-page .sheet-head h2 { font-size: 16px; }
.size-page .sheet-body { padding-top: 20px; }

.size-dialog { align-items: center; padding: 24px; }
.size-dialog .sheet { max-width: 360px; border-radius: 14px; background: var(--card); transform: scale(.96); opacity: 0; transition: transform .18s, opacity .18s; }
.size-dialog.open .sheet { transform: none; opacity: 1; }
.size-dialog .sheet-head { padding: 16px 8px 0 20px; min-height: 0; }
.size-dialog .sheet-body { padding: 4px 20px 16px; }
.size-dialog .sheet-foot { border: 0; padding: 0 20px 20px; border-radius: 0 0 14px 14px; }
.dialog-msg { margin: 0; color: var(--ink-2); }
.dialog-actions { display: flex; gap: 8px; }
.dialog-actions .btn { flex: 1; height: 44px; }

.menu { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 16px; border: 0; background: none; text-align: left; font-size: 15px; color: var(--ink); }
.menu-item + .menu-item { border-top: 1px solid var(--line-soft); }
.menu-item .ic { color: var(--muted); }
.menu-item:active { background: var(--bg); }
.menu-item.danger, .menu-item.danger .ic { color: var(--neg); }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 0; right: 0; top: calc(var(--safe-t) + 12px); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { display: flex; align-items: center; gap: 8px; max-width: 420px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); transform: translateY(-12px); opacity: 0; transition: all .22s; }
.toast .ic { width: 16px; height: 16px; color: #7cd4a0; }
.toast.show { transform: none; opacity: 1; }
.toast.error { background: #df1b41; }
.offline { position: fixed; left: 0; right: 0; top: calc(var(--top-h) + var(--safe-t)); z-index: 40; background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 6px; }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: calc(24px + var(--safe-t)) 16px calc(24px + var(--safe-b)); background: var(--bg); }
.login-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; background: var(--card); padding: 32px 24px; border-radius: 16px; box-shadow: var(--shadow); }
.login-card img { border-radius: 14px; margin-bottom: 4px; }
.login-card h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.login-card p { margin: -6px 0 8px; color: var(--muted); font-size: 14px; }
.login-card input { font-size: 16px; min-height: 48px; }
.login-error { color: var(--neg); min-height: 18px; }
.login-card .login-foot { margin: 4px 0 0; }
.login-foot a { color: var(--accent); font-weight: 500; }

/* ---------- order list ---------- */
#orderList { display: flex; flex-direction: column; gap: 20px; }

/* ---------- order detail ---------- */
.summary-head { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0 4px; }
.summary-head .row-badges { justify-content: flex-start; margin-bottom: 6px; }
.summary-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; }
.summary-amount { font-size: 36px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.summary-name { font-size: 17px; font-weight: 500; color: var(--ink-2); }
.summary-phone { color: var(--accent); font-size: 15px; }
.actions { display: flex; flex-direction: column; gap: 8px; }

/* ---------- dashboard ---------- */
.today { display: grid; grid-template-columns: repeat(3, 1fr); }
.today > div { display: flex; flex-direction: column; padding: 12px 14px; min-width: 0; }
.today > div + div { border-left: 1px solid var(--line-soft); }
.today small { color: var(--muted); font-size: 12px; }
.today b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.metric-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.metric-big { font-size: 34px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; margin-top: 2px; }
.metric-big span { font-size: 18px; font-weight: 500; color: var(--muted); }
.delta { font-size: 12px; font-weight: 600; }
.delta.pos { color: var(--pos); }
.delta.neg { color: var(--neg); }

.meter { height: 6px; background: var(--line-soft); border-radius: 6px; overflow: hidden; margin-top: 14px; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width .5s; }
.meter.thin { height: 4px; margin-top: 6px; }
.meter-label { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }

.metrics { display: grid; grid-template-columns: 1fr 1fr; }
.metrics > div { padding: 14px 16px; min-width: 0; }
.metrics > div:nth-child(even) { border-left: 1px solid var(--line-soft); }
.metrics > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
.metrics b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chart-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; font-size: 13px; }
.chart-top b { font-size: 15px; font-weight: 600; }
.chart { width: 100%; height: 120px; display: block; }
.chart .hit { fill: transparent; }
.chart .bar { fill: var(--accent); }
.chart g.sel .bar { fill: var(--ink); }
.chart .axis { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: #a3acb9; margin-top: 6px; }

.cat-bars { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.cat-bar-label { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }

/* ---------- paket Pro ---------- */
.pro-tag { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pro-tag .ic { width: 12px; height: 12px; }
.pro-chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.pro-chip .ic { width: 14px; height: 14px; }

.plan-banner { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: var(--radius); font-size: 14px; }
.plan-banner > .ic { width: 20px; height: 20px; }
.plan-banner > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.plan-banner b { font-weight: 600; }
.plan-banner small { opacity: .85; }
.plan-banner .btn { flex: none; height: 34px; padding: 0 12px; font-size: 13px; box-shadow: none; }
.plan-banner.info { background: var(--accent-soft); color: #3d35c9; }
.plan-banner.warn { background: #fcedb9; color: #a82c00; }
.plan-banner.danger { background: #ffe7f2; color: #b3093c; }

.quota-num { margin-top: 2px; font-size: 15px; color: var(--muted); }
.quota-num b { font-size: 28px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.quota-card .meter { margin-top: 10px; }
.quota-card.warn .meter span { background: #e5a000; }
.quota-card.full .meter span { background: var(--neg); }
.quota-card.full .meter-label { color: var(--neg); }

.quota-hint { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 8px 8px 14px; border: 0; border-radius: 10px; background: var(--accent-soft); color: #3d35c9; font-size: 13px; text-align: left; }
.quota-hint.warn { background: #fcedb9; color: #a82c00; }
.quota-hint .btn-link { flex: none; padding: 2px 4px; font-size: 13px; }

.locked-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 20px; text-align: center; }
.locked-card .lock-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.locked-card b { font-size: 16px; font-weight: 600; }
.locked-card p { margin: 0; max-width: 30em; color: var(--muted); font-size: 14px; }
.locked-card .btn { margin-top: 10px; }

.metric-lock { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 0; border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 600; }
.metric-lock .ic { width: 14px; height: 14px; }

.upgrade-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 8px 0; text-align: center; }
.upgrade-hero .crown { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 16px; background: linear-gradient(135deg, #7a73ff, #a960ee); color: #fff; box-shadow: 0 10px 24px -10px rgba(99, 91, 255, .7); }
.upgrade-hero .crown .ic { width: 26px; height: 26px; }
.upgrade-hero h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; }
.upgrade-hero p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 30em; }
.upgrade-hero .hint { padding: 0; }

.feature-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 14px 16px; list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; }
.feature-list .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--pos); }

.price-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-option { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 12px 14px; border: 0; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); text-align: left; }
.price-option.active { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
.price-option small { color: var(--muted); font-size: 12px; }
.price-option b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.price-option .save { color: var(--pos); font-size: 12px; font-weight: 600; }

.pay-account .row-end b { color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.qris-card { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qris-img { display: block; width: 100%; max-width: 240px; border-radius: 8px; }

/* ---------- print (struk thermal 58mm, mis. iWare MP-58SB) ---------- */
#print-area { display: none; }
@media print {
  @page { size: 58mm auto; margin: 2mm; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block; }

  .receipt { font-family: 'Courier New', monospace; font-size: 11.5px; line-height: 1.45; color: #000; width: 100%; }
  .r-center { text-align: center; }
  .r-shop { font-size: 15px; font-weight: 700; text-transform: uppercase; }
  .r-muted { font-size: 10.5px; }
  .r-hr { border-top: 1px dashed #000; margin: 5px 0; }
  .r-row { display: flex; justify-content: space-between; gap: 8px; }
  .r-row b { font-weight: 700; text-align: right; }
  .r-total { font-weight: 700; font-size: 12.5px; margin-top: 2px; }
  .r-item { margin-bottom: 3px; }
  .r-item-row { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
  .r-item-meta { font-size: 10.5px; }
  .r-stamp { font-weight: 700; font-size: 13px; letter-spacing: 0.15em; border: 1.5px solid #000; padding: 2px 0; margin-top: 4px; }
  .r-note, .r-footer { font-size: 10px; line-height: 1.4; white-space: pre-wrap; }
  .r-thanks { font-weight: 700; margin-top: 8px; }
  .r-brand { font-size: 9.5px; margin-top: 4px; }
}
