/* ============================================================
   cucian.web.id — Components (Jemur style)
   Mobile-first. Pink accent, navy ink, white rounded cards.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Browser surfaces ---------- */
::selection { background: var(--pink); color: #fff; }
:root { caret-color: var(--pink-deep); scrollbar-color: var(--muted-2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--muted-2); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 2px; border-radius: 6px; }

a { color: var(--pink-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: var(--s-5) 0; }
img { max-width: 100%; display: block; }

/* ---------- Type ---------- */
.display  { font-size: clamp(26px, 6vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 0; color: var(--navy); }
.heading  { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin: 0; color: var(--navy); }
.title    { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0; color: var(--navy); }
.lede     { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.body     { font-size: 14px; line-height: 1.55; color: var(--navy-2); }
.small    { font-size: 12px; }
.muted    { color: var(--muted); }
.label    { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.num      { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.mono     { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: var(--s-3); }
.stack-lg > * + * { margin-top: var(--s-5); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--shell-max); margin-inline: auto; padding-inline: var(--s-4); }
.container-narrow { max-width: 620px; }
.app-shell {
  width: 100%; max-width: var(--app-max); margin-inline: auto;
  padding: var(--s-3) var(--s-4) calc(var(--bottom-nav-h) + var(--s-6));
}
.band { padding-block: var(--s-8); }
.row { display: flex; align-items: center; gap: var(--s-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 860px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Cards / sheets ---------- */
.card, .sheet {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  border: 0;
}
.card { padding: var(--s-5); }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  flex-wrap: wrap;
  padding: var(--s-5) var(--s-5) 0;
}
.sheet-body { padding: var(--s-5); }

/* ---------- App header (greeting) ---------- */
.app-header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-5) var(--s-4) var(--s-3);
  max-width: var(--app-max); margin-inline: auto;
}
.app-header .greet-line { font-size: 15px; color: var(--navy); font-weight: 400; }
.app-header .greet-name { font-size: 20px; font-weight: 700; line-height: 1.2; }
.app-header .head-actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }
.icon-btn {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  background: var(--surface); border: 0; border-radius: var(--r-lg);
  box-shadow: var(--sh-card); cursor: pointer; position: relative;
}
.icon-btn:hover { box-shadow: var(--sh-card-lg); }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); border: 2px solid var(--surface); }
.avatar {
  width: 42px; height: 42px; flex: none; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px;
  box-shadow: var(--sh-card); cursor: pointer; border: 0;
}

/* ---------- Notification banner ---------- */
.notif {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--mint); color: #063a2c;
  border-radius: var(--r-sm); padding: var(--s-3) var(--s-4);
  box-shadow: var(--sh-mint); margin: 0 0 var(--s-5);
}
.notif .notif-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255,255,255,0.5); display: grid; place-items: center; }
.notif .notif-t { font-size: 13px; font-weight: 600; }
.notif .notif-s { font-size: 11px; opacity: 0.85; }
.notif .notif-x { margin-left: auto; background: none; border: 0; cursor: pointer; color: #063a2c; opacity: 0.8; font-size: 16px; line-height: 1; }

/* ---------- Section header ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.sec-head h2 { font-size: 20px; font-weight: 700; margin: 0; }
.sec-head .sec-link { font-size: 13px; font-weight: 600; color: var(--pink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 22px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease, filter .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--pink); color: #fff; box-shadow: var(--sh-pink); }
.btn-primary:hover { background: var(--pink-deep); text-decoration: none; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { filter: brightness(1.2); text-decoration: none; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { filter: brightness(1.2); }
.btn-outline { background: transparent; border-color: var(--pink); color: var(--pink-deep); }
.btn-outline:hover { background: var(--pink-soft); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--navy); box-shadow: var(--sh-card); }
.btn-ghost:hover { text-decoration: none; box-shadow: var(--sh-card-lg); }
.btn-danger { background: var(--coral); color: #fff; }
.btn-danger:hover { filter: brightness(1.05); }
.btn-success { background: var(--mint); color: #063a2c; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { filter: brightness(1.05); text-decoration: none; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-soft); color: var(--muted-2); box-shadow: none; cursor: not-allowed; }
.btn.is-loading { color: transparent; position: relative; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.9); border-top-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Segmented tabs (pill) ---------- */
.seg {
  display: flex; background: var(--surface); border-radius: var(--r-pill);
  padding: 5px; box-shadow: var(--sh-card); gap: 4px;
}
.seg button {
  flex: 1; min-height: 40px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--pink);
  border-radius: var(--r-pill); white-space: nowrap; padding: 0 14px;
}
.seg button[aria-selected="true"] { background: var(--pink); color: #fff; }

/* legacy tabs → pill style */
.tabs { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: 2px; }
.tab {
  border: 0; background: var(--surface); color: var(--muted);
  font-family: var(--font); font-size: 13px; font-weight: 600;
  padding: 10px 16px; border-radius: var(--r-pill); cursor: pointer; white-space: nowrap; box-shadow: var(--sh-card);
}
.tab[aria-selected="true"] { background: var(--pink); color: #fff; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12px; font-weight: 600; color: var(--navy); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 16px;
  font-family: var(--font); font-size: 14px; color: var(--navy);
  background: var(--surface); border: 1.5px solid transparent; border-radius: var(--r-md);
  box-shadow: var(--sh-card); transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23898B96' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
.input[aria-invalid="true"] { border-color: var(--coral); }
.input-mono { font-variant-numeric: tabular-nums; }
.field-error { font-size: 12px; color: var(--coral); }
.field-hint { font-size: 12px; color: var(--muted); }

.checkbox { display: inline-flex; align-items: center; gap: var(--s-3); cursor: pointer; min-height: var(--tap); font-size: 14px; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--pink); }

.switch { position: relative; display: inline-flex; align-items: center; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { width: 100%; height: 100%; background: var(--bg-soft); border-radius: var(--r-pill); transition: background-color .15s ease; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform .15s ease; }
.switch input:checked + .track { background: var(--pink); }
.switch input:checked + .track::after { transform: translateX(20px); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-card); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data thead th {
  text-align: left; padding: 12px 16px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  background: var(--surface-2); white-space: nowrap;
}
table.data td { padding: 12px 16px; border-top: 1px solid var(--hairline); vertical-align: middle; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tfoot td { padding: 12px 16px; background: var(--surface-2); font-weight: 700; border-top: 1px solid var(--hairline-2); }
table.data .num { font-variant-numeric: tabular-nums; text-align: right; }
table.data .actions { text-align: right; white-space: nowrap; }
@media (max-width: 560px) {
  table.data { font-size: 12px; }
  table.data thead th, table.data td, table.data tfoot td { padding: 9px 10px; }
  table.data thead th { font-size: 10px; }
}

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 24px; padding: 3px 12px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  border: 1.5px solid transparent; white-space: nowrap; flex: none;
}
.badge-solid { background: var(--pink); color: #fff; }
.badge-chip { background: var(--surface); color: var(--muted); border-color: var(--hairline-2); }
.badge-success { background: var(--mint-soft); color: #067a5c; }
.badge-warning { background: var(--amber-soft); color: #8a6400; }
.badge-info { background: var(--sky-bg); color: #1b6ba8; }
.badge-danger { background: var(--coral-soft); color: #b8330f; }
.badge-mute { background: var(--bg-soft); color: var(--muted); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Alerts ---------- */
.alert {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md); background: var(--surface);
  box-shadow: var(--sh-card); font-size: 13px;
}
.alert-info { border-left: 4px solid var(--sky); }
.alert-success { border-left: 4px solid var(--mint); }
.alert-warning { border-left: 4px solid var(--amber); }
.alert-danger { border-left: 4px solid var(--coral); }
.alert strong { display: block; margin-bottom: 2px; }

/* ---------- Modal (bottom-sheet on mobile) ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(14, 20, 70, 0.45); animation: fade .18s ease-out;
}
.modal {
  width: 100%; max-width: var(--app-max); max-height: 92vh; overflow: auto;
  background: var(--surface); border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  box-shadow: var(--sh-pop); animation: sheet-up .28s cubic-bezier(.22,1,.36,1);
}
.modal-wide { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-3); }
.modal-body { padding: 0 var(--s-5) var(--s-5); }
.modal-foot { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3) var(--s-5) var(--s-6); }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(24px); opacity: .6; } }
@media (min-width: 620px) {
  .modal-backdrop { align-items: center; }
  .modal { border-radius: var(--r-2xl); }
  .modal-foot { flex-direction: row; justify-content: flex-end; flex-wrap: wrap; }
}

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom-nav-h) + 12px); z-index: 70; display: flex; flex-direction: column; gap: var(--s-2); width: calc(100% - 32px); max-width: 420px; }
.toast {
  padding: 14px 18px; background: var(--navy); color: #fff;
  border-radius: var(--r-md); box-shadow: var(--sh-pop); font-size: 13px; font-weight: 500;
  animation: toast-in .25s cubic-bezier(.22,1,.36,1);
}
.toast-success { background: var(--mint); color: #063a2c; }
.toast-danger { background: var(--coral); color: #fff; }
.toast-warning { background: var(--amber); color: #4a3400; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Empty / loading ---------- */
.empty { text-align: center; padding: var(--s-8) var(--s-4); color: var(--muted); }
.empty .empty-mark { font-size: 34px; margin-bottom: var(--s-3); }
.skeleton { background: var(--bg-soft); border-radius: var(--r-sm); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.loading-bar { height: 3px; background: var(--bg-soft); border-radius: var(--r-pill); overflow: hidden; }
.loading-bar::after { content: ""; display: block; height: 100%; width: 40%; background: var(--pink); border-radius: var(--r-pill); animation: sweep 1.1s ease-in-out infinite; }
@keyframes sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } }

/* ---------- Bottom navigation ---------- */
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 16px; z-index: 50;
  width: calc(100% - 32px); max-width: calc(var(--app-max) - 32px);
  display: flex; align-items: center; gap: 2px;
  background: var(--navy); border-radius: var(--r-pill);
  padding: 8px; box-shadow: var(--sh-nav);
}
.bottom-nav .bn-item {
  flex: 1; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #fff; opacity: 0.55; border-radius: var(--r-pill);
  text-decoration: none; font-size: 9px; font-weight: 600; position: relative; transition: opacity .15s ease;
}
.bottom-nav .bn-item svg { width: 22px; height: 22px; }
.bottom-nav .bn-item:hover { opacity: 0.85; text-decoration: none; }
.bottom-nav .bn-item[aria-current="page"] { opacity: 1; background: var(--pink); }
.bottom-nav .bn-item[aria-current="page"]::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--amber); }

/* Desktop: bottom nav becomes a sticky top bar */
@media (min-width: 900px) {
  .bottom-nav {
    position: sticky; top: 0; left: auto; transform: none; margin: 0 auto;
    width: 100%; max-width: none; border-radius: 0; bottom: auto;
    padding: 8px 16px; justify-content: center; gap: 6px;
  }
  .bottom-nav .bn-item { flex: 0 0 auto; flex-direction: row; gap: 8px; font-size: 13px; padding: 0 16px; min-height: 42px; }
  .bottom-nav .bn-item svg { width: 18px; height: 18px; }
  .bottom-nav .bn-item[aria-current="page"]::after { display: none; }
  .app-shell { max-width: var(--shell-max); padding-bottom: var(--s-8); }
  .app-header { max-width: var(--shell-max); }
  .toast-wrap { bottom: 20px; }
}

/* ---------- Utilities ---------- */
.hidden { display: none !important; }
.mt-0 { margin-top: 0; } .mt-sm { margin-top: var(--s-2); } .mt-md { margin-top: var(--s-3); }
.mt-lg { margin-top: var(--s-5); } .mt-xl { margin-top: var(--s-7); } .mt-xxl { margin-top: var(--s-8); }
.text-center { text-align: center; } .text-right { text-align: right; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-sm { gap: var(--s-2); } .gap-md { gap: var(--s-3); } .gap-lg { gap: var(--s-5); }
.divider { border-top: 1px solid var(--hairline); }
.pill-note { font-size: 11px; color: var(--muted); }
.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; }

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-3); }
@media (min-width: 720px) { .stat-strip { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-card); padding: var(--s-4); }
.stat .stat-k { font-size: 11px; font-weight: 600; color: var(--muted); }
.stat .stat-v { font-size: 20px; font-weight: 700; color: var(--navy); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ============================================================
   Kasir-specific (Jemur service cards + cart)
   ============================================================ */
.kasir { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 900px) { .kasir { grid-template-columns: 1fr 380px; align-items: start; gap: var(--s-6); } }
@media (min-width: 900px) { .kasir .mt-xl { margin-top: var(--s-5); } }

.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-4); }
@media (min-width: 620px) { .svc-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.svc {
  position: relative; text-align: left; cursor: pointer;
  background: var(--surface); border: 0; border-radius: var(--r-xl);
  box-shadow: var(--sh-card); padding: var(--s-4);
  transition: transform .12s ease, box-shadow .15s ease;
}
.svc:hover { box-shadow: var(--sh-card-lg); }
.svc:active { transform: scale(.98); }
.svc .s-icon { width: 46px; height: 46px; margin-bottom: var(--s-4); }
.svc .s-icon img { width: 100%; height: 100%; object-fit: contain; }
.svc .s-name { font-size: 16px; font-weight: 600; color: var(--navy); }
.svc .s-price { font-size: 12px; color: var(--muted); margin-top: 3px; }
.svc .s-off {
  position: absolute; top: 12px; right: 12px;
  background: var(--coral); color: #fff; font-size: 10px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--r-pill);
}

.cart-line {
  display: grid; grid-template-columns: 1fr auto auto; gap: var(--s-3); align-items: center;
  padding: var(--s-3) 0; border-bottom: 1px solid var(--hairline);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line .qty { width: 72px; min-height: 40px; padding: 6px 10px; text-align: center; }
.sticky { position: static; }
@media (min-width: 900px) { .sticky { position: sticky; top: 84px; } }
.summary-row { display: flex; justify-content: space-between; gap: var(--s-3); padding: 6px 0; font-size: 14px; }
.summary-row.grand { border-top: 1px solid var(--hairline-2); margin-top: var(--s-2); padding-top: var(--s-3); font-size: 18px; font-weight: 700; color: var(--navy); }

/* ============================================================
   Promo rail (horizontal scroll)
   ============================================================ */
.promo-rail { display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-2); margin: 0 calc(-1 * var(--s-4)); padding-inline: var(--s-4); }
.promo-rail::-webkit-scrollbar { display: none; }
.promo-card {
  flex: 0 0 78%; max-width: 300px; scroll-snap-align: start;
  min-height: 130px; border-radius: var(--r-xl); padding: var(--s-4);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  color: var(--navy); box-shadow: var(--sh-card); position: relative; overflow: hidden;
}
.promo-card .pc-t { font-size: 13px; line-height: 1.4; }
.promo-card .pc-code { align-self: flex-start; background: var(--surface); border-radius: var(--r-xs); padding: 7px 14px; font-weight: 800; font-size: 15px; color: var(--pink-deep); box-shadow: var(--sh-card); }

/* ============================================================
   Receipt (58mm thermal) — unchanged structurally
   ============================================================ */
.receipt { width: 58mm; font-size: 11px; line-height: 1.45; color: #000; background: #fff; font-variant-numeric: tabular-nums; }
.receipt hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
.receipt .r-center { text-align: center; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 8px; }
@media print {
  body * { visibility: hidden; }
  .receipt, .receipt * { visibility: visible; }
  .receipt { position: absolute; left: 0; top: 0; width: 58mm; }
  @page { margin: 0; size: 58mm auto; }
}

/* ---------- Motion ---------- */
.pop { animation: pop .4s cubic-bezier(.22,1,.36,1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
