/* ============ Design tokens (gaya iOS) ============ */
:root {
  --bg: #eef0f6;
  --surface: rgba(255, 255, 255, .62);
  --surface-2: rgba(255, 255, 255, .45);
  --surface-3: rgba(233, 233, 238, .7);
  --edge: rgba(255, 255, 255, .75);
  --edge-hi: rgba(255, 255, 255, .9);
  --blob-a: rgba(0, 122, 255, .26);
  --blob-b: rgba(175, 82, 222, .2);
  --blob-c: rgba(52, 199, 89, .18);
  --blob-d: rgba(255, 149, 0, .16);
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .08);
  --border: rgba(60, 60, 67, .14);
  --text: #1c1c1e;
  --text-2: #48484a;
  --muted: #8e8e93;
  --primary: #007aff;
  --primary-2: #0066d6;
  --primary-soft: #e6f1ff;
  --on-primary: #ffffff;
  --success: #248a3d;
  --success-soft: #e8f7ec;
  --danger: #ff3b30;
  --danger-soft: #ffebea;
  --warning: #c93400;
  --warning-soft: #fff3e3;
  --info: #0071a4;
  --info-soft: #e5f5fc;
  --glass: rgba(246, 247, 252, .58);
  --glass-strong: rgba(255, 255, 255, .72);
  --seg-on: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 28px rgba(0, 0, 0, .06);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .16), 0 2px 8px rgba(0, 0, 0, .05);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar: 264px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", "Inter", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  /* Gradien semi-transparan agar warna latar ikut terlihat dan menyatu */
  --grad-1: linear-gradient(150deg, rgba(47, 147, 255, .9) 0%, rgba(10, 108, 255, .82) 45%, rgba(94, 92, 230, .8) 100%);
  --grad-2: linear-gradient(150deg, rgba(61, 220, 107, .88) 0%, rgba(26, 168, 120, .82) 100%);
  --grad-3: linear-gradient(150deg, rgba(255, 107, 129, .88) 0%, rgba(255, 45, 85, .82) 100%);
  --grad-4: linear-gradient(150deg, rgba(255, 173, 51, .9) 0%, rgba(255, 122, 0, .84) 100%);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: rgba(38, 38, 44, .55);
  --surface-2: rgba(50, 50, 56, .45);
  --surface-3: rgba(60, 60, 66, .6);
  --edge: rgba(255, 255, 255, .09);
  --edge-hi: rgba(255, 255, 255, .12);
  --blob-a: rgba(10, 132, 255, .32);
  --blob-b: rgba(191, 90, 242, .26);
  --blob-c: rgba(48, 209, 88, .18);
  --blob-d: rgba(255, 159, 10, .14);
  --fill: rgba(118, 118, 128, .24);
  --fill-2: rgba(118, 118, 128, .16);
  --border: rgba(84, 84, 88, .55);
  --text: #f5f5f7;
  --text-2: #d1d1d6;
  --muted: #8e8e93;
  --primary: #0a84ff;
  --primary-2: #409cff;
  --primary-soft: #0b2a4a;
  --on-primary: #ffffff;
  --success: #30d158;
  --success-soft: #0f2a17;
  --danger: #ff453a;
  --danger-soft: #331311;
  --warning: #ff9f0a;
  --warning-soft: #33230a;
  --info: #64d2ff;
  --info-soft: #0b2633;
  --glass: rgba(18, 18, 22, .55);
  --glass-strong: rgba(40, 40, 46, .72);
  --seg-on: #636366;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: rgba(38,38,44,.55); --surface-2: rgba(50,50,56,.45); --surface-3: rgba(60,60,66,.6); --edge: rgba(255,255,255,.09); --edge-hi: rgba(255,255,255,.12); --blob-a: rgba(10,132,255,.32); --blob-b: rgba(191,90,242,.26); --blob-c: rgba(48,209,88,.18); --blob-d: rgba(255,159,10,.14); --fill: rgba(118,118,128,.24); --fill-2: rgba(118,118,128,.16); --border: rgba(84,84,88,.55);
    --text: #f5f5f7; --text-2: #d1d1d6; --muted: #8e8e93; --primary: #0a84ff; --primary-2: #409cff; --primary-soft: #0b2a4a; --on-primary: #ffffff;
    --success: #30d158; --success-soft: #0f2a17; --danger: #ff453a; --danger-soft: #331311; --warning: #ff9f0a; --warning-soft: #33230a; --info: #64d2ff; --info-soft: #0b2633;
    --glass: rgba(18,18,22,.55); --glass-strong: rgba(40,40,46,.72); --seg-on: #636366;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35); --shadow-lg: 0 24px 64px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
/* Latar warna lembut di belakang semua lapisan kaca */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40vmax 40vmax at 0% 0%, var(--blob-a), transparent 70%), radial-gradient(38vmax 38vmax at 100% 8%, var(--blob-b), transparent 70%),
    radial-gradient(42vmax 42vmax at 8% 100%, var(--blob-c), transparent 70%), radial-gradient(36vmax 36vmax at 100% 100%, var(--blob-d), transparent 70%); }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.47; letter-spacing: -.008em; color: var(--text); background: transparent; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--primary); text-decoration: none; }
@media (hover: hover) { a:hover { text-decoration: underline; } }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.022em; }
h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 600; letter-spacing: -.012em; }
p { margin: 0; }
svg.i { width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: 13px; }
.pos { color: var(--success); }
.neg { color: var(--danger); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--fill); border-top-color: var(--muted); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--primary) 25%, transparent); }

/* ============ Buttons & forms ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--fill); color: var(--primary); font: inherit; font-weight: 600; letter-spacing: -.01em; cursor: pointer; white-space: nowrap; transition: background .2s, opacity .2s, transform .2s var(--ease); text-decoration: none !important; }
@media (hover: hover) { .btn:hover { background: color-mix(in srgb, var(--fill) 100%, var(--text) 6%); } }
.btn:active { transform: scale(.96); opacity: .8; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 28%, transparent); }
@media (hover: hover) { .btn-primary:hover { background: var(--primary-2); } }
.btn-danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
@media (hover: hover) { .btn-danger:hover { background: color-mix(in srgb, var(--danger) 18%, transparent); } }
.btn-ghost { background: transparent; color: var(--primary); }
@media (hover: hover) { .btn-ghost:hover { background: var(--fill-2); } }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13.5px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16.5px; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; padding: 0; }
.btn-sm.icon-btn { width: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 500; font-size: 13px; color: var(--muted); padding-left: 4px; }
.field .hint { font-size: 12.5px; color: var(--muted); padding-left: 4px; }
.field .err { font-size: 12.5px; color: var(--danger); padding-left: 4px; }
.input, select.input, textarea.input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--fill); color: var(--text); font: inherit; transition: background .2s, border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
select.input { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.input[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .prefix { position: absolute; left: 14px; color: var(--muted); pointer-events: none; font-weight: 500; }
.input-group .input { padding-left: 40px; }
.input-group svg.i { position: absolute; left: 13px; color: var(--muted); pointer-events: none; width: 17px; height: 17px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-2:has(> label.check) { row-gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
/* Kotak centang tampil sebagai sakelar iOS */
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 450; }
.check input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 46px; height: 28px; margin: 0; border-radius: 999px; background: var(--fill); cursor: pointer; transition: background .25s var(--ease); }
.check input[type="checkbox"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .25s var(--ease); }
.check input[type="checkbox"]:checked { background: #34c759; }
.check input[type="checkbox"]:checked::after { transform: translateX(18px); }
.check input[type="checkbox"]:disabled { opacity: .45; }
.check.small input[type="checkbox"] { width: 40px; height: 24px; }
.check.small input[type="checkbox"]::after { width: 20px; height: 20px; }
.check.small input[type="checkbox"]:checked::after { transform: translateX(16px); }
input[type="radio"] { accent-color: var(--primary); }
/* Segmented control */
.seg { display: inline-flex; max-width: 100%; background: var(--fill); border-radius: 10px; padding: 2px; gap: 0; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; white-space: nowrap; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 500; font-size: 13.5px; padding: 6px 14px; border-radius: 8px; cursor: pointer; transition: background .2s var(--ease), box-shadow .2s; }
.seg button.on { background: var(--seg-on); font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }

/* ============ Cards, badges, tables ============ */
.card { background: var(--surface); border: .5px solid var(--edge); border-radius: var(--radius); box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; flex-wrap: wrap; }
.card-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-body { padding: 14px 20px 20px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--fill); color: var(--text-2); white-space: nowrap; }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.warning { background: var(--warning-soft); color: var(--warning); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.primary { background: var(--primary-soft); color: var(--primary); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 500; padding: 10px 16px 8px; border-bottom: .5px solid var(--border); background: transparent; white-space: nowrap; }
table.t td { padding: 13px 16px; border-bottom: .5px solid var(--border); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .15s; }
@media (hover: hover) { table.t tbody tr:hover { background: var(--fill-2); } }
table.t .actions { display: flex; gap: 4px; justify-content: flex-end; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty svg.i { width: 44px; height: 44px; stroke-width: 1.4; margin-bottom: 10px; color: var(--muted); opacity: .7; }
.empty h3 { color: var(--text); margin-bottom: 4px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: .5px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #a2a2a8, #85858b); color: #fff; font-weight: 600; flex: none; }
.avatar svg.i { width: 18px; height: 18px; }
.progress { height: 6px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--primary); transition: width .5s var(--ease); }
.progress.success > span { background: #34c759; }
.progress.warning > span { background: #ff9500; }
.progress.danger > span { background: var(--danger); }
.skeleton { background: linear-gradient(90deg, var(--fill), var(--fill-2), var(--fill)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ============ App shell ============ */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--glass); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border-right: .5px solid var(--border); display: flex; flex-direction: column; padding: 18px 12px; gap: 2px; z-index: 40; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); padding: 4px 10px 14px; letter-spacing: -.03em; text-decoration: none !important; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.biz-switch { display: flex; align-items: center; gap: 10px; padding: 10px; border: .5px solid var(--edge); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); margin-bottom: 10px; cursor: pointer; width: 100%; font: inherit; color: inherit; text-align: left; transition: transform .2s var(--ease); }
.biz-switch:active { transform: scale(.98); }
.biz-switch .avatar { border-radius: 10px; background: var(--grad-1); }
.biz-switch .meta { min-width: 0; flex: 1; }
.biz-switch .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-switch > svg.i { color: var(--muted); width: 16px; height: 16px; }
.nav-label { font-size: 13px; color: var(--muted); font-weight: 600; padding: 16px 10px 6px; letter-spacing: -.005em; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; color: var(--text); font-weight: 450; text-decoration: none; position: relative; transition: background .15s; }
.nav a svg.i { color: var(--primary); }
@media (hover: hover) { .nav a:hover { background: var(--fill-2); } }
.nav a.active { background: var(--primary); color: #fff; font-weight: 600; }
.nav a.active svg.i { color: #fff; }
.nav a .lock { margin-left: auto; width: 14px; height: 14px; color: var(--muted) !important; }
.nav a.active .lock { color: rgba(255, 255, 255, .8) !important; }
.nav a .count { margin-left: auto; font-size: 11.5px; background: var(--danger); color: #fff; border-radius: 99px; padding: 0 7px; font-weight: 600; line-height: 19px; }
.sidebar-foot { margin-top: auto; padding-top: 14px; }
.upgrade-box { background: var(--grad-1); color: #fff; border-radius: 18px; padding: 16px; margin-bottom: 10px; box-shadow: 0 10px 30px rgba(10, 108, 255, .28); }
.upgrade-box p { opacity: .88; font-size: 12.5px; margin: 4px 0 12px; }
.upgrade-box .btn { background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(10px); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 8px; padding: 0 28px; border-bottom: .5px solid var(--border); isolation: isolate; }
/* Kaca dipasang di lapisan semu agar menu di dalam bilah atas tetap bisa memburamkan isi di belakangnya */
.topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glass); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); }
.topbar .grow { flex: 1; }
.topbar .btn-ghost { color: var(--text-2); }
.menu-btn { display: none; }
.content { padding: 26px 28px 56px; max-width: 1400px; width: 100%; margin: 0 auto; animation: page-in .35s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 32px; font-weight: 700; letter-spacing: -.028em; }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-head .tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 0; background: var(--fill-2); cursor: pointer; font: inherit; color: inherit; transition: background .15s; }
@media (hover: hover) { .user-chip:hover { background: var(--fill); } }
.user-chip .avatar { width: 32px; height: 32px; font-size: 13px; background: var(--grad-1); }
.user-chip .who { text-align: left; line-height: 1.2; }
.user-chip .who strong { font-weight: 600; font-size: 13.5px; }
.user-chip .who small { color: var(--muted); font-size: 11.5px; }
.user-chip > svg.i { color: var(--muted); width: 15px; height: 15px; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 5px; font-size: 10.5px; font-weight: 600; border-radius: 99px; background: var(--danger); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
/* Menu konteks (kaca buram) */
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: var(--glass-strong); box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow-lg); backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px); border: .5px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); min-width: 240px; z-index: 60; overflow: hidden; animation: menu-in .22s var(--ease); transform-origin: top right; }
@keyframes menu-in { from { opacity: 0; transform: scale(.92); } }
.dropdown a, .dropdown button.dd-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 16px; color: var(--text); border: 0; border-bottom: .5px solid var(--border); background: none; font: inherit; cursor: pointer; text-align: left; text-decoration: none; }
.dropdown a:last-child, .dropdown button.dd-item:last-child { border-bottom: 0; }
@media (hover: hover) { .dropdown a:hover, .dropdown button.dd-item:hover { background: var(--fill-2); } }
.notif-panel { width: min(380px, calc(100vw - 24px)); max-height: 480px; overflow-y: auto; }
.notif { display: flex; gap: 12px; padding: 12px 16px; border-bottom: .5px solid var(--border); cursor: pointer; }
@media (hover: hover) { .notif:hover { background: var(--fill-2); } }
.notif.unread { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.notif .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.backdrop { display: none; }
.search-btn { color: var(--muted) !important; background: var(--fill) !important; font-weight: 400; min-width: 0; height: 36px; border-radius: 10px; padding: 0 12px; justify-content: flex-start; width: min(340px, 40vw); }
.search-btn svg.i { width: 17px; height: 17px; }
.search-btn kbd { font: inherit; font-size: 11px; border-radius: 6px; padding: 1px 6px; background: var(--surface); margin-left: auto; box-shadow: var(--shadow-sm); }
.palette { max-height: 380px; overflow-y: auto; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none !important; }
.pal-item svg.i { color: var(--primary); }
@media (hover: hover) { .pal-item.on, .pal-item:hover { background: var(--fill-2); } }
.pal-item.on { background: var(--primary); color: #fff; }
.pal-item.on svg.i, .pal-item.on .muted { color: rgba(255, 255, 255, .85); }
/* Tab bar bawah (HP) */
.tabbar { display: none; }

/* ============ Dashboard ============ */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { border-radius: 22px; padding: 18px; color: #fff; position: relative; overflow: hidden; min-height: 134px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--shadow); border: .5px solid rgba(255, 255, 255, .25); isolation: isolate; backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }
.kpi::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .28), transparent 55%); z-index: -1; }
.kpi .lbl { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13px; opacity: .95; }
.kpi .lbl span.ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.kpi .val { font-size: 26px; font-weight: 700; margin: 12px 0 4px; letter-spacing: -.03em; }
.kpi .chg { font-size: 12px; font-weight: 600; opacity: .95; display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .2); padding: 2px 9px; border-radius: 99px; }
.kpi.k1 { background: var(--grad-1); } .kpi.k2 { background: var(--grad-3); } .kpi.k3 { background: var(--grad-2); } .kpi.k4 { background: var(--grad-4); }
.stat { padding: 16px 18px; }
.stat .lbl { color: var(--muted); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.stat .val { font-size: 22px; font-weight: 700; margin-top: 6px; letter-spacing: -.025em; }
.stat .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.dash-grid > *, .gap-20 > *, .stats > *, .kpis > * { min-width: 0; }
.chart-box { position: relative; height: 300px; }
.chart-box.sm { height: 220px; }
.akses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; }
@media (min-width: 420px) { .akses { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.akses a { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 4px; border-radius: 14px; color: var(--text); font-size: 12px; font-weight: 500; text-align: center; text-decoration: none; transition: transform .2s var(--ease); }
@media (hover: hover) { .akses a:hover { background: var(--fill-2); } }
.akses a:active { transform: scale(.92); }
/* Ikon ala aplikasi iOS (squircle + kilau) */
.akses a span { position: relative; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); overflow: hidden; }
.akses a span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .25), transparent 50%); }
.akses a span svg.i { width: 24px; height: 24px; stroke-width: 2; }
.insight { display: flex; gap: 12px; padding: 14px; border-radius: 14px; border: 0; background: var(--fill-2); margin-bottom: 10px; }
.insight .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.insight.positive .ic { background: var(--success-soft); color: var(--success); }
.insight.warning .ic { background: var(--warning-soft); color: var(--warning); }
.insight.danger .ic { background: var(--danger-soft); color: var(--danger); }
.insight.info .ic { background: var(--info-soft); color: var(--info); }
.welcome { background: var(--grad-1); color: #fff; border-radius: 22px; padding: 24px 26px; display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 14px 40px rgba(10, 108, 255, .22); }
.welcome::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, .25), transparent 60%); z-index: -1; }
.welcome h1, .welcome h2 { letter-spacing: -.03em; }
.welcome p { opacity: .88; margin-top: 4px; }
.welcome .target { min-width: 240px; }
.welcome .progress { background: rgba(255, 255, 255, .25); }
.welcome .progress > span { background: #fff; }

/* ============ POS ============ */
.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.pos-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pos-item { text-align: left; border: .5px solid var(--edge); background: var(--surface); border-radius: 16px; padding: 14px; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 6px; transition: transform .2s var(--ease), box-shadow .2s; min-height: 112px; box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow-sm); }
@media (hover: hover) { .pos-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); } }
.pos-item:active { transform: scale(.96); }
.pos-item:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.pos-item .pi-name { font-weight: 600; line-height: 1.3; }
.pos-item .pi-price { font-weight: 700; color: var(--primary); margin-top: auto; letter-spacing: -.015em; }
.pos-cart { position: sticky; top: 80px; }
.pos-cartbar { display: none; }
@media (max-width: 1180px) {
  .pos-cartbar:not([hidden]) { display: flex; align-items: center; gap: 10px; position: fixed; z-index: 44; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 520px; margin: 0 auto; padding: 12px 16px; border: 0; border-radius: 18px; background: var(--primary); color: var(--on-primary); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 40%, transparent); animation: cartbar-in .35s var(--ease); }
  .pos-cartbar .cb-total { margin-left: auto; font-weight: 750; }
  .pos-cartbar .cb-go { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--on-primary) 18%, transparent); font-size: 13.5px; }
  .pos-cartbar:active { transform: scale(.97); }
}
@media (max-width: 960px) { .pos-cartbar:not([hidden]) { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@keyframes cartbar-in { from { opacity: 0; transform: translateY(16px); } }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 11px 0; border-bottom: .5px solid var(--border); }
/* Stepper ala iOS */
.qty { display: inline-flex; align-items: center; background: var(--fill); border-radius: 9px; overflow: hidden; }
.qty button { width: 32px; height: 30px; border: 0; background: transparent; color: var(--text); cursor: pointer; font-size: 18px; font-weight: 400; }
.qty button:active { background: var(--fill); }
.qty input { width: 46px; height: 30px; border: 0; border-left: .5px solid var(--border); border-right: .5px solid var(--border); text-align: center; background: transparent; color: var(--text); font: inherit; font-weight: 600; }
.sum-row { display: flex; justify-content: space-between; padding: 4px 0; }
.sum-row.total { font-size: 20px; font-weight: 700; letter-spacing: -.02em; padding-top: 12px; border-top: .5px solid var(--border); margin-top: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 0; background: var(--fill); color: var(--text); border-radius: 99px; padding: 6px 14px; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--primary); color: var(--on-primary); font-weight: 600; }
.receipt { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; font-size: 12.5px; max-width: 320px; margin: 0 auto; background: #fff; color: #111; padding: 18px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.receipt .c { text-align: center; }
.receipt .row { display: flex; justify-content: space-between; gap: 8px; }
.receipt hr { border: 0; border-top: 1px dashed #999; margin: 8px 0; }

/* ============ Modal (sheet) & toast ============ */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .3); display: grid; place-items: center; padding: 16px; z-index: 100; animation: fade .25s; }
.modal { background: var(--glass-strong); backdrop-filter: saturate(180%) blur(40px); -webkit-backdrop-filter: saturate(180%) blur(40px); border-radius: 22px; box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow-lg); width: 100%; max-width: 520px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; animation: pop .35s var(--ease); border: .5px solid var(--edge); overflow: hidden; }
.modal.lg { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 22px; border-bottom: 0; }
.modal-head h2 { font-size: 18px; font-weight: 650; }
.modal-head [data-close] { width: 30px; height: 30px; background: var(--fill); color: var(--muted); }
.modal-head [data-close] svg.i { width: 15px; height: 15px; stroke-width: 2.6; }
.modal-body { padding: 6px 22px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: .5px solid var(--border); background: transparent; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
@keyframes sheet { from { transform: translateY(100%); } }
/* Notifikasi melayang di atas (gaya banner iOS) */
#toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 200; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--glass-strong); backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px); color: var(--text); padding: 12px 18px; border-radius: 999px; border: .5px solid var(--border); box-shadow: var(--shadow-lg); font-weight: 500; max-width: 440px; animation: toast-in .45s var(--ease); }
.toast svg.i { color: var(--primary); }
.toast.error svg.i { color: var(--danger); }
.toast.success svg.i { color: #34c759; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-24px) scale(.9); } }

/* ============ Public pages ============ */
.pub-nav { position: sticky; top: 0; z-index: 30; background: var(--glass); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border-bottom: .5px solid var(--border); }
.pub-nav .in { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 24px; }
.pub-nav .links { display: flex; gap: 24px; margin-left: 12px; }
.pub-nav .links a { color: var(--text-2); font-weight: 450; font-size: 14px; }
@media (hover: hover) { .pub-nav .links a:hover { color: var(--text); text-decoration: none; } }
.pub-nav .grow { flex: 1; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.hero { padding-top: 80px; padding-bottom: 48px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #0a84ff, #5e5ce6 50%, #30d158); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--text-2); margin: 20px 0 30px; max-width: 540px; letter-spacing: -.012em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .trust { display: flex; gap: 18px; margin-top: 26px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.hero .trust span { display: inline-flex; gap: 6px; align-items: center; }
.hero .trust svg.i { color: #34c759; }
.mock { background: var(--surface); border: .5px solid var(--edge); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); border-radius: 30px; box-shadow: var(--shadow-lg); padding: 16px; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.mock .kpis { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.mock .kpi { min-height: 92px; padding: 14px; border-radius: 18px; }
.mock .kpi .val { font-size: 19px; }
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.section-head p { color: var(--text-2); margin-top: 12px; font-size: 17px; }
.section-head h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 700; letter-spacing: -.035em; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--primary); background: none; padding: 0; margin-bottom: 10px; letter-spacing: -.005em; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; transition: transform .3s var(--ease), box-shadow .3s; }
@media (hover: hover) { .feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }
.feature .ic { position: relative; overflow: hidden; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.feature .ic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .25), transparent 50%); }
.feature p { color: var(--text-2); margin-top: 6px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { padding: 26px; display: flex; flex-direction: column; position: relative; border-radius: 22px; }
.plan.popular { box-shadow: 0 0 0 2px var(--primary), var(--shadow-lg); }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.plan .price { font-size: 34px; font-weight: 700; letter-spacing: -.04em; margin: 12px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); }
.plan li svg.i { color: #34c759; width: 17px; height: 17px; margin-top: 2px; stroke-width: 2.4; }
.plan li.off { color: var(--muted); text-decoration: line-through; }
.plan li.off svg.i { color: var(--muted); }
.compare td, .compare th { text-align: center; }
.compare td:first-child, .compare th:first-child { text-align: left; }
.faq details { border-bottom: .5px solid var(--border); padding: 18px 0; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; font-weight: 300; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin-top: 8px; }
.footer { border-top: .5px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 13px; }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--grad-1); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; isolation: isolate; }
.auth-side::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 100% 0%, rgba(255, 255, 255, .25), transparent 60%), radial-gradient(70% 50% at 0% 100%, rgba(48, 209, 88, .35), transparent 60%); z-index: -1; }
.auth-side h2 { font-size: 34px; font-weight: 700; letter-spacing: -.035em; }
.auth-side ul { padding-left: 18px; opacity: .95; line-height: 2; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; }
.auth-form .box { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 34px; letter-spacing: -.035em; }
.pw-meter { display: flex; gap: 4px; margin-top: 6px; }
.pw-meter span { flex: 1; height: 4px; border-radius: 4px; background: var(--fill); }
.pay-page { max-width: 480px; margin: 40px auto; padding: 0 16px; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: .5px solid var(--edge); background: var(--surface); border-radius: 14px; cursor: pointer; margin-bottom: 8px; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.pay-method.on { box-shadow: 0 0 0 2px var(--primary); background: var(--primary-soft); }
/* Tab halaman tampil sebagai segmented control */
.tabs { display: flex; width: fit-content; max-width: 100%; gap: 0; background: var(--fill); border-radius: 10px; padding: 2px; border-bottom: 0; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 6px 16px; color: var(--text); font-weight: 500; font-size: 13.5px; border-radius: 8px; border-bottom: 0; white-space: nowrap; text-decoration: none !important; transition: background .2s var(--ease); }
.tabs a.on { color: var(--text); font-weight: 600; background: var(--seg-on); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
.out-box { white-space: pre-wrap; background: var(--fill-2); border: 0; border-radius: 14px; padding: 16px; font-size: 14.5px; line-height: 1.65; }
.score { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 700; letter-spacing: -.03em; flex: none; }
.lock-card { text-align: center; padding: 52px 24px; }
.lock-card .ic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--grad-1); color: #fff; box-shadow: 0 8px 20px rgba(10, 108, 255, .25); }
.lock-card .ic svg.i { width: 26px; height: 26px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.gap-20 { display: grid; gap: 20px; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .kpis, .stats { grid-template-columns: repeat(2, 1fr); }
  .pos-layout { grid-template-columns: 1fr; }
  .pos-cart { position: static; }
  .dash-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(86vw, 300px); transform: translateX(-100%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg); background: var(--glass-strong); backdrop-filter: saturate(180%) blur(40px); -webkit-backdrop-filter: saturate(180%) blur(40px); padding-top: max(18px, env(safe-area-inset-top)); }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 35; animation: fade .3s; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 12px; height: 54px; padding-top: env(safe-area-inset-top); height: calc(54px + env(safe-area-inset-top)); }
  .search-btn { width: auto; flex: 1; max-width: 340px; }
  .content { padding: 18px 16px calc(110px + env(safe-area-inset-bottom)); }
  .page-head h1 { font-size: 30px; }
  .dash-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 40px; }
  .pub-nav .in { gap: 4px; padding: 0 12px 0 16px; }
  .pub-nav .brand { margin-right: auto; }
  .mock { transform: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .pub-nav .links { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .user-chip { padding: 3px; }
  .user-chip .who, .user-chip > svg.i { display: none; }
  /* Tab bar kaca melayang */
  .tabbar { display: flex; position: fixed; box-shadow: inset 0 1px 0 var(--edge-hi), 0 10px 34px rgba(0, 0, 0, .16); z-index: 45; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; padding: 5px; gap: 2px; border-radius: 999px; background: var(--glass-strong); backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px); border: .5px solid var(--border); box-shadow: 0 10px 34px rgba(0, 0, 0, .16); }
  .tabbar a, .tabbar button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px 5px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 10.5px; font-weight: 500; color: var(--text-2); text-decoration: none !important; cursor: pointer; transition: background .25s var(--ease), color .2s, transform .2s var(--ease); }
  .tabbar a span, .tabbar button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tabbar svg.i { width: 23px; height: 23px; }
  .tabbar .on { color: var(--primary); background: var(--fill-2); font-weight: 600; }
  .tabbar a:active, .tabbar button:active { transform: scale(.92); }
  .shell.nav-open .tabbar { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .kpis, .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { min-height: 112px; padding: 14px; border-radius: 20px; }
  .kpi .val { font-size: 19px; }
  .stat .val { font-size: 18px; }
  .features, .plans { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
  .page-head h1 { font-size: 30px; }
  .chart-box { height: 240px; }
  .card-pad { padding: 16px; }
  .card-head { padding: 16px 16px 0; }
  .card-body { padding: 12px 16px 16px; }
  /* Modal jadi sheet dari bawah */
  .modal-bg { place-items: end center; padding: 0; }
  .modal, .modal.lg { max-width: none; border-radius: 22px 22px 0 0; max-height: calc(100vh - 44px); max-height: calc(100dvh - 24px); animation: sheet .45s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
  .modal::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 99px; background: var(--fill); margin: 8px auto 0; flex: none; }
  .modal-head { padding-top: 8px; }
  .modal-foot .btn { flex: 1; }
  .pos-products { grid-template-columns: repeat(2, 1fr); }
  .hide-sm { display: none; }
  .search-btn { width: 40px; flex: none; padding: 0; justify-content: center; border-radius: 999px; }
}
/* Bila pengguna mematikan efek transparan di sistemnya, pakai warna padat */
@media (prefers-reduced-transparency: reduce) {
  :root { --surface: #ffffff; --surface-2: #f6f6f9; --glass: #f9f9fb; --glass-strong: #ffffff; }
  :root[data-theme="dark"] { --surface: #1c1c1e; --surface-2: #232325; --glass: #161618; --glass-strong: #2c2c2e; }
  body::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Cetak / simpan PDF: kertas putih, tulisan hitam, hanya bagian yang dicetak */
@media print {
  /* Saat mencetak, Chrome menggambar ulang halaman dan animasi muncul (popup fade-in) mulai dari transparan:
     tanpa ini popup & nota tercetak kosong. Matikan semua animasi dan paksa tampil penuh. */
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .modal-bg, .modal, .modal-body, .print-area, .print-area * { opacity: 1 !important; }
  /* Yang dicetak ada di popup: isi aplikasi di belakangnya tidak ikut memakan halaman (tanpa halaman kosong tambahan). */
  body:has(#modal-root .print-area) #app, body:has(#modal-root .print-area) .tabbar, body:has(#modal-root .print-area) .offline-pill { display: none !important; }
  html, body { height: auto !important; min-height: 0 !important; overflow: visible !important; }
  :root, html, body { background: #fff !important; color: #000 !important; color-scheme: light; }
  body * { visibility: hidden !important; }
  .print-area, .print-area * { visibility: visible !important; color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-area { position: absolute !important; left: 0; top: 0; width: 100%; background: #fff !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; border: 0 !important; }
  .modal-bg, .modal, .modal-body, .modal-head, .modal-foot { position: static !important; transform: none !important; background: #fff !important; box-shadow: none !important; border: 0 !important; max-height: none !important; overflow: visible !important; backdrop-filter: none !important; }
  .modal-head, .modal-foot, .modal-bg .modal-head, .modal-bg .modal-foot { display: none !important; }
  .print-area .receipt, .print-area .receipt * { color: #000 !important; }
  .print-area .muted, .print-area .small { color: #333 !important; }
  .print-area .bc svg, .print-area svg.bc { display: block; }
  /* Yang memang berwarna tetap berwarna: kartu member, poster QR, harga promo di label rak */
  .print-area .member-card, .print-area .member-card * { color: #fff !important; }
  .print-area .member-card .mc-bc, .print-area .member-card .mc-bc * { color: #000 !important; }
  .print-area .poster-in .pt-top { color: #fff !important; }
  .print-area .poster-in p { color: #444 !important; }
  .print-area .ship-label .sl-head, .print-area .ship-label .sl-head * { color: #fff !important; }
  .print-area .ship-label .sl-k, .print-area .ship-label .sl-items th { color: #444 !important; }
  .print-area .shelf-tag.promo .st-price, .print-area .shelf-tag .st-promo { color: #d70015 !important; }
  .print-area .shelf-tag .st-old, .print-area .shelf-tag .st-foot { color: #555 !important; }
}

/* Tombol lihat password */
.pw-group .input { padding-left: 14px; padding-right: 46px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 50%; cursor: pointer; }
@media (hover: hover) { .pw-toggle:hover, .pw-toggle.on { color: var(--primary); } }
.pw-toggle svg.i { position: static; }

/* Pemilih bahasa */
.lang-list { display: grid; gap: 0; max-height: min(60vh, 460px); overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.lang-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: start; padding: 11px 12px; border: 0; border-bottom: .5px solid var(--border); border-radius: 0; background: none; color: var(--text); font: inherit; cursor: pointer; }
@media (hover: hover) { .lang-item:hover, .lang-item:focus-visible { background: var(--fill-2); } }
.lang-item.on { background: none; color: var(--primary); font-weight: 600; }
.lang-item small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.lang-item .code { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.lang-item:disabled { opacity: .6; cursor: wait; }
.lang-picker .input-group .input { padding-left: 40px; }

/* Mode sembunyikan angka: omzet, laba, saldo & grafik dikaburkan (arahkan kursor / ketuk untuk mengintip) */
.privacy .kpi .val, .privacy .kpi .chg, .privacy .stat .val, .privacy .stat .sub, .privacy .welcome .target, .privacy .chart-box,
.privacy .content .card table.t td.num, .privacy .sum-row .num { filter: blur(8px); transition: filter .25s var(--ease); }
.privacy .kpi:hover .val, .privacy .kpi:hover .chg, .privacy .stat:hover .val, .privacy .stat:hover .sub, .privacy .welcome .target:hover,
@media (hover: hover) { .privacy .chart-box:hover, .privacy table.t tr:hover td.num, .privacy .sum-row:hover .num { filter: none; } }
.privacy .pos-layout .num, .privacy .pos-layout .sum-row .num, .privacy .pos-layout td.num { filter: none; }
[data-privacy] svg.i { transition: transform .25s var(--ease); }
:root.privacy [data-privacy] { color: var(--primary) !important; }

/* Panduan pasang aplikasi */
.install-steps { display: grid; gap: 14px; }
.install-step { display: flex; gap: 12px; align-items: center; }
.install-step span { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 600; }
.install-step svg.i { vertical-align: -4px; color: var(--primary); }

/* ============ Proyek & RAB ============ */
.back-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; margin-bottom: 6px; }
.back-link svg.i { transform: rotate(90deg); width: 17px; height: 17px; }
.assist { display: flex; gap: 14px; padding: 18px; align-items: flex-start; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), color-mix(in srgb, #af52de 10%, var(--surface))); }
.assist-ic { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, #5e5ce6, #af52de); box-shadow: 0 6px 16px rgba(94, 92, 230, .3); }
.assist-body { flex: 1; min-width: 0; }
.assist-form { display: flex; gap: 8px; margin-top: 10px; }
.assist-form .input { background: var(--surface); }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.proj-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; color: inherit; text-decoration: none !important; transition: transform .25s var(--ease), box-shadow .25s; }
@media (hover: hover) { .proj-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }
.proj-card:active { transform: scale(.98); }
.pc-name { font-weight: 650; font-size: 16px; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-progress .progress { position: relative; margin-top: 6px; height: 8px; overflow: visible; }
.pc-progress .progress > span { border-radius: 99px; }
.plan-mark { position: absolute; top: -3px; width: 2px; height: 14px; border-radius: 2px; background: var(--text); opacity: .55; transform: translateX(-1px); }
.pc-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--fill-2); }
.pc-nums span { display: block; font-size: 11.5px; color: var(--muted); }
.pc-nums strong { font-size: 15px; letter-spacing: -.02em; }
.tpl-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tpl-chips .chip { display: inline-flex; align-items: center; gap: 6px; }
.tpl-chips svg.i { width: 16px; height: 16px; color: var(--primary); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tpl { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; border: .5px solid var(--edge); border-radius: 14px; background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.tpl span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 4px; }
.tpl strong { font-size: 13.5px; line-height: 1.25; }
.tpl small { color: var(--muted); font-size: 11.5px; }
.tpl:active { transform: scale(.97); }
.tpl.on { box-shadow: 0 0 0 2px var(--primary); background: var(--primary-soft); }
.tpl.on span { background: var(--primary); color: #fff; }
details.adv { margin-top: 4px; }
details.adv summary { cursor: pointer; color: var(--primary); font-weight: 500; font-size: 14px; }
select.input.status-pick { width: auto; height: 40px; border-radius: 999px; font-weight: 600; padding-left: 16px; }
.status-pick.st-berjalan { color: var(--primary); background-color: var(--primary-soft); }
.status-pick.st-selesai { color: var(--success); background-color: var(--success-soft); }
.status-pick.st-penawaran { color: var(--info); background-color: var(--info-soft); }
.status-pick.st-batal { color: var(--danger); background-color: var(--danger-soft); }
.tabs a { display: inline-flex; align-items: center; gap: 6px; }
.tabs a svg.i { width: 16px; height: 16px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: .5px solid var(--border); }
.kv:last-child { border-bottom: 0; }
.kv > span { color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kv.total { border-bottom: 0; border-top: .5px solid var(--border); margin-top: 4px; padding-top: 12px; font-size: 18px; }
.kv.total > span { color: var(--text); font-weight: 600; }
.kv.total strong { font-size: 22px; letter-spacing: -.025em; }
.health .gauge { display: flex; gap: 14px; align-items: center; padding: 8px 0 14px; }
.ring { --v: 0; --c: var(--primary); position: relative; width: 64px; height: 64px; flex: none; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--v) * 360deg), var(--fill) 0); display: grid; place-items: center; }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; font-weight: 700; font-size: 14px; letter-spacing: -.02em; }
.ring.good { --c: #34c759; } .ring.mid { --c: #ff9500; } .ring.bad { --c: #ff3b30; }
.ring.big { width: 110px; height: 110px; }
.ring.big::before { inset: 11px; }
.ring.big span { font-size: 26px; }
.cat-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 4px 10px; align-items: center; margin-bottom: 12px; }
.cat-row .progress { grid-column: 2 / 4; height: 5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.rab-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
/* Dasar harga & AHSP proyek (di atas RAB) */
.rab-basis { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 16px; }
.basis-item { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.basis-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); text-transform: uppercase; }
.basis-mini { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 12px; border-radius: 12px; background: var(--fill-2); font-size: 13.5px; }
.basis-mini span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.cell-missing { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warning) 60%, transparent); background: color-mix(in srgb, var(--warning) 8%, transparent) !important; }
/* Rekap kurva S per minggu: tetap tabel (geser samping) di HP, minggu berjalan disorot */
.week-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.week-table table.t { min-width: max-content; }
.week-table td, .week-table th { padding: 8px 10px; font-size: 12.5px; white-space: nowrap; }
.week-table td:first-child, .week-table th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card, var(--glass-strong)); }
.week-table .cur-week { background: color-mix(in srgb, var(--primary) 12%, transparent); }
/* Pemilih AHSP: daftar pekerjaan standar per bagian, centang + isi volume */
.ahsp-list { max-height: min(60vh, 560px); overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.ahsp-group { position: sticky; top: 0; z-index: 1; padding: 10px 4px 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); background: var(--glass-strong, var(--card)); }
.ahsp-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; border: .5px solid transparent; }
.ahsp-row + .ahsp-row { margin-top: 2px; }
.ahsp-row:hover { background: var(--fill-2); }
.ahsp-row.on { background: color-mix(in srgb, var(--primary) 9%, transparent); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.ahsp-name { font-weight: 600; line-height: 1.35; }
.ahsp-price { text-align: right; font-weight: 700; white-space: nowrap; }
.ahsp-vol { display: flex; align-items: center; gap: 4px; }
.ahsp-vol .input { width: 86px; padding: 6px 8px; text-align: right; }
@media (max-width: 560px) {
  .ahsp-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ahsp-price { grid-column: 2; text-align: left; }
  .ahsp-vol { grid-column: 2 / -1; }
  .ahsp-row > [data-detail] { grid-row: 1; grid-column: 3; }
}
.save-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.save-state svg.i { width: 15px; height: 15px; color: #34c759; }
.save-state.busy svg.i { color: var(--muted); animation: spin 1s linear infinite; }
.save-state.err { color: var(--danger); }
.save-state.err svg.i { color: var(--danger); }
.rab-sec { margin-bottom: 16px; overflow: hidden; }
.rab-sec-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.sec-letter { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; }
.rab-sec-head .sec-name { flex: 1; font-weight: 650; font-size: 16px; }
.rab-sec-head > strong { font-size: 15px; white-space: nowrap; }
table.t.rab th { padding: 8px 6px; }
table.t.rab td { padding: 4px 6px; }
table.t.rab td:first-child, table.t.rab th:first-child { padding-left: 16px; }
.cell { width: 100%; min-width: 0; height: 34px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 14px; transition: background .15s, border-color .15s; -webkit-appearance: none; appearance: none; }
select.cell { padding-right: 4px; cursor: pointer; }
@media (hover: hover) { .cell:hover:not([readonly]):not(:disabled) { background: var(--fill-2); } }
.cell:focus { outline: none; background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.cell.r { text-align: right; font-variant-numeric: tabular-nums; }
.cell[readonly] { color: var(--text-2); cursor: default; }
.cell.pct { width: 70px; height: 30px; text-align: right; background: var(--fill); }
.strong { font-weight: 600; }
.badge.tiny { font-size: 10.5px; padding: 0 6px; margin-left: 8px; }
.add-row { margin: 4px 10px 10px; }
.rab-sum { max-width: 620px; margin-left: auto; }
.rab-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--fill-2); font-size: 13px; color: var(--text-2); }
table.t tr.sec-row td { background: var(--fill-2); font-weight: 600; font-size: 13px; padding-top: 8px; padding-bottom: 8px; }
.term-list { padding: 4px 12px 12px; }
.term { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: .5px solid var(--border); flex-wrap: wrap; }
.term:last-child { border-bottom: 0; }
.term-no { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--fill); font-weight: 600; font-size: 13px; }
.term-no svg.i { width: 16px; height: 16px; }
.term.paid .term-no { background: #34c759; color: #fff; }
.term.late .term-no { background: var(--danger); color: #fff; }
.term-main { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.term.late .term-main .muted { color: var(--danger); }
.term > strong { font-size: 16px; letter-spacing: -.02em; }
.pct-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.pct-chips .chip { padding: 2px 10px; font-size: 12px; }
.progress-hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.progress-hero h3 { font-size: 20px; }
.prog-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 260px) 46px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: .5px solid var(--border); }
.prog-row:last-child { border-bottom: 0; }
.prog-name { display: flex; flex-direction: column; min-width: 0; }
.prog-name strong { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Slider ala iOS */
input[type="range"] { --v: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--primary) var(--v), var(--fill) var(--v)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .18), 0 0 0 .5px rgba(0, 0, 0, .06); transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .18); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
input[type="range"]:disabled { opacity: .6; cursor: default; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px; border: 2px dashed var(--border); border-radius: 18px; text-align: center; cursor: pointer; transition: background .2s, border-color .2s; }
.drop svg.i { width: 34px; height: 34px; color: var(--primary); }
@media (hover: hover) { .drop:hover, .drop.over { background: var(--primary-soft); border-color: var(--primary); } }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 12px; }
.map-grid .field { margin-bottom: 10px; }
.import-sum { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 14px; margin: 4px 0 10px; border-radius: 12px; background: var(--primary-soft); color: var(--text); font-size: 14px; }
@media (max-width: 600px) {
  .assist { flex-direction: column; }
  .assist-form { flex-direction: column; }
  .proj-grid { grid-template-columns: 1fr; }
  .prog-row { grid-template-columns: 1fr 46px; }
  .prog-row input[type="range"] { grid-column: 1 / 3; grid-row: 2; }
  .rab-sum { max-width: none; }
  .status-pick { flex: 1; }
  .rab-sec-head { flex-wrap: wrap; }
  .rab-sec-head .sec-name { flex: 1 1 60%; }
  .tabs a svg.i { display: none; }
  .tabs a { padding: 6px 12px; }
}
table.t.rab { min-width: 860px; }
table.t.rab td:nth-child(2) { min-width: 220px; }
.privacy .pc-nums strong, .privacy .kv strong.num { filter: blur(7px); transition: filter .25s var(--ease); }
@media (hover: hover) { .privacy .proj-card:hover .pc-nums strong, .privacy .kv:hover strong.num { filter: none; } }

/* ============ Jadwal (gantt), dokumen, link klien ============ */
.badge.approved { margin: 6px 0 2px; }
.doc-menu { min-width: min(430px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: .5px solid var(--border); }
.doc-row:last-child { border-bottom: 0; }
.doc-row > svg.i { color: var(--primary); }
.doc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-txt small { color: var(--muted); font-size: 12px; }
.doc-fmts { display: flex; gap: 6px; flex: none; }
.doc-fmt { border: 0; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: transform .15s var(--ease); }
.doc-fmt:active { transform: scale(.94); }
.doc-fmt.xlsx { background: #e3f5e8; color: #1d7a3a; }
.doc-fmt.pdf { background: #ffe9e7; color: #d70015; }
.doc-fmt.docx { background: #e6efff; color: #1a56c4; }
:root[data-theme="dark"] .doc-fmt.xlsx { background: #12331d; color: #30d158; }
:root[data-theme="dark"] .doc-fmt.pdf { background: #3a1513; color: #ff6961; }
:root[data-theme="dark"] .doc-fmt.docx { background: #13254a; color: #64a0ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .doc-fmt.docx { background: #13254a; color: #64a0ff; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .doc-fmt.xlsx { background: #12331d; color: #30d158; } :root:not([data-theme="light"]) .doc-fmt.pdf { background: #3a1513; color: #ff6961; } }
.sched-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.sched-card { overflow: auto; max-height: 70vh; }
.sched { --name: 230px; --date: 128px; position: relative; width: max-content; min-width: 100%; }
.sched-row { display: grid; grid-template-columns: var(--name) var(--date) var(--date) var(--track); align-items: center; min-height: 40px; border-bottom: .5px solid var(--border); }
.sched-row > .sc-name { position: sticky; left: 0; z-index: 3; background: var(--surface-solid, var(--bg)); padding: 6px 12px; display: flex; flex-direction: column; min-width: 0; align-self: stretch; justify-content: center; }
.sched-row .sc-name strong { font-weight: 550; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched-row .sc-name small { color: var(--muted); font-size: 11.5px; }
.sc-date { padding: 0 4px; }
.sc-date .cell { font-size: 13px; height: 32px; }
.sc-track { position: relative; height: 40px; background-image: repeating-linear-gradient(90deg, transparent 0 calc(var(--ppd) * 7 - 1px), var(--border) calc(var(--ppd) * 7 - 1px) calc(var(--ppd) * 7)); }
.sched-head { position: sticky; top: 0; z-index: 5; background: var(--glass-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-size: 12px; font-weight: 600; color: var(--muted); min-height: 46px; }
.sched-head .sc-name { z-index: 6; background: transparent; }
.sched-head .sc-date { padding-left: 12px; }
.sched-head .sc-track { height: 46px; }
.sched-head .wk { position: absolute; top: 6px; text-align: center; color: var(--text-2); font-size: 12px; line-height: 1.2; }
.sched-head .wk small { display: block; color: var(--muted); font-weight: 500; font-size: 10.5px; }
.sched-sec { min-height: 30px; background: var(--fill-2); }
.sched-sec .sc-name { font-weight: 650; font-size: 13px; background: transparent; grid-column: 1 / -1; position: sticky; }
.sched-body { position: relative; }
.bar { position: absolute; top: 9px; height: 22px; border-radius: 7px; background: var(--c, var(--primary)); opacity: .9; cursor: grab; overflow: hidden; touch-action: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); transition: box-shadow .2s, opacity .2s; }
.bar i { position: absolute; inset: 0 auto 0 0; background: rgba(0, 0, 0, .25); pointer-events: none; }
@media (hover: hover) { .bar:hover { opacity: 1; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); } }
.bar.dragging { cursor: grabbing; opacity: 1; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.bar .grip { position: absolute; right: 0; top: 0; bottom: 0; width: 10px; cursor: ew-resize; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55)); }
.cat-material { --c: #007aff; } .cat-upah { --c: #34c759; } .cat-alat { --c: #ff9500; } .cat-subkon { --c: #af52de; } .cat-lainnya { --c: #8e8e93; }
.sched-curve { position: absolute; top: 0; left: calc(var(--name) + var(--date) * 2); pointer-events: none; z-index: 2; overflow: visible; }
.sched-curve .plan { fill: none; stroke: #ff3b30; stroke-width: 2; stroke-dasharray: 6 4; }
.sched-curve .act { fill: none; stroke: #34c759; stroke-width: 2.5; }
.today-line { position: absolute; top: 0; bottom: 0; margin-left: calc(var(--name) + var(--date) * 2); width: 0; border-left: 2px dashed #ff9500; z-index: 2; pointer-events: none; }
.today-line span { position: absolute; top: 2px; left: 4px; font-size: 10.5px; font-weight: 600; color: #ff9500; white-space: nowrap; }
.sched-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); align-items: center; }
.sched-legend i { display: inline-block; width: 12px; height: 8px; border-radius: 3px; background: var(--c); margin-right: 6px; vertical-align: 1px; }
.sched-legend i.curve-key { background: none; border-top: 2px dashed #ff3b30; height: 0; }
.share-link { display: flex; gap: 8px; }
.share-link .input { font-size: 13px; }
/* Halaman klien */
.cv { max-width: 760px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 40px; display: grid; gap: 16px; }
.cv-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px; font-size: 17px; }
.cv-hero { padding: 22px; display: grid; gap: 10px; }
.cv-hero h1 { font-size: 28px; letter-spacing: -.03em; }
.cv-hero .badge { justify-self: start; }
.cv-total { display: grid; gap: 2px; padding: 16px; border-radius: 16px; background: var(--grad-1); color: #fff; }
.cv-total span { opacity: .85; font-size: 13px; }
.cv-total strong { font-size: 30px; letter-spacing: -.03em; }
.cv-total small { opacity: .85; }
.cv-sec { display: grid; grid-template-columns: 1fr auto; gap: 4px; margin-top: 10px; font-size: 14px; }
.cv-sec .progress { grid-column: 1 / 3; }
.cv-group { border-bottom: .5px solid var(--border); padding: 4px 0; }
.cv-group summary { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; list-style: none; font-weight: 600; }
.cv-group summary::-webkit-details-marker { display: none; }
.cv-group summary span:nth-child(2) { flex: 1; }
.cv-item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0 8px 38px; border-top: .5px solid var(--border); }
.cv-item div { display: flex; flex-direction: column; }
.cv-item small { color: var(--muted); }
.cv-gantt { display: grid; gap: 8px; }
.cv-g-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 10px; align-items: center; font-size: 13px; }
.cv-g-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-g-track { position: relative; height: 14px; border-radius: 99px; background: var(--fill-2); }
.cv-g-track .cat-bar { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--primary); opacity: .85; overflow: hidden; }
.cv-g-track .cat-bar b { position: absolute; inset: 0 auto 0 0; background: #34c759; }
.cv-approve { display: grid; gap: 8px; box-shadow: 0 0 0 2px var(--primary), var(--shadow); }
.cv-foot { text-align: center; }
.cv-empty { margin-top: 60px; }
.insight > svg.i { color: inherit; flex: none; margin-top: 2px; }
@media (max-width: 760px) {
  .sched-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sched { --name: 150px; --date: 0px; }
  .sc-date { display: none; }
  .sched-row { grid-template-columns: var(--name) var(--track); }
  .sched-head .sc-date { display: none; }
}
:root { --surface-solid: #f8f8fb; }
:root[data-theme="dark"] { --surface-solid: #1c1c1e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --surface-solid: #1c1c1e; } }
/* .row.wrap = baris yang boleh turun; jangan ikut gaya pembungkus halaman .wrap (kecuali footer) */
.row.wrap { max-width: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.footer > .wrap.row { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.doc-menu { left: 0; right: auto; transform-origin: top left; }
@media (max-width: 600px) { .doc-menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(86px + env(safe-area-inset-bottom)); min-width: 0; max-height: 64vh; transform-origin: bottom center; } }

/* ============ Keuangan pribadi ============ */
.month-pick { display: inline-flex; align-items: center; gap: 2px; background: var(--fill); border-radius: 999px; padding: 2px; }
.month-pick strong { min-width: 130px; text-align: center; font-size: 14px; }
.month-pick .btn { width: 34px; height: 34px; }
.month-pick > .btn:first-child svg.i { transform: rotate(90deg); }
.month-pick > .btn:last-child svg.i { transform: rotate(-90deg); }
.quick { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 12px; margin-bottom: 16px; }
.quick-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, #ffad33, #ff7a00); }
.quick .input { background: var(--surface-solid); }
.quick-preview { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.quick-preview:empty { display: none; }
.qchip { padding: 3px 10px; border-radius: 999px; background: var(--fill); font-size: 12.5px; font-weight: 500; }
.qchip.expense { background: var(--danger-soft); color: var(--danger); }
.qchip.income { background: var(--success-soft); color: var(--success); }
.pf-hero { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 16px; margin-bottom: 20px; }
.pf-safe { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: 20px; color: #fff; background: linear-gradient(150deg, rgba(52, 199, 89, .92), rgba(0, 150, 136, .88)); display: flex; flex-direction: column; gap: 6px; box-shadow: 0 12px 34px rgba(52, 199, 89, .25); }
.pf-safe::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 90% at 100% 0%, rgba(255, 255, 255, .28), transparent 60%); z-index: -1; }
.pf-safe > span { font-weight: 600; opacity: .92; }
.pf-safe > strong { font-size: 34px; letter-spacing: -.035em; line-height: 1.1; }
.pf-safe small { opacity: .9; }
.pf-safe-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .3); overflow: hidden; margin-top: auto; }
.pf-safe-bar span { display: block; height: 100%; background: #fff; border-radius: 99px; }
.pf-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.acc-card { position: relative; overflow: hidden; text-align: left; border: 0; border-radius: 16px; padding: 14px; min-height: 104px; color: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 1px; background: linear-gradient(150deg, #5ac8fa, #007aff); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); transition: transform .2s var(--ease); }
.acc-card:active { transform: scale(.97); }
.acc-card.t-tunai { background: linear-gradient(150deg, #ffb340, #ff7a00); }
.acc-card.t-ewallet { background: linear-gradient(150deg, #64d2ff, #30b0c7); }
.acc-card.t-tabungan { background: linear-gradient(150deg, #ff6b9a, #ff2d55); }
.acc-card.t-investasi { background: linear-gradient(150deg, #bf5af2, #5e5ce6); }
.acc-card.t-lainnya { background: linear-gradient(150deg, #a2a2a8, #636366); }
.acc-emoji { font-size: 20px; }
.acc-card small { opacity: .85; font-size: 11.5px; }
.acc-card strong { font-size: 14px; }
.acc-card .num { margin-top: auto; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.acc-card .num.neg { color: #fff; text-decoration: underline wavy rgba(255, 255, 255, .7); }
.rule-row { margin-bottom: 14px; }
.rule-bar { position: relative; height: 8px; border-radius: 99px; background: var(--fill); margin-top: 6px; }
.rule-bar span { display: block; height: 100%; border-radius: 99px; }
.rule-bar i { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--text); opacity: .5; border-radius: 2px; }
.health-top { display: flex; gap: 18px; align-items: center; }
.health-parts { flex: 1; display: grid; gap: 8px; }
.health-parts .progress { height: 5px; margin-top: 3px; }
.tips { margin: 14px 0 0; padding-left: 18px; color: var(--text-2); font-size: 13.5px; display: grid; gap: 4px; }
.salary-card { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--primary) 40%, transparent), var(--shadow-sm); }
.salary-card h3 { display: flex; align-items: center; gap: 8px; }
.tx-day { margin-bottom: 12px; overflow: hidden; }
.tx-day-head { display: flex; justify-content: space-between; padding: 12px 16px 6px; font-size: 13.5px; }
.tx-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; border: 0; border-top: .5px solid var(--border); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s; }
@media (hover: hover) { .tx-row:hover { background: var(--fill-2); } }
.tx-emoji { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--fill-2); }
.tx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tx-main small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-amt { font-weight: 650; white-space: nowrap; }
.budget-top { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.budget-top > div:not(.row) { display: flex; flex-direction: column; }
.budget-top strong { font-size: 22px; letter-spacing: -.025em; }
.budget-top .row { margin-left: auto; }
.budget-row { display: grid; grid-template-columns: auto 1fr 170px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: .5px solid var(--border); }
.budget-row:last-child { border-bottom: 0; }
.budget-main .progress { height: 6px; margin: 6px 0 4px; }
.budget-in .input { height: 38px; text-align: right; }
.goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.goal { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.goal .ring { align-self: center; margin: 4px 0; }
.goal-emoji { font-size: 30px; }
.networth .card-body { display: flex; flex-direction: column; gap: 10px; }
.networth strong.num { font-size: 32px; letter-spacing: -.035em; }
.nw-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; }
.nw-bar .a { background: #34c759; } .nw-bar .l { background: #ff3b30; }
.kv-btn { width: 100%; border: 0; border-bottom: .5px solid var(--border); background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
@media (hover: hover) { .kv-btn:hover { background: var(--fill-2); } }
.zakat h4 { margin: 16px 0 4px; font-size: 14px; color: var(--primary); }
.zakat form { gap: 8px; margin-bottom: 4px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.cat-pill { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 0; border-radius: 12px; background: var(--fill-2); color: var(--text); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; line-height: 1.2; transition: background .15s, transform .15s var(--ease); }
.cat-pill span { font-size: 17px; }
.cat-pill:active { transform: scale(.96); }
.cat-pill.on { background: var(--primary); color: #fff; font-weight: 600; }
.big-amt { font-size: 22px !important; font-weight: 700; height: 52px !important; letter-spacing: -.02em; }
@media (max-width: 900px) {
  .pf-hero { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .quick { grid-template-columns: 1fr auto auto; }
  .quick-ic { display: none; }
  .pf-kpis { gap: 10px; }
  .pf-safe > strong { font-size: 30px; }
  .budget-row { grid-template-columns: auto 1fr; }
  .budget-in { grid-column: 1 / -1; }
  .month-pick strong { min-width: 110px; }
}
.privacy .pf-safe > strong, .privacy .acc-card .num, .privacy .tx-amt, .privacy .networth strong.num { filter: blur(8px); transition: filter .25s var(--ease); }
@media (hover: hover) { .privacy .pf-safe:hover > strong, .privacy .acc-card:hover .num, .privacy .tx-row:hover .tx-amt, .privacy .networth:hover strong.num { filter: none; } }
.dash-grid > .gap-20 { align-content: start; }
.zakat form label { white-space: nowrap; }
@media (max-width: 600px) { .acc-grid { grid-template-columns: 1fr 1fr; } .acc-card { min-height: 92px; } }

/* ============ Komponen umum tambahan ============ */
.seg-block { display: flex; width: 100%; }
.seg-block button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg-block button svg.i { width: 16px; height: 16px; }
svg.i.i-xs { width: 13px; height: 13px; vertical-align: -2px; }
/* Isian bagian akhir link (mis. alamat toko): awalan alamat di kotak abu-abu sebelah kiri, terpotong rapi bila panjang. */
.url-group { display: flex; align-items: stretch; border-radius: var(--radius-sm); background: var(--fill); overflow: hidden; }
.url-group > span { display: flex; align-items: center; padding: 0 4px 0 12px; max-width: 55%; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
.url-group > .input { flex: 1; min-width: 0; padding-left: 2px; background: none; }
.url-group:focus-within { box-shadow: 0 0 0 3px var(--primary-soft); }
.input-group .suffix { position: absolute; right: 12px; color: var(--muted); pointer-events: none; font-size: 13px; }
.input-group:has(.suffix) .input { padding-left: 14px; padding-right: 54px; }
.input-inline { display: inline-block; width: 96px; height: 30px; padding: 0 8px; margin: 2px 4px; font-size: 13px; }
.input-num { width: 110px; height: 34px; text-align: right; padding: 0 10px; margin-left: auto; }
.section-title { font-size: 17px; margin: 4px 0 12px; }
.pick-list { display: grid; }
.pick-list .list-row { width: 100%; border: 0; border-bottom: .5px solid var(--border); background: none; font: inherit; color: inherit; cursor: pointer; padding: 12px 4px; }
@media (hover: hover) { .pick-list .list-row:hover { background: var(--fill-2); } }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step > span { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--primary-soft); color: var(--primary); }
.step.done > span { background: var(--success); color: #fff; font-size: 0; }
.step.done > span::after { content: "\2713"; font-size: 15px; }
.step p { margin: 2px 0 0; }
.help summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: "+"; font-size: 20px; color: var(--muted); }
.help[open] summary::after { content: "\2212"; }
.help ol { margin: 12px 0 8px; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }
.mini-bar { width: 90px; height: 6px; border-radius: 99px; background: var(--fill); overflow: hidden; flex: none; }
.mini-bar span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

/* ============ Barcode ============ */
.scanner { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; min-height: 260px; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 22% 10%; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); border: 2px solid rgba(255, 255, 255, .85); }
.scan-frame span { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; animation: scanline 1.8s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { transform: translateY(-38px); } 50% { transform: translateY(38px); } }
.scan-hint { position: absolute; left: 12px; right: 12px; bottom: 12px; text-align: center; color: #fff; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.scan-hint.bad { background: rgba(255, 59, 48, .85); }
.label-sheet { display: flex; flex-wrap: wrap; gap: 6px; max-height: 55vh; overflow: auto; padding: 10px; background: var(--fill-2); border-radius: 12px; }
.label { background: #fff; color: #000; border: 1px dashed #c7c7cc; border-radius: 4px; padding: 1.5mm 2mm; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; width: 50mm; height: 25mm; }
.label .bc { width: 100%; height: auto; max-height: 60%; }
.label-name { font-size: 8.5pt; font-weight: 600; line-height: 1.1; text-align: center; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label-price { font-size: 9pt; font-weight: 800; }
.size-s .label { width: 33mm; height: 15mm; padding: 1mm; } .size-s .label-name { font-size: 6pt; } .size-s .label-price { font-size: 6.5pt; }
.size-l .label { width: 70mm; height: 35mm; } .size-l .label-name { font-size: 11pt; } .size-l .label-price { font-size: 12pt; }
@media print {
  .label-sheet { max-height: none; overflow: visible; background: none; padding: 0; gap: 2mm; }
  .label { border-color: #ddd; break-inside: avoid; }
}

/* ============ Resep & HPP ============ */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; align-items: start; }
.recipe { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.recipe-name { font-size: 16px; }
.recipe-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.recipe-nums > div { background: var(--fill-2); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.recipe-nums small { color: var(--muted); font-size: 11.5px; }
.recipe-nums strong { font-size: 15px; letter-spacing: -.01em; }
.recipe-mats { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.recipe-mats li { display: grid; grid-template-columns: 1fr auto 86px; gap: 8px; padding: 5px 0; border-bottom: .5px solid var(--border); }
.recipe-mats li:last-child { border-bottom: 0; }
.recipe-mats .num { text-align: right; }
.recipe-lines { display: grid; gap: 8px; }
.recipe-line { display: grid; grid-template-columns: minmax(0, 2fr) minmax(120px, 1fr) 90px auto; gap: 8px; align-items: center; }
.recipe-sum { border-top: .5px solid var(--border); padding-top: 14px; }

/* ============ Karyawan, absensi & gaji ============ */
.avatar.sm { width: 32px; height: 32px; font-size: 12.5px; }
.emp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; align-items: stretch; }
.emp { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.emp .avatar, .att-name .avatar { background: linear-gradient(150deg, #5ac8fa, #007aff); }
.emp-pay { font-weight: 650; font-size: 15px; }
.emp-month { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; text-align: center; background: var(--fill-2); border-radius: 12px; padding: 8px 4px; font-size: 11.5px; color: var(--muted); }
.emp-month span { display: flex; flex-direction: column; }
.emp-month strong { font-size: 16px; color: var(--text); }
.att-list { display: grid; }
.att-row { display: grid; grid-template-columns: minmax(150px, 1fr) auto 150px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: .5px solid var(--border); }
.att-row:last-child { border-bottom: 0; }
.att-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.att-pick { display: flex; flex-wrap: wrap; gap: 4px; }
.att-pick .st { border: 0; border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 12.5px; font-weight: 600; background: var(--fill); color: var(--text-2); cursor: pointer; transition: background .15s, color .15s, transform .15s var(--ease); }
.att-pick .st:active { transform: scale(.94); }
.att-pick .st:disabled { opacity: .4; cursor: not-allowed; }
.att-pick .st.on { color: #fff; background: #8e8e93; }
.att-pick .st.success.on { background: var(--success); } .att-pick .st.warning.on { background: var(--warning); }
.att-pick .st.info.on { background: var(--info); } .att-pick .st.danger.on { background: var(--danger); }
.att-ot { display: flex; align-items: center; gap: 6px; }
.att-ot .input { width: 64px; height: 34px; text-align: center; padding: 0 6px; }
.att-grid th, .att-grid td { padding: 6px 3px; text-align: center; font-size: 12px; }
.att-grid th:first-child, .att-grid td:first-child { text-align: left; padding-left: 16px; position: sticky; left: 0; background: var(--surface-solid); z-index: 1; min-width: 120px; }
.att-grid .cell { cursor: pointer; font-weight: 700; min-width: 24px; }
.att-grid .today { background: var(--primary-soft); }
.att-grid th.today { color: var(--primary); }
a.list-row { color: inherit; text-decoration: none; }
.att-grid .s-hadir { color: var(--success); } .att-grid .s-telat { color: var(--warning); } .att-grid .s-alpa { color: var(--danger); }
.att-grid .s-izin, .att-grid .s-sakit { color: var(--info); } .att-grid .s-cuti, .att-grid .s-libur { color: var(--muted); }
.pay-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pay-total { font-size: 32px; font-weight: 750; letter-spacing: -.035em; margin: 4px 0 2px; }
.pay-table td { vertical-align: middle; }
.pay-table tfoot td { border-top: 1px solid var(--border); padding-top: 12px; }
.self-att { background: linear-gradient(150deg, color-mix(in srgb, var(--primary) 14%, var(--surface)), var(--surface)); }

/* ============ Pajak ============ */
.tax-hero { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 16px; }
.tax-next { padding: 20px; display: flex; flex-direction: column; gap: 4px; color: #fff; border: 0; position: relative; overflow: hidden; }
.tax-next.ok { background: linear-gradient(150deg, rgba(52, 199, 89, .95), rgba(0, 150, 136, .9)); }
.tax-next.due { background: linear-gradient(150deg, #ffad33, #ff7a00); }
.tax-next.late { background: linear-gradient(150deg, #ff6b6b, #ff3b30); }
.tax-next > span { font-weight: 600; opacity: .92; }
.tax-next > strong { font-size: 30px; letter-spacing: -.035em; line-height: 1.15; }
.tax-next small { opacity: .9; }
.tax-next .btn { align-self: flex-start; background: rgba(255, 255, 255, .22); color: #fff; border-color: rgba(255, 255, 255, .35); }
.tax-stats { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .tax-hero { grid-template-columns: 1fr; }
  .att-row { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 600px) {
  .recipe-nums strong { font-size: 13.5px; }
  .pay-total { font-size: 26px; }
  .pay-hero > .row { width: 100%; }
  .pay-hero > .row .btn-primary { flex: 1; }
  .tax-next > strong { font-size: 26px; }
  .emp-grid, .recipe-grid { grid-template-columns: 1fr; }
}
.privacy .pay-total, .privacy .tax-next > strong, .privacy .emp-pay { filter: blur(8px); transition: filter .25s var(--ease); }
@media (hover: hover) { .privacy .pay-total:hover, .privacy .tax-next:hover > strong, .privacy .emp:hover .emp-pay { filter: none; } }

/* Gaji di HP: tabel jadi kartu per karyawan */
@media (max-width: 600px) {
  .pay-table thead, .pay-table tfoot td:empty { display: none; }
  .pay-table, .pay-table tbody, .pay-table tr, .pay-table td { display: block; width: 100%; }
  .pay-table tbody tr { padding: 12px 16px; border-bottom: .5px solid var(--border); }
  .pay-table td { border: 0 !important; padding: 3px 0 !important; text-align: right; }
  .pay-table td[data-l] { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .pay-table td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 13px; font-weight: 500; }
  .pay-table td:first-child { text-align: left; margin-bottom: 4px; }
  .pay-table td.pay-net { border-top: .5px solid var(--border) !important; margin-top: 6px; padding-top: 8px !important; font-size: 16px; }
  .pay-table tfoot tr { display: flex; justify-content: space-between; padding: 12px 16px; }
  .pay-table tfoot td { width: auto; }
  .att-pick { gap: 3px; }
  .att-pick .st { padding: 5px 8px; font-size: 12px; }
}

/* ============ Cabang ============ */
.outlet-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--primary-soft); color: var(--primary); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; max-width: 220px; }
.outlet-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outlet-chip svg.i { width: 16px; height: 16px; flex: none; }
.outlet-chip:disabled { cursor: default; opacity: 1; }
.outlet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.outlet-card { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.outlet-card.inactive { opacity: .6; }
.outlet-rev { font-size: 26px; font-weight: 750; letter-spacing: -.03em; margin-top: 4px; }
.outlet-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; }
.outlet-kv > div { background: var(--fill-2); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.outlet-kv small { color: var(--muted); font-size: 11.5px; }
.matrix th:not(:first-child), .matrix td:not(:first-child) { white-space: nowrap; }
hr.sep { border: 0; border-top: .5px solid var(--border); margin: 6px 0 14px; }
.exp-row { gap: 8px; margin: -6px 0 12px; align-items: center; color: var(--muted); }
.exp-row svg.i { width: 15px; height: 15px; }
/* ============ Laporan mingguan ============ */
.todo-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: .5px solid var(--border); color: var(--text); text-decoration: none; }
.todo-row:last-child { border-bottom: 0; }
.todo-row > svg.i:first-child { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); flex: none; }
.todo-row > span { flex: 1; font-size: 14px; }
.todo-row > svg.i:last-child { color: var(--muted); width: 16px; height: 16px; }
@media (hover: hover) { .todo-row:hover > span { color: var(--primary); } }
.week-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 190px; align-items: end; }
.wb { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.wb i { display: block; width: 100%; max-width: 46px; border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, var(--primary) 35%, transparent); }
.wb.best i { background: var(--primary); }
.wb b { font-size: 12px; font-weight: 600; color: var(--muted); }
.wb span { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.kpi .chg.muted { opacity: .75; }
@media (max-width: 600px) {
  .outlet-chip { max-width: 120px; padding: 0 10px; height: 34px; }
  .outlet-grid { grid-template-columns: 1fr; }
  .week-bars { gap: 4px; height: 160px; }
  .wb span { font-size: 9px; }
}

/* Tabel jadi kartu di HP (stok per cabang, riwayat transfer) */
.stats-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) {
  .card-table thead { display: none; }
  .card-table, .card-table tbody, .card-table tr, .card-table td { display: block; width: 100%; }
  .card-table tbody tr { padding: 12px 16px; border-bottom: .5px solid var(--border); }
  .card-table td { border: 0 !important; padding: 3px 0 !important; text-align: left; white-space: normal !important; }
  .card-table td[data-l] { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; }
  .card-table td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 13px; font-weight: 500; text-align: left; }
  .card-table td:first-child { margin-bottom: 4px; }
  .card-table td.trf-items { padding: 6px 10px !important; margin: 4px 0; background: var(--fill-2); border-radius: 10px; }
  .stats-3 { gap: 8px; }
  .stats-3 .stat { padding: 12px; }
  .stats-3 .stat .lbl { font-size: 11.5px; }
  .stats-3 .stat .val { font-size: 20px; }
  .stats-3 .stat .sub { font-size: 11px; }
  .recipe-line { grid-template-columns: 1fr auto auto; }
  .recipe-line > :first-child { grid-column: 1 / -1; }
  .recipe-line .num, .recipe-line > .small { text-align: right; white-space: nowrap; }
}
@media (max-width: 600px) { .card-table td.exp-act { margin-top: 6px; } .card-table td.exp-act .actions { justify-content: flex-end; } }

/* Halaman Syarat Layanan & Kebijakan Privasi */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: -.035em; margin-bottom: 6px; }
.legal .lead { font-size: 17px; color: var(--text-2); margin: 18px 0 22px; line-height: 1.6; }
.legal-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; padding: 16px 20px; margin-bottom: 30px; font-size: 14px; }
.legal section { scroll-margin-top: 80px; margin-bottom: 26px; }
.legal h2 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 8px; }
.legal p, .legal li { line-height: 1.7; color: var(--text-2); }
.legal ul { padding-left: 20px; margin: 6px 0; }
.legal li + li { margin-top: 4px; }
.footer a { color: inherit; }
@media (hover: hover) { .footer a:hover { color: var(--text); } }
.sent-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; background: var(--success); color: #fff; }
.sent-ic svg.i { width: 26px; height: 26px; }

/* Pilihan metode bayar Tripay */
.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pay-method { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: .5px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--surface); }
.pay-method:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent); }
.pay-method input { accent-color: var(--primary); margin: 0; }
.pay-method img { width: 44px; height: 22px; object-fit: contain; }
.pay-method .pm-ic { width: 44px; display: grid; place-items: center; color: var(--muted); }
.pay-method .pm-name { flex: 1; font-size: 14px; font-weight: 550; }

/* Mode uji coba */
.trial-banner { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); transform: translateX(-50%); z-index: 60;
  max-width: min(92vw, 520px); padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; text-align: center;
  color: #fff; background: rgba(255, 149, 0, .92); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); pointer-events: none;
  animation: trial-out .6s ease 6s forwards; }
@keyframes trial-out { to { opacity: 0; transform: translate(-50%, 12px); visibility: hidden; } }
@media (min-width: 900px) { .trial-banner { bottom: 18px; } }
.demo-box { margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: .5px dashed var(--border); background: var(--surface); }

/* Toko marketplace */
.mp-platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-list { display: grid; gap: 10px; }
.mp-conn { display: grid; gap: 8px; padding: 14px; border: .5px solid var(--border); border-radius: 14px; background: var(--surface); min-width: 0; }
.mp-opts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.mp-opts select { width: auto; min-width: 160px; margin-top: 4px; }

/* ===== Kasir offline, QRIS, promo ===== */
.offline-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 150; display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: .5px solid var(--border); background: var(--glass-strong); backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px); color: var(--text); font: inherit; font-weight: 600; font-size: 13px; box-shadow: var(--shadow-lg); cursor: pointer; max-width: calc(100vw - 24px); }
.offline-pill svg.i { color: var(--warning, #ff9f0a); }
.offline-pill.warn { border-color: var(--danger); }
.offline-pill.warn svg.i { color: var(--danger); }
.qris-box { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.qris-box .qr { background: #fff; padding: 10px; border-radius: 14px; line-height: 0; }
.qris-box .qr svg { width: min(300px, 72vw); height: auto; }
.qris-amount { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.promo-tag { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; max-width: 100%; font-size: 11px; line-height: 1.25; font-weight: 650; color: #fff; background: linear-gradient(135deg, #ff2d55, #ff9500); border-radius: 7px; padding: 2px 7px; }
.points-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, rgba(127,127,127,.08)); margin-top: 8px; }
.order-card { display: grid; gap: 6px; }
.status-chips .chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.scan-review td .input { min-width: 0; }
.order-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-block: 14px; }
.order-stats > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-stats strong { font-size: clamp(15px, 4vw, 22px); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-row { align-items: center; gap: 10px; flex-wrap: wrap; }
.order-main { flex: 1; min-width: 220px; display: grid; gap: 4px; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
@media (hover: hover) { .order-main:hover strong { color: var(--primary); } }
.order-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.order-actions .input-sm, .input.input-sm { width: auto; min-height: 32px; padding: 4px 10px; font-size: 13px; }
select.input.input-sm { height: 36px; padding-right: 30px; background-position: right 9px center; background-size: 14px; }
/* Baris daftar langsung di dalam kartu (tanpa card-body): beri jarak dalam agar teks tidak menempel ke tepi. */
.card:not(.card-pad):not(.card-body) > .list-row { padding-inline: 16px; }
.card:not(.card-pad) > .list-row:last-child { border-bottom: 0; }
@media (max-width: 560px) { .order-actions { width: 100%; justify-content: flex-start; } .order-actions .btn-primary { margin-left: auto; } .order-line { grid-template-columns: 1fr 1fr auto !important; } .order-line > .field:first-child { grid-column: 1 / -1; } }
.receipt .bc { display: flex; justify-content: center; margin-top: 6px; }
.receipt .bc svg { max-width: 100%; height: auto; }
@media (max-width: 560px) { .modal-foot { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; } .modal-foot .btn { flex: 1 1 auto; justify-content: center; } }
/* Kartu member (85,6 × 54 mm) & label harga rak (60 × 35 mm) */
.card-sheet, .shelf-sheet { display: flex; flex-wrap: wrap; gap: 8px; max-height: 58vh; overflow: auto; padding: 10px; background: var(--fill-2); border-radius: 12px; }
.member-card { width: 85.6mm; height: 54mm; border-radius: 3.5mm; padding: 4mm 5mm; background: linear-gradient(135deg, #0a84ff, #5e5ce6); color: #fff; display: flex; flex-direction: column; gap: 1mm; overflow: hidden; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.member-card .mc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 3mm; font-size: 9pt; }
.member-card .mc-top span { font-size: 6.5pt; letter-spacing: .12em; opacity: .85; }
.member-card .mc-name { font-size: 13pt; font-weight: 800; margin-top: 2mm; line-height: 1.15; }
.member-card .mc-pts { font-size: 8.5pt; opacity: .9; }
.member-card .mc-bc { margin-top: auto; background: #fff; border-radius: 2mm; padding: 1mm 2mm; display: flex; justify-content: center; }
.member-card .mc-bc svg { max-width: 100%; height: auto; max-height: 16mm; }
.shelf-tag { width: 60mm; height: 35mm; background: #fff; color: #000; border: 1px solid #1c1c1e; border-top: 3mm solid #0a84ff; border-radius: 1mm; padding: 1.5mm 2mm; display: flex; flex-direction: column; overflow: hidden; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.shelf-tag.promo { border-top-color: #ff2d55; }
.shelf-tag .st-name { font-size: 8pt; font-weight: 700; line-height: 1.15; max-height: 2.3em; overflow: hidden; }
.shelf-tag .st-price { font-size: 19pt; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.shelf-tag .st-price small { font-size: 9pt; margin-right: 1mm; }
.shelf-tag .st-price span { font-size: 7pt; font-weight: 500; margin-left: 1mm; }
.shelf-tag.promo .st-price { color: #d70015; }
.shelf-tag .st-old { font-size: 7.5pt; text-decoration: line-through; color: #555; }
.shelf-tag .st-promo { font-size: 7.5pt; font-weight: 700; color: #d70015; }
.shelf-tag .st-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 2mm; font-size: 6pt; color: #444; }
.shelf-tag .st-foot svg { height: 7mm; width: auto; max-width: 60%; }
.price-check { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: var(--fill-2); }
.price-check .pc-price { font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
@media print { .card-sheet, .shelf-sheet { max-height: none; overflow: visible; background: none; padding: 0; gap: 2mm; } }
.update-bar { position: fixed; left: 50%; transform: translateX(-50%); top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 300; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); max-width: calc(100vw - 24px); }
.update-bar button { border: 0; border-radius: 999px; padding: 7px 14px; background: #fff; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }

/* ===== Cahaya saat klik (js/fx.js) =====
   Cahaya lembut dari titik sentuh melebar di dalam elemen (di bawah tulisan, mengikuti sudut membulat),
   ditemani pendar luar tipis. --fx-x/--fx-y/--fx-max diisi js/fx.js. */
@property --fx-r { syntax: '<length>'; inherits: false; initial-value: 0px; }
.fx-on { isolation: isolate; }
.fx-on::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle var(--fx-r) at var(--fx-x, 50%) var(--fx-y, 50%),
    color-mix(in srgb, color-mix(in srgb, var(--primary) 70%, white) 50%, transparent) 0%,
    color-mix(in srgb, var(--primary) 34%, transparent) 38%,
    color-mix(in srgb, var(--primary) 16%, transparent) 70%,
    color-mix(in srgb, var(--primary) 5%, transparent) 88%,
    transparent 100%);
  animation: fx-light .7s cubic-bezier(.25, .8, .3, 1) forwards, fx-halo .7s ease-out forwards;
}
@keyframes fx-light {
  0% { --fx-r: 6px; opacity: 0; }
  12% { opacity: 1; }
  55% { opacity: .95; }
  100% { --fx-r: var(--fx-max, 160px); opacity: 0; }
}
@keyframes fx-halo {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 0%, transparent); }
  30% { box-shadow: 0 0 18px 3px color-mix(in srgb, var(--primary) 42%, transparent); }
  100% { box-shadow: 0 0 22px 4px color-mix(in srgb, var(--primary) 0%, transparent); }
}
/* Di atas latar biru (menu aktif, tombol utama) cahayanya putih agar tetap terlihat. */
.nav a.active.fx-on::after, .btn-primary.fx-on::after {
  background: radial-gradient(circle var(--fx-r) at var(--fx-x, 50%) var(--fx-y, 50%),
    rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .22) 40%, rgba(255, 255, 255, .08) 75%, transparent 100%);
}
.fx-on.fx-calm::after { animation-duration: .25s; }
@media (prefers-reduced-motion: reduce) { .fx-on::after { animation: fx-fade .25s ease-out forwards; background: color-mix(in srgb, var(--primary) 16%, transparent); } @keyframes fx-fade { from { opacity: 1; } to { opacity: 0; } } }



/* ===== Toko online (pembeli) ===== */
.shop { max-width: 640px; margin: 0 auto; padding: 14px max(14px, env(safe-area-inset-right, 0px)) 110px max(14px, env(safe-area-inset-left, 0px)); display: grid; gap: 12px; }
.shop-card { background: var(--card, var(--glass-strong)); border: .5px solid var(--border); border-radius: 18px; padding: 16px; }
.shop-card.c { text-align: center; display: grid; justify-items: center; gap: 6px; }
.shop-card.c > svg.i { width: 34px; height: 34px; color: var(--primary); }
.shop-head { display: flex; gap: 14px; align-items: flex-start; }
.shop-head h1 { font-size: 21px; line-height: 1.2; margin: 0 0 4px; text-wrap: balance; }
.shop-logo { flex: none; width: 56px; height: 56px; border-radius: 16px; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.shop-info { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-info span { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--fill-2); }
.shop-mine { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; padding: 12px 14px; }
.shop-mine span { flex: 1; font-size: 14px; }
.shop-filter { position: sticky; top: 0; z-index: 5; display: grid; gap: 8px; padding-block: 8px; background: var(--bg); }
.shop-filter .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.shop-filter .chips::-webkit-scrollbar { display: none; }
.shop-list { display: grid; gap: 8px; }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--card, var(--glass-strong)); border: .5px solid var(--border); }
.shop-item.out { opacity: .55; }
.shop-thumb { flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.si-name { font-weight: 700; line-height: 1.25; }
.si-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.si-price { font-weight: 800; color: var(--primary); margin-top: 2px; }
.shop-item .qty { flex: none; }
.shop-item .qty span { min-width: 26px; text-align: center; font-weight: 700; }
.shop-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); background: linear-gradient(transparent, var(--bg) 35%); }
.shop-bar .btn { width: 100%; max-width: 640px; margin: 0 auto; display: flex; gap: 8px; align-items: center; }
.shop-sheet { max-width: 560px; }
.seg-full { display: flex; width: 100%; }
.seg-full button { flex: 1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.shop-done .done-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #34c759; color: #fff; }
.shop-done .done-ic svg { width: 34px; height: 34px; }
.shop-foot { text-align: center; }
.track-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.track-steps .ts { display: grid; justify-items: center; gap: 4px; font-size: 12px; text-align: center; opacity: .6; }
.track-steps .ts span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); font-weight: 700; }
.track-steps .ts.done { opacity: 1; }
.track-steps .ts.done span { background: var(--primary); color: #fff; }
.track-steps .ts.cur span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 30%, transparent); }

/* ===== Toko online (pemilik) ===== */
.store-hero { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.store-hero > .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); }
.store-hero > .ic svg { width: 28px; height: 28px; }
.store-link { display: flex; gap: 8px; }
.store-link .input { flex: 1; min-width: 0; font-weight: 600; }
.store-qr-mini { display: grid; place-items: center; gap: 8px; }
.store-qr-mini .qr { background: #fff; padding: 8px; border-radius: 12px; line-height: 0; }
.store-qr-mini .qr svg { width: 170px; height: auto; }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52,199,89,.25); }
.pick-list { display: grid; gap: 2px; max-height: 52vh; overflow: auto; }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: .5px solid var(--border); }
.poster { display: flex; justify-content: center; }
.poster-in { width: 148mm; min-height: 200mm; max-width: 100%; background: #fff; color: #111; border-radius: 6mm; padding: 12mm 10mm; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4mm; border: 1px solid #ddd; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.poster-in .pt-top { background: #0a84ff; color: #fff; font-weight: 800; letter-spacing: .14em; padding: 2mm 6mm; border-radius: 99px; font-size: 11pt; }
.poster-in h1 { font-size: 24pt; margin: 2mm 0 0; line-height: 1.1; text-wrap: balance; }
.poster-in p { font-size: 12pt; margin: 0; color: #444; }
.poster-in .qr { line-height: 0; margin-top: 3mm; }
.poster-in .qr svg { width: 95mm; max-width: 100%; height: auto; }
.poster-in .pt-url { font-weight: 700; font-size: 12pt; word-break: break-all; }
.poster-in .pt-steps { display: flex; gap: 3mm; flex-wrap: wrap; justify-content: center; margin-top: auto; }
.poster-in .pt-steps span { background: #f2f2f7; border-radius: 99px; padding: 2mm 4mm; font-size: 10pt; font-weight: 600; }

/* ===== Dapur & antrean ===== */
.kitchen-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.k-col { display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: var(--fill-2); min-width: 0; }
.k-col h2 { font-size: 16px; display: flex; justify-content: space-between; align-items: center; margin: 0; }
.k-antre h2 { color: var(--warning, #ff9f0a); } .k-dimasak h2 { color: var(--primary); } .k-siap h2 { color: #34c759; }
.k-ticket { background: var(--card, var(--glass-strong)); border: .5px solid var(--border); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.k-ticket.late { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.k-top { display: flex; align-items: center; gap: 8px; }
.k-no { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.k-table { font-weight: 700; padding: 3px 9px; border-radius: 99px; background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); }
.k-time { margin-left: auto; font-size: 12.5px; opacity: .75; }
.k-ticket.late .k-time { color: var(--danger); font-weight: 700; opacity: 1; }
.k-ticket ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 3px; font-size: 15px; }
.k-note { padding: 6px 8px; border-radius: 8px; background: var(--fill-2); }
.k-actions { display: flex; gap: 6px; }
.k-go { flex: 1; min-height: 44px; font-size: 15px; }
.k-empty { text-align: center; padding: 10px; }
.call-screen { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; min-height: 60vh; }
@media (max-width: 700px) { .call-screen { grid-template-columns: 1fr; } }
.call-screen h2 { font-size: clamp(18px, 3vw, 30px); letter-spacing: .06em; margin: 0 0 12px; }
.call-ready, .call-wait { padding: 20px; border-radius: 22px; background: var(--fill-2); }
.call-ready h2 { color: #34c759; }
.call-nums { display: flex; flex-wrap: wrap; gap: 14px; }
.call-num { min-width: 120px; padding: 14px 18px; border-radius: 18px; background: #34c759; color: #fff; font-size: clamp(44px, 8vw, 96px); font-weight: 900; line-height: 1; text-align: center; display: grid; animation: call-pop .5s ease-out; }
.call-num small { font-size: 16px; font-weight: 700; margin-top: 6px; opacity: .9; }
.small-nums .call-num { background: var(--card, var(--glass-strong)); color: inherit; font-size: clamp(26px, 4vw, 44px); min-width: 70px; animation: none; }
@keyframes call-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.receipt .queue-no { display: grid; gap: 2px; }
.receipt .queue-no strong { font-size: 34px; line-height: 1; }

/* Hitungan ala Warren Buffett */
.buffett-list { display: grid; }
.bf-row { display: flex; gap: 12px; padding: 12px 18px; border-top: .5px solid var(--border); align-items: flex-start; }
.bf-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--danger); }
.bf-row.pass .bf-ic { background: #34c759; }
.bf-val { font-weight: 800; }
.bf-row.fail .bf-val { color: var(--danger); }

/* Pemindai: pilihan mode foto (tanpa izin) / live, tombol ganti kamera */
.scan-choose { position: absolute; inset: 0; display: grid; align-content: center; gap: 10px; padding: 16px; color: #fff; text-align: center; background: radial-gradient(circle at 50% 30%, #1c2b4a, #000); }
.scan-choices { display: grid; gap: 8px; }
.scan-choices .btn { justify-content: center; }
.scan-note { opacity: .8; }
.scan-flip { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; }
.scanner video.mirror { transform: scaleX(-1); }
.btn[hidden], label.btn[hidden] { display: none !important; }

/* Aset tetap: kartu bertumpuk di HP agar nilai buku langsung terlihat */
@media (max-width: 560px) {
  .asset-table thead { display: none; }
  .asset-table, .asset-table tbody { display: block; }
  .asset-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 14px 16px; border-bottom: .5px solid var(--border); }
  .asset-table td { display: block; padding: 0 !important; border: 0 !important; box-shadow: none !important; text-align: left !important; }
  .asset-table td:first-child, .asset-table td.at-prog, .asset-table td.at-act { grid-column: 1 / -1; }
  .asset-table td[data-l]::before { content: attr(data-l); display: block; font-size: 11.5px; font-weight: 500; opacity: .6; }
  .asset-table td.at-act .actions { justify-content: flex-start; }
}

/* Pengaturan: pintasan ke tiap bagian (satu baris yang bisa digeser di HP). */
.jump-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jump-chips::-webkit-scrollbar { display: none; }
.jump-chips .chip { flex: none; }
.content [id] { scroll-margin-top: calc(72px + env(safe-area-inset-top, 0px)); }

/* Daftar panjang: baris berikutnya disembunyikan sampai "Tampilkan lebih banyak" ditekan. */
table.t tr.pg-hide { display: none !important; }
.table-more { margin-top: 10px; color: var(--primary); font-weight: 600; }
.card > .table-more { width: calc(100% - 24px); margin: 10px 12px 12px; }

/* Ruang di bawah halaman agar konten terakhir tidak tertutup menu bawah (mode HP) */
@media (max-width: 960px) { .content { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); } }

/* Tabel di HP: baris menjadi kartu dua kolom — label kecil di atas, nilai di bawahnya.
   Nilai panjang turun ke baris baru di kolomnya sendiri, jadi tidak pernah menimpa kolom sebelah. */
@media (max-width: 560px) {
  .table-wrap:has(table.t) { overflow: visible; border-radius: 0; box-shadow: none; background: none; }
  .table-wrap table.t, .table-wrap table.t tbody { display: block; width: 100%; min-width: 0 !important; }
  /* Editor RAB/analisa di HP: uraian selebar kartu, kolom angka berjajar di bawahnya. */
  .table-wrap table.t.rab td { min-width: 0 !important; padding: 0 !important; }
  .table-wrap table.t.rab td:nth-child(2) { grid-column: 1 / -1; }
  .table-wrap table.t.rab td:first-child { font-size: 12px; color: var(--muted); }
  .table-wrap table.t.rab td .cell { width: 100% !important; }
  .table-wrap table.t thead { display: none; }
  .table-wrap table.t tr { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; align-items: start; padding: 12px 14px; margin-bottom: 8px; border-radius: 16px; background: var(--card, var(--glass-strong)); border: .5px solid var(--border); }
  /* Banyak kolom → tiga kolom per baris agar kartu tidak memanjang. */
  .table-wrap table.t tr:has(> td:nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .table-wrap table.t tbody tr:hover { background: var(--card, var(--glass-strong)); }
  .table-wrap table.t tbody tr[data-href]:active { transform: scale(.985); }
  .table-wrap table.t td { display: block; padding: 0; border: 0; text-align: left !important; min-width: 0; max-width: none !important; font-size: 13.5px; line-height: 1.4; background: none; overflow-wrap: anywhere; white-space: normal; }
  .table-wrap table.t td::before { content: attr(data-th); display: block; margin-bottom: 1px; font-size: 11px; font-weight: 500; letter-spacing: .01em; color: var(--muted); line-height: 1.3; }
  /* Tombol ikon saja (ubah/hapus) pindah ke pojok kanan atas kartu, bukan baris sendiri. */
  .table-wrap table.t td:has(> .actions):not(:has(.btn:not(.icon-btn))):not(:first-child) { position: absolute; top: 8px; right: 8px; padding: 0 !important; border: 0 !important; }
  .table-wrap table.t tr:has(> td:not(:first-child) > .actions):not(:has(> td > .actions .btn:not(.icon-btn))) > td:first-child { padding-right: 76px; }
  .table-wrap table.t td[data-th=""]::before { content: none; }
  .table-wrap table.t td:empty { display: none; }
  /* Kolom pertama = judul kartu; kolom tombol & kolom yang digabung memakai lebar penuh. */
  .table-wrap table.t td:first-child, .table-wrap table.t td[colspan], .table-wrap table.t td:has(> .actions), .table-wrap table.t td:has(> .btn), .table-wrap table.t td:has(> .row > .btn) { grid-column: 1 / -1; }
  .table-wrap table.t td:first-child { font-size: 15px; }
  .table-wrap table.t td:first-child::before, .table-wrap table.t td[colspan]::before { content: none; }
  .table-wrap table.t td:has(> .actions)::before, .table-wrap table.t td:has(> .btn)::before { content: none; }
  .table-wrap table.t td[colspan] { text-align: center !important; color: var(--text-2); }
  .table-wrap table.t td .actions, .table-wrap table.t td .row { justify-content: flex-start; flex-wrap: wrap; }
  .table-wrap table.t td:has(> .actions) { padding-top: 4px; border-top: .5px solid var(--border); }
  /* Kolom pertama yang hanya berisi kotak centang: kecil di pojok, bukan baris sendiri. */
  .table-wrap table.t td:first-child:has(> input[type=checkbox]:only-child) { grid-column: auto; position: absolute; right: 14px; top: 12px; }
  .table-wrap table.t tr:has(> td:first-child > input[type=checkbox]:only-child) { position: relative; padding-right: 44px; }
  .table-wrap table.t tr:has(> td:first-child > input[type=checkbox]:only-child) > td:nth-child(2) { grid-column: 1 / -1; font-size: 15px; }
  .table-wrap table.t tr:has(> td:first-child > input[type=checkbox]:only-child) > td:nth-child(2)::before { content: none; }
}

/* HP: baris tab & pilihan turun ke baris baru, bukan terpotong di tepi layar */
@media (max-width: 560px) {
  /* Kotak ringkasan 3 kolom (diatur langsung di halaman) → 2 kolom; kotak ganjil terakhir selebar penuh. */
  .stats[style*="repeat(3"], .stats.stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .stats[style*="repeat(3"] > :last-child:nth-child(odd), .stats.stats-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tabs { flex-wrap: wrap; width: 100%; overflow: visible; gap: 2px; }
  .tabs a { flex: 1 1 auto; justify-content: center; text-align: center; padding: 7px 10px; }
  .seg { display: flex; flex-wrap: wrap; width: 100%; overflow: visible; gap: 2px; }
  .seg button { flex: 1 1 auto; justify-content: center; }
}

/* ===== Label pengiriman (resi) — gaya label ekspedisi 100 × 150 mm ===== */
.ship-labels { display: grid; gap: 14px; justify-items: center; }
.ship-label { width: 100%; max-width: 100mm; background: #fff; color: #111; border: 1.5px solid #111; border-radius: 6px; font-size: 12px; line-height: 1.4; overflow: hidden; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
.ship-label > div { padding: 8px 12px; }
.ship-label .sl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #111; color: #fff; }
.ship-label .sl-courier { font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.ship-label .sl-ref { display: flex; flex-direction: column; align-items: flex-end; font-size: 10px; line-height: 1.25; text-align: right; }
.ship-label .sl-ref strong { font-size: 12px; }
.ship-label .sl-track { border-bottom: 1.5px solid #111; text-align: center; }
.ship-label .sl-bc svg, .ship-label .sl-bc2 svg { display: block; width: 100%; height: auto; max-height: 52px; }
.ship-label .sl-no { font: 700 15px/1.3 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; margin-top: 3px; }
.ship-label .muted-print { font-weight: 500; color: #555; }
.ship-label .sl-k { font-size: 9.5px; font-weight: 800; letter-spacing: .12em; color: #555; margin-bottom: 2px; }
.ship-label .sl-to { border-bottom: 1px dashed #999; }
.ship-label .sl-name { font-size: 17px; font-weight: 800; line-height: 1.25; }
.ship-label .sl-phone { font-weight: 600; }
.ship-label .sl-addr { white-space: pre-wrap; font-size: 13px; margin-top: 2px; }
.ship-label .sl-from { border-bottom: 1.5px solid #111; font-size: 11.5px; }
.ship-label .sl-items { width: 100%; border-collapse: collapse; font-size: 11px; display: table; }
.ship-label .sl-items th { text-align: left; font-size: 9.5px; letter-spacing: .08em; color: #555; border-bottom: 1px solid #ccc; padding: 2px 0; }
.ship-label .sl-items th:last-child, .ship-label .sl-items td:last-child { text-align: right; width: 40px; }
.ship-label .sl-items td { padding: 2px 0; border-bottom: 1px dotted #ddd; vertical-align: top; }
.ship-label .sl-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: #333; border-top: 1px solid #ccc; }
.ship-label .sl-bc2 { padding-top: 0 !important; }
@media print {
  .ship-labels { display: block; }
  .ship-label { width: 100mm; max-width: 100mm; margin: 0 auto 0; break-inside: avoid; page-break-inside: avoid; border-radius: 0; }
  .ship-label + .ship-label { break-before: page; page-break-before: always; }
  .ship-label .sl-head { background: #111 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ship-label, .ship-label * { color: inherit; }
}

/* ===== Lembar dokumen cetak (daftar produksi, dll): kop, tabel bergaris, siap A4 ===== */
.doc-sheet { background: #fff; color: #1c1c1e; border-radius: 12px; padding: 18px; font-size: 13px; line-height: 1.45; }
.doc-sheet .ds-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-top: 4px solid #0a5bd8; padding-top: 10px; margin-bottom: 14px; }
.doc-sheet .ds-biz { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #083f96; }
.doc-sheet h2 { font-size: 20px; margin: 2px 0 0; color: #1c1c1e; }
.doc-sheet .ds-sub, .doc-sheet .ds-muted { color: #6b6b70; font-size: 12px; }
.doc-sheet .ds-date { text-align: right; font-size: 11px; color: #6b6b70; white-space: nowrap; }
.doc-sheet .ds-date strong { color: #1c1c1e; }
.doc-sheet .ds-h3 { font-size: 14px; margin: 18px 0 8px; color: #1c1c1e; }
.doc-sheet .ds-table { width: 100%; border-collapse: collapse; }
.doc-sheet .ds-table th { background: #0a5bd8; color: #fff; text-align: left; font-size: 11.5px; font-weight: 700; padding: 7px 9px; }
.doc-sheet .ds-table td { border-bottom: 1px solid #dcdce2; padding: 7px 9px; vertical-align: top; color: #1c1c1e; }
.doc-sheet .ds-table tbody tr:nth-child(even) td { background: #f5f7fb; }
.doc-sheet .ds-table .right { text-align: right; }
.doc-sheet .ds-no { width: 36px; text-align: center; }
.doc-sheet .ds-chk { width: 64px; text-align: center; }
.doc-sheet .ds-box { display: inline-block; width: 16px; height: 16px; border: 1.5px solid #555; border-radius: 3px; vertical-align: middle; }
@media (max-width: 560px) { .doc-sheet { padding: 12px; } .doc-sheet .ds-table th, .doc-sheet .ds-table td { padding: 6px; } }
@media print {
  .print-area.doc-sheet { padding: 0 !important; border-radius: 0; }
  .print-area.doc-sheet .ds-table th { background: #0a5bd8 !important; color: #fff !important; }
  .print-area.doc-sheet .ds-biz { color: #083f96 !important; }
  .print-area.doc-sheet .ds-sub, .print-area.doc-sheet .ds-muted, .print-area.doc-sheet .ds-date { color: #555 !important; }
  .print-area.doc-sheet .ds-table tr { break-inside: avoid; }
}

/* ===== Perbaikan tampilan HP (nov 2026) ===== */
/* Toast kembar: digoyang, bukan ditumpuk */
.toast.bump { animation: toast-bump .35s var(--ease); }
@keyframes toast-bump { 30% { transform: scale(1.04); } 60% { transform: scale(.98); } }
/* Rentang tanggal laporan: label "Dari/Sampai" selalu terlihat, termasuk saat kosong di Android */
.date-pick { display: inline-flex; align-items: center; gap: 6px; background: var(--fill); border-radius: var(--radius-sm); padding: 0 4px 0 12px; min-height: 40px; }
.date-pick > span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.date-pick > .input { background: none; min-width: 128px; width: auto; padding-left: 4px; }
/* Alamat toko: di HP awalan alamat di atas, kolom isian selebar layar */
@media (max-width: 600px) {
  .url-group { flex-direction: column; align-items: stretch; }
  .url-group > span { max-width: 100%; padding: 8px 12px 0; font-size: 12px; direction: ltr; }
  .url-group > .input { padding-left: 12px; }
}
/* Layar HP: bilah atas tanpa efek blur langsung (pada sebagian GPU Android memunculkan bintik/garis "rusak" saat menggulir) */
@media (pointer: coarse) {
  .topbar::before { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--glass-strong); }
  .content { animation-name: page-fade; }
}
@keyframes page-fade { from { opacity: 0; } }
.input.invalid { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 35%, transparent) !important; }

/* ===== Struk rol & invoice A4 (nov 2026) ===== */
.rc-paper { margin: 0 auto 12px; display: flex; width: fit-content; }
.receipt.paper-58 { max-width: 300px; font-size: 12px; }
.receipt.paper-80 { max-width: 380px; font-size: 12.5px; }
.receipt .rc-head { display: flex; flex-direction: column; gap: 1px; font-size: .92em; }
.receipt .rc-biz { font-size: 1.3em; letter-spacing: .02em; }
.receipt .row > span:first-child { min-width: 0; }
.receipt .row > span:last-child { text-align: right; white-space: nowrap; }
.receipt .rc-ind { padding-left: 1.2em; }
.receipt .rc-total { font-weight: 800; font-size: 1.22em; border-top: 1px solid #111; border-bottom: 1px solid #111; padding: 4px 0; margin: 6px 0; }
.receipt .rc-tax { color: #555; font-size: .92em; }
.receipt .rc-status { margin: 8px 0; text-align: center; font-weight: 800; letter-spacing: .08em; padding: 4px; border: 1.5px dashed #111; }
.receipt .rc-foot { margin-top: 4px; }
.receipt .rc-qr { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 8px; }
.receipt .rc-qr svg { width: 96px; height: 96px; }
.receipt .rc-qr small { font-size: 10px; color: #555; }
.receipt.inv-a4 { max-width: 760px; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 13px; padding: 28px; border-top: 6px solid #0a5bd8; }
.inv-a4 .inv-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.inv-a4 .inv-biz { font-size: 20px; display: block; margin-bottom: 2px; }
.inv-a4 .inv-muted { color: #666; font-size: 12px; }
.inv-a4 .inv-title { font-size: 24px; font-weight: 800; color: #0a5bd8; letter-spacing: .06em; text-align: right; }
.inv-a4 .inv-meta dl { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 6px 0 0; font-size: 12.5px; }
.inv-a4 .inv-meta dt { color: #666; } .inv-a4 .inv-meta dd { margin: 0; font-weight: 600; text-align: right; }
.inv-a4 .inv-parties { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; border-top: 1px solid #ddd; margin-top: 16px; padding-top: 14px; }
.inv-a4 .inv-k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: #666; }
.inv-a4 .inv-stamp { border: 2px solid; border-radius: 8px; padding: 6px 16px; text-align: center; display: flex; flex-direction: column; }
.inv-a4 .inv-stamp span { font-size: 10px; font-weight: 700; letter-spacing: .05em; color: #666; }
.inv-a4 .inv-stamp strong { font-size: 15px; }
.inv-a4 .inv-stamp.ok { border-color: #1f8a3b; } .inv-a4 .inv-stamp.ok strong { color: #1f8a3b; }
.inv-a4 .inv-stamp.warn { border-color: #b26a00; } .inv-a4 .inv-stamp.warn strong { color: #b26a00; }
.inv-a4 .inv-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 12.5px; }
.inv-a4 .inv-table th { background: #eef3fd; color: #0a5bd8; text-align: left; padding: 7px 8px; font-weight: 700; }
.inv-a4 .inv-table td { padding: 7px 8px; border-bottom: 1px solid #e3e3e8; vertical-align: top; }
.inv-a4 .inv-table .num { text-align: right; white-space: nowrap; }
.inv-a4 .inv-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; flex-wrap: wrap-reverse; }
.inv-a4 .inv-verify { display: flex; gap: 10px; align-items: center; max-width: 330px; }
.inv-a4 .inv-verify svg { width: 92px; height: 92px; flex: none; }
.inv-a4 .inv-sum { min-width: 260px; flex: 0 1 300px; display: grid; gap: 4px; }
.inv-a4 .inv-total { background: #0a5bd8; color: #fff; font-weight: 800; font-size: 15px; padding: 7px 10px; border-radius: 6px; margin: 4px 0; }
.inv-a4 .inv-foot { margin-top: 18px; border-top: 1px solid #ddd; padding-top: 10px; text-align: center; color: #666; font-size: 11.5px; }
.inv-a4 .inv-foot .bc { margin-bottom: 6px; }
@media print {
  .print-area.inv-a4 { border-top: 6px solid #0a5bd8 !important; padding: 0 !important; }
  .print-area.inv-a4 .inv-total, .print-area.inv-a4 .inv-total * { color: #fff !important; }
  .print-area.inv-a4 .inv-title, .print-area.inv-a4 .inv-table th { color: #0a5bd8 !important; }
  .print-area.inv-a4 .inv-stamp.ok strong { color: #1f8a3b !important; }
  .print-area.inv-a4 .inv-stamp.warn strong { color: #b26a00 !important; }
  .print-area .rc-paper { display: none !important; }
}
.verify-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-left, 0px)); }
.verify-card { max-width: 440px; width: 100%; text-align: center; padding: 28px 22px; }
.verify-card h1 { font-size: 22px; margin: 10px 0 6px; }
.verify-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; color: #fff; }
.verify-ic svg { width: 32px; height: 32px; }
.verify-card.ok .verify-ic { background: var(--success, #1f8a3b); }
.verify-card.bad .verify-ic { background: var(--danger); }
.verify-kv { text-align: left; margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.verify-kv dt { color: var(--muted); } .verify-kv dd { margin: 0; text-align: right; }

/* ===== Absensi QR (nov 2026) ===== */
.att-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.att-stat .lbl svg.i { width: 15px; height: 15px; }
.stat.ok .val { color: var(--success, #1f8a3b); } .stat.warn .val { color: var(--warning, #b26a00); } .stat.bad .val { color: var(--danger); } .stat.info .val { color: var(--primary); }
.att-grid2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .att-grid2 { grid-template-columns: 1fr; } }
.att-today, .att-scans { display: flex; flex-direction: column; }
.att-trow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: .5px solid var(--border); }
.att-trow .grow { flex: 1; }
.att-times { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-variant-numeric: tabular-nums; font-size: 13px; min-width: 74px; }
.att-times svg.i { width: 12px; height: 12px; }
@media (max-width: 560px) { .att-trow { flex-wrap: wrap; } .att-trow .att-times { flex-direction: row; gap: 10px; min-width: 0; order: 3; width: 100%; padding-left: 44px; align-items: center; } }
.att-scan { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-top: .5px solid var(--border); }
.att-scan .grow { flex: 1; }
.att-scan .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.att-scan.ok .dot { background: var(--success, #1f8a3b); } .att-scan.bad .dot { background: var(--danger); }
.att-bar { display: inline-block; width: 46px; height: 6px; border-radius: 9px; background: var(--fill); margin-right: 6px; vertical-align: middle; overflow: hidden; }
.att-bar span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.day-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.day-pick button { min-width: 46px; height: 38px; border-radius: 10px; border: 0; background: var(--fill); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.day-pick button.on { background: var(--primary); color: var(--on-primary); }
.att-toggles { display: grid; gap: 10px; margin-top: 6px; }
.att-toggle { align-items: flex-start; gap: 10px; }
.att-toggle > span { display: flex; flex-direction: column; gap: 1px; }
.kiosk-link { display: flex; gap: 8px; } .kiosk-link .input { flex: 1; min-width: 0; font-size: 12.5px; }
/* Kartu absensi ukuran KTP */
.att-card { width: 85.6mm; height: 54mm; border-radius: 3.5mm; overflow: hidden; background: #fff; color: #111; border: .3mm solid #d5dbe6; display: flex; flex-direction: column; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.att-card .ac-top { background: linear-gradient(135deg, #0a5bd8, #2f80ff); color: #fff; padding: 2.4mm 4mm; display: flex; justify-content: space-between; align-items: baseline; gap: 2mm; font-size: 8.5pt; }
.att-card .ac-top span { font-size: 6pt; letter-spacing: .14em; opacity: .9; white-space: nowrap; }
.att-card .ac-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-card .ac-body { flex: 1; display: flex; gap: 3mm; align-items: center; padding: 2mm 4mm; min-height: 0; }
.att-card .ac-qr svg { width: 30mm; height: 30mm; display: block; }
.att-card .ac-who { min-width: 0; }
.att-card .ac-name { font-size: 11.5pt; font-weight: 800; line-height: 1.15; }
.att-card .ac-pos { font-size: 8pt; color: #555; margin-top: .6mm; }
.att-card .ac-id { font-size: 7pt; color: #777; margin-top: 2mm; font-family: ui-monospace, Consolas, monospace; }
.att-card .ac-foot { font-size: 6.5pt; color: #666; text-align: center; padding: 1.2mm; border-top: .3mm dashed #ccd; }
@media print { .print-area .att-card .ac-top, .print-area .att-card .ac-top * { color: #fff !important; } .print-area .att-card .ac-pos { color: #555 !important; } }
/* Absensi Saya */
.my-qr { display: flex; flex-direction: column; gap: 8px; }
.my-qr-box { display: grid; place-items: center; background: #fff; border-radius: 16px; padding: 12px; margin: 6px auto 0; width: min(300px, 100%); aspect-ratio: 1; max-width: 100%; }
.my-qr-box svg { width: 100%; height: auto; }
.my-qr-bar { height: 4px; border-radius: 9px; background: var(--fill); overflow: hidden; width: min(300px, 100%); margin: 0 auto; }
.my-qr-bar span { display: block; height: 100%; width: 100%; background: var(--primary); transition: width .5s linear; }
.my-today { display: flex; flex-direction: column; text-align: center; margin-top: 6px; }
/* Mode scan / kios */
body.kiosk-on .sidebar, body.kiosk-on .topbar, body.kiosk-on .tabbar, body.kiosk-on .trial-banner { display: none !important; }
body.kiosk-on .content { padding: 0; max-width: none; }
.kiosk { min-height: 100dvh; background: #0b1220; color: #eef2fb; display: flex; flex-direction: column; padding: 14px max(16px, env(safe-area-inset-left, 0px)) 16px; gap: 14px; }
.kiosk-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kiosk-biz { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.kiosk-sub { color: #9fb0cf; font-size: 13.5px; }
.kiosk-clock { text-align: right; display: flex; flex-direction: column; }
.kiosk-clock strong { font-size: 34px; font-variant-numeric: tabular-nums; letter-spacing: .02em; line-height: 1; }
.kiosk-clock span { color: #9fb0cf; font-size: 13px; }
.kiosk-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; min-height: 0; }
@media (max-width: 820px) { .kiosk-main { grid-template-columns: 1fr; } .kiosk-clock strong { font-size: 26px; } }
.kiosk-cam { position: relative; border-radius: 22px; overflow: hidden; background: #000; min-height: 300px; aspect-ratio: 4 / 3; max-width: 100%; }
.kiosk-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.kiosk-cam video.mirror { transform: scaleX(-1); }
.kiosk-frame { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.kiosk-frame span { width: min(58%, 300px); aspect-ratio: 1; border-radius: 22px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); border: 3px solid rgba(255, 255, 255, .85); }
.kiosk-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; background: #0f1a2e; }
.kiosk-start[hidden] { display: none; }
.kiosk-start p { color: #9fb0cf; max-width: 360px; }
.kiosk-flip { position: absolute; top: 12px; right: 12px; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .55); cursor: pointer; }
.kiosk-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kiosk-hint { background: #15233d; border-radius: 16px; padding: 14px 16px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.kiosk-side .input { background: #15233d; color: #eef2fb; }
.kiosk-recent { background: #101b30; border-radius: 16px; overflow: hidden; flex: 1; min-height: 120px; }
.kiosk-recent .att-scan { border-color: rgba(255, 255, 255, .07); }
.kiosk-recent .muted { color: #9fb0cf !important; }
.kiosk .btn:not(.btn-primary) { background: #1c2b48; color: #dfe7f7; }
.kiosk-result { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(4, 10, 20, .55); animation: fade .2s; }
.kiosk-result[hidden] { display: none; }
.kr-card { width: min(520px, 100%); border-radius: 28px; padding: 30px 24px; text-align: center; color: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); animation: pop .35s var(--ease); }
.kr-card.ok { background: linear-gradient(160deg, #19a34a, #0f7a36); }
.kr-card.bad { background: linear-gradient(160deg, #e5484d, #b4232a); }
.kr-ic { width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; margin: 0 auto 12px; }
.kr-ic svg.i { width: 46px; height: 46px; stroke-width: 2.6; }
.kr-title { font-size: clamp(24px, 6vw, 34px); font-weight: 900; letter-spacing: .04em; }
.kr-name { font-size: 24px; font-weight: 700; margin-top: 8px; }
.kr-act { font-size: 18px; font-weight: 700; margin-top: 4px; opacity: .95; letter-spacing: .05em; }
.kr-msg { margin-top: 10px; font-size: 15px; opacity: .92; }

.kiosk-flip[hidden] { display: none; }
.att-card { flex: none; }

/* ===== Hitung volume & baca gambar (RAB) ===== */
.vol-inputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 12px; }
.vol-inputs .from-drawing .input { box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 45%, transparent); }
.vol-inputs [data-target] { cursor: copy; outline: 2px dashed var(--primary); outline-offset: 1px; }
.vol-results { display: grid; gap: 10px; }
.vol-res { border: .5px solid var(--border); border-radius: 14px; padding: 12px; display: grid; gap: 8px; background: var(--fill-2); opacity: .75; }
.vol-res.on { opacity: 1; border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.vol-res .check > span { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.vol-val { font-size: 16px; font-weight: 800; color: var(--primary); }
.vol-steps { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; color: var(--text-2, var(--muted)); background: var(--fill); padding: 6px 10px; border-radius: 8px; overflow-x: auto; white-space: nowrap; }
.vol-drop { text-align: center; padding: 26px 12px; border: 2px dashed var(--border); border-radius: 16px; }
.vol-drop p { text-align: left; max-width: 560px; margin-inline: auto; }
.vol-chip { font-variant-numeric: tabular-nums; margin: 2px 4px 2px 0; }
.vol-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.vol-rect { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; margin-right: 8px; }
.vol-layers td { vertical-align: top; }
.vol-texts { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
[hidden] { display: none !important; }

/* ===== Grup menu: tab sub-menu di atas halaman ===== */
.hub-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -6px 0 18px; padding: 4px 2px 10px; border-bottom: .5px solid var(--border); }
.hub-tabs::-webkit-scrollbar { display: none; }
.hub-tabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; color: var(--text-2, var(--muted)); background: var(--fill-2); font-weight: 600; font-size: 13.5px; text-decoration: none !important; white-space: nowrap; transition: background .2s, color .2s; }
.hub-tabs a svg.i { width: 16px; height: 16px; }
.hub-tabs a.on { background: var(--primary); color: var(--on-primary); }
.hub-tabs a .lock { width: 13px; height: 13px; opacity: .7; }
@media (hover: hover) { .hub-tabs a:not(.on):hover { background: var(--fill); color: var(--text); } }

/* ===== Foto produk ===== */
.photo-pick { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.photo-pick .pp-img { width: 84px; height: 84px; flex: none; border-radius: 16px; background: var(--fill); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.photo-pick .pp-img img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick .pp-img svg.i { width: 28px; height: 28px; }
.photo-pick .pp-act { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pos-item.has-img { padding-top: 8px; }
.pos-item .pi-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 4px; background: var(--fill); }

/* ===== Pesanan masuk (kasir) ===== */
.incoming .card-head h2 { display: flex; align-items: center; gap: 8px; }
.incoming-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 0 16px 16px; }
.incoming-item { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; background: var(--fill-2); color: inherit; text-decoration: none !important; border: .5px solid var(--border); }
.incoming-item .ii-top, .incoming-item .ii-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.incoming-item .ii-top strong { font-size: 18px; }
@media (hover: hover) { .incoming-item:hover { border-color: var(--primary); } }
.menu-launch { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.menu-launch > .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-1); color: #fff; flex: none; }

/* ===== Layar menu pelanggan (terkunci) ===== */
body.menu-on .trial-banner, body.menu-on .tabbar, body.menu-on .offline-pill { display: none !important; }
.mn { min-height: 100dvh; display: flex; flex-direction: column; padding: 14px max(16px, env(safe-area-inset-left, 0px)) 110px; max-width: 1200px; margin: 0 auto; }
.mn-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mn-biz { color: var(--muted); font-weight: 600; }
.mn-head h1 { font-size: clamp(26px, 5vw, 38px); letter-spacing: -.02em; }
.mn-lock { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--fill); color: var(--muted); display: grid; place-items: center; cursor: pointer; opacity: .55; }
.mn-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 0; }
.mn-cats::-webkit-scrollbar { display: none; }
.mn-cats .chip { flex: none; font-size: 15px; padding: 9px 18px; }
.mn-cats .chip.on { background: var(--primary); color: var(--on-primary); }
.mn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
@media (max-width: 420px) { .mn-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.mn-item { display: flex; flex-direction: column; gap: 4px; text-align: left; border: .5px solid var(--border); background: var(--surface, var(--fill-2)); border-radius: 18px; padding: 10px; cursor: pointer; font: inherit; color: inherit; transition: transform .15s var(--ease), border-color .2s; }
.mn-item:active { transform: scale(.97); }
.mn-item.in { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 35%, transparent); }
.mn-item:disabled { opacity: .45; cursor: not-allowed; }
.mn-img { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--fill); display: grid; place-items: center; }
.mn-img img { width: 100%; height: 100%; object-fit: cover; }
.mn-img > span:first-child { font-size: 38px; font-weight: 800; color: var(--muted); }
.mn-q { position: absolute; top: 8px; right: 8px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 99px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 800; }
.mn-name { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.mn-desc { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mn-price { font-weight: 800; color: var(--primary); margin-top: auto; }
.mn-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: min(640px, calc(100% - 28px)); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--glass-strong); box-shadow: var(--shadow-lg); border: .5px solid var(--border); z-index: 50; }
.mn-bar[hidden] { display: none; }
.mn-sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 60; }
.mn-sheet { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(560px, 100%); max-height: 88dvh; overflow-y: auto; background: var(--glass-strong); border-radius: 24px 24px 0 0; padding: 20px max(18px, env(safe-area-inset-left, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 61; box-shadow: var(--shadow-lg); animation: sheet .35s var(--ease); }
.mn-lines { display: grid; gap: 10px; margin-top: 10px; }
.mn-line { display: flex; align-items: center; gap: 10px; }
.mn-line .grow { flex: 1; min-width: 0; }
.mn-total { display: flex; justify-content: space-between; align-items: center; font-size: 18px; padding: 12px 0; border-top: .5px solid var(--border); margin-top: 8px; }
.mn-pay { display: grid; gap: 10px; }
.mn-done { text-align: center; }
.mn-number { font-size: 72px; font-weight: 900; line-height: 1; color: var(--primary); margin: 4px 0 12px; }
.mn-qr { background: #fff; border-radius: 16px; padding: 10px; width: min(300px, 100%); margin: 8px auto; }
.mn-qr svg { width: 100%; height: auto; display: block; }
.pin-input { font-size: 22px; letter-spacing: .4em; text-align: center; }
.pin-rules { display: grid; gap: 8px; }

/* ===== Mode kasir: menu lain buram & dikunci PIN ===== */
a.pin-locked > span, a.pin-locked > svg:not(.lock) { filter: blur(3px); opacity: .55; }
a.pin-locked svg.lock { opacity: .9; }
.cm-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.cm-pill svg { width: 16px; height: 16px; }
.cm-pill.locked { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 35%, transparent); }
.cm-pill.open { background: var(--primary-soft); color: var(--primary); }
.cm-pill b { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .cm-pill { padding: 0 10px; } .cm-pill.locked span { display: none; } }
.cm-locked { position: relative; min-height: 70vh; }
.cm-ghost { filter: blur(10px); opacity: .55; pointer-events: none; user-select: none; }
.cm-ghost-title { height: 34px; width: 40%; border-radius: 10px; background: var(--border); margin-bottom: 18px; }
.cm-ghost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cm-ghost-card { border-radius: 16px; background: linear-gradient(135deg, var(--primary-soft), var(--border)); }
.cm-ghost-card:nth-child(4), .cm-ghost-card:nth-child(5) { grid-column: span 3; }
@media (min-width: 760px) { .cm-ghost-card:nth-child(4) { grid-column: span 2; } .cm-ghost-card:nth-child(5) { grid-column: span 1; } }
.cm-cover { position: absolute; inset: 0; display: grid; place-items: start center; padding-top: 12vh; }
.cm-card { max-width: 420px; width: 100%; text-align: center; display: grid; gap: 10px; justify-items: center; }
.cm-lock-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--warning-soft); color: var(--warning); }
.cm-lock-ic svg { width: 26px; height: 26px; }
.cm-box { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--border); }
.cm-box > div { flex: 1 1 320px; min-width: 0; }
.dev-list { display: grid; gap: 4px; }
.dev-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.dev-row:last-child { border-bottom: 0; }
.dev-ic { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }

/* ===== Absen HP: selfie + lokasi ===== */
.selfie-box { position: relative; border-radius: 18px; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; max-width: 360px; margin-inline: auto; display: grid; place-items: center; }
.selfie-box video, .selfie-box img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.selfie-box img { transform: none; }
.selfie-msg { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; text-align: center; background: color-mix(in srgb, var(--bg, #000) 55%, transparent); }
.loc-line { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted, inherit); }
.loc-line svg { width: 18px; height: 18px; flex: none; }
.loc-line.ok { color: var(--success, #1a7f37); }
.loc-line.bad { color: var(--danger); }
.att-proof { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.att-proof img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.att-proof svg { width: 20px; height: 20px; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.proof-col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.proof-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.proof-none { aspect-ratio: 1; border-radius: 14px; border: 1px dashed var(--border); display: grid; place-items: center; }
.att-geo { padding-top: 14px; border-top: 1px solid var(--border); }
.emp-acc { justify-content: flex-start; }

/* ===== Kartu absensi: lembar A4 rapi (8 kartu/halaman, tidak menumpuk/terbelah) ===== */
.card-sheet.att-sheet { max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(auto-fill, 85.6mm); justify-content: center; gap: 4mm; }
@media print {
  body:has(#modal-root .att-sheet) .modal-body > :not(.print-area) { display: none !important; }
  .print-area.card-sheet.att-sheet { position: static !important; display: block !important; width: 180mm !important; margin: 0 auto !important; font-size: 0; line-height: 0; }
  .print-area.att-sheet .att-card { display: inline-flex !important; vertical-align: top; margin: 0 0 4mm 0; font-size: 10pt; line-height: normal; break-inside: avoid; page-break-inside: avoid; }
  .print-area.att-sheet .att-card:nth-child(odd) { margin-right: 4mm; }
}
/* Hiasan latar aplikasi tidak ikut tercetak di dokumen apa pun. */
@media print { body::before, body::after { display: none !important; content: none !important; } html, body { background: #fff !important; } }

/* ===== Landing: Untuk siapa ===== */
.aud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.aud { padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.aud-head { display: flex; gap: 12px; align-items: center; }
.aud-head h3 { font-size: 18px; }
.aud-ic { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--grad-1); color: #fff; }
.aud-ic svg { width: 22px; height: 22px; }
.aud ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aud li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.aud li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--success, #34c759); }

/* Paket: judul kelompok fitur (Perusahaan & sekolah) */
.plan li.plan-group { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.compare tr.cmp-group td { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--fill-2, transparent); }

/* ===== Animasi halaman depan — KHUSUS laptop/PC (html.motion dipasang oleh motion.js). HP tetap biasa. ===== */
@keyframes mo-up { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes mo-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes mo-mock-in { from { opacity: 0; scale: .94; translate: 40px 10px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes mo-shine { to { background-position: 200% center; } }
@keyframes mo-draw { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
@keyframes mo-fill { from { opacity: 0; } to { opacity: 1; } }
@keyframes mo-blobs { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 33% { transform: translate3d(2.5%, -2%, 0) scale(1.05); } 66% { transform: translate3d(-2%, 2.5%, 0) scale(.97); } }
@keyframes mo-wiggle { 0%, 100% { rotate: 0deg; } 30% { rotate: -9deg; } 60% { rotate: 7deg; } }
@keyframes mo-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }

/* Latar bergerak pelan di halaman publik */
html.motion body:not(.in-app)::before { animation: mo-blobs 26s ease-in-out infinite; will-change: transform; }

/* Pembuka (hero): muncul berurutan */
html.motion body:not(.in-app) .hero > div:first-child > * { opacity: 0; animation: mo-up .8s cubic-bezier(.2, .8, .2, 1) forwards; }
html.motion body:not(.in-app) .hero > div:first-child > :nth-child(1) { animation-delay: .05s; }
html.motion body:not(.in-app) .hero > div:first-child > :nth-child(2) { animation-delay: .15s; }
html.motion body:not(.in-app) .hero > div:first-child > :nth-child(3) { animation-delay: .28s; }
html.motion body:not(.in-app) .hero > div:first-child > :nth-child(4) { animation-delay: .4s; }
html.motion body:not(.in-app) .hero > div:first-child > :nth-child(5) { animation-delay: .52s; }
html.motion .hero h1 em { background-size: 200% auto; animation: mo-shine 6s linear infinite; background-image: linear-gradient(90deg, #0a84ff, #5e5ce6 25%, #30d158 50%, #5e5ce6 75%, #0a84ff); }
html.motion .hero .cta .btn-primary { animation: mo-pulse 2.6s ease-in-out 1.4s 3; }

/* Kartu contoh dasbor: masuk, melayang, miring mengikuti mouse */
html.motion body:not(.in-app) .hero .mock { opacity: 0; animation: mo-mock-in 1s cubic-bezier(.2, .8, .2, 1) .25s forwards, mo-float 7s ease-in-out 1.4s infinite;
  transform: perspective(1400px) rotateY(var(--tx, -6deg)) rotateX(var(--ty, 2deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
html.motion .hero .mock svg path[stroke] { stroke-dasharray: 700; animation: mo-draw 2.2s cubic-bezier(.4, 0, .2, 1) .7s both; }
html.motion .hero .mock svg path[fill^="url"] { animation: mo-fill 1.2s ease 1.6s both; }
html.motion .hero .mock .kpi { opacity: 0; animation: mo-up .7s cubic-bezier(.2, .8, .2, 1) forwards; }
html.motion .hero .mock .kpi:nth-child(1) { animation-delay: .6s; }
html.motion .hero .mock .kpi:nth-child(2) { animation-delay: .75s; }

/* Muncul saat digulir */
html.motion .rv { opacity: 0; translate: 0 26px; transition: opacity .7s cubic-bezier(.2, .8, .2, 1) var(--rv-delay, 0ms), translate .7s cubic-bezier(.2, .8, .2, 1) var(--rv-delay, 0ms); }
html.motion .rv.in { opacity: 1; translate: 0 0; }

/* Kartu: terangkat + sorotan cahaya mengikuti kursor + ikon bergoyang */
html.motion .feature, html.motion .aud, html.motion .plan { position: relative; isolation: isolate;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease, opacity .7s cubic-bezier(.2, .8, .2, 1) var(--rv-delay, 0ms), translate .7s cubic-bezier(.2, .8, .2, 1) var(--rv-delay, 0ms); }
html.motion .feature:hover, html.motion .aud:hover, html.motion .plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
html.motion .feature::before, html.motion .aud::before, html.motion .plan::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--primary) 16%, transparent), transparent 60%); }
html.motion .feature:hover::before, html.motion .aud:hover::before, html.motion .plan:hover::before { opacity: 1; }
html.motion .feature:hover .ic, html.motion .aud:hover .aud-ic { animation: mo-wiggle .6s ease; }

@media (prefers-reduced-motion: reduce) { html.motion *, html.motion *::before { animation: none !important; transition: none !important; } html.motion .rv { opacity: 1; translate: none; } }

/* ===== Animasi di dalam aplikasi — khusus laptop/PC ===== */
html.motion body.in-app::before { animation: mo-blobs 30s ease-in-out infinite; will-change: transform; }
html.motion .ap { animation: mo-up .55s cubic-bezier(.2, .8, .2, 1) var(--ap-delay, 0ms) both; }
html.motion .content { animation: none; }
html.motion .kpi, html.motion .card.stat, html.motion .emp, html.motion .dash-grid > .card { transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; }
html.motion .kpi:hover, html.motion .card.stat:hover, html.motion .emp:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
html.motion .akses a:hover { transform: translateY(-3px) scale(1.04); }
html.motion .akses a:hover span { animation: mo-wiggle .5s ease; }
html.motion .nav a svg { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
html.motion .nav a:hover svg { transform: translateX(3px) scale(1.08); }
html.motion .pos-item:hover { transform: translateY(-3px); }
html.motion .btn-primary { transition: transform .2s ease, box-shadow .2s ease, background .2s; }
html.motion .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 35%, transparent); }

/* ===== Intro selamat datang + panah "untung naik" (khusus laptop, html.motion) ===== */
.hero-visual { position: relative; min-width: 0; }
.hero-shape { display: none; }
html.motion .hero-shape { display: block; position: absolute; inset: -4% -12% -14% -8%; z-index: 0; pointer-events: none;
  filter: drop-shadow(0 28px 50px rgba(10, 132, 255, .32)) drop-shadow(0 0 36px rgba(94, 92, 230, .28)); transition: translate .6s cubic-bezier(.22, 1, .36, 1); }
html.motion .hero-shape canvas { display: block; width: 100%; height: 100%;
  clip-path: polygon(8% 100%, 0% 91%, 55% 37%, 40% 22%, 100% 0%, 78% 60%, 63% 45%);
  background: linear-gradient(135deg, #0a84ff, #5e5ce6 55%, #30d158); background-size: 200% 200%; animation: mo-shine 8s linear infinite; }
html.motion .hero-shape canvas.gl-on { animation: none; }
html.motion .hero-shape.grow canvas { animation: mo-arrow-grow 1.3s cubic-bezier(.76, 0, .24, 1) .2s both; }
@keyframes mo-arrow-grow {
  from { clip-path: polygon(4% 96%, 4% 96%, 4% 96%, 4% 96%, 4% 96%, 4% 96%, 4% 96%); }
  55% { clip-path: polygon(8% 100%, 0% 91%, 52% 40%, 52% 40%, 60% 48%, 60% 48%, 60% 48%); }
  to { clip-path: polygon(8% 100%, 0% 91%, 55% 37%, 40% 22%, 100% 0%, 78% 60%, 63% 45%); } }
html.motion .hero .mock { position: relative; z-index: 1; }

/* Selama intro, animasi masuk halaman ditahan dulu lalu dimainkan saat intro menyatu ke halaman */
html.intro-on body:not(.in-app) .hero *, html.intro-on body:not(.in-app) .hero .mock, html.intro-on .rv { animation-play-state: paused !important; }
html.intro-on, html.intro-on body { overflow: hidden; }

.intro { position: fixed; inset: 0; z-index: 2147483000; cursor: pointer; overflow: hidden; }
.intro-bg { position: absolute; inset: 0; background: var(--bg); }
.intro-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  clip-path: polygon(0% 74%, 0% 62%, 0% 62%, 0% 62%, 0% 62%, 0% 74%, 0% 74%);
  background: linear-gradient(135deg, #0a84ff, #5e5ce6 55%, #30d158); filter: drop-shadow(0 0 40px rgba(94, 92, 230, .35)); }
.intro-load { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(380px, 80vw); display: grid; gap: 14px; color: var(--text); opacity: 0; }
.intro-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.intro-brand img { width: 34px; height: 34px; }
.intro-bar { height: 3px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--text) 12%, transparent); }
.intro-bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #0a84ff, #5e5ce6, #30d158); }
.intro-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.intro-meta b { font-variant-numeric: tabular-nums; color: var(--text); }
.intro-ready { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 32px; color: #fff; opacity: 0; padding: 0 8vw; }
.intro-ring { width: 128px; height: 128px; flex: none; rotate: -90deg; }
.intro-ring circle { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 6; }
.intro-ring circle.on { stroke: #fff; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; }
.intro-ready-text small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.intro-ready-text strong { display: block; margin-top: 6px; font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; max-width: 15ch; text-wrap: balance; }
.intro-ready-text ul { list-style: none; display: flex; gap: 10px; padding: 0; margin: 16px 0 0; }
.intro-ready-text li { opacity: 0; padding: 6px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.intro-ready-text li::before { content: "✓ "; }
.intro-skip { position: absolute; right: 24px; bottom: 24px; border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 13px; cursor: pointer;
  color: var(--text); background: color-mix(in srgb, var(--surface, #fff) 70%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }
html.intro-mock body:not(.in-app) .hero .mock, html.intro-mock body:not(.in-app) .hero .mock * { animation-play-state: paused !important; }

/* ===== Teks pembuka: kata demi kata + cahaya menjalar (laptop) ===== */
@keyframes mo-soft { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes mo-word { from { opacity: 0; transform: translateY(105%) rotate(3deg); filter: blur(7px); } to { opacity: 1; transform: none; filter: blur(0); } }
/* Gelombang cahaya: menyala singkat di awal siklus, lalu redup — tiap kata tertunda sedikit sehingga cahaya "merembet". */
@keyframes mo-glow {
  0% { filter: drop-shadow(0 0 0 rgba(120, 170, 255, 0)) brightness(1); }
  6% { filter: drop-shadow(0 0 14px rgba(120, 175, 255, .95)) drop-shadow(0 0 30px rgba(94, 92, 230, .55)) brightness(1.35); }
  16%, 100% { filter: drop-shadow(0 0 0 rgba(120, 170, 255, 0)) brightness(1); } }
html.motion body:not(.in-app) .hero > div:first-child > * { animation-name: mo-soft; animation-duration: .9s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
html.motion body:not(.in-app) .hero > div:first-child > :nth-child(1) { animation-delay: .05s; }
html.motion body:not(.in-app) .hero > div:first-child > :nth-child(3) { animation-delay: calc(.3s + var(--n, 6) * .07s); }
html.motion body:not(.in-app) .hero > div:first-child > :nth-child(4) { animation-delay: calc(.45s + var(--n, 6) * .07s); }
html.motion body:not(.in-app) .hero > div:first-child > :nth-child(5) { animation-delay: calc(.6s + var(--n, 6) * .07s); }
html.motion body:not(.in-app) .hero > div:first-child > h1[data-split] { opacity: 1; animation: none; }
html.motion .hero h1[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .12em; margin: 0 -.04em -.12em;
  animation: mo-glow 7s ease-in-out calc(1.1s + var(--n, 6) * .07s + var(--i) * .09s) infinite; }
html.motion .hero h1[data-split] .w > span { display: inline-block; animation: mo-word .95s cubic-bezier(.22, 1, .36, 1) calc(.15s + var(--i) * .07s) both; }
html.motion .hero > div:first-child > :nth-child(3), html.motion .hero > div:first-child > :nth-child(4), html.motion .hero > div:first-child > :nth-child(5) { opacity: 0; }

/* ===== Teks menyala mengikuti kursor (laptop) ===== */
html.motion .gt { transition: text-shadow .35s ease; }
html.motion .gt.gt-on {
  color: transparent; -webkit-text-fill-color: transparent;
  background-image: radial-gradient(150px circle at var(--gx, -999px) var(--gy, -999px), #ffffff 0%, #b9dcff 22%, #7fb2ff 38%, transparent 62%),
    linear-gradient(var(--gt-base), var(--gt-base));
  -webkit-background-clip: text; background-clip: text;
  text-shadow: 0 0 22px rgba(110, 165, 255, .28);
}
/* Kata-kata judul: menyala sesuai jarak ke kursor (--p 0..1) */
html.motion .hero h1[data-split] .w > span { transition: text-shadow .25s ease-out;
  text-shadow: 0 0 calc(var(--p, 0) * 26px) rgba(120, 175, 255, calc(var(--p, 0) * .9)), 0 0 calc(var(--p, 0) * 60px) rgba(94, 92, 230, calc(var(--p, 0) * .55)); }
html.motion .hero h1[data-split].words-done .w { overflow: visible; }

/* Layar sentuh: efek "terangkat saat disentuh" tidak dipakai (di HP efek hover tertinggal setelah diketuk). */
@media (hover: none) {
  html.motion .feature:hover, html.motion .aud:hover, html.motion .plan:hover, html.motion .kpi:hover, html.motion .card.stat:hover, html.motion .emp:hover,
  html.motion .akses a:hover, html.motion .pos-item:hover, html.motion .btn-primary:hover, html.motion .nav a:hover svg { transform: none; }
  html.motion .feature:hover::before, html.motion .aud:hover::before, html.motion .plan:hover::before { opacity: 0; }
  html.motion .feature:hover .ic, html.motion .aud:hover .aud-ic, html.motion .akses a:hover span { animation: none; }
}
/* Intro di HP: cincin di atas, teks di bawah, rata tengah. */
@media (max-width: 600px) {
  .intro-ready { flex-direction: column; gap: 20px; text-align: center; padding: 0 24px; }
  .intro-ring { width: 96px; height: 96px; }
  .intro-ready-text strong { margin-inline: auto; }
  .intro-ready-text ul { justify-content: center; flex-wrap: wrap; }
}

/* ============ Tema layar menu pelanggan & layar antrean (12 gaya, masing-masing punya karakter sendiri) ============ */
.mtheme { min-height: 100dvh; background-color: var(--bg); color: var(--text); position: relative; z-index: 0; }
.mtheme .mn-item { background: var(--surface); }
.mtheme .mn-sheet, .mtheme .mn-bar { color: var(--text); }
.mtheme .btn:not(.btn-primary) { color: var(--primary); }
.mtheme .btn-primary { background: var(--primary); color: var(--on-primary); }
.mtheme .mn-cats .chip { background: var(--fill); color: var(--text); }
.mtheme .mn-cats .chip.on { background: var(--primary); color: var(--on-primary); }

/* 1. Papan kapur — papan tulis kafe dengan bingkai kayu, tulisan kapur */
.mtheme-kafe { --bg: #1f2a24; --surface: rgba(255, 255, 255, .03); --surface-2: #26332c; --fill: rgba(255, 255, 255, .07); --fill-2: rgba(255, 255, 255, .05); --border: rgba(244, 241, 232, .4);
  --text: #f4f1e8; --text-2: #dcd8cc; --muted: #b5beb1; --primary: #f6e27a; --primary-2: #ecd45a; --on-primary: #1f2a24; --glass-strong: #26332c; --edge: rgba(255, 255, 255, .1); color-scheme: dark;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.2px), radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1.2px);
  background-size: 5px 5px, 11px 11px; box-shadow: inset 0 0 0 12px #7a5230, inset 0 0 0 15px #5a391c, inset 0 0 60px rgba(0, 0, 0, .5); }
.mtheme-kafe .mn, .mtheme-kafe.qd { padding-left: 32px; padding-right: 32px; padding-top: 26px; }
.mtheme-kafe h1, .mtheme-kafe h2, .mtheme-kafe .mn-name, .mtheme-kafe .mn-price, .mtheme-kafe .qd-num, .mtheme-kafe .qd-row b, .mtheme-kafe .chip, .mtheme-kafe .qd-clock {
  font-family: "Segoe Print", "Chalkboard SE", "Bradley Hand", "Comic Sans MS", cursive; }
.mtheme-kafe h1 { text-shadow: 0 0 1px rgba(255, 255, 255, .6); }
.mtheme-kafe .mn-item, .mtheme-kafe .qd-main section { background: transparent; border: 2px dashed var(--border); border-radius: 8px; }
.mtheme-kafe .mn-price { color: var(--primary); }
.mtheme-kafe .qd-num { background: transparent; border: 3px solid var(--primary); color: var(--primary); border-radius: 10px; }
.mtheme-kafe .qd-num:nth-child(odd) { rotate: -1.5deg; } .mtheme-kafe .qd-num:nth-child(even) { rotate: 1.2deg; }
.mtheme-kafe .qd-row { background: transparent; border: 1.5px dashed rgba(244, 241, 232, .3); }
.mtheme-kafe .chip { background: transparent !important; border: 2px dashed var(--border); }
.mtheme-kafe .chip.on { border-color: var(--primary); color: var(--primary) !important; }

/* 2. Neon malam — huruf menyala pink & biru di atas lantai grid */
.mtheme-malam { --bg: #0b0618; --surface: rgba(24, 12, 48, .75); --surface-2: #160c2c; --fill: rgba(41, 240, 255, .08); --fill-2: rgba(41, 240, 255, .05); --border: rgba(41, 240, 255, .35);
  --text: #f5ecff; --text-2: #ddd0f2; --muted: #a99cc4; --primary: #ff3fd4; --primary-2: #ff66de; --on-primary: #12051f; --glass-strong: rgba(22, 12, 44, .97); --edge: rgba(255, 255, 255, .08); color-scheme: dark;
  background-image: linear-gradient(transparent 96%, rgba(41, 240, 255, .14) 96%), linear-gradient(90deg, transparent 96%, rgba(41, 240, 255, .14) 96%), radial-gradient(ellipse at 50% -10%, #4a1470, #0b0618 65%);
  background-size: 44px 44px, 44px 44px, 100% 100%; background-attachment: fixed; }
.mtheme-malam h1, .mtheme-malam .qd-clock { color: #29f0ff; text-shadow: 0 0 6px #29f0ff, 0 0 22px rgba(41, 240, 255, .7); }
.mtheme-malam .qd-ready h2 { color: var(--primary); text-shadow: 0 0 8px var(--primary); }
.mtheme-malam .mn-item, .mtheme-malam .qd-main section { border: 1px solid var(--border); box-shadow: 0 0 18px rgba(41, 240, 255, .12), inset 0 0 18px rgba(41, 240, 255, .06); }
.mtheme-malam .mn-price { color: #29f0ff; text-shadow: 0 0 8px rgba(41, 240, 255, .8); }
.mtheme-malam .qd-num { background: rgba(255, 63, 212, .08); color: #ffd6f6; border: 2px solid var(--primary); text-shadow: 0 0 10px var(--primary), 0 0 28px var(--primary);
  box-shadow: 0 0 16px rgba(255, 63, 212, .55), inset 0 0 16px rgba(255, 63, 212, .35); }
.mtheme-malam .qd-row { background: rgba(41, 240, 255, .06); border: 1px solid rgba(41, 240, 255, .25); }
.mtheme-malam .qd-row b { color: #29f0ff; text-shadow: 0 0 8px #29f0ff; }
.mtheme-malam .chip.on, .mtheme-malam .btn-primary { box-shadow: 0 0 14px rgba(255, 63, 212, .7); }
@keyframes neon-flick { 0%, 92%, 96%, 100% { opacity: 1; } 94% { opacity: .55; } }
.mtheme-malam h1 { animation: neon-flick 6s infinite; }

/* 3. Tenda pasar — atap tenda bergaris hijau, label harga kuning */
.mtheme-segar { --bg: #f2faef; --surface: #ffffff; --surface-2: #ffffff; --fill: rgba(31, 138, 76, .09); --fill-2: rgba(31, 138, 76, .06); --border: #cfe8d4;
  --text: #133a1f; --text-2: #2f4d39; --muted: #5e7a66; --primary: #1f8a4c; --primary-2: #18733f; --on-primary: #fff; --glass-strong: rgba(255, 255, 255, .97); --edge: rgba(19, 50, 30, .1); color-scheme: light; }
.mtheme-segar::before { content: ""; display: block; height: 40px; background: repeating-linear-gradient(90deg, #1f8a4c 0 48px, #ffffff 48px 96px);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% 26px no-repeat, radial-gradient(circle 24px at 50% 0, #000 98%, #0000) 0 26px / 48px 14px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% 26px no-repeat, radial-gradient(circle 24px at 50% 0, #000 98%, #0000) 0 26px / 48px 14px repeat-x; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .12)); }
.mtheme-segar .mn-item, .mtheme-segar .qd-main section { border: 2px solid var(--border); border-radius: 18px; }
.mtheme-segar .mn-price { display: inline-block; align-self: flex-start; background: #ffd84d; color: #3a2a00; padding: 2px 10px; border-radius: 6px; rotate: -3deg; box-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.mtheme-segar .qd-num { position: relative; border-radius: 16px; padding-top: clamp(22px, 2.4vw, 34px); box-shadow: 0 6px 0 #156b39; }
.mtheme-segar .qd-num::before { content: ""; position: absolute; top: 10px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.mtheme-segar .qd-row { background: #fff; border: 2px solid var(--border); }
.mtheme-segar .qd-row b { color: var(--primary); }

/* 4. Komik pop — kuning titik-titik, garis hitam tebal, bayangan kotak */
.mtheme-ceria { --bg: #ffd400; --surface: #ffffff; --surface-2: #ffffff; --fill: #fff4b8; --fill-2: #fff7cc; --border: #111;
  --text: #111; --text-2: #222; --muted: #3a3a3a; --primary: #ff3b6b; --primary-2: #e62a59; --on-primary: #fff; --glass-strong: #ffffff; --edge: #111; color-scheme: light;
  background-image: radial-gradient(rgba(0, 0, 0, .16) 1.5px, transparent 1.8px); background-size: 14px 14px; }
.mtheme-ceria h1, .mtheme-ceria h2, .mtheme-ceria .qd-num, .mtheme-ceria .qd-row b, .mtheme-ceria .mn-price { font-family: Impact, "Arial Black", "Haettenschweiler", sans-serif; font-weight: 900; letter-spacing: .02em; }
.mtheme-ceria h1 { display: inline-block; text-transform: uppercase; rotate: -2deg; color: #fff; -webkit-text-stroke: 2px #111; paint-order: stroke fill; text-shadow: 4px 4px 0 #111; }
.mtheme-ceria .mn-item, .mtheme-ceria .qd-main section, .mtheme-ceria .mn-bar, .mtheme-ceria .mn-sheet { border: 3px solid #111; box-shadow: 6px 6px 0 #111; border-radius: 6px; }
.mtheme-ceria .mn-item:nth-child(odd) { rotate: -.8deg; } .mtheme-ceria .mn-item:nth-child(even) { rotate: .8deg; }
.mtheme-ceria .chip { border: 2.5px solid #111; box-shadow: 3px 3px 0 #111; border-radius: 6px; }
.mtheme-ceria .qd-num { border: 3px solid #111; box-shadow: 6px 6px 0 #111; border-radius: 8px; color: #fff; -webkit-text-stroke: 2px #111; paint-order: stroke fill; }
.mtheme-ceria .qd-num:nth-child(3n+2) { background: #2ec4ff; } .mtheme-ceria .qd-num:nth-child(3n+3) { background: #7bd34a; }
.mtheme-ceria .qd-num small, .mtheme-ceria .qd-num .qd-items { -webkit-text-stroke: 0; color: #fff; text-shadow: 1px 1px 0 #111; font-family: system-ui, "Segoe UI", sans-serif; font-weight: 700; letter-spacing: 0; }
.mtheme-ceria .qd-row { background: #fff; border: 2.5px solid #111; box-shadow: 3px 3px 0 #111; border-radius: 6px; }
.mtheme-ceria .btn-primary { border: 2.5px solid #111; box-shadow: 3px 3px 0 #111; }

/* 5. Toko kue — merah muda berbintik, sudut bulat seperti krim kue */
.mtheme-manis { --bg: #ffeef4; --surface: #ffffff; --surface-2: #ffffff; --fill: #ffe0ea; --fill-2: #fff0f5; --border: #ffd0e0;
  --text: #5a2a3c; --text-2: #74404f; --muted: #a0707f; --primary: #e0457b; --primary-2: #c93a6b; --on-primary: #fff; --glass-strong: rgba(255, 255, 255, .97); --edge: #ffd0e0; color-scheme: light;
  background-image: radial-gradient(#ffd3e2 17%, transparent 19%), radial-gradient(#ffe7b8 12%, transparent 14%); background-size: 40px 40px, 40px 40px; background-position: 0 0, 20px 20px; }
.mtheme-manis, .mtheme-manis button { font-family: "Trebuchet MS", "Segoe UI Rounded", "Nunito", system-ui, sans-serif; }
.mtheme-manis h1 { color: var(--primary); }
.mtheme-manis .mn-item, .mtheme-manis .qd-main section { border: 3px solid var(--border); border-radius: 28px; }
.mtheme-manis .mn-img { border-radius: 22px; }
.mtheme-manis .qd-num { border-radius: 999px; padding-inline: clamp(24px, 3vw, 40px); box-shadow: inset 0 0 0 5px var(--primary), inset 0 0 0 8px #fff, 0 8px 20px rgba(224, 69, 123, .3); }
.mtheme-manis .qd-num:nth-child(even) { background: #ff8fb3; }
.mtheme-manis .qd-row { border-radius: 999px; background: #fff; border: 2px dotted var(--primary); }
.mtheme-manis .qd-row b { color: var(--primary); }

/* 6. Papan stasiun — papan jadwal kereta: angka kuning model lipat, huruf mesin ketik */
.mtheme-polos { --bg: #121212; --surface: #1b1b1b; --surface-2: #1b1b1b; --fill: #222; --fill-2: #1a1a1a; --border: #333;
  --text: #f2f2f2; --text-2: #d0d0d0; --muted: #9a9a9a; --primary: #ffcc00; --primary-2: #e6b800; --on-primary: #111; --glass-strong: #1b1b1b; --edge: #333; color-scheme: dark; }
.mtheme-polos h1, .mtheme-polos h2, .mtheme-polos .qd-num, .mtheme-polos .qd-row b, .mtheme-polos .qd-clock, .mtheme-polos .mn-price, .mtheme-polos .chip {
  font-family: "Cascadia Mono", Consolas, "Courier New", ui-monospace, monospace; }
.mtheme-polos h1, .mtheme-polos h2 { text-transform: uppercase; letter-spacing: .12em; }
.mtheme-polos .qd-main h2 { display: inline-block; background: var(--primary); color: #111 !important; padding: 4px 12px; border-radius: 4px; text-shadow: none; }
.mtheme-polos .qd-main section, .mtheme-polos .mn-item { border-radius: 6px; border: 1px solid #2c2c2c; }
.mtheme-polos .qd-num { background: linear-gradient(#272727 0 49.4%, #050505 49.4% 50.6%, #1d1d1d 50.6%); color: var(--primary); border-radius: 6px; box-shadow: inset 0 0 0 1px #3a3a3a, 0 4px 10px rgba(0, 0, 0, .5); }
.mtheme-polos .qd-num small, .mtheme-polos .qd-num .qd-items { color: #ddd; }
.mtheme-polos .qd-row { background: #171717; border-radius: 4px; border-bottom: 1px solid #2c2c2c; }
.mtheme-polos .qd-row b { color: var(--primary); background: linear-gradient(#272727 0 49%, #050505 49% 51%, #1d1d1d 51%); padding: 4px 8px; border-radius: 4px; }
.mtheme-polos .mn-price, .mtheme-polos .qd-clock { color: var(--primary); }
.mtheme-polos .chip { border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; }

/* 7. Batik kawung — motif kawung cokelat sogan, bingkai garis ganda emas */
.mtheme-nusantara { --bg: #f3e7d3; --surface: #fffaf0; --surface-2: #fffaf0; --fill: rgba(122, 59, 18, .08); --fill-2: rgba(122, 59, 18, .05); --border: #c79a5b;
  --text: #3d2414; --text-2: #5c3a22; --muted: #7d5f48; --primary: #7a3b12; --primary-2: #66300e; --on-primary: #fff7e6; --glass-strong: rgba(255, 250, 240, .98); --edge: #e2c79e; color-scheme: light;
  --kw: rgba(122, 59, 18, .13);
  background-image: radial-gradient(circle at 0 0, transparent 13px, var(--kw) 14px 17px, transparent 18px), radial-gradient(circle at 100% 0, transparent 13px, var(--kw) 14px 17px, transparent 18px),
    radial-gradient(circle at 0 100%, transparent 13px, var(--kw) 14px 17px, transparent 18px), radial-gradient(circle at 100% 100%, transparent 13px, var(--kw) 14px 17px, transparent 18px),
    radial-gradient(circle at 50% 50%, rgba(199, 154, 91, .25) 3px, transparent 4px);
  background-size: 44px 44px; }
.mtheme-nusantara h1, .mtheme-nusantara h2, .mtheme-nusantara .mn-name, .mtheme-nusantara .qd-num, .mtheme-nusantara .qd-row b { font-family: Georgia, "Times New Roman", serif; }
.mtheme-nusantara .mn-item, .mtheme-nusantara .qd-main section { border: 4px double var(--border); border-radius: 10px; }
.mtheme-nusantara .qd-num { border: 4px double #e6c58f; border-radius: 10px; background: linear-gradient(160deg, #8a4517, #6a300d); }
.mtheme-nusantara .qd-row { background: #fffaf0; border: 1px solid #e2c79e; }
.mtheme-nusantara .qd-row b { color: var(--primary); }

/* 8. Pantai — biru laut, ombak di bawah layar, kartu seperti kaca */
.mtheme-laut { --bg: #e6f6fb; --surface: rgba(255, 255, 255, .82); --surface-2: #ffffff; --fill: rgba(0, 119, 182, .08); --fill-2: rgba(0, 119, 182, .05); --border: rgba(0, 119, 182, .2);
  --text: #08324a; --text-2: #1d4c66; --muted: #4f7a90; --primary: #0077b6; --primary-2: #006399; --on-primary: #fff; --glass-strong: rgba(255, 255, 255, .96); --edge: rgba(255, 255, 255, .7); color-scheme: light;
  background-image: radial-gradient(120% 60% at 50% 120%, #8fd3ec 0 40%, transparent 41%), radial-gradient(90% 50% at 15% 115%, #48b4dd 0 40%, transparent 41%), linear-gradient(#bfe9f6, #f3fbfd 60%);
  background-attachment: fixed; }
.mtheme-laut .mn-item, .mtheme-laut .qd-main section { border: 1px solid rgba(255, 255, 255, .9); border-radius: 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0, 80, 120, .12); }
.mtheme-laut .qd-num { background: linear-gradient(160deg, #00a6d6, #0062a3); border-radius: 22px 22px 22px 6px; }
.mtheme-laut .qd-num:nth-child(even) { border-radius: 22px 22px 6px 22px; background: linear-gradient(160deg, #19c3b3, #0b8f9e); }
.mtheme-laut .qd-row { background: rgba(255, 255, 255, .75); }
.mtheme-laut .qd-row b { color: var(--primary); }

/* 9. Senja — langit jingga ke ungu, kartu kaca hangat */
.mtheme-senja { --bg: #2b1640; --surface: rgba(255, 255, 255, .1); --surface-2: #3a1f50; --fill: rgba(255, 255, 255, .12); --fill-2: rgba(255, 255, 255, .08); --border: rgba(255, 255, 255, .22);
  --text: #fff7ef; --text-2: #ffe6d4; --muted: #f0c9b5; --primary: #ffb347; --primary-2: #ffa024; --on-primary: #3a1a05; --glass-strong: rgba(58, 31, 80, .96); --edge: rgba(255, 255, 255, .15); color-scheme: dark;
  background-image: radial-gradient(circle at 80% 78%, rgba(255, 214, 120, .9) 0 7%, rgba(255, 170, 90, .35) 14%, transparent 30%), linear-gradient(180deg, #2b1640 0%, #7a2d5f 45%, #e0644a 78%, #ffb347 100%);
  background-attachment: fixed; }
.mtheme-senja .mn-item, .mtheme-senja .qd-main section { border: 1px solid var(--border); border-radius: 20px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mtheme-senja .mn-price, .mtheme-senja .qd-ready h2 { color: var(--primary); }
.mtheme-senja .qd-num { background: linear-gradient(160deg, #ffcf70, #ff7a59); color: #3a1205; box-shadow: 0 10px 30px rgba(255, 122, 89, .4); }
.mtheme-senja .qd-row { background: rgba(255, 255, 255, .12); }

/* 10. Warung kayu — papan kayu, kartu menu kertas krem dengan paku */
.mtheme-kayu { --bg: #8a5a33; --surface: #fff6e3; --surface-2: #fff6e3; --fill: rgba(255, 246, 227, .18); --fill-2: rgba(255, 246, 227, .12); --border: #e6cfa3;
  --text: #fff6e3; --text-2: #f7e6c4; --muted: #f0dab0; --primary: #c0392b; --primary-2: #a93226; --on-primary: #fff; --glass-strong: #fff6e3; --edge: #e6cfa3; color-scheme: light;
  background-image: repeating-linear-gradient(180deg, transparent 0 58px, rgba(0, 0, 0, .28) 58px 60px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 3px, transparent 3px 11px, rgba(0, 0, 0, .05) 11px 13px, transparent 13px 29px),
    linear-gradient(90deg, #8a5a33, #9b6a3e 40%, #84552f); }
.mtheme-kayu .mn-item, .mtheme-kayu .qd-main section, .mtheme-kayu .mn-sheet, .mtheme-kayu .mn-bar { color: #3b2614; }
.mtheme-kayu .mn-item .mn-desc, .mtheme-kayu .qd-main .qd-empty, .mtheme-kayu .qd-row span, .mtheme-kayu .mn-sheet .muted { color: #7a5a3a; }
.mtheme-kayu .mn-item, .mtheme-kayu .qd-main section { position: relative; border-radius: 4px; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.mtheme-kayu .mn-item::before, .mtheme-kayu .qd-main section::before { content: ""; position: absolute; top: 6px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ddd, #666); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.mtheme-kayu .mn-item:nth-child(odd) { rotate: -1deg; } .mtheme-kayu .mn-item:nth-child(even) { rotate: 1deg; }
.mtheme-kayu h1, .mtheme-kayu .qd-head h1 { font-family: Georgia, serif; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.mtheme-kayu .qd-main h2 { color: #7a5a3a; } .mtheme-kayu .qd-ready h2 { color: var(--primary); }
.mtheme-kayu .qd-num { font-family: Georgia, serif; border-radius: 6px; box-shadow: 0 4px 0 #7d2219; }
.mtheme-kayu .qd-row { background: #f6e8c9; } .mtheme-kayu .qd-row b { color: var(--primary); }
.mtheme-kayu .chip { background: rgba(255, 246, 227, .2) !important; color: #fff6e3 !important; }
.mtheme-kayu .chip.on { background: #fff6e3 !important; color: #3b2614 !important; }
.mtheme-kayu .mn-head .mn-biz { color: #f0dab0; }

/* 11. Retro 70-an — garis pelangi jingga–mustard–cokelat, sudut sangat bulat */
.mtheme-retro { --bg: #fbefd9; --surface: #fff8ea; --surface-2: #fff8ea; --fill: rgba(212, 98, 26, .1); --fill-2: rgba(212, 98, 26, .06); --border: #e9c99a;
  --text: #4a2511; --text-2: #6a3a1d; --muted: #8f6a4c; --primary: #d4621a; --primary-2: #b8530f; --on-primary: #fff8ea; --glass-strong: #fff8ea; --edge: #e9c99a; color-scheme: light; }
.mtheme-retro::before { content: ""; display: block; height: 30px; background: linear-gradient(#e2a93b 0 25%, #d4621a 25% 50%, #a63d1e 50% 75%, #6b3416 75%); }
.mtheme-retro h1, .mtheme-retro h2, .mtheme-retro .qd-num, .mtheme-retro .qd-row b { font-family: "Cooper Black", "Bookman Old Style", Georgia, serif; }
.mtheme-retro .mn-item, .mtheme-retro .qd-main section { border: 3px solid var(--border); border-radius: 32px; }
.mtheme-retro .qd-num { border-radius: 40px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px #e2a93b, 0 0 0 12px var(--bg), 0 0 0 16px #a63d1e; margin: 16px; }
.mtheme-retro .qd-row { border-radius: 999px; background: #fff8ea; border: 2px solid #e2a93b; }
.mtheme-retro .qd-row b { color: var(--primary); }
.mtheme-retro .chip { border-radius: 999px; border: 2px solid #e2a93b; }

/* Pilih tema: pratinjau kecil memakai gaya tema yang sebenarnya */
.mt-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; }
.mt-opt { display: grid; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 14px; background: none; color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.mt-opt.on { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent); }
.mt-opt > span:last-child { font-weight: 600; } .mt-opt small { display: block; color: var(--muted); font-weight: 400; }
.mt-sw.mtheme { min-height: 0; height: 84px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background-attachment: scroll; padding: 0; }
.mtheme-kafe.mt-sw { box-shadow: inset 0 0 0 5px #7a5230; }
.mt-sw.mtheme::before { position: absolute; inset: 0 0 auto; height: 14px; -webkit-mask-size: auto; mask-size: auto; }
.mtheme-segar.mt-sw::before { background-size: 24px 100%; -webkit-mask: none; mask: none; height: 12px; }
.mt-sw .qd-num { font-size: 26px !important; min-width: 0; padding: 6px 14px !important; margin: 0 !important; line-height: 1; }
.mtheme-retro.mt-sw .qd-num { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #e2a93b, 0 0 0 7px var(--bg), 0 0 0 9px #a63d1e; }
.mtheme-segar.mt-sw .qd-num::before { display: none; }
@media (prefers-reduced-motion: reduce) { .mtheme-malam h1 { animation: none; } }

/* Layar antrean */
.qd { display: flex; flex-direction: column; gap: 20px; padding: max(20px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); cursor: default; }
.qd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.qd-biz { color: var(--muted); font-weight: 600; font-size: clamp(14px, 1.6vw, 20px); }
.qd-head h1 { font-size: clamp(28px, 4vw, 52px); letter-spacing: -.02em; }
.qd-tools { display: flex; align-items: center; gap: 10px; }
.qd-clock { font-size: clamp(22px, 3vw, 40px); font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 8px; }
.qd-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--fill); color: var(--muted); display: grid; place-items: center; cursor: pointer; opacity: .7; }
.qd-btn.off { text-decoration: line-through; opacity: .4; }
.qd-main { flex: 1; display: grid; grid-template-columns: 2fr 1fr; gap: 20px; min-height: 0; }
.qd-main section { border-radius: 24px; padding: clamp(16px, 2.4vw, 32px); background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.qd-main h2 { font-size: clamp(18px, 2.4vw, 32px); letter-spacing: .04em; margin: 0 0 20px; color: var(--muted); }
.qd-ready h2 { color: var(--primary); }
.qd-nums { display: flex; flex-wrap: wrap; gap: clamp(10px, 1.6vw, 20px); }
.qd-num { min-width: clamp(110px, 14vw, 220px); padding: clamp(12px, 1.6vw, 24px) clamp(16px, 2vw, 28px); border-radius: 20px; background: var(--primary); color: var(--on-primary);
  font-size: clamp(56px, 9vw, 150px); font-weight: 800; line-height: 1; text-align: center; display: grid; font-variant-numeric: tabular-nums; }
.qd-num small { font-size: clamp(14px, 1.4vw, 22px); font-weight: 600; margin-top: 8px; opacity: .9; }
.qd-num.new { animation: qd-call 1s ease-in-out 3; }
@keyframes qd-call { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); box-shadow: 0 0 0 10px color-mix(in srgb, var(--primary) 25%, transparent); } }
.qd-nums.small .qd-num { min-width: clamp(64px, 7vw, 110px); font-size: clamp(28px, 4vw, 60px); background: var(--fill); color: var(--text); padding: 10px 14px; border-radius: 14px; }
.qd-empty { color: var(--muted); font-size: clamp(16px, 1.8vw, 24px); }
.qd-foot { text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .qd-main { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .qd-num.new { animation: none; } }

/* Papan antrean: pesanan layar menu yang belum dibayar */
.k-unpaid { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: var(--warning-soft); color: var(--warning); text-decoration: none !important; }

/* Nama / meja di bawah nomor antrean */
.qd-num small { display: block; max-width: 12ch; margin-inline: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qd-nums.small .qd-num small { font-size: clamp(11px, 1vw, 15px); margin-top: 4px; font-weight: 500; opacity: .75; }
.call-num small { display: block; max-width: 12ch; margin-inline: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.small-nums .call-num small { font-size: 12px; font-weight: 500; opacity: .75; margin-top: 4px; }
/* Layar antrean: isi pesanan di bawah nomor & nama */
.qd-num { max-width: min(340px, 100%); }
.qd-items { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: clamp(12px, 1.2vw, 18px); font-weight: 500; line-height: 1.3; opacity: .85; white-space: normal; }
.call-num .qd-items { font-size: 13px; max-width: 220px; margin-inline: auto; }
.qd-rows { display: grid; gap: 10px; }
.qd-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--fill); min-width: 0; }
.qd-row b { font-size: clamp(26px, 3.2vw, 48px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: center; }
.qd-row > div { display: grid; gap: 2px; min-width: 0; }
.qd-row strong { font-size: clamp(14px, 1.3vw, 19px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qd-row span { font-size: clamp(12px, 1.1vw, 16px); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ Layar antrean: sederhana & elegan, warna mengikuti palet tema ============
   Tema tetap terasa lewat warna latar, aksen & jenis huruf; hiasan tema yang ramai (bayangan tebal, cahaya neon,
   kemiringan, cincin) tidak dipakai di sini, dan pola latar diredam supaya nomor menjadi pusat perhatian. */
.qd.mtheme { padding: clamp(24px, 4vh, 48px) clamp(24px, 4vw, 64px); gap: clamp(20px, 4vh, 40px); }
.qd.mtheme::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: color-mix(in srgb, var(--bg) 78%, transparent); }
.qd.mtheme-segar::before, .qd.mtheme-retro::before { margin: calc(-1 * clamp(24px, 4vh, 48px)) calc(-1 * clamp(24px, 4vw, 64px)) 0; }
.qd .qd-head { align-items: flex-end; padding-bottom: clamp(14px, 2.4vh, 24px); border-bottom: 1px solid color-mix(in srgb, var(--text) 14%, transparent); }
.qd .qd-biz { font-size: clamp(12px, 1.1vw, 15px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.qd .qd-head h1 { font-size: clamp(26px, 3vw, 44px); font-weight: 600; letter-spacing: -.01em; color: var(--text); margin-top: 4px;
  text-shadow: none; -webkit-text-stroke: 0; rotate: 0deg; animation: none; text-transform: none; display: block; }
.qd .qd-clock { font-size: clamp(22px, 2.6vw, 38px); font-weight: 500; color: var(--text); text-shadow: none; margin-right: 12px; }
.qd .qd-btn { background: transparent; border: 1px solid color-mix(in srgb, var(--text) 16%, transparent); color: var(--muted); opacity: .8; }

.qd .qd-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0; }
.qd .qd-main section { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0; padding: 0 clamp(16px, 3vw, 48px) 0 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.qd .qd-main section::before { display: none; }
.qd .qd-main .qd-wait { padding: 0 0 0 clamp(16px, 3vw, 48px); border-left: 1px solid color-mix(in srgb, var(--text) 14%, transparent) !important; }
.qd .qd-main h2 { display: block; background: none !important; padding: 0; margin: 0 0 clamp(16px, 3vh, 28px); border-radius: 0; text-shadow: none; -webkit-text-stroke: 0;
  font-size: clamp(13px, 1.3vw, 18px); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted) !important; }
.qd .qd-main .qd-ready h2 { color: var(--primary) !important; }

.qd .qd-nums { gap: clamp(12px, 1.6vw, 24px); }
.qd .qd-num { position: relative; display: grid; align-content: center; gap: 2px; min-width: clamp(150px, 15vw, 240px); max-width: min(320px, 100%); margin: 0;
  padding: clamp(16px, 2.4vh, 28px) clamp(18px, 2vw, 32px); border-radius: 22px; rotate: 0deg;
  background: color-mix(in srgb, var(--primary) 9%, var(--surface-2, var(--bg))) !important; border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent) !important;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 8%, transparent) !important; color: var(--primary) !important; text-shadow: none !important; -webkit-text-stroke: 0 !important;
  font-size: clamp(64px, 8.5vw, 140px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.qd .qd-num::before { display: none; }
.qd .qd-num small { margin-top: clamp(8px, 1.4vh, 14px); font-size: clamp(15px, 1.5vw, 22px); font-weight: 600; letter-spacing: 0; color: var(--text); opacity: 1; text-shadow: none; -webkit-text-stroke: 0; }
.qd .qd-num .qd-items { margin-top: 4px; font-size: clamp(12px, 1.1vw, 16px); font-weight: 400; letter-spacing: 0; color: var(--muted); opacity: 1; text-shadow: none; -webkit-text-stroke: 0; font-family: inherit; }
.qd .qd-num.new { animation: qd-soft 1.6s ease-in-out 3; }
@keyframes qd-soft { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 0%, transparent); } 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--primary) 18%, transparent); } }

.qd .qd-rows { gap: 0; }
.qd .qd-row { grid-template-columns: clamp(56px, 6vw, 96px) minmax(0, 1fr); gap: clamp(12px, 1.4vw, 20px); padding: clamp(12px, 1.8vh, 18px) 0; border-radius: 0;
  background: none !important; border: 0 !important; box-shadow: none !important; border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent) !important; }
.qd .qd-row:last-child { border-bottom: 0 !important; }
.qd .qd-row b { padding: 0; background: none !important; border-radius: 0; text-shadow: none; text-align: left; color: var(--text) !important;
  font-size: clamp(28px, 3vw, 48px); font-weight: 500; letter-spacing: -.02em; }
.qd .qd-row strong { font-weight: 600; color: var(--text); }
.qd .qd-row span { color: var(--muted); }
.qd .qd-empty { font-size: clamp(15px, 1.4vw, 20px); color: var(--muted); }
.qd .qd-foot { font-size: 13px; letter-spacing: .02em; color: var(--muted); }
@media (max-width: 700px) {
  .qd .qd-main { grid-template-columns: 1fr; gap: 28px; }
  .qd .qd-main section { padding: 0; }
  .qd .qd-main .qd-wait { padding: 24px 0 0; border-left: 0 !important; border-top: 1px solid color-mix(in srgb, var(--text) 14%, transparent) !important; }
}
@media (prefers-reduced-motion: reduce) { .qd .qd-num.new { animation: none; } }
/* Warung kayu: kotak nomor berwarna kertas krem → tulisan cokelat tua; judul kolom krem di atas kayu */
.qd.mtheme-kayu .qd-num small { color: #3b2614; }
.qd.mtheme-kayu .qd-num .qd-items { color: #7a5a3a; }
.qd.mtheme-kayu .qd-main .qd-ready h2 { color: #ffd9a0 !important; }
.qd.mtheme-kayu .qd-main h2 { color: #f0dab0 !important; }
/* Layar antrean: ukuran huruf untuk dibaca dari jauh (TV/tablet) — memakai lebar & tinggi layar, kontras teks lebih kuat */
.qd .qd-head h1 { font-size: clamp(30px, min(3.4vw, 6vh), 56px); }
.qd .qd-biz { font-size: clamp(13px, min(1.2vw, 2.2vh), 18px); }
.qd .qd-clock { font-size: clamp(28px, min(3.4vw, 6vh), 56px); font-weight: 600; }
.qd .qd-main h2 { font-size: clamp(16px, min(1.7vw, 3vh), 28px); letter-spacing: .14em; color: color-mix(in srgb, var(--text) 62%, transparent) !important; }
.qd .qd-num { min-width: clamp(170px, 18vw, 320px); max-width: min(440px, 100%); padding: clamp(18px, 3vh, 36px) clamp(20px, 2.4vw, 40px);
  font-size: clamp(76px, min(11vw, 18vh), 210px); font-weight: 700; letter-spacing: -.035em; }
.qd .qd-num small { font-size: clamp(20px, min(2.3vw, 3.8vh), 38px); font-weight: 600; margin-top: clamp(10px, 1.6vh, 18px); max-width: 100%; }
.qd .qd-num .qd-items { font-size: clamp(15px, min(1.5vw, 2.6vh), 24px); color: color-mix(in srgb, var(--text) 74%, transparent); line-height: 1.35; }
.qd .qd-row { grid-template-columns: clamp(70px, 7.5vw, 130px) minmax(0, 1fr); padding: clamp(14px, 2.2vh, 24px) 0; }
.qd .qd-row b { font-size: clamp(38px, min(4.6vw, 7.5vh), 78px); font-weight: 600; }
.qd .qd-row strong { font-size: clamp(18px, min(1.9vw, 3.2vh), 30px); }
.qd .qd-row span { font-size: clamp(14px, min(1.35vw, 2.4vh), 21px); color: color-mix(in srgb, var(--text) 70%, transparent); line-height: 1.35; }
.qd .qd-empty { font-size: clamp(18px, min(1.8vw, 3vh), 28px); }
/* Tulisan kapur & huruf komik sulit dibaca dari jauh untuk angka kecil: daftar "sedang disiapkan" memakai huruf biasa */
.qd.mtheme-kafe .qd-row strong, .qd.mtheme-kafe .qd-row span, .qd.mtheme-kafe .qd-num .qd-items, .qd.mtheme-ceria .qd-row strong, .qd.mtheme-ceria .qd-row span { font-family: system-ui, "Segoe UI", sans-serif; }
.qd.mtheme-kayu .qd-num .qd-items { color: #6a4a2e; }
/* Layar antrean selalu satu layar penuh; --qs (diatur skrip) memperkecil ukuran bila nomor terlalu banyak */
@media (min-width: 701px) {
  .qd.mtheme { height: 100dvh; min-height: 0; overflow: hidden; }
  .qd .qd-main { min-height: 0; overflow: hidden; }
}
.qd .qd-num { min-width: calc(clamp(170px, 18vw, 320px) * var(--qs, 1)); padding: calc(clamp(18px, 3vh, 36px) * var(--qs, 1)) calc(clamp(20px, 2.4vw, 40px) * var(--qs, 1));
  font-size: calc(clamp(76px, min(11vw, 18vh), 210px) * var(--qs, 1)); }
.qd .qd-num small { font-size: calc(clamp(20px, min(2.3vw, 3.8vh), 38px) * max(var(--qs, 1), .8)); }
.qd .qd-num .qd-items { font-size: calc(clamp(15px, min(1.5vw, 2.6vh), 24px) * max(var(--qs, 1), .85)); }
.qd .qd-nums { gap: calc(clamp(12px, 1.6vw, 24px) * var(--qs, 1)); }
.qd .qd-row { padding: calc(clamp(14px, 2.2vh, 24px) * var(--qs, 1)) 0; }
.qd .qd-row b { font-size: calc(clamp(38px, min(4.6vw, 7.5vh), 78px) * max(var(--qs, 1), .75)); }

/* ============ Layar menu TV (digital menu board) ============ */
.mbd { --bg: #dcecf6; --fg: #1c2a35; --muted: #5b7386; --accent: #e23b3b; --accent2: #e23b3b; --card: #fff; --cardfg: var(--fg); --line: rgba(0, 0, 0, .1);
  --tick-bg: var(--accent); --tick-fg: #fff; --tf: system-ui, "Segoe UI", sans-serif; --bf: system-ui, "Segoe UI", sans-serif; --tt: none; --tw: 800; --tls: -.01em;
  --r: 18px; --imgr: 18px; --cardline: 0 0 0 1px var(--line);
  position: fixed; inset: 0; overflow: hidden; background: var(--bg); color: var(--fg); font-family: var(--bf); z-index: 0; cursor: none; }
.mbd.ui { cursor: default; }
.mb-stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: center; overflow: hidden; background: inherit; }
.mb-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.mb-deco::before, .mb-deco::after { content: ""; position: absolute; }
.mb-top { position: absolute; top: 44px; left: 80px; right: 80px; display: flex; justify-content: space-between; align-items: center; z-index: 3; }
.mb-brand { font-size: 26px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.mb-top-r { display: flex; align-items: center; gap: 28px; }
.mb-clock { font-size: 46px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--fg); font-family: var(--bf); }
.mb-ready { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 22px; border-radius: 999px; background: var(--accent); color: var(--tick-fg); }
.mb-ready[hidden], .mb-clock[hidden], .mb-ticker[hidden] { display: none; }
.mb-ready span { font-size: 20px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; }
.mb-ready b { min-width: 58px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--tick-fg) 92%, transparent); color: var(--accent); font-size: 30px; text-align: center; font-variant-numeric: tabular-nums; }
.mb-slides { position: absolute; top: 132px; left: 80px; right: 80px; bottom: 150px; z-index: 2; }
.mb-progress { position: absolute; left: 80px; right: 80px; bottom: 112px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; z-index: 2; }
.mb-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.mb-ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; display: flex; align-items: center; overflow: hidden; background: var(--tick-bg); color: var(--tick-fg); z-index: 3; }
.mb-ticker-in { white-space: pre; font-size: 34px; font-weight: 700; letter-spacing: .02em; padding-left: 100%; animation: mb-marquee 30s linear infinite; will-change: transform; }
@keyframes mb-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.mb-exit { position: fixed; top: 16px; right: 16px; z-index: 10; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .3s; cursor: pointer; }
.mbd.ui .mb-exit { opacity: 1; }

/* Lapisan slide & transisi */
.mb-layer { position: absolute; inset: 0; }
.mb-layer.in { animation: mb-in .9s cubic-bezier(.22, 1, .36, 1) both; }
.mb-layer.out { animation: mb-out .7s ease both; }
@keyframes mb-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes mb-out { to { opacity: 0; transform: translateY(-30px); } }
.mb-s { position: absolute; inset: 0; }

/* Slide judul */
.mb-title { display: grid; place-items: center; text-align: center; }
.mb-title-in { display: grid; justify-items: center; gap: 18px; }
.mb-kicker { font-size: 34px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.mb-title h1 { font-family: var(--tf); font-size: 260px; line-height: .92; font-weight: var(--tw); letter-spacing: var(--tls); text-transform: var(--tt); color: var(--accent); margin: 0; }
.mb-rule { width: 220px; height: 8px; border-radius: 8px; background: var(--accent2); }
.mb-layer.in .mb-title h1 { animation: mb-pop 1.1s cubic-bezier(.22, 1, .36, 1) .1s both; }
.mb-layer.in .mb-rule { animation: mb-grow .9s cubic-bezier(.22, 1, .36, 1) .5s both; }
@keyframes mb-pop { from { opacity: 0; transform: scale(.85); letter-spacing: .2em; } to { opacity: 1; transform: none; } }
@keyframes mb-grow { from { transform: scaleX(0); } to { transform: none; } }

/* Kepala slide */
.mb-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.mb-sh h2 { font-family: var(--tf); font-size: 84px; line-height: 1; font-weight: var(--tw); letter-spacing: var(--tls); text-transform: var(--tt); color: var(--accent); margin: 0; }
.mb-page { font-size: 28px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Kartu per kategori */
.mb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; height: calc(100% - 120px); }
.mb-cards.n1, .mb-cards.n2 { grid-template-columns: repeat(2, minmax(0, 520px)); justify-content: center; }
.mb-cards.n4 { grid-template-columns: repeat(2, 1fr); }
.mb-card { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; border-radius: var(--r); background: var(--card); color: var(--cardfg); box-shadow: var(--cardline); min-height: 0; }
.mb-cards.n1 .mb-card, .mb-cards.n2 .mb-card, .mb-cards.n3 .mb-card { max-height: 760px; }
.mb-layer.in .mb-card { animation: mb-card .8s cubic-bezier(.22, 1, .36, 1) calc(.15s + var(--i) * .09s) both; }
@keyframes mb-card { from { opacity: 0; transform: translateY(50px) scale(.96); } to { opacity: 1; transform: none; } }
.mb-img { position: relative; overflow: hidden; background: color-mix(in srgb, var(--accent) 10%, var(--card)); display: grid; place-items: center; min-height: 0; }
.mb-img img, .mb-hero img, .mb-oimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-img span, .mb-hero span, .mb-oimg span { font-family: var(--tf); font-size: 120px; color: var(--accent); opacity: .5; }
.mb-card-b { padding: 22px 28px 26px; display: grid; gap: 6px; }
.mb-card h3 { font-size: 36px; line-height: 1.1; font-weight: 800; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-card p { font-size: 22px; line-height: 1.3; color: color-mix(in srgb, var(--cardfg) 68%, transparent); margin: 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mb-price { font-size: 38px; font-weight: 800; color: var(--accent2); font-variant-numeric: tabular-nums; }
.mb-card.out { filter: grayscale(.9); opacity: .7; }
.mb-out { position: absolute; top: 24px; right: -54px; rotate: 35deg; padding: 8px 70px; background: var(--fg); color: var(--bg); font-size: 24px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* Sorotan satu menu */
.mb-feature { display: grid; grid-template-columns: 800px 1fr; gap: 90px; align-items: center; }
.mb-hero { width: 800px; height: 800px; border-radius: var(--imgr); overflow: hidden; background: color-mix(in srgb, var(--accent) 12%, var(--card)); display: grid; place-items: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .18); }
.mb-layer.in .mb-hero { animation: mb-hero 1s cubic-bezier(.22, 1, .36, 1) both; }
.mb-layer.in .mb-hero img { animation: mb-kenburns 14s ease-out both; }
@keyframes mb-hero { from { opacity: 0; transform: translateX(-80px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes mb-kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.mb-feat-b { display: grid; gap: 22px; align-content: center; min-width: 0; }
.mb-feat-b h2 { font-family: var(--tf); font-size: 128px; line-height: .95; font-weight: var(--tw); letter-spacing: var(--tls); text-transform: var(--tt); color: var(--accent); margin: 0; }
.mb-feat-b p { font-size: 36px; line-height: 1.35; color: color-mix(in srgb, var(--fg) 75%, transparent); margin: 0; max-width: 820px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mb-feat-b .mb-price { font-size: 84px; }
.mb-layer.in .mb-feat-b > * { animation: mb-card .8s cubic-bezier(.22, 1, .36, 1) both; }
.mb-layer.in .mb-feat-b > :nth-child(2) { animation-delay: .12s; } .mb-layer.in .mb-feat-b > :nth-child(3) { animation-delay: .24s; }
.mb-layer.in .mb-feat-b > :nth-child(4) { animation-delay: .36s; } .mb-layer.in .mb-feat-b > :nth-child(5) { animation-delay: .5s; }
.mb-others { display: flex; gap: 26px; margin-top: 12px; }
.mb-other { display: grid; gap: 10px; width: 180px; font-size: 22px; font-weight: 600; color: var(--muted); }
.mb-other span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-oimg { width: 180px; height: 180px; border-radius: var(--imgr); overflow: hidden; background: color-mix(in srgb, var(--accent) 12%, var(--card)); display: grid; place-items: center; }
.mb-oimg span { font-size: 60px; }

/* Daftar harga */
.mb-cols { columns: 2; column-gap: 110px; column-fill: auto; height: calc(100% - 120px); }
.mb-group { break-inside: avoid; margin-bottom: 40px; }
.mb-group h3 { font-family: var(--tf); font-size: 50px; font-weight: var(--tw); text-transform: var(--tt); letter-spacing: var(--tls); color: var(--accent); margin: 0 0 14px; }
.mb-row { display: flex; align-items: baseline; gap: 16px; font-size: 34px; line-height: 1.6; }
.mb-row i { flex: 1; border-bottom: 3px dotted color-mix(in srgb, var(--fg) 30%, transparent); transform: translateY(-8px); }
.mb-rn { font-weight: 600; } .mb-rn em { font-style: normal; font-size: 22px; padding: 2px 10px; border-radius: 6px; background: var(--fg); color: var(--bg); vertical-align: middle; }
.mb-rp { font-weight: 800; color: var(--accent2); font-variant-numeric: tabular-nums; }
.mb-row.out .mb-rn, .mb-row.out .mb-rp { opacity: .45; text-decoration: line-through; }
.mb-layer.in .mb-group { animation: mb-card .8s cubic-bezier(.22, 1, .36, 1) both; }

/* TV tegak (potret 1080×1920) */
.mbd.portrait .mb-top { left: 60px; right: 60px; }
.mbd.portrait .mb-slides { top: 150px; left: 60px; right: 60px; bottom: 160px; }
.mbd.portrait .mb-progress { left: 60px; right: 60px; }
.mbd.portrait .mb-title h1 { font-size: 200px; }
.mbd.portrait .mb-cards { grid-template-columns: repeat(2, 1fr); }
.mbd.portrait .mb-feature { grid-template-columns: 1fr; gap: 50px; align-content: center; justify-items: center; text-align: center; }
.mbd.portrait .mb-hero { width: 860px; height: 860px; }
.mbd.portrait .mb-feat-b { justify-items: center; }
.mbd.portrait .mb-feat-b h2 { font-size: 110px; }
.mbd.portrait .mb-cols { columns: 1; }

/* ---------- 12 template ---------- */
.mbd.t-bistro { --bg: #dcecf6; --fg: #1c2a35; --muted: #5b7386; --accent: #e23b3b; --accent2: #e23b3b; --card: #fff; --tick-bg: #e23b3b; --tick-fg: #fff;
  --tf: Impact, "Bebas Neue", "Oswald", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, sans-serif; --tt: uppercase; --tw: 400; --tls: .01em; --imgr: 50%; --r: 24px; }
.mbd.t-bistro .mb-deco::after { left: 0; right: 0; bottom: 80px; height: 30px; background: repeating-conic-gradient(#e23b3b 0 25%, #fff 0 50%) 0 0 / 30px 30px; }
.mbd.t-bistro .mb-deco::before { left: 80px; top: 100px; width: 90px; height: 6px; background: #e23b3b; }
.mbd.t-bistro .mb-img { margin: 24px 24px 0; border-radius: 50%; aspect-ratio: 1; justify-self: center; height: calc(100% - 24px); }
.mbd.t-bistro .mb-card { text-align: center; } .mbd.t-bistro .mb-card-b { justify-items: center; }

.mbd.t-kapur { --bg: #1f2a24; --fg: #f4f1e8; --muted: #b8c2b4; --accent: #f6e27a; --accent2: #ffb4a2; --card: rgba(255, 255, 255, .03); --line: rgba(244, 241, 232, .25);
  --tick-bg: #5a391c; --tick-fg: #f4f1e8; --tf: "Segoe Print", "Chalkboard SE", "Bradley Hand", "Comic Sans MS", cursive; --tw: 700; --r: 12px; --imgr: 18px; --cardline: inset 0 0 0 3px rgba(244, 241, 232, .45);
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.3px), radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1.3px); background-size: 6px 6px, 13px 13px; }
.mbd.t-kapur .mb-deco { box-shadow: inset 0 0 0 26px #7a5230, inset 0 0 0 32px #5a391c, inset 0 0 120px rgba(0, 0, 0, .55); }
.mbd.t-kapur .mb-card { border: 3px dashed rgba(244, 241, 232, .45); box-shadow: none; }
.mbd.t-kapur .mb-card:nth-child(odd) { rotate: -1deg; } .mbd.t-kapur .mb-card:nth-child(even) { rotate: 1deg; }
.mbd.t-kapur .mb-card h3, .mbd.t-kapur .mb-price { font-family: var(--tf); }
.mbd.t-kapur .mb-row i { border-bottom-style: dashed; }

.mbd.t-neon { --bg: #0b0618; --fg: #f5ecff; --muted: #a99cc4; --accent: #29f0ff; --accent2: #ff3fd4; --card: rgba(24, 12, 48, .8); --line: rgba(41, 240, 255, .25);
  --tick-bg: #ff3fd4; --tick-fg: #12051f; --tt: uppercase; --tw: 900; --tls: .04em; --r: 20px; --imgr: 24px; --cardline: 0 0 0 2px rgba(41, 240, 255, .5), 0 0 30px rgba(41, 240, 255, .2);
  background-image: radial-gradient(ellipse at 50% -10%, #4a1470, #0b0618 62%); }
.mbd.t-neon .mb-deco::after { left: -20%; right: -20%; bottom: -10%; height: 55%; background-image: linear-gradient(rgba(255, 63, 212, .35) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 63, 212, .35) 2px, transparent 2px);
  background-size: 90px 90px; transform: perspective(500px) rotateX(62deg); transform-origin: bottom; mask: linear-gradient(transparent, #000 70%); -webkit-mask: linear-gradient(transparent, #000 70%); }
.mbd.t-neon h1, .mbd.t-neon .mb-sh h2, .mbd.t-neon .mb-feat-b h2, .mbd.t-neon .mb-group h3 { text-shadow: 0 0 12px #29f0ff, 0 0 40px rgba(41, 240, 255, .7); }
.mbd.t-neon .mb-price, .mbd.t-neon .mb-rp { text-shadow: 0 0 10px rgba(255, 63, 212, .9); }
.mbd.t-neon .mb-hero { box-shadow: 0 0 0 4px #ff3fd4, 0 0 60px rgba(255, 63, 212, .6); }
.mbd.t-neon .mb-layer.in .mb-title h1 { animation: mb-flicker 1.6s linear both; }
@keyframes mb-flicker { 0% { opacity: 0; } 10% { opacity: 1; } 14% { opacity: .2; } 22% { opacity: 1; } 30% { opacity: .4; } 36%, 100% { opacity: 1; } }

.mbd.t-elegan { --bg: #0e0d0b; --fg: #f3ead8; --muted: #a89a80; --accent: #d7b56d; --accent2: #e8cd8f; --card: #17150f; --line: rgba(215, 181, 109, .3);
  --tick-bg: #17150f; --tick-fg: #d7b56d; --tf: "Didot", "Bodoni MT", Georgia, "Noto Serif", serif; --tw: 400; --tls: .01em; --r: 4px; --imgr: 50%; --cardline: 0 0 0 1px rgba(215, 181, 109, .35); }
.mbd.t-elegan .mb-deco::before { inset: 30px; border: 2px solid rgba(215, 181, 109, .55); }
.mbd.t-elegan .mb-deco::after { inset: 40px; border: 1px solid rgba(215, 181, 109, .3); }
.mbd.t-elegan .mb-title h1 { font-style: italic; } .mbd.t-elegan .mb-rule { height: 2px; width: 320px; }
.mbd.t-elegan .mb-layer.in { animation-duration: 1.6s; }
.mbd.t-elegan .mb-card { text-align: center; } .mbd.t-elegan .mb-card-b { justify-items: center; } .mbd.t-elegan .mb-card h3 { font-family: var(--tf); font-weight: 400; }
.mbd.t-elegan .mb-ticker { border-top: 1px solid rgba(215, 181, 109, .4); }

.mbd.t-segar { --bg: #f3fbef; --fg: #173d22; --muted: #5d7a64; --accent: #1f8a4c; --accent2: #3a2a00; --card: #fff; --line: #cfe8d4; --tick-bg: #1f8a4c; --tick-fg: #fff;
  --tf: Impact, "Oswald", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, sans-serif; --tt: uppercase; --tw: 400; --r: 28px; --imgr: 50%; --cardline: 0 0 0 3px #cfe8d4; }
.mbd.t-segar .mb-deco::before { left: 0; right: 0; top: 0; height: 26px; background: repeating-linear-gradient(90deg, #1f8a4c 0 60px, #fff 60px 120px); }
.mbd.t-segar .mb-price { display: inline-block; justify-self: start; background: #ffd84d; padding: 4px 18px; border-radius: 10px; rotate: -3deg; box-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
.mbd.t-segar .mb-feat-b .mb-price { justify-self: start; }

.mbd.t-pop { --bg: #ffd400; --fg: #111; --muted: #333; --accent: #ff3b6b; --accent2: #111; --card: #fff; --line: rgba(0, 0, 0, .25); --tick-bg: #111; --tick-fg: #ffd400;
  --tf: Impact, "Arial Black", "Roboto Condensed", sans-serif-condensed, sans-serif; --tt: uppercase; --tw: 900; --tls: .02em; --r: 12px; --imgr: 14px; --cardline: 10px 10px 0 #111;
  background-image: radial-gradient(rgba(0, 0, 0, .16) 2.5px, transparent 3px); background-size: 22px 22px; }
.mbd.t-pop .mb-card, .mbd.t-pop .mb-hero, .mbd.t-pop .mb-oimg { border: 5px solid #111; }
.mbd.t-pop .mb-hero { box-shadow: 16px 16px 0 #111; }
.mbd.t-pop h1, .mbd.t-pop .mb-sh h2, .mbd.t-pop .mb-feat-b h2 { color: #fff; -webkit-text-stroke: 5px #111; paint-order: stroke fill; text-shadow: 8px 8px 0 #111; rotate: -2deg; }
.mbd.t-pop .mb-price { display: inline-block; justify-self: start; background: #ff3b6b; color: #fff; padding: 2px 16px; border: 4px solid #111; border-radius: 8px; }
.mbd.t-pop .mb-card:nth-child(odd) { rotate: -1.2deg; } .mbd.t-pop .mb-card:nth-child(even) { rotate: 1.2deg; }
.mbd.t-pop .mb-layer.in .mb-card { animation-name: mb-bounce; }
@keyframes mb-bounce { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.06); } 100% { transform: none; } }

.mbd.t-kayu { --bg: #8a5a33; --fg: #fff6e3; --muted: #f0dab0; --accent: #ffd9a0; --accent2: #c0392b; --card: #fff6e3; --cardfg: #3b2614; --line: rgba(255, 246, 227, .3);
  --tick-bg: #3b2614; --tick-fg: #fff6e3; --tf: Georgia, "Noto Serif", serif; --tw: 700; --r: 6px; --imgr: 10px; --cardline: 0 10px 24px rgba(0, 0, 0, .35);
  background-image: repeating-linear-gradient(180deg, transparent 0 118px, rgba(0, 0, 0, .3) 118px 121px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 4px, transparent 4px 16px, rgba(0, 0, 0, .05) 16px 19px, transparent 19px 41px), linear-gradient(90deg, #8a5a33, #9b6a3e 40%, #84552f); }
.mbd.t-kayu .mb-card::before { content: ""; position: absolute; top: 12px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #eee, #666); z-index: 2; }
.mbd.t-kayu .mb-card:nth-child(odd) { rotate: -1.4deg; } .mbd.t-kayu .mb-card:nth-child(even) { rotate: 1.2deg; }
.mbd.t-kayu .mb-card .mb-img { margin: 40px 18px 0; border-radius: 6px; }
.mbd.t-kayu h1, .mbd.t-kayu .mb-sh h2, .mbd.t-kayu .mb-feat-b h2 { text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.mbd.t-kayu .mb-feat-b .mb-price, .mbd.t-kayu .mb-rp { color: #ffd9a0; }

.mbd.t-batik { --bg: #f3e7d3; --fg: #3d2414; --muted: #7d5f48; --accent: #7a3b12; --accent2: #9c4a17; --card: #fffaf0; --line: rgba(122, 59, 18, .2); --tick-bg: #7a3b12; --tick-fg: #fff7e6;
  --tf: Georgia, "Noto Serif", serif; --tw: 700; --r: 14px; --imgr: 50%; --cardline: 0 0 0 6px #fffaf0, 0 0 0 9px #c79a5b; --kw: rgba(122, 59, 18, .12);
  background-image: radial-gradient(circle at 0 0, transparent 26px, var(--kw) 27px 33px, transparent 34px), radial-gradient(circle at 100% 0, transparent 26px, var(--kw) 27px 33px, transparent 34px),
    radial-gradient(circle at 0 100%, transparent 26px, var(--kw) 27px 33px, transparent 34px), radial-gradient(circle at 100% 100%, transparent 26px, var(--kw) 27px 33px, transparent 34px), radial-gradient(circle, rgba(199, 154, 91, .3) 5px, transparent 6px);
  background-size: 84px 84px; }
.mbd.t-batik .mb-deco::before { inset: 26px; border: 6px double #c79a5b; border-radius: 6px; }
.mbd.t-batik .mb-hero { box-shadow: 0 0 0 12px #fffaf0, 0 0 0 16px #c79a5b, 0 30px 60px rgba(0, 0, 0, .2); }
.mbd.t-batik .mb-card { text-align: center; } .mbd.t-batik .mb-card-b { justify-items: center; } .mbd.t-batik .mb-card h3 { font-family: var(--tf); }

.mbd.t-minimal { --bg: #f6f4ef; --fg: #161616; --muted: #8a857b; --accent: #161616; --accent2: #c8102e; --card: transparent; --line: rgba(22, 22, 22, .12); --tick-bg: #161616; --tick-fg: #f6f4ef;
  --tw: 300; --tls: -.03em; --r: 0; --imgr: 0; --cardline: none; }
.mbd.t-minimal .mb-deco::before { right: 80px; top: 230px; width: 120px; height: 120px; border-radius: 50%; background: #c8102e; }
.mbd.t-minimal .mb-card { border-top: 2px solid #161616; }
.mbd.t-minimal .mb-card-b { padding: 20px 0 0; } .mbd.t-minimal .mb-card h3 { font-weight: 500; }
.mbd.t-minimal .mb-img { margin-top: 20px; }
.mbd.t-minimal .mb-rule { height: 2px; background: #161616; }
.mbd.t-minimal .mb-layer.in { animation-name: mb-slide; }
@keyframes mb-slide { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: none; } }

.mbd.t-senja { --bg: #2b1640; --fg: #fff7ef; --muted: #f0c9b5; --accent: #ffcf70; --accent2: #ffb347; --card: rgba(255, 255, 255, .1); --line: rgba(255, 255, 255, .2); --tick-bg: rgba(20, 8, 30, .55); --tick-fg: #fff7ef;
  --tw: 800; --r: 28px; --imgr: 50%; --cardline: 0 0 0 1px rgba(255, 255, 255, .2);
  background-image: radial-gradient(circle at 82% 80%, rgba(255, 214, 120, .95) 0 6%, rgba(255, 170, 90, .35) 13%, transparent 28%), linear-gradient(180deg, #2b1640 0%, #7a2d5f 45%, #e0644a 80%, #ffb347 100%); }
.mbd.t-senja .mb-card { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.mbd.t-senja .mb-hero { box-shadow: 0 0 0 10px rgba(255, 255, 255, .15), 0 40px 90px rgba(0, 0, 0, .35); }

.mbd.t-pantai { --bg: #cdeef8; --fg: #08324a; --muted: #3f6f86; --accent: #0077b6; --accent2: #f77f00; --card: rgba(255, 255, 255, .88); --line: rgba(0, 119, 182, .2); --tick-bg: #0077b6; --tick-fg: #fff;
  --tw: 900; --r: 32px; --imgr: 58% 42% 52% 48% / 48% 55% 45% 52%; --cardline: 0 14px 30px rgba(0, 80, 120, .15);
  background-image: linear-gradient(#bfe9f6, #eef9fc 70%); }
.mbd.t-pantai .mb-deco::after { left: -10%; right: -10%; bottom: 60px; height: 160px; background: radial-gradient(60px 40px at 60px 0, transparent 98%, #48b4dd) 0 0 / 120px 160px repeat-x; opacity: .55; }
.mbd.t-pantai .mb-img { border-radius: 26px; margin: 16px 16px 0; }

.mbd.t-retro { --bg: #fbefd9; --fg: #4a2511; --muted: #8f6a4c; --accent: #d4621a; --accent2: #a63d1e; --card: #fff8ea; --line: rgba(74, 37, 17, .2); --tick-bg: #6b3416; --tick-fg: #fbefd9;
  --tf: "Cooper Black", "Bookman Old Style", Georgia, serif; --tw: 900; --r: 40px; --imgr: 50%; --cardline: 0 0 0 5px #e9c99a; }
.mbd.t-retro .mb-deco::before { left: 0; right: 0; top: 0; height: 40px; background: linear-gradient(#e2a93b 0 25%, #d4621a 25% 50%, #a63d1e 50% 75%, #6b3416 75%); }
.mbd.t-retro .mb-hero { box-shadow: 0 0 0 14px #fbefd9, 0 0 0 26px #e2a93b, 0 0 0 38px #fbefd9, 0 0 0 50px #a63d1e; }
.mbd.t-retro .mb-top { top: 64px; }
.mbd.t-retro .mb-img { margin: 22px 22px 0; border-radius: 30px; }

/* Pratinjau kecil di pengaturan */
.mbs-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.mbs-head .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.mbs-h { font-size: 16px; margin: 20px 0 10px; }
.mbs-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mbs-opt { display: grid; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 14px; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.mbs-opt.on { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent); }
.mbs-opt small { display: block; color: var(--muted); font-weight: 400; }
.mbd.mb-mini { position: relative; inset: auto; display: block; height: 86px; border-radius: 10px; overflow: hidden; cursor: pointer; z-index: auto; }
.mb-mini-in { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto 1fr; gap: 6px; padding: 10px; }
.mb-mini-in b { grid-column: 1 / -1; font-family: var(--tf); font-weight: var(--tw); text-transform: var(--tt); font-size: 20px; line-height: 1; color: var(--accent); }
.mb-mini-in i { border-radius: min(var(--r), 8px); background: var(--card); box-shadow: var(--cardline); }
.mbd.t-pop .mb-mini-in b { -webkit-text-stroke: 1.5px #111; color: #fff; paint-order: stroke fill; }
.mbd.t-kapur.mb-mini { box-shadow: inset 0 0 0 5px #7a5230; }
.mbd.t-pop .mb-mini-in i { box-shadow: 3px 3px 0 #111; border: 2px solid #111; }
.mbs-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; margin-top: 18px; }
.mbs-wide { grid-column: 1 / -1; }
.mbs-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 10px; }
.mbs-checks label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.mbs-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.mbs-cats .chip { cursor: pointer; }
.mbs-cats .chip.on { background: var(--primary); color: var(--on-primary); }
@media (prefers-reduced-motion: reduce) { .mbd *, .mb-layer { animation: none !important; } .mb-ticker-in { animation: mb-marquee 60s linear infinite !important; } }
/* Layar menu TV — perapian: jarak garis hias judul, warna label "Siap diambil" per template, bulatan merah minimalis */
.mb-title h1 { line-height: 1; }
.mb-rule { margin-top: 34px; }
.mbd { --ready-fg: var(--tick-fg); }
.mb-ready { color: var(--ready-fg); }
.mb-ready b { background: var(--ready-fg); color: var(--accent); }
.mbd.t-kapur, .mbd.t-kayu { --ready-fg: #2a1c10; }
.mbd.t-elegan { --ready-fg: #17150f; }
.mbd.t-senja { --ready-fg: #3a1205; }
.mbd.t-minimal .mb-deco::before { display: none; }
.mbd.t-minimal .mb-title h1::after { content: ""; display: inline-block; width: .16em; height: .16em; margin-left: .08em; border-radius: 50%; background: #c8102e; vertical-align: baseline; }
.mbd.t-minimal .mb-feat-b h2::after { content: ""; display: inline-block; width: .18em; height: .18em; margin-left: .1em; border-radius: 50%; background: #c8102e; }

/* ============ Layar menu TV: 12 transisi, 10 efek teks, latar bergerak ============ */
.mb-slides { perspective: 2200px; }
.mbd .mb-layer { backface-visibility: hidden; transform-style: preserve-3d; }
.mbd .mb-layer.in, .mbd .mb-layer.out { animation-duration: 1s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); animation-fill-mode: both; }
.mbd .mb-layer.out { z-index: 0; } .mbd .mb-layer.in { z-index: 1; }
/* Transisi masuk / keluar */
.mbd .mb-layer.in.tr-geser { animation-name: tr-geser-in; } .mbd .mb-layer.out.tr-geser { animation-name: tr-geser-out; }
@keyframes tr-geser-in { from { transform: translateX(105%); } to { transform: none; } }
@keyframes tr-geser-out { to { transform: translateX(-60%); opacity: 0; } }
.mbd .mb-layer.in.tr-naik { animation-name: tr-naik-in; } .mbd .mb-layer.out.tr-naik { animation-name: tr-naik-out; }
@keyframes tr-naik-in { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tr-naik-out { to { transform: translateY(-35%); opacity: 0; } }
.mbd .mb-layer.in.tr-zoom { animation-name: tr-zoom-in; } .mbd .mb-layer.out.tr-zoom { animation-name: tr-zoom-out; }
@keyframes tr-zoom-in { from { transform: scale(1.35); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tr-zoom-out { to { transform: scale(.7); opacity: 0; } }
.mbd .mb-layer.in.tr-fade { animation-name: tr-fade-in; animation-duration: 1.4s; } .mbd .mb-layer.out.tr-fade { animation-name: tr-fade-out; animation-duration: 1.2s; }
@keyframes tr-fade-in { from { opacity: 0; } } @keyframes tr-fade-out { to { opacity: 0; } }
.mbd .mb-layer.in.tr-kabur { animation-name: tr-kabur-in; animation-duration: 1.2s; } .mbd .mb-layer.out.tr-kabur { animation-name: tr-kabur-out; }
@keyframes tr-kabur-in { from { filter: blur(40px); opacity: 0; transform: scale(1.06); } to { filter: none; opacity: 1; transform: none; } }
@keyframes tr-kabur-out { to { filter: blur(30px); opacity: 0; } }
.mbd .mb-layer.in.tr-balik { animation-name: tr-balik-in; animation-duration: 1.2s; } .mbd .mb-layer.out.tr-balik { animation-name: tr-balik-out; animation-duration: .6s; animation-timing-function: ease-in; }
@keyframes tr-balik-in { 0%, 45% { transform: rotateY(-90deg); opacity: 0; } 46% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes tr-balik-out { to { transform: rotateY(90deg); opacity: 0; } }
.mbd .mb-layer.in.tr-kubus { animation-name: tr-kubus-in; transform-origin: 0% 50%; } .mbd .mb-layer.out.tr-kubus { animation-name: tr-kubus-out; transform-origin: 100% 50%; }
@keyframes tr-kubus-in { from { transform: translateX(100%) rotateY(70deg); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes tr-kubus-out { to { transform: translateX(-100%) rotateY(-70deg); opacity: .2; } }
.mbd .mb-layer.in.tr-ayun { animation-name: tr-ayun-in; transform-origin: 50% 0%; animation-duration: 1.3s; animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); } .mbd .mb-layer.out.tr-ayun { animation-name: tr-fade-out; animation-duration: .6s; }
@keyframes tr-ayun-in { from { transform: rotateX(-80deg); opacity: 0; } to { transform: none; opacity: 1; } }
.mbd .mb-layer.in.tr-tirai { animation-name: tr-tirai-in; animation-duration: 1.1s; } .mbd .mb-layer.out.tr-tirai { animation-name: tr-late-out; }
@keyframes tr-tirai-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tr-late-out { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.mbd .mb-layer.in.tr-pintu { animation-name: tr-pintu-in; animation-duration: 1.2s; } .mbd .mb-layer.out.tr-pintu { animation-name: tr-late-out; }
@keyframes tr-pintu-in { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
.mbd .mb-layer.in.tr-lingkaran { animation-name: tr-lingkaran-in; animation-duration: 1.2s; } .mbd .mb-layer.out.tr-lingkaran { animation-name: tr-late-out; }
@keyframes tr-lingkaran-in { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(80% at 50% 50%); } }
.mbd .mb-layer.in.tr-diagonal { animation-name: tr-diagonal-in; animation-duration: 1.2s; } .mbd .mb-layer.out.tr-diagonal { animation-name: tr-late-out; }
@keyframes tr-diagonal-in { from { clip-path: polygon(0 0, 0 0, 0 0); } to { clip-path: polygon(0 0, 220% 0, 0 220%); } }

/* Isi slide ikut masuk sedikit belakangan agar transisi terasa berlapis */
.mbd .mb-layer.in .mb-card { animation-delay: calc(.35s + var(--i) * .09s); }
/* Judul yang dipecah per huruf tidak dianimasikan sebagai satu blok */
.mbd .mb-layer [data-split].sp { animation: none !important; }
.mbd .wd { display: inline-block; white-space: nowrap; }
.mbd .ch { display: inline-block; }
.mbd [data-split].sp { perspective: 900px; }
/* Efek teks (per huruf) */
.mbd .fx-naik .ch { animation: fx-naik .8s cubic-bezier(.22, 1, .36, 1) calc(.3s + var(--c) * 35ms) both; }
@keyframes fx-naik { from { transform: translateY(.7em); opacity: 0; } to { transform: none; opacity: 1; } }
.mbd .fx-ketik .ch { animation: fx-ketik .01s steps(1) calc(.35s + var(--c) * 75ms) both; }
@keyframes fx-ketik { from { opacity: 0; } to { opacity: 1; } }
.mbd .fx-ketik [data-split].sp::after { content: ""; display: inline-block; width: .06em; height: .8em; margin-left: .05em; background: currentColor; vertical-align: -.05em; animation: fx-caret .7s steps(1) infinite; }
@keyframes fx-caret { 50% { opacity: 0; } }
.mbd .fx-pudar .ch { animation: fx-pudar 1s ease calc(.3s + var(--c) * 45ms) both; }
@keyframes fx-pudar { from { filter: blur(14px); opacity: 0; transform: scale(1.3); } to { filter: none; opacity: 1; transform: none; } }
.mbd .fx-pantul .ch { animation: fx-pantul .7s cubic-bezier(.34, 1.56, .64, 1) calc(.3s + var(--c) * 45ms) both; }
@keyframes fx-pantul { 0% { transform: scale(0) translateY(.4em); opacity: 0; } 70% { transform: scale(1.18); opacity: 1; } 100% { transform: none; } }
.mbd .fx-gelombang .ch { animation: fx-naik .7s cubic-bezier(.22, 1, .36, 1) calc(.3s + var(--c) * 35ms) both, fx-gelombang 2.6s ease-in-out calc(1.4s + var(--c) * 90ms) infinite; }
@keyframes fx-gelombang { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-.12em); } }
.mbd .fx-kilau .ch { animation: fx-pudar .8s ease calc(.3s + var(--c) * 30ms) both, fx-kilau 4s ease-in-out calc(1.4s + var(--c) * 60ms) infinite; }
@keyframes fx-kilau { 0%, 14%, 100% { filter: none; text-shadow: inherit; } 7% { filter: brightness(1.6); text-shadow: 0 0 .25em color-mix(in srgb, #fff 80%, transparent); } }
.mbd .fx-neon .ch { animation: fx-neon 1.6s linear calc(.3s + var(--r) * 1s) both; }
@keyframes fx-neon { 0% { opacity: 0; } 8% { opacity: 1; } 12% { opacity: .15; } 20% { opacity: 1; } 28% { opacity: .35; } 34%, 100% { opacity: 1; } }
.mbd .fx-cap .ch { animation: fx-cap .5s cubic-bezier(.2, .9, .3, 1.3) calc(.3s + var(--c) * 55ms) both; }
@keyframes fx-cap { from { transform: scale(3) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.mbd .fx-putar .ch { animation: fx-putar .9s cubic-bezier(.22, 1, .36, 1) calc(.3s + var(--c) * 50ms) both; }
@keyframes fx-putar { from { transform: rotateY(-100deg); opacity: 0; } to { transform: none; opacity: 1; } }
.mbd .fx-renggang [data-split].sp { animation: fx-renggang 1.6s cubic-bezier(.22, 1, .36, 1) .3s both !important; }
@keyframes fx-renggang { from { letter-spacing: .5em; opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
/* Harga & isi sorotan muncul bertahap */
.mbd .mb-layer.in .mb-feat-b .mb-price { animation: fx-pantul .8s cubic-bezier(.34, 1.56, .64, 1) .7s both; }

/* ---------- Latar bergerak per template (halus, tidak mengganggu) ---------- */
@keyframes bg-pan-x { to { background-position-x: 600px; } }
@keyframes bg-pan-y { to { background-position-y: 90px; } }
@keyframes bg-spin { to { transform: rotate(360deg); } }
@keyframes bg-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, -30px); } }
@keyframes bg-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes bg-sweep { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(320%) skewX(-20deg); } }
/* Bistro: pita kotak-kotak berjalan pelan, sapuan cahaya */
.mbd.t-bistro .mb-deco::after { animation: bg-pan-x 40s linear infinite; }
.mbd.t-bistro .mb-stage::after { content: ""; position: absolute; top: 0; bottom: 0; width: 22%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: bg-sweep 9s ease-in-out infinite; pointer-events: none; z-index: 1; }
/* Papan kapur: debu kapur melayang */
.mbd.t-kapur .mb-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .5;
  background-image: radial-gradient(2px 2px at 20% 30%, #fff8, transparent), radial-gradient(1.5px 1.5px at 70% 60%, #fff6, transparent), radial-gradient(2px 2px at 40% 80%, #fff5, transparent), radial-gradient(1px 1px at 85% 20%, #fff8, transparent);
  background-size: 600px 600px; animation: bg-float 18s ease-in-out infinite; }
/* Neon: lantai grid melaju */
.mbd.t-neon .mb-deco::after { animation: bg-pan-y 2.4s linear infinite; }
.mbd.t-neon .mb-deco::before { left: 50%; top: 52%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 63, 212, .35), transparent 60%); animation: bg-glow 4s ease-in-out infinite; }
/* Elegan: kilau emas menyapu bingkai */
.mbd.t-elegan .mb-stage::after { content: ""; position: absolute; top: 0; bottom: 0; width: 16%; background: linear-gradient(90deg, transparent, rgba(215, 181, 109, .16), transparent); animation: bg-sweep 12s ease-in-out infinite; pointer-events: none; z-index: 1; }
/* Pasar segar: gelembung hijau lembut melayang */
.mbd.t-segar .mb-stage::after { content: ""; position: absolute; inset: -10%; pointer-events: none; z-index: 0;
  background: radial-gradient(160px 160px at 10% 80%, rgba(31, 138, 76, .12), transparent 70%), radial-gradient(220px 220px at 90% 30%, rgba(255, 216, 77, .2), transparent 70%), radial-gradient(120px 120px at 60% 95%, rgba(31, 138, 76, .1), transparent 70%);
  animation: bg-float 16s ease-in-out infinite; }
/* Komik pop: sinar berputar di belakang */
.mbd.t-pop .mb-deco::before { left: 50%; top: 50%; width: 2600px; height: 2600px; margin: -1300px 0 0 -1300px; background: repeating-conic-gradient(rgba(255, 255, 255, .22) 0 9deg, transparent 9deg 18deg); animation: bg-spin 60s linear infinite; }
/* Warung kayu: cahaya lampu hangat */
.mbd.t-kayu .mb-deco::before { inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(255, 214, 150, .35), transparent 60%); animation: bg-glow 6s ease-in-out infinite; }
.mbd.t-kayu .mb-deco::after { inset: 0; box-shadow: inset 0 0 200px rgba(0, 0, 0, .45); }
/* Batik: motif bergeser pelan */
.mbd.t-batik { animation: bg-pan-x 120s linear infinite; }
/* Minimalis: titik merah bernapas */
.mbd.t-minimal .mb-title h1::after { animation: bg-glow 3s ease-in-out infinite; }
/* Senja: matahari berdenyut & awan berarak */
.mbd.t-senja .mb-deco::before { right: 6%; bottom: 8%; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 140, .9), rgba(255, 150, 90, .25) 55%, transparent 70%); animation: bg-glow 7s ease-in-out infinite; }
.mbd.t-senja .mb-deco::after { left: -30%; top: 18%; width: 160%; height: 200px; background: radial-gradient(ellipse 260px 50px at 20% 50%, rgba(255, 255, 255, .14), transparent), radial-gradient(ellipse 320px 60px at 65% 30%, rgba(255, 255, 255, .1), transparent);
  filter: blur(8px); animation: bg-float 30s ease-in-out infinite; }
/* Pantai: ombak bergerak & gelembung */
.mbd.t-pantai .mb-deco::after { animation: bg-pan-x 14s linear infinite; }
.mbd.t-pantai .mb-deco::before { left: 0; right: 0; bottom: 80px; height: 120px; background: radial-gradient(50px 30px at 50px 0, transparent 98%, #7fcde8) 0 0 / 100px 120px repeat-x; opacity: .5; animation: bg-pan-x 22s linear infinite reverse; }
/* Retro: matahari bergaris berputar pelan */
.mbd.t-retro .mb-stage::after { content: ""; position: absolute; right: -380px; bottom: -380px; width: 900px; height: 900px; border-radius: 50%; pointer-events: none; z-index: 0; opacity: .22;
  background: repeating-conic-gradient(#e2a93b 0 10deg, #d4621a 10deg 20deg, #a63d1e 20deg 30deg, transparent 30deg 40deg); animation: bg-spin 90s linear infinite; }

@media (prefers-reduced-motion: reduce) { .mbd .ch, .mbd .mb-deco::before, .mbd .mb-deco::after, .mbd .mb-stage::after { animation: none !important; } }

/* ============ Layar antrean: ornamen ukiran & motif batik (warna dari aksen tema) ============ */
.qd .qd-orn { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.qd > :not(.qd-orn) { position: relative; z-index: 1; }
.qd .qd-orn::before { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--orn-c, var(--primary)) var(--orn-pk, 12%), transparent);
  -webkit-mask: var(--orn-pat) 0 0 / var(--orn-ps, 60px) repeat; mask: var(--orn-pat) 0 0 / var(--orn-ps, 60px) repeat; }
.qd .qd-orn i { position: absolute; width: clamp(96px, 17vmin, 230px); aspect-ratio: 1; background: color-mix(in srgb, var(--orn-c, var(--primary)) var(--orn-ck, 45%), transparent);
  -webkit-mask: var(--orn-corner) center / contain no-repeat; mask: var(--orn-corner) center / contain no-repeat; }
.qd .qd-orn i:nth-child(1) { top: 10px; left: 10px; } .qd .qd-orn i:nth-child(2) { top: 10px; right: 10px; transform: scaleX(-1); }
.qd .qd-orn i:nth-child(3) { bottom: 10px; left: 10px; transform: scaleY(-1); } .qd .qd-orn i:nth-child(4) { bottom: 10px; right: 10px; transform: scale(-1); }
.qd.mtheme { padding: clamp(40px, 7vh, 84px) clamp(48px, 7vw, 120px); }
.qd.mtheme-segar::before, .qd.mtheme-retro::before { margin: calc(-1 * clamp(40px, 7vh, 84px)) calc(-1 * clamp(48px, 7vw, 120px)) 0; }
.qd .qd-head { border-bottom: 0; position: relative; }
.qd .qd-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 20px; background: color-mix(in srgb, var(--orn-c, var(--primary)) 50%, transparent);
  -webkit-mask: var(--orn-line) center / auto 100% repeat-x; mask: var(--orn-line) center / auto 100% repeat-x; }
.qd .qd-main h2::before { content: ''; display: inline-block; width: 1.3em; height: 1.3em; margin-right: .45em; vertical-align: -.3em; background: currentColor;
  -webkit-mask: var(--orn-pat) center / 100% 100% no-repeat; mask: var(--orn-pat) center / 100% 100% no-repeat; opacity: .9; }
.qd .qd-main .qd-wait { border-left: 0 !important; background-image: linear-gradient(color-mix(in srgb, var(--primary) 35%, transparent), color-mix(in srgb, var(--primary) 35%, transparent)); background-size: 1px 100%; background-repeat: no-repeat; }
.qd .qd-num { box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent), inset 0 0 0 6px color-mix(in srgb, var(--surface-2, var(--bg)) 100%, transparent), inset 0 0 0 7px color-mix(in srgb, var(--primary) 30%, transparent) !important; }
@media (max-width: 700px) { .qd .qd-orn i { width: 72px; } .qd .qd-main .qd-wait { background-image: none; } }
.qd.mtheme-untungin { --orn-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none' stroke='black' stroke-width='3'%3E %3Cpath d='M8 236V8H236'/%3E%3Cpath d='M20 236V20H236' stroke-width='1.5'/%3E %3Cpath d='M20 120A100 100 0 0 1 120 20'/%3E%3Cpath d='M20 90A70 70 0 0 1 90 20'/%3E%3Cpath d='M20 60A40 40 0 0 1 60 20'/%3E %3Cpath d='M20 20L110 110M20 20L60 120M20 20L120 60' stroke-width='1.5'/%3E%3Ccircle cx='20' cy='20' r='9' fill='black'/%3E %3Cpath d='M140 8v24M180 8v14M8 140h24M8 180h14' stroke-width='3'/%3E%3C/svg%3E"); --orn-pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='black'%3E%3Ccircle cx='14' cy='14' r='1.6'/%3E%3C/svg%3E"); --orn-ps: 28px; --orn-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16' fill='black'%3E%3Ccircle cx='9' cy='8' r='2'/%3E%3C/svg%3E"); --orn-pk: 18%; --orn-ck: 30%; }
.qd.mtheme-kafe { --orn-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath d='M8 236V64Q8 8 64 8H236' stroke-width='5'/%3E%3Cpath d='M24 236V76Q24 24 76 24H236' stroke-width='2'/%3E %3Cpath d='M44 44q46-12 56 30q6 28-22 32q-20 2-20-16q0-14 16-12' stroke-width='5'/%3E %3Cpath d='M44 44q-12 46 30 56q28 6 32-22q2-20-16-20q-14 0-12 16' stroke-width='5'/%3E %3Cpath d='M104 40q36-24 76-4q-38 16-76 4z' fill='black' stroke-width='2'/%3E%3Cpath d='M40 104q-24 36-4 76q16-38 4-76z' fill='black' stroke-width='2'/%3E %3Cpath d='M150 30q20 10 44 0M30 150q10 20 0 44' stroke-width='4'/%3E%3Ccircle cx='44' cy='44' r='8' fill='black'/%3E %3Ccircle cx='196' cy='24' r='5' fill='black'/%3E%3Ccircle cx='24' cy='196' r='5' fill='black'/%3E%3Ccircle cx='120' cy='112' r='4' fill='black'/%3E%3Ccircle cx='112' cy='120' r='4' fill='black'/%3E%3C/svg%3E"); --orn-pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='black' stroke-width='2'%3E %3Cellipse cx='30' cy='14' rx='8' ry='13'/%3E%3Cellipse cx='30' cy='46' rx='8' ry='13'/%3E%3Cellipse cx='14' cy='30' rx='13' ry='8'/%3E%3Cellipse cx='46' cy='30' rx='13' ry='8'/%3E %3Ccircle cx='30' cy='30' r='3' fill='black'/%3E%3Ccircle cx='0' cy='0' r='3' fill='black'/%3E%3Ccircle cx='60' cy='0' r='3' fill='black'/%3E%3Ccircle cx='0' cy='60' r='3' fill='black'/%3E%3Ccircle cx='60' cy='60' r='3' fill='black'/%3E%3C/svg%3E"); --orn-ps: 70px; --orn-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M0 10h12M48 10h12'/%3E%3Cpath d='M30 10q-8-9-16-2q6 6 12 0M30 10q8-9 16-2q-6 6-12 0'/%3E%3Ccircle cx='30' cy='10' r='2.5' fill='black'/%3E%3C/svg%3E"); --orn-pk: 8%; --orn-ck: 45%; }
.qd.mtheme-malam { --orn-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none' stroke='black' stroke-width='3'%3E %3Cpath d='M8 236V8H236'/%3E%3Cpath d='M20 236V20H236' stroke-width='1.5'/%3E %3Cpath d='M20 120A100 100 0 0 1 120 20'/%3E%3Cpath d='M20 90A70 70 0 0 1 90 20'/%3E%3Cpath d='M20 60A40 40 0 0 1 60 20'/%3E %3Cpath d='M20 20L110 110M20 20L60 120M20 20L120 60' stroke-width='1.5'/%3E%3Ccircle cx='20' cy='20' r='9' fill='black'/%3E %3Cpath d='M140 8v24M180 8v14M8 140h24M8 180h14' stroke-width='3'/%3E%3C/svg%3E"); --orn-pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E %3Cpath d='M-15 45C0 45 0 30 15 30S30 15 45 15S60 0 75 0'/%3E%3Cpath d='M-15 75C0 75 0 60 15 60S30 45 45 45S60 30 75 30'/%3E %3Ccircle cx='15' cy='45' r='2.5' fill='black'/%3E%3Ccircle cx='45' cy='30' r='2.5' fill='black'/%3E%3C/svg%3E"); --orn-ps: 70px; --orn-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 16' fill='black'%3E%3Crect y='3' width='30' height='1.5'/%3E%3Crect y='11' width='30' height='1.5'/%3E%3Cpath d='M15 3l4 4.75l-4 4.75l-4-4.75z'/%3E%3C/svg%3E"); --orn-pk: 12%; --orn-ck: 55%; }
.qd.mtheme-segar { --orn-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='black' stroke='black' stroke-linecap='round'%3E %3Cpath d='M10 230C20 120 80 40 230 12' fill='none' stroke-width='5'/%3E %3Cpath d='M60 150q-40-10-44-50q36 6 44 50z'/%3E%3Cpath d='M70 140q10-44 50-50q-8 40-50 50z'/%3E %3Cpath d='M110 90q-34-16-30-56q32 14 30 56z'/%3E%3Cpath d='M122 82q20-38 60-36q-20 32-60 36z'/%3E %3Cpath d='M170 50q-24-22-12-58q24 24 12 58z'/%3E%3Ccircle cx='200' cy='30' r='7'/%3E%3Ccircle cx='30' cy='200' r='7'/%3E%3C/svg%3E"); --orn-pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' fill='black'%3E %3Ccircle cx='25' cy='25' r='2.5'/%3E%3Cg transform='translate(25 25)'%3E%3Cpath d='M0-9v5M0 9v-5M-9 0h5M9 0h-5M-6.4-6.4l3.5 3.5M6.4 6.4l-3.5-3.5M-6.4 6.4l3.5-3.5M6.4-6.4l-3.5 3.5' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/g%3E %3Ccircle cx='0' cy='0' r='1.6'/%3E%3Ccircle cx='50' cy='0' r='1.6'/%3E%3Ccircle cx='0' cy='50' r='1.6'/%3E%3Ccircle cx='50' cy='50' r='1.6'/%3E%3C/svg%3E"); --orn-ps: 56px; --orn-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 20' fill='black'%3E%3Cpath d='M0 10h44' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M14 10q8-10 18-8q-6 9-18 8z'/%3E%3C/svg%3E"); --orn-pk: 14%; --orn-ck: 45%; }
.qd.mtheme-ceria { --orn-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='black'%3E %3Cpath d='M0 0L240 30L120 40L200 110L90 70L110 190L60 80L30 240L30 60Z'/%3E %3Ccircle cx='170' cy='170' r='10'/%3E%3Ccircle cx='200' cy='120' r='6'/%3E%3Ccircle cx='130' cy='210' r='6'/%3E%3C/svg%3E"); --orn-pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='black'%3E%3Ccircle cx='14' cy='14' r='1.6'/%3E%3C/svg%3E"); --orn-ps: 30px; --orn-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='M0 12l6-8l6 8l6-8l6 8'/%3E%3C/svg%3E"); --orn-pk: 0%; --orn-ck: 30%; }
.qd.mtheme-manis { --orn-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E %3Cpath d='M8 236V8H236' stroke-width='4'/%3E %3Cpath d='M8 40a16 16 0 0 0 32 0a16 16 0 0 0 32 0a16 16 0 0 0 32 0a16 16 0 0 0 32 0a16 16 0 0 0 32 0a16 16 0 0 0 32 0'/%3E %3Cpath d='M40 8a16 16 0 0 1 0 32a16 16 0 0 1 0 32a16 16 0 0 1 0 32a16 16 0 0 1 0 32a16 16 0 0 1 0 32a16 16 0 0 1 0 32'/%3E %3Ccircle cx='60' cy='60' r='14'/%3E%3Ccircle cx='60' cy='60' r='5' fill='black'/%3E %3Cpath d='M60 46q10-22 30-24M46 60q-22 10-24 30'/%3E%3C/svg%3E"); --orn-pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' fill='black'%3E %3Ccircle cx='25' cy='25' r='2.5'/%3E%3Cg transform='translate(25 25)'%3E%3Cpath d='M0-9v5M0 9v-5M-9 0h5M9 0h-5M-6.4-6.4l3.5 3.5M6.4 6.4l-3.5-3.5M-6.4 6.4l3.5-3.5M6.4-6.4l-3.5 3.5' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/g%3E %3Ccircle cx='0' cy='0' r='1.6'/%3E%3Ccircle cx='50' cy='0' r='1.6'/%3E%3Ccircle cx='0' cy='50' r='1.6'/%3E%3Ccircle cx='50' cy='50' r='1.6'/%3E%3C/svg%3E"); --orn-ps: 56px; --orn-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M0 4a6 6 0 0 0 12 0a6 6 0 0 0 12 0'/%3E%3Ccircle cx='12' cy='12' r='1.8' fill='black'/%3E%3C/svg%3E"); --orn-pk: 14%; --orn-ck: 45%; }
.qd.mtheme-polos { --orn-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none' stroke='black' stroke-width='3'%3E %3Cpath d='M8 236V8H236'/%3E%3Cpath d='M20 236V20H236' stroke-width='1.5'/%3E %3Cpath d='M20 120A100 100 0 0 1 120 20'/%3E%3Cpath d='M20 90A70 70 0 0 1 90 20'/%3E%3Cpath d='M20 60A40 40 0 0 1 60 20'/%3E %3Cpath d='M20 20L110 110M20 20L60 120M20 20L120 60' stroke-width='1.5'/%3E%3Ccircle cx='20' cy='20' r='9' fill='black'/%3E %3Cpath d='M140 8v24M180 8v14M8 140h24M8 180h14' stroke-width='3'/%3E%3C/svg%3E"); --orn-pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E %3Cpath d='M-15 45C0 45 0 30 15 30S30 15 45 15S60 0 75 0'/%3E%3Cpath d='M-15 75C0 75 0 60 15 60S30 45 45 45S60 30 75 30'/%3E %3Ccircle cx='15' cy='45' r='2.5' fill='black'/%3E%3Ccircle cx='45' cy='30' r='2.5' fill='black'/%3E%3C/svg%3E"); --orn-ps: 70px; --orn-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 16' fill='black'%3E%3Crect y='3' width='30' height='1.5'/%3E%3Crect y='11' width='30' height='1.5'/%3E%3Cpath d='M15 3l4 4.75l-4 4.75l-4-4.75z'/%3E%3C/svg%3E"); --orn-pk: 7%; --orn-ck: 45%; }
.qd.mtheme-nusantara { --orn-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath d='M8 236V64Q8 8 64 8H236' stroke-width='5'/%3E%3Cpath d='M24 236V76Q24 24 76 24H236' stroke-width='2'/%3E %3Cpath d='M44 44q46-12 56 30q6 28-22 32q-20 2-20-16q0-14 16-12' stroke-width='5'/%3E %3Cpath d='M44 44q-12 46 30 56q28 6 32-22q2-20-16-20q-14 0-12 16' stroke-width='5'/%3E %3Cpath d='M104 40q36-24 76-4q-38 16-76 4z' fill='black' stroke-width='2'/%3E%3Cpath d='M40 104q-24 36-4 76q16-38 4-76z' fill='black' stroke-width='2'/%3E %3Cpath d='M150 30q20 10 44 0M30 150q10 20 0 44' stroke-width='4'/%3E%3Ccircle cx='44' cy='44' r='8' fill='black'/%3E %3Ccircle cx='196' cy='24' r='5' fill='black'/%3E%3Ccircle cx='24' cy='196' r='5' fill='black'/%3E%3Ccircle cx='120' cy='112' r='4' fill='black'/%3E%3Ccircle cx='112' cy='120' r='4' fill='black'/%3E%3C/svg%3E"); --orn-pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='black' stroke-width='2'%3E %3Cellipse cx='30' cy='14' rx='8' ry='13'/%3E%3Cellipse cx='30' cy='46' rx='8' ry='13'/%3E%3Cellipse cx='14' cy='30' rx='13' ry='8'/%3E%3Cellipse cx='46' cy='30' rx='13' ry='8'/%3E %3Ccircle cx='30' cy='30' r='3' fill='black'/%3E%3Ccircle cx='0' cy='0' r='3' fill='black'/%3E%3Ccircle cx='60' cy='0' r='3' fill='black'/%3E%3Ccircle cx='0' cy='60' r='3' fill='black'/%3E%3Ccircle cx='60' cy='60' r='3' fill='black'/%3E%3C/svg%3E"); --orn-ps: 64px; --orn-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M0 15C10 15 10 5 20 5S30 15 40 15'/%3E%3Ccircle cx='20' cy='15' r='2' fill='black'/%3E%3C/svg%3E"); --orn-pk: 16%; --orn-ck: 55%; }
.qd.mtheme-laut { --orn-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'%3E %3Cpath d='M8 236V60Q8 8 60 8H236' stroke-width='4'/%3E %3Cpath d='M30 120a40 40 0 1 1 40 40a24 24 0 1 1 24-24a12 12 0 1 1-12 12'/%3E %3Cpath d='M120 30a30 30 0 1 1 30 30a18 18 0 1 1 18-18' stroke-width='4'/%3E %3Cpath d='M30 190q20-14 40 0t40 0' stroke-width='3'/%3E%3Cpath d='M190 30q14 20 0 40t0 40' stroke-width='3'/%3E%3C/svg%3E"); --orn-pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 70' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E %3Cpath d='M10 55a22 22 0 0 1 44 0a15 15 0 0 1 30 0a11 11 0 0 1 22 0'/%3E %3Cpath d='M18 55a14 14 0 0 1 28 0a8 8 0 0 1 16 0'/%3E%3Cpath d='M26 55a6 6 0 0 1 12 0'/%3E %3Cpath d='M70 22a14 14 0 0 1 28 0a9 9 0 0 1 18 0' /%3E%3Cpath d='M78 22a6 6 0 0 1 12 0'/%3E%3C/svg%3E"); --orn-ps: 130px; --orn-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M0 10q10-10 20 0t20 0'/%3E%3C/svg%3E"); --orn-pk: 14%; --orn-ck: 45%; }
.qd.mtheme-senja { --orn-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath d='M8 236V64Q8 8 64 8H236' stroke-width='5'/%3E%3Cpath d='M24 236V76Q24 24 76 24H236' stroke-width='2'/%3E %3Cpath d='M44 44q46-12 56 30q6 28-22 32q-20 2-20-16q0-14 16-12' stroke-width='5'/%3E %3Cpath d='M44 44q-12 46 30 56q28 6 32-22q2-20-16-20q-14 0-12 16' stroke-width='5'/%3E %3Cpath d='M104 40q36-24 76-4q-38 16-76 4z' fill='black' stroke-width='2'/%3E%3Cpath d='M40 104q-24 36-4 76q16-38 4-76z' fill='black' stroke-width='2'/%3E %3Cpath d='M150 30q20 10 44 0M30 150q10 20 0 44' stroke-width='4'/%3E%3Ccircle cx='44' cy='44' r='8' fill='black'/%3E %3Ccircle cx='196' cy='24' r='5' fill='black'/%3E%3Ccircle cx='24' cy='196' r='5' fill='black'/%3E%3Ccircle cx='120' cy='112' r='4' fill='black'/%3E%3Ccircle cx='112' cy='120' r='4' fill='black'/%3E%3C/svg%3E"); --orn-pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 70' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E %3Cpath d='M10 55a22 22 0 0 1 44 0a15 15 0 0 1 30 0a11 11 0 0 1 22 0'/%3E %3Cpath d='M18 55a14 14 0 0 1 28 0a8 8 0 0 1 16 0'/%3E%3Cpath d='M26 55a6 6 0 0 1 12 0'/%3E %3Cpath d='M70 22a14 14 0 0 1 28 0a9 9 0 0 1 18 0' /%3E%3Cpath d='M78 22a6 6 0 0 1 12 0'/%3E%3C/svg%3E"); --orn-ps: 140px; --orn-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M0 10q10-10 20 0t20 0'/%3E%3C/svg%3E"); --orn-pk: 12%; --orn-ck: 40%; }
.qd.mtheme-kayu { --orn-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath d='M8 236V64Q8 8 64 8H236' stroke-width='5'/%3E%3Cpath d='M24 236V76Q24 24 76 24H236' stroke-width='2'/%3E %3Cpath d='M44 44q46-12 56 30q6 28-22 32q-20 2-20-16q0-14 16-12' stroke-width='5'/%3E %3Cpath d='M44 44q-12 46 30 56q28 6 32-22q2-20-16-20q-14 0-12 16' stroke-width='5'/%3E %3Cpath d='M104 40q36-24 76-4q-38 16-76 4z' fill='black' stroke-width='2'/%3E%3Cpath d='M40 104q-24 36-4 76q16-38 4-76z' fill='black' stroke-width='2'/%3E %3Cpath d='M150 30q20 10 44 0M30 150q10 20 0 44' stroke-width='4'/%3E%3Ccircle cx='44' cy='44' r='8' fill='black'/%3E %3Ccircle cx='196' cy='24' r='5' fill='black'/%3E%3Ccircle cx='24' cy='196' r='5' fill='black'/%3E%3Ccircle cx='120' cy='112' r='4' fill='black'/%3E%3Ccircle cx='112' cy='120' r='4' fill='black'/%3E%3C/svg%3E"); --orn-pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E %3Cpath d='M-15 45C0 45 0 30 15 30S30 15 45 15S60 0 75 0'/%3E%3Cpath d='M-15 75C0 75 0 60 15 60S30 45 45 45S60 30 75 30'/%3E %3Ccircle cx='15' cy='45' r='2.5' fill='black'/%3E%3Ccircle cx='45' cy='30' r='2.5' fill='black'/%3E%3C/svg%3E"); --orn-ps: 76px; --orn-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M0 10h12M48 10h12'/%3E%3Cpath d='M30 10q-8-9-16-2q6 6 12 0M30 10q8-9 16-2q-6 6-12 0'/%3E%3Ccircle cx='30' cy='10' r='2.5' fill='black'/%3E%3C/svg%3E"); --orn-pk: 10%; --orn-ck: 55%; }
.qd.mtheme-retro { --orn-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none' stroke='black' stroke-width='3'%3E %3Cpath d='M8 236V8H236'/%3E%3Cpath d='M20 236V20H236' stroke-width='1.5'/%3E %3Cpath d='M20 120A100 100 0 0 1 120 20'/%3E%3Cpath d='M20 90A70 70 0 0 1 90 20'/%3E%3Cpath d='M20 60A40 40 0 0 1 60 20'/%3E %3Cpath d='M20 20L110 110M20 20L60 120M20 20L120 60' stroke-width='1.5'/%3E%3Ccircle cx='20' cy='20' r='9' fill='black'/%3E %3Cpath d='M140 8v24M180 8v14M8 140h24M8 180h14' stroke-width='3'/%3E%3C/svg%3E"); --orn-pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' fill='black'%3E %3Ccircle cx='25' cy='25' r='2.5'/%3E%3Cg transform='translate(25 25)'%3E%3Cpath d='M0-9v5M0 9v-5M-9 0h5M9 0h-5M-6.4-6.4l3.5 3.5M6.4 6.4l-3.5-3.5M-6.4 6.4l3.5-3.5M6.4-6.4l-3.5 3.5' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/g%3E %3Ccircle cx='0' cy='0' r='1.6'/%3E%3Ccircle cx='50' cy='0' r='1.6'/%3E%3Ccircle cx='0' cy='50' r='1.6'/%3E%3Ccircle cx='50' cy='50' r='1.6'/%3E%3C/svg%3E"); --orn-ps: 60px; --orn-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='M0 12l6-8l6 8l6-8l6 8'/%3E%3C/svg%3E"); --orn-pk: 12%; --orn-ck: 45%; }
.qd.mtheme-kayu { --orn-c: #ffd9a0; --orn-ck: 60%; --orn-pk: 9%; }
.qd.mtheme-nusantara { --orn-pk: 9%; }

/* Baris geser ke samping: tepi memudar, tombol panah, klik-seret (js/hscroll.js) */
.hs { scroll-behavior: auto; }
.hs.hs-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.hs.hs-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px); mask-image: linear-gradient(to right, transparent, #000 56px); }
.hs.hs-l.hs-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
@media (hover: hover) and (pointer: fine) { .hs.hs-l, .hs.hs-r { cursor: grab; } }
.hs.hs-drag, .hs.hs-drag * { cursor: grabbing !important; user-select: none; }
.hs.hs-drag a, .hs.hs-drag button { pointer-events: none; }
.hs-wrap { position: relative; min-width: 0; }
.hs-btn { position: absolute; top: 50%; z-index: 2; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; border: .5px solid var(--border);
  background: var(--glass-strong); color: var(--text); box-shadow: var(--shadow); display: none; place-items: center; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hs-wrap-hub .hs-btn { margin-top: -23px; }
.hs-btn.hs-l { left: -6px; } .hs-btn.hs-r { right: -6px; }
@media (hover: hover) and (pointer: fine) { .hs-wrap.can-l .hs-btn.hs-l, .hs-wrap.can-r .hs-btn.hs-r { display: grid; } }
@media (hover: hover) { .hs-btn:hover { background: var(--primary); color: var(--on-primary); border-color: transparent; } }

/* ============ Kasir, pesanan & antrean — perapian ============ */
/* Panel pesanan masuk (kasir) */
.incoming-list { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.incoming-item { gap: 6px; padding: 14px; background: var(--surface-2, var(--fill-2)); }
.incoming-item.late { border-color: color-mix(in srgb, var(--warning) 60%, transparent); }
.incoming-item .ii-no { font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ii-wait { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--fill); color: var(--muted); }
.incoming-item.late .ii-wait { background: var(--warning-soft); color: var(--warning); }
.ii-who { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; }
.ii-items { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.incoming-item .ii-foot { margin-top: 4px; }
.incoming-item .ii-foot strong { font-size: 17px; }
.ii-actions { display: flex; gap: 6px; }
/* Dialog terima bayar */
.qp { display: grid; gap: 12px; }
.qp-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qp-who strong { font-size: 17px; }
.qp-items { list-style: none; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--fill-2); display: grid; gap: 6px; }
.qp-items li, .qp-row { display: flex; justify-content: space-between; gap: 12px; }
.qp-note { margin: 0; color: var(--text-2); }
.qp-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; }
.qp-total strong { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.qp-methods { width: 100%; display: grid !important; grid-template-columns: repeat(3, 1fr); }
.qp-methods button { justify-content: center; gap: 6px; display: inline-flex; align-items: center; }
.qp-in { font-size: 24px; font-weight: 700; height: 52px; text-align: right; font-variant-numeric: tabular-nums; margin-top: 4px; }
.qp-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qp-quick .chip { cursor: pointer; }
.qp-change { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--success-soft); color: var(--success); }
.qp-change strong { font-size: 22px; }
.qp-change.short { background: var(--danger-soft); color: var(--danger); }
.qp-change.short span::after { content: " — uang kurang"; }
.qp-cancel { color: var(--muted); } .qp-cancel.danger { color: var(--danger); }
/* Halaman Pilihan Menu: ubin layar pelanggan & pengaturan dilipat */
.k-sec { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin: 22px 0 10px; }
.k-launch { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 14px; }
.k-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: .5px solid var(--edge); background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; text-decoration: none !important; box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow-sm); }
.k-tile .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.k-tile > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.k-tile small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.k-tile > svg.i:last-child { color: var(--muted); flex: none; }
@media (hover: hover) { .k-tile:hover { border-color: var(--primary); } }
.k-settings { margin-bottom: 18px; }
.k-settings > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--fill-2); font-weight: 600; color: var(--text-2); }
.k-settings > summary::-webkit-details-marker { display: none; }
.k-settings[open] > summary { margin-bottom: 12px; background: var(--primary-soft); color: var(--primary); }
/* Papan antrean: tiket lebih ringkas */
.k-ticket { gap: 6px; }
.k-unpaid { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
@media (hover: hover) { .k-unpaid:hover { background: var(--warning); color: #fff; } }
.k-ticket .k-actions .btn { height: 38px; }
/* Layar menu pelanggan: lembar pesanan & bilah bawah tidak tembus pandang */
.mn-sheet, .mn-bar { background: linear-gradient(var(--glass-strong), var(--glass-strong)), var(--bg); }
.mn-count { opacity: .75; font-weight: 500; font-variant-numeric: tabular-nums; }
.mn-done p { line-height: 1.45; }
/* Struk antrean pelanggan */
.qt-wrap { display: grid; place-items: center; padding: 6px 0; background: var(--fill-2); border-radius: 12px; }
.receipt.qt { width: 58mm; max-width: 100%; }
.receipt.qt.paper-80 { width: 80mm; }
.qt-label { font-size: 11px; font-weight: 700; letter-spacing: .16em; margin-top: 4px; }
.qt-no { font-size: 64px; font-weight: 900; line-height: 1; margin: 4px 0; font-variant-numeric: tabular-nums; }
.qt-who { font-size: 16px; font-weight: 700; }
.qt-time { font-size: 11px; opacity: .75; margin-top: 2px; }
.qt-pay { font-size: 11.5px; font-weight: 700; margin: 6px 0; }
.qt-bar svg { width: 100%; height: 40px; }
.qt-code { font-size: 10px; letter-spacing: .06em; }
.qt-foot { font-size: 11px; }
.ii-opts { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ii-opts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text-2); }
/* Kartu pesanan masuk: total di atas, tombol aksi satu baris penuh (tidak meluber) */
.incoming-item .ii-foot { flex-wrap: wrap; gap: 8px; }
.incoming-item .ii-actions { width: 100%; }
.incoming-item .ii-actions [data-qpay] { flex: 1; justify-content: center; }
/* Layar menu pelanggan: foto tampil utuh (tidak terpotong). Sisa ruang diisi versi buram dari foto yang sama,
   tepi foto memudar sehingga menyatu dengan latarnya — berlaku untuk foto ukuran/bentuk apa pun. */
.mn-img.has-photo { isolation: isolate; }
.mn-img .mn-ph-bg { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(16px) saturate(1.25); opacity: .75; z-index: 0; transform: translateZ(0); }
.mn-img .mn-ph { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); mask-composite: intersect;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .18)); }
.mn-img .mn-q { z-index: 2; }
.mn-img .mn-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Layar menu pelanggan (revisi): foto menyatu dengan kartu — tanpa kotak & tanpa latar buram.
   Foto tampil utuh sesuai bentuk aslinya, tepinya memudar lembut ke warna kartu. */
.mn-img.has-photo { background: transparent; display: grid; place-items: center; overflow: visible; }
.mn-img.has-photo .mn-ph-bg { display: none; }
.mn-img.has-photo .mn-ph { position: static; inset: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; filter: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 62%, transparent 100%);
  -webkit-mask-composite: source-over; mask-composite: add; }
.mn-img.has-photo { overflow: hidden; } .mn-img.has-photo .mn-ph { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; }
/* Layar menu pelanggan (revisi 2): foto memenuhi bingkai persis seperti ilustrasi; titik fokus diatur otomatis (js). */
.mn-img.has-photo { background: var(--fill); display: grid; overflow: hidden; }
.mn-img.has-photo .mn-ph { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: 50% 50%;
  border-radius: 0; -webkit-mask-image: none; mask-image: none; filter: none; transition: object-position .3s ease; }
/* ============ Layar menu pelanggan — kartu gaya M: foto & kartu menyatu (warna kartu = warna foto) ============ */
.mn .mn-item.mc { padding: 0; gap: 0; border: 0; border-radius: 24px; overflow: hidden; background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: background-color .35s ease, transform .15s var(--ease), box-shadow .2s; rotate: 0deg; }
.mn .mn-item.mc.tinted { background: var(--cc); color: var(--ct); }
.mn .mn-item.mc .mn-img { aspect-ratio: 1; border-radius: 0; background: var(--cc, var(--fill)); }
.mn .mn-item.mc .mn-body { display: grid; gap: 6px; padding: 4px 14px 14px; text-align: left; }
.mn .mn-item.mc .mn-name { color: inherit; font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.mn .mn-item.mc .mn-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mn .mn-item.mc .mn-price { margin: 0; color: var(--primary); font-weight: 800; font-size: 15.5px; background: none; padding: 0; rotate: 0deg; box-shadow: none; }
.mn .mn-item.mc.tinted .mn-price { color: var(--cp); }
.mn-plus { width: 34px; height: 34px; flex: none; border-radius: 50%; background: rgba(0, 0, 0, .84); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 400; line-height: 1; }
.mn .mn-item.mc.dk .mn-plus { background: rgba(255, 255, 255, .92); color: #111; }
.mn .mn-item.mc.in { box-shadow: 0 0 0 3px var(--primary); }
.mn .mn-item.mc:disabled { filter: grayscale(.85); opacity: .55; }
.mn .mn-item.mc::before { display: none; }
@media (max-width: 420px) { .mn .mn-item.mc .mn-body { padding: 2px 10px 10px; } .mn .mn-item.mc .mn-name { font-size: 14px; } .mn-plus { width: 30px; height: 30px; font-size: 19px; } }
/* Layar menu pelanggan: sapaan berjalan ke kiri (menggantikan judul "Pilih menu") */
.mn-head { align-items: center; }
.mn-welcome { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 4%, #000 92%, transparent); }
.mn-marquee { display: flex; width: max-content; animation: mn-marquee 22s linear infinite; }
.mn-marquee span { flex: none; padding-right: 3.5em; font-size: clamp(24px, 4.4vw, 38px); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; color: var(--text); }
@keyframes mn-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mn-marquee { animation-duration: 60s; } }
/* Sapaan layar menu: ukuran pas (tidak terlalu besar/kecil) */
.mn-marquee span { font-size: clamp(18px, 2.4vw + 8px, 28px); font-weight: 700; letter-spacing: 0; padding-right: 3em; }
/* Huruf Plus Jakarta Sans (SIL Open Font License 1.1, Tokotype) — disimpan di aplikasi, untuk sapaan layar menu. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/plus-jakarta-sans-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
.mn-marquee span { font-family: "Plus Jakarta Sans", var(--font); font-weight: 700; letter-spacing: -.005em; }
/* Layar menu TV: nama toko lebih jelas & karakter lucu di kiri-kanan judul */
.mbd .mb-brand { font-size: 32px; font-weight: 800; letter-spacing: .14em; color: var(--fg); opacity: .9; display: inline-flex; align-items: center; gap: 14px; }
.mbd .mb-brand::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.mbd .mb-title .mb-kicker { font-size: 30px; color: color-mix(in srgb, var(--fg) 70%, transparent); }
.mb-mascot { position: absolute; top: 50%; width: 250px; height: 270px; margin-top: -170px; color: var(--fg); z-index: 1; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .18)); }
.mb-mascot svg { width: 100%; height: 100%; overflow: visible; }
.mb-mascot.l { left: 40px; animation: ms-bob 3.2s ease-in-out infinite; }
.mb-mascot.r { right: 40px; animation: ms-bob 3.2s ease-in-out -1.6s infinite; }
.mb-mascot .ms-arm { animation: ms-wave 1.4s ease-in-out infinite; }
.mb-mascot .ms-arm.r { animation-name: ms-wave-r; }
.mb-mascot .ms-steam { animation: ms-steam 2.6s ease-in-out infinite; }
@keyframes ms-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(3deg); } }
@keyframes ms-wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-22deg); } }
@keyframes ms-wave-r { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(22deg); } }
@keyframes ms-steam { 0%, 100% { opacity: .25; transform: translateY(4px); } 50% { opacity: .6; transform: translateY(-6px); } }
.mbd .mb-layer.in .mb-mascot.l { animation: ms-in-l .9s cubic-bezier(.34, 1.56, .64, 1) .4s both, ms-bob 3.2s ease-in-out 1.3s infinite; }
.mbd .mb-layer.in .mb-mascot.r { animation: ms-in-r .9s cubic-bezier(.34, 1.56, .64, 1) .55s both, ms-bob 3.2s ease-in-out -0.3s infinite; }
@keyframes ms-in-l { from { opacity: 0; transform: translateX(-120px) rotate(-20deg) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes ms-in-r { from { opacity: 0; transform: translateX(120px) rotate(20deg) scale(.6); } to { opacity: 1; transform: none; } }
.mbd.portrait .mb-mascot { width: 190px; height: 205px; top: 22%; margin-top: 0; }
.mbd.portrait .mb-mascot.l { left: 120px; } .mbd.portrait .mb-mascot.r { right: 120px; }
@media (prefers-reduced-motion: reduce) { .mb-mascot, .mb-mascot * { animation: none !important; } }
.mb-mascot { width: 230px; height: 250px; margin-top: -160px; } .mb-mascot.l { left: 30px; } .mb-mascot.r { right: 30px; }
.mb-mascot { width: 230px; height: 288px; margin-top: -175px; }
.mb-mascot { width: 270px; height: 338px; margin-top: -200px; } .mb-mascot.l { left: 24px; } .mb-mascot.r { right: 24px; }
/* Pemilih tema (63 pilihan): area bergulir agar halaman tetap ringkas */
.mt-pick, .mbs-pick { max-height: 520px; overflow-y: auto; padding: 4px 6px 4px 2px; overscroll-behavior: contain; scrollbar-width: thin; }

/* ============ Konsep per tema: susunan (lay), gerakan kartu (mot), gerakan karakter (cm), susunan antrean (ql) ============ */
/* --- Layar menu TV: 8 susunan halaman kategori --- */
.mbd.lay-2 .mb-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
.mbd.lay-2 .mb-card:first-child { grid-column: span 2; grid-row: span 2; max-height: none; }
.mbd.lay-2 .mb-card:first-child h3 { font-size: 52px; } .mbd.lay-2 .mb-card:first-child .mb-price { font-size: 56px; }
.mbd.lay-3 .mb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(0, 1fr); justify-content: stretch; }
.mbd.lay-3 .mb-card { grid-template-columns: 40% minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: center; text-align: left; max-height: none; }
.mbd.lay-3 .mb-card .mb-img { height: 100%; margin: 0; aspect-ratio: auto; border-radius: 0; }
.mbd.lay-3 .mb-card-b { justify-items: start; padding: 20px 28px; } .mbd.lay-3 .mb-card h3 { white-space: normal; font-size: 38px; }
.mbd.lay-4 .mb-card { background: transparent !important; box-shadow: none !important; border: 0 !important; text-align: center; overflow: visible; rotate: 0deg !important; }
.mbd.lay-4 .mb-card .mb-img { width: 76%; height: auto; aspect-ratio: 1; margin: 6px auto 0; border-radius: 50%; justify-self: center; box-shadow: 0 30px 40px rgba(0, 0, 0, .28); overflow: hidden; }
.mbd.lay-4 .mb-card-b { justify-items: center; } .mbd.lay-4 .mb-card .mb-price { padding: 4px 22px; border-radius: 999px; background: var(--accent); color: var(--tick-fg); }
.mbd.lay-5 .mb-card { background: #fffdf8 !important; color: #2a2420 !important; padding: 16px 16px 22px; border: 0 !important; box-shadow: 0 16px 30px rgba(0, 0, 0, .28) !important; border-radius: 4px; overflow: visible; }
.mbd.lay-5 .mb-card:nth-child(odd) { rotate: -4deg; } .mbd.lay-5 .mb-card:nth-child(even) { rotate: 3.5deg; } .mbd.lay-5 .mb-card:nth-child(3n) { rotate: -1.5deg; }
.mbd.lay-5 .mb-card::after { content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px; background: rgba(255, 214, 102, .78); rotate: -3deg; }
.mbd.lay-5 .mb-card .mb-img { margin: 0; border-radius: 2px; aspect-ratio: auto; height: 100%; } .mbd.lay-5 .mb-card p { color: #6b625a; } .mbd.lay-5 .mb-card .mb-price { color: #b23a1a; }
.mbd.lay-6 .mb-cards { grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(4, minmax(0, 1fr)); justify-content: stretch; }
.mbd.lay-6 .mb-card:first-child { grid-row: span 4; max-height: none; position: relative; grid-template-rows: minmax(0, 1fr); }
.mbd.lay-6 .mb-card:first-child .mb-img { height: 100%; margin: 0; border-radius: 0; aspect-ratio: auto; }
.mbd.lay-6 .mb-card:first-child .mb-card-b { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 34px 30px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: #fff; justify-items: start; text-align: left; }
.mbd.lay-6 .mb-card:first-child h3 { font-size: 56px; color: #fff; } .mbd.lay-6 .mb-card:first-child p { color: rgba(255, 255, 255, .85); } .mbd.lay-6 .mb-card:first-child .mb-price { color: #fff; font-size: 52px; }
.mbd.lay-6 .mb-card:not(:first-child) { grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: center; text-align: left; max-height: none; }
.mbd.lay-6 .mb-card:not(:first-child) .mb-img { height: 100%; margin: 0; aspect-ratio: auto; border-radius: 0; } .mbd.lay-6 .mb-card:not(:first-child) .mb-card-b { justify-items: start; padding: 10px 22px; }
.mbd.lay-6 .mb-card:not(:first-child) p { display: none; }
.mbd.lay-7 .mb-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); justify-content: stretch; }
.mbd.lay-7 .mb-card { max-height: none; } .mbd.lay-7 .mb-card .mb-img { margin: 0; border-radius: 0; aspect-ratio: auto; height: 100%; }
.mbd.lay-7 .mb-card-b { padding: 26px 26px 34px; } .mbd.lay-7 .mb-card h3 { white-space: normal; font-size: 40px; }
.mbd.lay-8 .mb-cards { padding-top: 46px; } .mbd.lay-8 .mb-card { overflow: visible; border-radius: 22px 22px 22px 22px; transform-origin: 50% -46px; }
.mbd.lay-8 .mb-card::before { content: ""; position: absolute; left: 50%; top: -46px; width: 3px; height: 46px; background: var(--fg); opacity: .5; }
.mbd.lay-8 .mb-card::after { content: ""; position: absolute; left: 50%; top: 10px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--line); z-index: 2; }
.mbd.lay-8 .mb-card .mb-img { margin-top: 36px; }
.mbd.lay-8 .mb-layer.in .mb-card { animation: var(--mot, mb-card) .8s cubic-bezier(.22, 1, .36, 1) calc(.35s + var(--i) * .09s) both, tag-swing 3.6s ease-in-out calc(1.4s + var(--i) * .3s) infinite; }
@keyframes tag-swing { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }
/* Slide sorotan: foto di kanan untuk susunan genap */
.mbd.lay-2 .mb-feature, .mbd.lay-4 .mb-feature, .mbd.lay-6 .mb-feature, .mbd.lay-8 .mb-feature { grid-template-columns: 1fr 800px; }
.mbd.lay-2 .mb-feature .mb-hero, .mbd.lay-4 .mb-feature .mb-hero, .mbd.lay-6 .mb-feature .mb-hero, .mbd.lay-8 .mb-feature .mb-hero { order: 2; }
.mbd.portrait .mb-feature .mb-hero { order: 0 !important; }
.mbd.portrait.lay-2 .mb-cards, .mbd.portrait.lay-7 .mb-cards, .mbd.portrait.lay-6 .mb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
.mbd.portrait.lay-2 .mb-card:first-child, .mbd.portrait.lay-6 .mb-card:first-child { grid-column: span 2; grid-row: span 1; }

/* --- Layar menu TV: 8 gerakan masuk kartu --- */
.mbd.mot-1 { --mot: mb-card; } .mbd.mot-2 { --mot: mot-drop; } .mbd.mot-3 { --mot: mot-flip; } .mbd.mot-4 { --mot: mot-pop; }
.mbd.mot-5 { --mot: mot-left; } .mbd.mot-6 { --mot: mot-spin; } .mbd.mot-7 { --mot: mot-swing; } .mbd.mot-8 { --mot: mot-blur; }
.mbd .mb-layer.in .mb-card { animation-name: var(--mot, mb-card); }
.mbd.mot-5 .mb-layer.in .mb-card:nth-child(even) { animation-name: mot-right; }
.mbd.mot-2 .mb-layer.in .mb-card { animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
@keyframes mot-drop { from { opacity: 0; transform: translateY(-140%) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes mot-flip { from { opacity: 0; transform: perspective(900px) rotateY(90deg); } to { opacity: 1; transform: none; } }
@keyframes mot-pop { 0% { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.08); } 100% { transform: none; } }
@keyframes mot-left { from { opacity: 0; transform: translateX(-130%) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes mot-right { from { opacity: 0; transform: translateX(130%) rotate(6deg); } to { opacity: 1; transform: none; } }
@keyframes mot-spin { from { opacity: 0; transform: rotate(-200deg) scale(.2); } to { opacity: 1; transform: none; } }
@keyframes mot-swing { 0% { opacity: 0; transform: perspective(900px) rotateX(-95deg); transform-origin: top; } 60% { opacity: 1; transform: perspective(900px) rotateX(14deg); } 100% { transform: none; } }
@keyframes mot-blur { from { opacity: 0; filter: blur(24px); transform: scale(1.15); } to { opacity: 1; filter: none; transform: none; } }

/* --- Gerakan karakter (6) --- */
@keyframes cm-jump { 0%, 55%, 100% { transform: translateY(0) scale(1, 1); } 62% { transform: translateY(0) scale(1.08, .9); } 75% { transform: translateY(-46px) scale(.95, 1.06); } 88% { transform: translateY(0) scale(1.05, .95); } }
@keyframes cm-sway { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes cm-spin { 0%, 70%, 100% { transform: rotate(0) translateY(0); } 80% { transform: translateY(-30px) rotate(180deg); } 90% { transform: translateY(-10px) rotate(360deg); } }
@keyframes cm-breathe { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.07) rotate(3deg); } }
@keyframes cm-float { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 33% { transform: translate(14px, -20px) rotate(3deg); } 66% { transform: translate(-10px, -8px) rotate(-1deg); } }
.mb-mascot { transform-origin: 50% 100%; }
.mbd.cm-2 .mb-layer.in .mb-mascot.l, .mbd.cm-2 .mb-layer.in .mb-mascot.r { animation-name: ms-in-l, cm-jump; animation-duration: .9s, 2.2s; }
.mbd.cm-2 .mb-layer.in .mb-mascot.r { animation-name: ms-in-r, cm-jump; }
.mbd.cm-3 .mb-layer.in .mb-mascot.l { animation-name: ms-in-l, cm-sway; animation-duration: .9s, 2.6s; } .mbd.cm-3 .mb-layer.in .mb-mascot.r { animation-name: ms-in-r, cm-sway; animation-duration: .9s, 2.6s; }
.mbd.cm-4 .mb-layer.in .mb-mascot.l { animation-name: ms-in-l, cm-spin; animation-duration: .9s, 4.5s; } .mbd.cm-4 .mb-layer.in .mb-mascot.r { animation-name: ms-in-r, cm-spin; animation-duration: .9s, 4.5s; }
.mbd.cm-5 .mb-layer.in .mb-mascot.l { animation-name: ms-in-l, cm-breathe; animation-duration: .9s, 2.4s; } .mbd.cm-5 .mb-layer.in .mb-mascot.r { animation-name: ms-in-r, cm-breathe; animation-duration: .9s, 2.4s; }
.mbd.cm-6 .mb-layer.in .mb-mascot.l { animation-name: ms-in-l, cm-float; animation-duration: .9s, 5s; } .mbd.cm-6 .mb-layer.in .mb-mascot.r { animation-name: ms-in-r, cm-float; animation-duration: .9s, 5s; }

/* --- Layar antrean: 6 susunan + karakter di pojok --- */
.qd.ql-2 .qd-ready .qd-num:first-child { flex-basis: 100%; max-width: none; font-size: calc(clamp(110px, min(15vw, 24vh), 300px) * var(--qs, 1)); }
.qd.ql-3 .qd-ready .qd-nums { display: grid; grid-template-columns: 1fr; }
.qd.ql-3 .qd-ready .qd-num { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 32px; align-items: center; text-align: left; max-width: none; min-width: 0;
  font-size: calc(clamp(56px, min(7vw, 11vh), 120px) * var(--qs, 1)); border-left: 12px solid var(--primary) !important; border-radius: 14px; }
.qd.ql-3 .qd-num small, .qd.ql-3 .qd-num .qd-items { grid-column: 2; margin: 0; max-width: none; text-align: left; }
.qd.ql-3 .qd-num small { grid-row: 1; align-self: end; } .qd.ql-3 .qd-num .qd-items { grid-row: 2; align-self: start; }
.qd.ql-4 .qd-num { border-radius: 50% !important; aspect-ratio: 1; min-width: calc(clamp(180px, 18vw, 320px) * var(--qs, 1)); max-width: calc(clamp(180px, 18vw, 320px) * var(--qs, 1)); place-content: center; padding: 10px !important; }
.qd.ql-4 .qd-num .qd-items { display: none; }
.qd.ql-5 .qd-main { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.qd.ql-5 .qd-main .qd-wait { order: -1; padding: 0 clamp(16px, 3vw, 48px) 0 0; background-position: right top; }
.qd.ql-5 .qd-main .qd-ready { padding: 0 0 0 clamp(16px, 3vw, 48px); }
.qd.ql-6 .qd-main { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 24px; }
.qd.ql-6 .qd-main section { padding: 0; } .qd.ql-6 .qd-main .qd-wait { padding: 20px 0 0; background-image: linear-gradient(90deg, color-mix(in srgb, var(--primary) 35%, transparent), color-mix(in srgb, var(--primary) 35%, transparent)) !important; background-size: 100% 1px !important; }
.qd.ql-6 .qd-rows { display: flex; flex-wrap: wrap; gap: 14px; } .qd.ql-6 .qd-row { border: 1px solid color-mix(in srgb, var(--text) 16%, transparent) !important; border-radius: 18px; padding: 12px 20px !important; grid-template-columns: auto auto; }
.qd-char { position: fixed; right: clamp(16px, 2.6vw, 44px); bottom: clamp(8px, 1.6vh, 22px); width: clamp(80px, 8vw, 140px); aspect-ratio: 240 / 300; z-index: 2; pointer-events: none; transform-origin: 50% 100%; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .2)); animation: ms-bob 3.2s ease-in-out infinite; }
.qd-char svg { width: 100%; height: 100%; overflow: visible; }
.qd.cm-2 .qd-char { animation: cm-jump 2.2s ease-in-out infinite; } .qd.cm-3 .qd-char { animation: cm-sway 2.6s ease-in-out infinite; } .qd.cm-4 .qd-char { animation: cm-spin 4.5s ease-in-out infinite; }
.qd.cm-5 .qd-char { animation: cm-breathe 2.4s ease-in-out infinite; } .qd.cm-6 .qd-char { animation: cm-float 5s ease-in-out infinite; }
.qd-char .ms-arm { animation: ms-wave 1.4s ease-in-out infinite; } .qd-char .ms-arm.r { animation-name: ms-wave-r; }
@media (max-width: 700px) { .qd-char { display: none; } }
@media (prefers-reduced-motion: reduce) { .qd-char, .qd-char * { animation: none !important; } }
/* Perbaikan: karakter antrean tetap di pojok kanan bawah; susunan bertumpuk — siap di atas, daftar disiapkan berupa baris di bawah */
.qd > .qd-char { position: fixed; z-index: 2; }
.qd.ql-6 .qd-main { grid-template-rows: minmax(0, 1fr) auto; }
.qd.ql-6 .qd-main .qd-wait { padding: 16px 0 0; }
.qd.ql-6 .qd-main .qd-wait h2 { margin-bottom: 10px; }
.qd.ql-6 .qd-rows { flex-wrap: nowrap; overflow: hidden; }
.qd.ql-6 .qd-row { flex: none; max-width: 32%; }
.qd.ql-6 .qd-row span { -webkit-line-clamp: 1; }
/* ============ Layar menu TV: pergantian slide presisi & menyatu ============
   Slide lama & baru memakai durasi dan kurva yang sama, bergerak bersamaan (dorong, balik, kubus, ayun),
   atau slide lama diam utuh sampai tertutup (tirai, pintu, lingkaran, diagonal). Isi slide bergerak setelah slide berhenti. */
.mbd .mb-layer.in, .mbd .mb-layer.out { animation-duration: var(--trd, 1.1s) !important; animation-timing-function: cubic-bezier(.77, 0, .18, 1) !important; animation-fill-mode: both !important; will-change: transform, opacity; }
.mbd .mb-layer.tr-geser { --trd: 1.05s; --ed: .8s; } .mbd .mb-layer.tr-naik { --trd: 1.05s; --ed: .8s; } .mbd .mb-layer.tr-kubus { --trd: 1.2s; --ed: .9s; }
.mbd .mb-layer.tr-balik { --trd: 1.1s; --ed: .85s; } .mbd .mb-layer.tr-ayun { --trd: 1.15s; --ed: .85s; } .mbd .mb-layer.tr-zoom { --trd: 1s; --ed: .6s; }
.mbd .mb-layer.tr-fade { --trd: 1.1s; --ed: .55s; } .mbd .mb-layer.tr-kabur { --trd: 1.1s; --ed: .55s; }
.mbd .mb-layer.tr-tirai, .mbd .mb-layer.tr-pintu, .mbd .mb-layer.tr-lingkaran, .mbd .mb-layer.tr-diagonal { --trd: 1.1s; --ed: .7s; }
/* dorong: satu pita */
.mbd .mb-layer.in.tr-geser { animation-name: px-in-x !important; } .mbd .mb-layer.out.tr-geser { animation-name: px-out-x !important; }
@keyframes px-in-x { from { transform: translateX(100%); } to { transform: translateX(0); } } @keyframes px-out-x { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.mbd .mb-layer.in.tr-naik { animation-name: px-in-y !important; } .mbd .mb-layer.out.tr-naik { animation-name: px-out-y !important; }
@keyframes px-in-y { from { transform: translateY(100%); } to { transform: translateY(0); } } @keyframes px-out-y { from { transform: translateY(0); } to { transform: translateY(-100%); } }
/* kubus: sisi kanan berputar masuk, sisi kiri berputar keluar — berbagi sudut yang sama */
.mbd .mb-layer.in.tr-kubus { animation-name: px-cube-in !important; transform-origin: 0% 50%; } .mbd .mb-layer.out.tr-kubus { animation-name: px-cube-out !important; transform-origin: 100% 50%; }
@keyframes px-cube-in { from { transform: translateX(100%) rotateY(90deg); } to { transform: translateX(0) rotateY(0); } }
@keyframes px-cube-out { from { transform: translateX(0) rotateY(0); } to { transform: translateX(-100%) rotateY(-90deg); } }
/* balik: kartu dibalik — sisi lama sampai 90°, lalu sisi baru dari -90° */
.mbd .mb-layer.in.tr-balik { animation-name: px-flip-in !important; } .mbd .mb-layer.out.tr-balik { animation-name: px-flip-out !important; }
@keyframes px-flip-in { 0%, 50% { transform: rotateY(-90deg); opacity: 0; } 50.1% { opacity: 1; } 100% { transform: rotateY(0); opacity: 1; } }
@keyframes px-flip-out { 0% { transform: rotateY(0); opacity: 1; } 50% { transform: rotateY(90deg); opacity: 1; } 50.1%, 100% { transform: rotateY(90deg); opacity: 0; } }
/* ayun: slide baru turun dari atas seperti papan, slide lama jatuh ke bawah */
.mbd .mb-layer.in.tr-ayun { animation-name: px-swing-in !important; transform-origin: 50% 0; } .mbd .mb-layer.out.tr-ayun { animation-name: px-swing-out !important; transform-origin: 50% 100%; }
@keyframes px-swing-in { from { transform: rotateX(-90deg); } to { transform: rotateX(0); } } @keyframes px-swing-out { from { transform: rotateX(0); } to { transform: rotateX(90deg); } }
/* zoom: menembus — lama membesar & hilang, baru datang dari belakang */
.mbd .mb-layer.in.tr-zoom { animation-name: px-zoom-in !important; } .mbd .mb-layer.out.tr-zoom { animation-name: px-zoom-out !important; }
@keyframes px-zoom-in { 0%, 25% { transform: scale(.82); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes px-zoom-out { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
/* memudar & kabur: bergantian agar teks lama dan baru tidak bertumpuk */
.mbd .mb-layer.in.tr-fade { animation-name: px-fade-in !important; } .mbd .mb-layer.out.tr-fade { animation-name: px-fade-out !important; }
@keyframes px-fade-in { 0%, 40% { opacity: 0; } 100% { opacity: 1; } } @keyframes px-fade-out { 0% { opacity: 1; } 55%, 100% { opacity: 0; } }
.mbd .mb-layer.in.tr-kabur { animation-name: px-blur-in !important; } .mbd .mb-layer.out.tr-kabur { animation-name: px-blur-out !important; }
@keyframes px-blur-in { 0%, 35% { opacity: 0; filter: blur(26px); } 100% { opacity: 1; filter: blur(0); } }
@keyframes px-blur-out { 0% { opacity: 1; filter: blur(0); } 60%, 100% { opacity: 0; filter: blur(26px); } }
/* tirai, pintu, lingkaran, diagonal: slide lama diam utuh sampai tertutup penuh */
.mbd .mb-layer.out.tr-tirai, .mbd .mb-layer.out.tr-pintu, .mbd .mb-layer.out.tr-lingkaran, .mbd .mb-layer.out.tr-diagonal { animation-name: px-hold !important; }
@keyframes px-hold { from, to { opacity: 1; } }
.mbd .mb-layer.in.tr-lingkaran { animation-name: px-circle !important; } @keyframes px-circle { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
/* isi slide mulai bergerak setelah slide berhenti */
.mbd .mb-layer.in .mb-card { animation-delay: calc(var(--ed, .5s) + var(--i) * .08s); }
.mbd .mb-layer.in .mb-title h1 .ch { animation-delay: calc(var(--ed, .5s) + var(--c) * 40ms); }
.mbd .mb-layer.in .mb-sh .ch, .mbd .mb-layer.in .mb-feat-b .ch { animation-delay: calc(var(--ed, .5s) + var(--c) * 30ms); }
.mbd .mb-layer.in .mb-hero { animation-delay: calc(var(--ed, .5s) - .2s); }
.mbd .mb-layer.in .mb-feat-b > * { animation-delay: calc(var(--ed, .5s) + .1s); }
.mbd .mb-layer.out * { animation-play-state: paused !important; }
.mbd .mb-slides { overflow: hidden; }
/* Presisi (lanjutan): pada transisi bergerak, seluruh isi slide ikut bergerak sebagai satu kesatuan — tampil sejak awal, tanpa animasi masuk terpisah */
.mbd .mb-layer.in:is(.tr-geser, .tr-naik, .tr-kubus, .tr-balik, .tr-ayun) :is(.mb-card, .mb-hero, .mb-hero img, .mb-group) { animation: none !important; opacity: 1 !important; }
.mbd .mb-layer.in:is(.tr-geser, .tr-naik, .tr-kubus, .tr-balik, .tr-ayun) [data-split].sp::after { display: none; }
/* transisi buka/memudar: isi tampil bersama bukaannya */
.mbd .mb-layer:is(.tr-tirai, .tr-pintu, .tr-lingkaran, .tr-diagonal, .tr-zoom) { --ed: .12s; }
.mbd .mb-layer:is(.tr-fade, .tr-kabur) { --ed: .3s; }
/* memudar & kabur: tumpang-tindih singkat (tanpa jeda kosong) */
@keyframes px-fade-in { 0%, 30% { opacity: 0; } 100% { opacity: 1; } } @keyframes px-fade-out { 0% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes px-blur-in { 0%, 25% { opacity: 0; filter: blur(22px); } 100% { opacity: 1; filter: blur(0); } }
@keyframes px-blur-out { 0% { opacity: 1; filter: blur(0); } 75%, 100% { opacity: 0; filter: blur(22px); } }
@keyframes px-zoom-in { 0%, 15% { transform: scale(.82); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes px-zoom-out { 0% { transform: scale(1); opacity: 1; } 80%, 100% { transform: scale(1.25); opacity: 0; } }
/* Presisi (lanjutan): transisi buka — slide lama terpotong tepat di garis yang sama dengan bukaan slide baru (tanpa tumpang-tindih) */
@property --hole { syntax: '<length>'; inherits: false; initial-value: 0px; }
.mbd .mb-layer.in.tr-tirai { animation-name: px-wipe-in !important; } .mbd .mb-layer.out.tr-tirai { animation-name: px-wipe-out !important; }
@keyframes px-wipe-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes px-wipe-out { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
.mbd .mb-layer.in.tr-pintu { animation-name: px-door-in !important; } .mbd .mb-layer.out.tr-pintu { animation-name: px-door-out !important; }
@keyframes px-door-in { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes px-door-out { from { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% 0, 50% 100%, 50% 100%, 50% 0); }
  to { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 0 0, 0 100%, 100% 100%, 100% 0); } }
.mbd .mb-layer.in.tr-lingkaran { animation-name: px-circ-in !important; } .mbd .mb-layer.out.tr-lingkaran { animation-name: px-circ-out !important;
  -webkit-mask-image: radial-gradient(circle var(--hole) at 50% 50%, transparent 99.5%, #000 100%); mask-image: radial-gradient(circle var(--hole) at 50% 50%, transparent 99.5%, #000 100%); }
@keyframes px-circ-in { from { clip-path: circle(0px at 50% 50%); } to { clip-path: circle(1100px at 50% 50%); } }
@keyframes px-circ-out { from { --hole: 0.5px; } to { --hole: 1100px; } }
.mbd .mb-layer.in.tr-diagonal { animation-name: px-diag-in !important; } .mbd .mb-layer.out.tr-diagonal { animation-name: px-diag-out !important; }
@keyframes px-diag-in { from { clip-path: polygon(0 0, 0 0, 0 0); } to { clip-path: polygon(0 0, 200% 0, 0 200%); } }
@keyframes px-diag-out { from { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0); } to { clip-path: polygon(200% 0, 100% 0, 100% 100%, 0 100%, 0 200%); } }
/* ============ Layar menu TV: mengalir tanpa jeda ============ */
/* silang langsung: slide lama & baru tampil bersamaan, tidak ada bingkai kosong */
@keyframes px-fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes px-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes px-blur-in { from { opacity: 0; filter: blur(18px); } to { opacity: 1; filter: blur(0); } }
@keyframes px-blur-out { from { opacity: 1; filter: blur(0); } to { opacity: 0; filter: blur(18px); } }
@keyframes px-zoom-in { from { transform: scale(.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes px-zoom-out { from { transform: scale(1); opacity: 1; } to { transform: scale(1.18); opacity: 0; } }
/* balik kartu sungguhan: dua sisi berputar bersama, sisi belakang tersembunyi */
.mbd .mb-layer.tr-balik { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
@keyframes px-flip-in { from { transform: rotateY(-180deg); } to { transform: rotateY(0); } }
@keyframes px-flip-out { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
/* isi slide masuk bersamaan dengan transisi */
.mbd .mb-layer:is(.tr-fade, .tr-kabur, .tr-zoom, .tr-tirai, .tr-pintu, .tr-lingkaran, .tr-diagonal) { --ed: 0s; }
/* selama tampil: isi terus melayang pelan (tidak pernah diam) — dibekukan saat keluar sehingga tidak melompat */
.mbd .mb-layer > .mb-s { animation: slide-drift var(--hold, 9s) linear both; transform-origin: 50% 50%; }
@keyframes slide-drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.035) translate(-8px, -6px); } }
.mbd .mb-layer.out > .mb-s { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .mbd .mb-layer > .mb-s { animation: none; } }
/* ============ Layar menu TV: tidak ada isi yang terpotong ============ */
.mbd .mb-slides { overflow: visible; }                 /* yang memotong hanya tepi layar (panggung) */
.mbd .mb-s { inset: 14px 18px; }                       /* ruang untuk bayangan, garis tebal & judul miring */
@keyframes slide-drift { from { transform: scale(1); } to { transform: scale(1.02); } }  /* melayang tanpa bergeser ke tepi */
/* slide sorotan: foto selalu muat tinggi area; teks di kolom sisanya */
.mbd .mb-feature { grid-template-columns: auto minmax(0, 1fr); gap: 72px; align-items: center; }
.mbd:is(.lay-2, .lay-4, .lay-6, .lay-8) .mb-feature { grid-template-columns: minmax(0, 1fr) auto; }
.mbd .mb-feature .mb-hero { width: auto; height: min(100%, 760px); max-height: 100%; aspect-ratio: 1; }
.mbd .mb-feat-b { min-width: 0; max-height: 100%; overflow: hidden; gap: 16px; padding: 6px; }
.mbd .mb-feat-b h2 { overflow-wrap: anywhere; }
.mbd .mb-feat-b p { -webkit-line-clamp: 3; }
.mbd .mb-feat-b .mb-price { justify-self: start; }
.mbd .mb-others { gap: 18px; } .mbd .mb-other, .mbd .mb-oimg { width: 140px; } .mbd .mb-oimg { height: 140px; }
.mbd.portrait .mb-feature { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
.mbd.portrait .mb-feature .mb-hero { height: auto; width: min(100%, 820px); max-height: 100%; }
/* kartu & daftar tidak melampaui area */
.mbd .mb-cards { min-height: 0; } .mbd .mb-card { min-height: 0; }
.mbd .mb-card h3 { max-width: 100%; }
.mbd.lay-4 .mb-card { grid-template-rows: minmax(0, 1fr) auto; }
.mbd.lay-4 .mb-card .mb-img { width: auto; height: calc(100% - 10px); max-width: 82%; aspect-ratio: 1; }
.mbd .mb-sh h2, .mbd .mb-feat-b h2, .mbd .mb-title h1 { padding-inline: .06em .14em; }

/* ============ Transisi teks di setiap pergantian slide ============ */
/* teks slide baru masuk (efek per template) tepat setelah slide berhenti — juga pada geser/kubus/balik/ayun */
.mbd .mb-layer.tr-geser, .mbd .mb-layer.tr-naik { --ed: .75s; } .mbd .mb-layer.tr-kubus { --ed: .85s; } .mbd .mb-layer.tr-balik, .mbd .mb-layer.tr-ayun { --ed: .8s; }
.mbd .mb-layer.in .mb-kicker { animation: txin-up .6s cubic-bezier(.22, 1, .36, 1) calc(var(--ed, .3s) - .1s) both; }
.mbd .mb-layer.in .mb-rule { animation: mb-grow .7s cubic-bezier(.22, 1, .36, 1) calc(var(--ed, .3s) + .35s) both; }
.mbd .mb-layer.in .mb-card-b > * { animation: txin-up .55s cubic-bezier(.22, 1, .36, 1) calc(var(--ed, .3s) + .25s + var(--i, 0) * .08s) both; }
.mbd .mb-layer.in .mb-card-b > :nth-child(2) { animation-delay: calc(var(--ed, .3s) + .33s + var(--i, 0) * .08s); }
.mbd .mb-layer.in .mb-card-b > :nth-child(3) { animation-delay: calc(var(--ed, .3s) + .41s + var(--i, 0) * .08s); }
.mbd .mb-layer.in .mb-row, .mbd .mb-layer.in .mb-group h3 { animation: txin-left .5s cubic-bezier(.22, 1, .36, 1) calc(var(--ed, .3s) + .2s) both; }
.mbd .mb-layer.in .mb-feat-b p { animation: txin-up .6s cubic-bezier(.22, 1, .36, 1) calc(var(--ed, .3s) + .45s) both; }
.mbd .mb-layer.in .mb-feat-b .mb-price { animation: fx-pantul .8s cubic-bezier(.34, 1.56, .64, 1) calc(var(--ed, .3s) + .6s) both; }
.mbd .mb-layer.in .mb-other { animation: txin-up .5s cubic-bezier(.22, 1, .36, 1) calc(var(--ed, .3s) + .75s) both; }
@keyframes txin-up { from { opacity: 0; transform: translateY(.6em); } to { opacity: 1; transform: none; } }
@keyframes txin-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
/* teks slide lama keluar lebih dulu (singkat), sebelum slidenya pergi */
.mbd .mb-layer.out [data-split] .ch { animation: txout-ch .38s ease-in calc(var(--c, 0) * 12ms) both !important; animation-play-state: running !important; }
.mbd .mb-layer.out :is(.mb-kicker, .mb-card-b > *, .mb-feat-b p, .mb-feat-b .mb-price, .mb-row, .mb-rule) { animation: txout .32s ease-in both !important; animation-play-state: running !important; }
@keyframes txout-ch { to { opacity: 0; transform: translateY(-.5em) scale(.9); filter: blur(4px); } }
@keyframes txout { to { opacity: 0; transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .mbd .mb-layer * { animation: none !important; } }
/* ============ Mini App Toko (pelanggan) ============ */
.shop .mn { padding-top: max(14px, env(safe-area-inset-top, 0px)); }
.sh-head { display: flex; align-items: center; gap: 14px; padding: 6px 0 12px; }
.sh-logo { width: 64px; height: 64px; flex: none; border-radius: 18px; overflow: hidden; background: var(--logo, var(--shop, var(--primary))); color: var(--shop-on, #fff); display: grid; place-items: center; font-size: 28px; font-weight: 800; box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
.sh-logo img { width: 100%; height: 100%; object-fit: cover; }
.sh-id { flex: 1; min-width: 0; }
.sh-id h1 { font-size: clamp(20px, 4.6vw, 28px); line-height: 1.15; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-id p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-meta { display: flex; gap: 10px; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.sh-open { padding: 2px 10px; border-radius: 99px; font-weight: 700; background: var(--danger-soft); color: var(--danger); }
.sh-open.on { background: var(--success-soft); color: var(--success); }
.sh-acts { display: flex; gap: 8px; }
.sh-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--fill); color: var(--text); cursor: pointer; text-decoration: none !important; }
.sh-btn i { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--shop, var(--primary)); color: var(--shop-on, #fff); font: 700 11px/20px system-ui; font-style: normal; text-align: center; }
.sh-install { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; border-radius: 16px; background: color-mix(in srgb, var(--shop, var(--primary)) 11%, var(--surface, #fff)); color: var(--text); }
.sh-install-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 4px 9px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sh-install-go > svg.i { width: 22px; height: 22px; color: var(--shop, var(--primary)); flex: none; }
.sh-install-go span { display: grid; line-height: 1.25; } .sh-install-go strong { font-size: 14px; } .sh-install-go small { color: var(--muted); font-size: 12px; }
.sh-install-x { flex: none; width: 36px; height: 36px; margin-right: 6px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.sh-install-x:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.sh-install.ready { box-shadow: 0 0 0 2px var(--shop, var(--primary)); }
.sh-closed { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--warning-soft); color: var(--warning); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
/* Toko mengikuti warna TEMA; warna toko hanya untuk logo, kecuali pemilik memilih "pakai warna toko" */
.shop { --shop: var(--primary); --shop-on: var(--on-primary, #fff); }
.shop .mn-cats .chip.on, .shop .btn-primary, .shop .mn-q { background: var(--shop); color: var(--shop-on); }
.shop .mn-item.mc.in { box-shadow: 0 0 0 3px var(--shop, var(--primary)); }
.shop .mn-desc { font-size: 12px; color: inherit; opacity: .7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-addr { margin: 18px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.sh-by { margin: 8px 0 0; text-align: center; font-size: 11.5px; color: var(--muted); opacity: .7; }
.sh-sheet .sh-form { display: grid; gap: 2px; margin-top: 12px; }
.sh-mode { width: 100%; display: grid !important; grid-template-columns: 1fr 1fr; margin-bottom: 8px; }
.sh-mode button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sh-sum { margin-top: 6px; display: grid; gap: 4px; }
.sh-steps { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 0; text-align: left; }
.sh-steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--muted); font-weight: 600; }
.sh-steps li i { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 3px solid var(--border); background: var(--surface, #fff); position: relative; z-index: 1; }
.sh-steps li:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 28px; bottom: -10px; width: 3px; background: var(--border); }
.sh-steps li.done { color: var(--text); } .sh-steps li.done i { background: var(--shop, var(--primary)); border-color: var(--shop, var(--primary)); }
.sh-steps li.done::after { background: var(--shop, var(--primary)) !important; }
.sh-steps li.now { color: var(--shop, var(--primary)); } .sh-steps li.now i { border-color: var(--shop, var(--primary)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--shop, var(--primary)) 20%, transparent); animation: sh-pulse 1.6s ease-in-out infinite; }
@keyframes sh-pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--shop, var(--primary)) 5%, transparent); } }
.sh-items { display: grid; gap: 4px; padding: 12px; border-radius: 14px; background: var(--fill-2); margin: 10px 0; text-align: left; font-size: 14px; }
.sh-paid { color: var(--success); font-weight: 700; }
.sh-cancel { color: var(--danger); font-weight: 700; }
.sh-track .mn-number { color: var(--shop, var(--primary)); }
.sh-list { display: grid; gap: 8px; margin-top: 10px; }
.sh-li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface, #fff); color: var(--text); font: inherit; cursor: pointer; }
.sh-li span { flex: 1; text-align: left; }
@media (prefers-reduced-motion: reduce) { .sh-steps li.now i { animation: none; } }
/* ============ Mini App Toko (pengaturan pemilik) ============ */
.ma-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .ma-grid { grid-template-columns: 1fr; } }
.ma-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; } /* kolom selebar kartu — isi yang lebar menggulir di dalamnya, bukan melebarkan form */
.ma-switch { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--fill-2); cursor: pointer; margin-bottom: 8px; }
.ma-switch input { width: 22px; height: 22px; } .ma-switch span { display: grid; } .ma-switch small { color: var(--muted); }
.ma-prefix { font-size: 13px; white-space: nowrap; }
.ma-logo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ma-logo-prev { width: 72px; height: 72px; border-radius: 20px; overflow: hidden; display: grid; place-items: center; color: #fff; font-size: 30px; font-weight: 800; box-shadow: var(--shadow); }
.ma-logo-prev img { width: 100%; height: 100%; object-fit: cover; }
.ma-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ma-color { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.ma-color.on { border-color: var(--surface, #fff); box-shadow: 0 0 0 2px var(--text); }
.ma-colors input[type=color] { width: 40px; height: 34px; border: 0; background: none; padding: 0; cursor: pointer; }
.ma-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 6px 0 10px; } .ma-checks label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.ma-share h2 { font-size: 18px; margin-bottom: 10px; }
.ma-link { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--fill-2); }
.ma-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ma-qr { width: 200px; max-width: 100%; margin: 14px auto 8px; padding: 10px; background: #fff; border-radius: 14px; }
.ma-qr svg { width: 100%; height: auto; display: block; }
.ma-how { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); }
.ma-how h3 { font-size: 14px; margin: 0 0 6px; } .ma-how ol { margin: 0; padding-left: 20px; font-size: 13.5px; display: grid; gap: 4px; }
/* Mini app: lebar selalu mengikuti layar (judul panjang tidak melebarkan halaman) */
.shop { width: 100%; max-width: 100vw; overflow-x: hidden; }
.shop .mn { width: 100%; min-width: 0; box-sizing: border-box; }
.sh-head > * { min-width: 0; }
/* Mini app: nama toko boleh 2 baris di HP */
.sh-id h1 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: clamp(19px, 5vw, 28px); }
.sh-id p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 420px) { .sh-logo { width: 54px; height: 54px; border-radius: 16px; font-size: 24px; } .sh-btn { width: 40px; height: 40px; } }
/* ============ Mini app serbaguna: cari, detail produk, cara pesan, resi ============ */
.shop .mn-item.mc { cursor: pointer; text-align: left; }
.shop .mn-item.mc.out { filter: grayscale(.85); opacity: .6; }
.shop .mn-plus { border: 0; cursor: pointer; font: inherit; font-size: 22px; line-height: 1; padding: 0; }
.sh-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 999px; background: var(--surface, #fff); border: 1px solid var(--border); margin: 4px 0 2px; color: var(--muted); }
.sh-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--text); outline: none; }
/* tampilan daftar (toko buku, retail dengan banyak barang) */
.shop-list .mn-grid { grid-template-columns: 1fr; gap: 10px; }
.shop-list .mn-item.mc { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: stretch; }
.shop-list .mn-item.mc .mn-img { aspect-ratio: auto; height: 100%; min-height: 110px; }
.shop-list .mn-item.mc .mn-body { padding: 10px 14px; align-content: center; }
@media (min-width: 760px) { .shop-list .mn-grid { grid-template-columns: 1fr 1fr; } }
/* detail produk */
.sh-detail { padding-top: 14px; }
.sh-x { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--glass-strong); }
.sh-dimg { width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--fill); display: grid; place-items: center; margin-bottom: 12px; }
.sh-dimg img { width: 100%; height: 100%; object-fit: contain; }
.sh-dimg span { font-size: 64px; font-weight: 800; color: var(--muted); }
.sh-detail h2 { font-size: 22px; margin: 2px 0 4px; }
.sh-dprice { font-size: 20px; font-weight: 800; color: var(--shop, var(--primary)); }
.sh-ddesc { white-space: pre-line; color: var(--text-2); line-height: 1.5; margin: 10px 0 0; }
.sh-dqty { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 16px 0 12px; } .sh-dqty strong { font-size: 22px; min-width: 2ch; text-align: center; }
/* cara pesan */
.sh-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 8px; }
.sh-modes button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface, #fff); color: var(--text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; }
.sh-modes button.on { border-color: var(--shop, var(--primary)); background: color-mix(in srgb, var(--shop, var(--primary)) 12%, var(--surface, #fff)); color: var(--shop, var(--primary)); }
.sh-mode1 { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--fill-2); font-weight: 600; margin-bottom: 8px; }
.sh-form [hidden] { display: none !important; }
.sh-sched { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; margin: 4px 0 0; }
.sh-resi { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--primary-soft); text-align: left; }
.sh-resi span { flex: 1; min-width: 0; }

.ma-h { font-size: 15px; margin: 18px 0 8px; }
.ma-open { margin-top: 6px; }
.ma-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ma-type { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--border); cursor: pointer; }
.ma-type small { color: var(--muted); font-size: 12px; } .ma-type.on { border-color: var(--primary); background: var(--primary-soft); }
.ma-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 8px; }
.ma-mode { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--fill-2); cursor: pointer; }
.ma-mode input { margin-top: 3px; } .ma-mode span { display: grid; } .ma-mode small { color: var(--muted); font-size: 12px; }
.ma-fields { display: grid; gap: 8px; margin-bottom: 8px; }
.ma-field { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) auto auto; gap: 8px; align-items: center; }
.ma-field [hidden] { display: none; }
@media (max-width: 700px) { .ma-field { grid-template-columns: 1fr 1fr; } }

/* Jual akun: tombol kasir & kotak data akun di aplikasi pembeli */
.ii-acc { width: 100%; justify-content: center; margin-top: 4px; background: var(--warning-soft); color: var(--warning); }
.ii-acc.done { background: var(--success-soft); color: var(--success); }
.sh-acc { text-align: left; padding: 14px; border-radius: 16px; border: 2px dashed var(--shop, var(--primary)); background: color-mix(in srgb, var(--shop, var(--primary)) 8%, var(--surface, #fff)); margin: 10px 0; display: grid; gap: 8px; }
.sh-acc-h { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--shop, var(--primary)); }
.sh-acc pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: 600 15px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; padding: 10px 12px; border-radius: 10px; background: var(--fill-2); user-select: all; }
.sh-acc .btn { justify-self: start; }
.sh-acc-wait { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: var(--fill-2); }

/* Pengaturan mini app: katalog jenis toko */
.ma-tsearch { margin-bottom: 10px; }
.ma-tgroups { display: grid; gap: 14px; max-height: 460px; overflow-y: auto; padding: 2px 4px 2px 0; overscroll-behavior: contain; }
.ma-tglabel { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ma-tgroup[hidden], .ma-type[hidden] { display: none !important; }

/* ===== Mini App Toko: kepala toko berupa kartu, pengumuman, label, keamanan ===== */
.shop .sh-head { display: grid; grid-template-columns: 60px minmax(0, 1fr); grid-template-areas: "logo id" "meta meta"; align-items: center; gap: 12px 14px; padding: 16px; margin-bottom: 4px;
  border-radius: 24px; background: color-mix(in srgb, var(--shop, var(--primary)) 9%, var(--surface, rgba(255,255,255,.06))); border: 1px solid color-mix(in srgb, var(--shop, var(--primary)) 22%, transparent); }
.shop .sh-logo { grid-area: logo; width: 60px; height: 60px; }
.shop .sh-id { grid-area: id; }
.shop .sh-id h1 { font-size: clamp(19px, 5.2vw, 26px); }
.shop .sh-id p { -webkit-line-clamp: 2; }
.shop .sh-meta { grid-area: meta; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-right: 150px; margin: 0; min-width: 0; min-height: 44px; }
.shop .sh-acts { grid-area: meta; justify-self: end; align-self: center; gap: 6px; }
.shop .sh-btn { width: 42px; height: 42px; background: var(--surface, var(--fill)); border: 1px solid var(--border); }
@media (max-width: 360px) { .shop .sh-meta { padding-right: 0; } .shop .sh-head { grid-template-areas: "logo id" "meta meta" "acts acts"; } .shop .sh-acts { grid-area: acts; justify-self: start; } }
.sh-notice { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px; font-size: 14px; font-weight: 600; line-height: 1.35;
  background: color-mix(in srgb, var(--shop, var(--primary)) 14%, transparent); color: var(--text); border: 1px dashed color-mix(in srgb, var(--shop, var(--primary)) 45%, transparent); }
.sh-notice > svg.i { flex: none; width: 20px; height: 20px; color: var(--shop, var(--primary)); }
.sh-notice span { min-width: 0; overflow-wrap: anywhere; }
.shop .mn-img { position: relative; }
.sh-best { position: absolute; left: 8px; top: 8px; z-index: 2; padding: 3px 9px; border-radius: 99px; font: 800 11px/1.4 system-ui, sans-serif; letter-spacing: .02em;
  background: var(--shop, var(--primary)); color: var(--shop-on, #fff); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.sh-trust { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 14px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.sh-trust svg.i { color: var(--success); }
.sh-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.sh-acc pre.blur { filter: blur(6px); user-select: none; }
.sh-acc pre { transition: filter .25s ease; }
.sh-acc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sh-cancel-btn { color: var(--danger) !important; }
.sh-cancel-btn.sure { background: var(--danger) !important; color: #fff !important; }

/* ===== Mini App: galeri tema berupa HP mini ===== */
.ma-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; max-height: 560px; overflow-y: auto; padding: 4px 4px 8px; margin-top: 8px; overscroll-behavior: contain; scrollbar-width: thin; }
.ma-tp { display: grid; gap: 8px; padding: 6px; border: 1px solid var(--border); border-radius: 18px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.ma-tp:hover { transform: translateY(-2px); }
.ma-tp.on { border-color: var(--shop, var(--primary)); box-shadow: 0 0 0 2px var(--shop, var(--primary)); }
.ma-tp-phone { position: relative; height: 230px; border-radius: 14px; overflow: hidden; --k: .34; background: var(--fill); }
.ma-mini.shop { position: absolute; top: 0; left: 0; width: 390px; height: calc(230px / var(--k)); max-width: none; margin: 0; padding: 0; transform: scale(var(--k)); transform-origin: 0 0; overflow: hidden; background-attachment: scroll; pointer-events: none; }
.ma-mini.shop .mn { padding: 16px 14px 0; }
.ma-mini .mn-bar { position: absolute; bottom: 14px; }
.ma-mini .mn-item.mc, .ma-mini .mn-item.mc * { animation: none !important; transition: none !important; }
.ma-mini .ma-mini-img { background: linear-gradient(135deg, hsl(var(--h) 55% 72%), hsl(calc(var(--h) + 40) 50% 52%)) !important; }
.ma-tp:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ma-tp-lbl { display: grid; padding: 0 4px 2px; font-size: 13px; line-height: 1.25; }
.ma-tp-lbl small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-tp[hidden] { display: none; }

/* ===== Mini App: POV pemilik / pelanggan ===== */
.ma-pov { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: var(--fill); border: 1px solid var(--border); max-width: 100%; }
.ma-pov button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.ma-pov button.on { background: var(--primary); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 35%, transparent); }
.ma-buyer { display: grid; justify-items: center; gap: 12px; }
.ma-phone { position: relative; width: min(390px, 100%); height: min(780px, 78vh); padding: 12px; border-radius: 44px; background: #0d0f14; box-shadow: 0 0 0 2px #2a2e38, 0 24px 60px rgba(0,0,0,.35); }
.ma-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 32px; background: #fff; display: block; }
.ma-phone-notch { position: absolute; z-index: 2; top: 18px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; border-radius: 99px; background: #0d0f14; }
.ma-buyer-note { max-width: 420px; text-align: center; margin: 0; }
.ma-buyer-warn { color: var(--warning); font-weight: 600; text-align: center; max-width: 420px; }
.sh-preview { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 700; background: color-mix(in srgb, var(--shop, var(--primary)) 16%, transparent); color: var(--text); }
.ma-form, .ma-form .field { min-width: 0; }
.ma-themes { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 560px) { .ma-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 480px; } .ma-tp-phone { height: 210px; } .ma-mini.shop { height: calc(210px / var(--k)); } .ma-pov { width: 100%; } .ma-pov button { flex: 1; justify-content: center; padding: 0 10px; } }
.ma-grid > * { min-width: 0; }
@media (max-width: 900px) { .ma-grid { grid-template-columns: minmax(0, 1fr) !important; } }
.ma-colors { flex-wrap: wrap; }

/* ===== Mini App: pembayaran langsung ke toko + anti transfer palsu ===== */
.ma-payq { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--warning-soft); margin-bottom: 10px; }
.ma-payq.on { background: var(--success-soft); }
.ma-payq > svg.i { width: 26px; height: 26px; flex: none; }
.ma-payq span { display: grid; } .ma-payq small { color: var(--muted); }
.ma-accs { display: grid; gap: 8px; }
.ma-acc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 6px; }
@media (max-width: 560px) { .ma-acc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ma-acc input:last-child { grid-column: 1 / -1; } }
.ma-antifraud { display: flex; gap: 12px; margin: 12px 0 6px; padding: 12px 14px; border-radius: 14px; background: var(--fill-2); font-size: 13.5px; line-height: 1.45; }
.ma-antifraud > svg.i { flex: none; width: 22px; height: 22px; color: var(--success); }
.ma-antifraud ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.sh-pay { display: grid; gap: 8px; padding: 14px; margin: 10px 0; border-radius: 18px; text-align: center; border: 2px solid var(--shop, var(--primary)); background: color-mix(in srgb, var(--shop, var(--primary)) 7%, transparent); }
.sh-pay p { margin: 0; }
.sh-pay-h { font-weight: 700; }
.sh-pay-amt { justify-self: center; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--shop, var(--primary)); font-family: inherit; font-size: 32px; font-weight: 800; line-height: 1.1; cursor: pointer; font-variant-numeric: tabular-nums; }
.sh-accs { display: grid; gap: 6px; text-align: left; }
.sh-accrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface, var(--fill)); border: 1px solid var(--border); }
.sh-accrow span { display: grid; min-width: 0; } .sh-accrow small { color: var(--muted); }
.sh-accrow .btn { font-variant-numeric: tabular-nums; flex: none; }
.sh-pay-warn { display: flex; gap: 6px; align-items: flex-start; justify-content: center; font-size: 12px; color: var(--muted); }
.sh-pay-warn svg.i { color: var(--success); flex: none; margin-top: 2px; }
.sh-claimed { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 10px; border-radius: 12px; background: var(--warning-soft); color: var(--warning); font-weight: 600; font-size: 13.5px; }
.ii-verify { display: flex; gap: 6px; align-items: flex-start; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; background: var(--fill-2); margin-top: 4px; }
.ii-verify.claimed { background: var(--warning-soft); color: var(--warning); }
.ii-verify svg.i { flex: none; margin-top: 2px; }
.ii-lock { display: inline-flex; align-items: center; gap: 4px; }
.qp-verify { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--warning-soft); font-size: 13.5px; line-height: 1.4; }
.qp-verify > svg.i { flex: none; width: 22px; height: 22px; color: var(--warning); }
.qp-verify div { display: grid; gap: 2px; } .qp-verify small { color: var(--muted); }

.ma-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.ma-cats p { width: 100%; margin: 2px 0 0; }
.ma-cat { display: inline-grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; font-size: 14px; }
.ma-cat small { grid-column: 2; color: var(--muted); font-size: 11.5px; }
.ma-cat.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.ma-cat.auto { cursor: default; } .ma-cat:not(.on) { opacity: .6; }
.ma-cats-warn { color: var(--warning); font-weight: 600; }
.sh-pay-sub { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 13.5px; }
.sh-pay-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.sh-pay-or::before, .sh-pay-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.ma-themes.usecolor .ma-mini.shop { --shop: var(--own); --shop-on: #fff; --logo: var(--own); }
.ma-mini .mn-img > .sh-best { font: 800 11px/1.4 system-ui, sans-serif !important; color: var(--shop-on, #fff) !important; }

/* ===== Mini App: foto & spesifikasi produk (pemilik) ===== */
.ma-prods { display: grid; gap: 8px; max-height: 520px; overflow-y: auto; padding: 2px; }
.ma-prod { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 14px; min-width: 0; }
.ma-prod-img { flex: none; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--fill); display: grid; place-items: center; }
.ma-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.ma-prod-t { flex: 1; min-width: 0; display: grid; } .ma-prod-t strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ma-prod-t small { color: var(--muted); }
.pi { display: grid; gap: 8px; }
.pi-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; }
.pi-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pi-ph { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--fill); }
.pi-ph img { width: 100%; height: 100%; object-fit: cover; }
.pi-del, .pi-first { position: absolute; top: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(0,0,0,.6); color: #fff; }
.pi-del { right: 4px; } .pi-first { left: 4px; }
.pi-del svg.i, .pi-first svg.i { width: 15px; height: 15px; }
.pi-main { position: absolute; left: 4px; bottom: 4px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; background: var(--primary); color: #fff; }
.pi-add { aspect-ratio: 1; border-radius: 12px; border: 2px dashed var(--border); display: grid; place-items: center; align-content: center; gap: 4px; cursor: pointer; color: var(--muted); font-size: 12.5px; text-align: center; }
.pi-spec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 6px; }
.pi-specs { display: grid; gap: 6px; }

/* ===== Toko: galeri foto produk, layar penuh & spesifikasi ===== */
.sh-dimg.has-gal { position: relative; padding: 0; overflow: hidden; display: block; }
.sh-gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: inherit; aspect-ratio: 4 / 3; overscroll-behavior-x: contain; }
.sh-gal::-webkit-scrollbar { display: none; }
.sh-gal-i { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; margin: 0; background: #0b0b0f; cursor: zoom-in; display: grid; place-items: center; }
.sh-gal-i img { width: 100%; height: 100%; object-fit: contain; }
.sh-gal-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.sh-gal-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.2); transition: width .2s ease; }
.sh-gal-dots i.on { width: 20px; border-radius: 99px; background: #fff; }
.sh-gal-n { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; font: 700 12px/1.4 system-ui, sans-serif; }
.sh-pcount { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; font: 700 11px/1.5 system-ui, sans-serif; }
.sh-specs { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; font-size: 14px; }
.sh-specs th, .sh-specs td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.sh-specs tr:last-child th, .sh-specs tr:last-child td { border-bottom: 0; }
.sh-specs th { width: 40%; font-weight: 600; color: var(--muted); background: var(--fill-2); }
.sh-specs td { font-weight: 600; overflow-wrap: anywhere; }
.sh-details { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; margin: 6px 0 12px; color: var(--text); }
.sh-zoom { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.94); }
.sh-zoom-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sh-zoom-track::-webkit-scrollbar { display: none; }
.sh-zoom-i { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 8px; box-sizing: border-box; touch-action: pan-x pinch-zoom; }
.sh-zoom-i img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sh-zoom-x { position: fixed; top: max(14px, env(safe-area-inset-top, 0px)); right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; cursor: pointer; }
.sh-dimg > .sh-gal-n { font: 700 12px/1.4 system-ui, sans-serif !important; color: #fff !important; width: auto; height: auto; }
.sh-dimg > .sh-gal-n { left: 10px; right: auto; }

/* ===== Toko: halaman lacak & detail lebih rapi, alat urut/favorit ===== */
.sh-track { display: grid; gap: 12px; }
.sh-track > * { margin-block: 0 !important; }
.sh-track .mn-number { line-height: 1; }
.sh-acts2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.sh-acts2:empty { display: none; }
.sh-acts2 .btn { justify-content: center; min-height: 48px; }
.sh-tools { display: flex; gap: 8px; align-items: center; }
.sh-tools .sh-search { flex: 1; margin: 0; }
.sh-sort { position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; background: var(--surface, #fff); border: 1px solid var(--border); color: var(--text); }
.sh-sort select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.sh-favb { position: absolute; left: 8px; bottom: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #e0245e; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.sh-favb svg.i { width: 14px; height: 14px; fill: currentColor; }
.sh-favchip svg.i { color: #e0245e; }
.sh-left { font-size: 11.5px; font-weight: 700; color: var(--danger, #d24b4b); }
.sh-dprice .sh-left { font-size: 13px; margin-left: 6px; vertical-align: middle; }
.sh-dtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sh-dacts { display: flex; gap: 6px; }
.sh-ibtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface, transparent); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.sh-ibtn svg.i { width: 18px; height: 18px; }
.sh-ibtn.on { color: #e0245e; border-color: #e0245e55; } .sh-ibtn.on svg.i { fill: currentColor; }
.sh-li { align-items: center; }
.sh-li-no { flex: none; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--fill); }
.sh-li-t { flex: 1; min-width: 0; display: grid; text-align: left; }
.sh-li-ok { color: var(--success); } .sh-li-bad { color: var(--danger); }

/* ===== Layar antrean: jam dengan detik & penanda nyala lembut ===== */
.qd .qd-clock { display: inline-flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; }
.qd .qd-sec { font-size: .55em; font-weight: 500; opacity: .55; min-width: 1.3em; }
.qd .qd-sec::before { content: "."; }
.qd .qd-num.glow, .qd .qd-row.glow b, .qd .qd-row.glow strong { animation: qd-glow 2.4s ease-in-out 3; }
.qd .qd-row { transition: background-color .8s ease, box-shadow .8s ease; border-radius: 16px; }
.qd .qd-row.glow { background: color-mix(in srgb, var(--primary) 9%, transparent); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--primary) 70%, transparent); }
.qd .qd-num.glow { box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent), 0 10px 28px color-mix(in srgb, var(--primary) 18%, transparent); }
@keyframes qd-glow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 10px color-mix(in srgb, var(--primary) 45%, transparent), 0 0 22px color-mix(in srgb, var(--primary) 22%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .qd .qd-num.glow, .qd .qd-row.glow b, .qd .qd-row.glow strong { animation: none; } }
.sh-li .sh-li-no { flex: none; } .sh-li .sh-li-t { flex: 1; }

/* ===== Data akun: dibuka 1 kali ===== */
.sh-acc { display: grid; gap: 10px; }
.sh-acc-once { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 1.45; }
.sh-acc-once svg.i { flex: none; margin-top: 2px; color: var(--warning, #d9a21b); }
.sh-acc-done { border-style: solid !important; opacity: .9; }
.sh-acc-done .sh-acc-h svg.i { color: var(--success); }
[data-reveal].sure { background: var(--warning, #d9a21b) !important; color: #111 !important; }
.acc-viewed { color: var(--warning, #b7791f); font-weight: 600; }
.sh-acc-once { display: block !important; } .sh-acc-once svg.i { display: inline-block; vertical-align: -2px; margin: 0 4px 0 0 !important; }

.sh-payby { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; justify-self: center; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; background: var(--warning-soft, rgba(217,162,27,.15)); color: var(--text); }

/* ===== Notifikasi HP & stok data otomatis ===== */
.ma-notif { display: grid; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: var(--fill-2); }
.ma-notif-h { display: flex; gap: 10px; align-items: flex-start; } .ma-notif-h > svg.i { flex: none; width: 22px; height: 22px; color: var(--primary); margin-top: 2px; }
.ma-notif-h span { display: grid; } .ma-notif-h small { color: var(--muted); }
.ma-notif-b { display: flex; gap: 8px; flex-wrap: wrap; }
.pi-stock-in { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.pi-stock { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; }
.pi-st { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; }
.pi-st code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi-st.used { opacity: .55; }
.sh-notifme { justify-content: center; border-style: dashed !important; }
.sh-payby { background: color-mix(in srgb, var(--primary) 12%, transparent) !important; color: var(--text) !important; border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent); line-height: 1.4; } .sh-payby svg.i { color: var(--primary); }

/* ===== Bayar langganan: QRIS sendiri ===== */
.op .op-card { display: grid; gap: 14px; }
.op-timer { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--warning-soft); font-weight: 700; font-variant-numeric: tabular-nums; }
.op-amt { text-align: center; display: grid; gap: 4px; }
.op-big { justify-self: center; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; color: var(--primary); font-family: inherit; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.op-qr { justify-self: center; padding: 10px; background: #fff; border-radius: 16px; width: min(300px, 100%); }
.op-qr svg { width: 100%; height: auto; display: block; }
.op-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; } .op-or::before, .op-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.op-wallets { display: grid; gap: 8px; }
.op-w { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; }
.op-w span { display: grid; } .op-w small { color: var(--muted); }
.op-status { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--fill-2); font-size: 13.5px; text-align: center; }
.op-status svg.i { animation: op-spin 2s linear infinite; } @keyframes op-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .op-status svg.i { animation: none; } }
.op-form { display: grid; gap: 6px; margin-top: 10px; }
.op-guide { margin-top: 8px; padding: 10px 14px; border-radius: 12px; background: var(--fill-2); font-size: 13.5px; } .op-guide summary { cursor: pointer; font-weight: 600; } .op-guide ol { padding-left: 18px; display: grid; gap: 4px; }
.op-notifs { display: grid; gap: 6px; } .op-n { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
@media (max-width: 600px) { .op-n { grid-template-columns: 1fr; } }

.op-short { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--danger-soft); color: var(--text); font-size: 13.5px; line-height: 1.45; }
.op-short > svg.i { flex: none; color: var(--danger); width: 22px; height: 22px; } .op-short div { display: grid; gap: 2px; } .op-short strong { color: var(--danger); }
.op-qrup { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }

/* ===== Bot Telegram admin ===== */
.tg-card h2 { display: flex; align-items: center; gap: 8px; }
.tg-steps { padding-left: 18px; display: grid; gap: 4px; margin: 10px 0; }
.tg-tok { display: flex; gap: 8px; } .tg-tok .input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; }
.tg-chats { display: grid; gap: 6px; } .tg-chat { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; } .tg-chat span { flex: 1; }
.tg-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }


/* ===== kartu harga ===== */
.pc-toolbar { display: flex; justify-content: center; margin: 4px 0 30px; }
.pc-seg { display: inline-flex; flex-wrap: wrap; justify-content: center; }
.pc-seg .badge { padding: 0 6px; margin-left: 2px; }
.pc { gap: 0; padding: 26px 22px 24px; }
.pc h3 { font-size: 20px; letter-spacing: -.01em; }
.pc-for { color: var(--muted); font-size: 13.5px; margin-top: 2px; min-height: 2.6em; }
.pc .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 14px 0 2px; font-variant-numeric: tabular-nums; font-size: clamp(26px, 2.2vw, 34px); }
@media (max-width: 1100px) { .pc .price { font-size: 32px; } }
.pc-was { flex-basis: 100%; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; line-height: 1; margin-bottom: -2px; }
.pc-sub { font-size: 12.5px; color: var(--muted); min-height: 2.6em; }
.pc-sub b { color: #34c759; font-weight: 700; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px; }
.pc-chips span { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: var(--fill-2, rgba(127,127,127,.12)); color: var(--text-2); white-space: nowrap; }
.pc-incl { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pc ul { margin: 12px 0 0; gap: 9px; flex: initial; }
.pc li { font-size: 14px; line-height: 1.4; }
.pc.popular { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 9%, transparent), transparent 46%), var(--surface, var(--card, transparent)); }
.pc.popular .pc-chips span { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--text); }
.pc-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.pc-trust span { display: inline-flex; align-items: center; gap: 6px; }
.compare th small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.compare .cmp-pop { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.pc-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.pc-faq details { padding: 16px 18px; }
.pc-faq summary { cursor: pointer; font-weight: 650; }
.pc-faq p { margin-top: 8px; font-size: 14px; }
@media (max-width: 720px) { .pc-faq { grid-template-columns: minmax(0, 1fr); } .pc-for, .pc-sub { min-height: 0; } }

.sh-id { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .02em; user-select: all; }
.ma-sid { margin: -4px 0 10px; }

/* ===== alur belanja toko: penanda langkah, notifikasi di bawah, batas bayar ===== */
.sh-flow { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; counter-reset: f; }
.sh-flow li { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 4px; border-radius: 99px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.sh-flow li i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: color-mix(in srgb, var(--text) 12%, transparent); flex: none; }
.sh-flow li i svg.i { width: 12px; height: 12px; }
.sh-flow li.done { color: var(--text); }
.sh-flow li.done i { background: var(--shop, var(--primary)); color: var(--shop-on, var(--on-primary, #fff)); }
.sh-flow li.now { color: var(--shop-on, var(--on-primary, #fff)); background: var(--shop, var(--primary)); }
.sh-flow li.now i { background: color-mix(in srgb, var(--shop-on, #fff) 25%, transparent); color: inherit; }
.sh-track .sh-flow { margin-top: 4px; }
body.in-shop #toasts { top: auto; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.mn-bar.bump { animation: shBump .38s ease; }
@keyframes shBump { 0% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(1.035); } 100% { transform: translateX(-50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .mn-bar.bump { animation: none; } }
.sh-payby { display: flex !important; align-items: flex-start; justify-content: flex-start; gap: 10px; text-align: left; border-radius: 14px !important; padding: 10px 12px !important; width: 100%; box-sizing: border-box; }
.sh-payby > svg.i { margin-top: 2px; flex: none; }
.sh-payby span { display: grid; gap: 1px; font-size: 13px; } .sh-payby small { color: var(--muted); font-size: 12px; }

/* ===== bukti transfer ===== */
.mn-proof { margin-top: 14px; padding: 14px; border-radius: 18px; background: color-mix(in srgb, var(--text) 6%, transparent); display: grid; gap: 10px; text-align: left; }
.mn-proof-h { display: flex; align-items: center; gap: 8px; } .mn-proof-h svg.i { color: var(--primary); }
.mn-proof-b { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mn-proof-qr { display: flex; align-items: center; gap: 10px; flex: 1 1 220px; min-width: 0; }
.mn-proof-qr svg { width: 96px; height: 96px; flex: none; background: #fff; border-radius: 10px; }
.mn-proof-qr small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.mn-proof-b .btn { flex: 1 1 200px; }
.mn-proof-ok { display: flex; gap: 10px; align-items: center; } .mn-proof-ok svg.i { color: #34c759; width: 26px; height: 26px; flex: none; }
.mn-proof-ok span { display: grid; } .mn-proof-ok small { color: var(--muted); }
.sh-paydone { display: grid; gap: 6px; }
.sh-proof-btn { margin-top: 8px; }
.sh-claimed { display: flex; gap: 8px; align-items: flex-start; }
.proof-view { display: grid; place-items: center; background: color-mix(in srgb, var(--text) 5%, transparent); border-radius: 14px; padding: 8px; }
.proof-view img { max-width: 100%; max-height: 66vh; border-radius: 10px; object-fit: contain; }
.proof-warn { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13.5px; padding: 10px 12px; border-radius: 12px; background: var(--warning-soft, rgba(217,162,27,.15)); }
.ii-proof svg.i { color: var(--primary); }
.proof-page { text-align: center; } .proof-total { font-size: 26px; font-weight: 800; margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.proof-ok { color: var(--text); } .proof-ok svg.i { color: #34c759; }
.proof-prev { max-width: 100%; max-height: 40vh; border-radius: 12px; margin-top: 12px; }

.ma-qris { margin: 8px 0 10px; } .ma-qris h2 { font-size: 16px; }
label.btn.busy { opacity: .6; pointer-events: none; }

.k-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; } .k-cats label { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; } .k-cats input { position: absolute; opacity: 0; pointer-events: none; } .k-cats small { opacity: .65; font-size: 11px; }

/* penjaga keterbacaan tema (lihat shop.js): teks di kartu terang/gelap mengikuti kartu, bukan latar halaman */
.shop.sh-surf-fix :is(.sh-head, .sh-install, .sh-search, .sh-sort, .sh-notice, .mn-sheet, .sh-zoom) {
  --text: var(--on-surf); --text-2: color-mix(in srgb, var(--on-surf) 86%, transparent); --muted: color-mix(in srgb, var(--on-surf) 66%, transparent); color: var(--on-surf); }
.shop.sh-surf-fix :is(.sh-head, .sh-install, .sh-search, .mn-sheet) :is(h1, h2, p, small, span, label, strong, .muted) { color: inherit; }
.shop.sh-surf-fix :is(.sh-head, .sh-install, .sh-search, .mn-sheet) .muted, .shop.sh-surf-fix :is(.sh-head, .sh-install, .mn-sheet) small { color: var(--muted); }
.shop.sh-surf-fix .mn-sheet .input, .shop.sh-surf-fix .sh-search input { color: var(--on-surf); background: color-mix(in srgb, var(--on-surf) 7%, transparent); border-color: color-mix(in srgb, var(--on-surf) 18%, transparent); }
.shop.sh-surf-fix .mn-sheet .input::placeholder, .shop.sh-surf-fix .sh-search input::placeholder { color: color-mix(in srgb, var(--on-surf) 50%, transparent); }
.shop.sh-surf-fix .sh-head .sh-btn, .shop.sh-surf-fix .mn-sheet .btn:not(.btn-primary) { color: var(--on-surf); border-color: color-mix(in srgb, var(--on-surf) 25%, transparent); background: color-mix(in srgb, var(--on-surf) 6%, transparent); }
.shop.sh-surf-fix .sh-head h1 { text-shadow: none; }

/* warna utama untuk teks di atas kartu (harga, tombol kedua) — diisi penjaga kontras bila warna tema terlalu pucat */
.shop .sh-dprice, .shop .sh-pay-amt, .shop .mn-sheet .btn:not(.btn-primary):not(.btn-ghost):not(.icon-btn) { color: var(--primary-ink, var(--primary)); }
.mn-credit { text-align: center; font-size: 11.5px; opacity: .7; margin: 18px 0 90px; } .mn-credit a { color: inherit; }

/* sisa penjaga kontras */
.shop.sh-ink .mn-number, .shop.sh-ink:not(.sh-overlay) .mn-item:not(.tinted) .mn-price, .shop.sh-ink .sh-dprice { color: var(--primary-ink) !important; text-shadow: none; }
.shop.sh-surf-fix .sh-head .sh-open { color: #fff; } .shop.sh-surf-fix .sh-head .sh-open:not(.on) { color: var(--on-surf); }
/* produk tanpa foto di susunan "teks di atas foto": latar gelap agar nama & harga putih tetap terbaca */
.shop .mn-img:not(.has-photo) { background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 55%, #1b1712), color-mix(in srgb, var(--primary) 30%, #0d0b09)); }
.shop .mn-img:not(.has-photo) > span { color: rgba(255, 255, 255, .85); }
/* tema neon malam: judul toko putih bercahaya (cyan di atas magenta sulit dibaca) */
.shop.mtheme-malam .sh-head h1 { color: #fff !important; text-shadow: 0 0 10px rgba(41, 240, 255, .9), 0 0 2px rgba(41, 240, 255, 1); }

/* keterangan produk di kartu berwarna-foto mengikuti warna teks kartu (bukan warna tema) */
.mn .mn-item.mc.tinted .mn-desc { color: color-mix(in srgb, var(--ct) 78%, transparent) !important; }
.shop.sh-surf-fix .sh-install-go, .shop.sh-surf-fix .sh-install-go strong { color: var(--on-surf) !important; }
.shop.sh-surf-fix .sh-install-go small { color: color-mix(in srgb, var(--on-surf) 70%, transparent) !important; }

/* ===== Panduan Alur ===== */
.gd-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.gd-list { display: grid; gap: 16px; }
.gd-flow { padding: 18px 18px 14px; }
.gd-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.gd-head > div { flex: 1; min-width: 0; } .gd-head h2 { font-size: 17px; margin: 0; } .gd-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.gd-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.gd-lock { flex: none; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.gd-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; counter-reset: gd; }
.gd-step { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 12px 12px 12px; border-radius: 14px; text-decoration: none; color: inherit;
  background: var(--fill-2, rgba(127,127,127,.08)); border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.gd-step:hover, .gd-step:focus-visible { border-color: color-mix(in srgb, var(--primary) 45%, transparent); transform: translateY(-1px); }
.gd-n { position: absolute; top: 10px; right: 12px; font-size: 11px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.gd-sic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface, #fff); color: var(--primary); }
.gd-sic svg.i { width: 17px; height: 17px; }
.gd-t { display: grid; gap: 2px; } .gd-t strong { font-size: 14px; } .gd-t small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.gd-go { position: absolute; right: 10px; bottom: 10px; width: 14px; height: 14px; color: var(--muted); opacity: 0; transition: opacity .15s; }
.gd-step:hover .gd-go { opacity: 1; }
.gd-flow.locked .gd-step { opacity: .62; }
.gd-foot { margin-top: 16px; display: flex; gap: 6px; align-items: center; }
@media (min-width: 1100px) { .gd-steps { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gd-steps li:not(:last-child) .gd-step::after { content: ""; position: absolute; right: -8px; top: 26px; width: 6px; height: 6px; border-top: 2px solid var(--border); border-right: 2px solid var(--border); transform: rotate(45deg); } }

/* ===== QR Menu ===== */
.qrm-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qrm-qr { width: 150px; flex: none; background: #fff; border-radius: 16px; padding: 6px; } .qrm-qr svg { width: 100%; height: auto; display: block; }
.qrm-off { height: 150px; display: grid; place-items: center; color: var(--muted); background: var(--fill-2); } .qrm-off svg.i { width: 48px; height: 48px; }
.qrm-txt { flex: 1 1 260px; min-width: 0; }
.sh-meja { display: flex; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 14px; margin-bottom: 6px; font-size: 13.5px; background: color-mix(in srgb, var(--shop, var(--primary)) 14%, var(--surface, #fff)); color: var(--text); }
.qrm-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.qrm-tcard { border: 1.5px dashed #c9c9c9; border-radius: 14px; padding: 12px 10px; text-align: center; background: #fff; color: #111; break-inside: avoid; page-break-inside: avoid; }
.qrm-tname { font-weight: 800; font-size: 13px; margin-bottom: 6px; } .qrm-tqr svg { width: 100%; max-width: 150px; height: auto; }
.qrm-tlbl { font-size: 20px; font-weight: 900; margin-top: 4px; } .qrm-thint { font-size: 10px; color: #555; margin-top: 2px; }
@media print { .qrm-sheet { grid-template-columns: repeat(3, 1fr) !important; gap: 6mm !important; } .qrm-tcard { border-color: #999 !important; } }

/* ===== pembayaran langganan berhasil ===== */
.op-paid { text-align: center; padding: 18px 8px 8px; display: grid; justify-items: center; gap: 6px; }
.op-paid h3 { font-size: 22px; margin: 6px 0 0; } .op-paid p { max-width: 34ch; margin: 0; color: var(--text-2); } .op-paid .small svg.i { color: #34c759; }
.op-kids { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 128px; }
.op-kids svg { width: 92px; height: auto; animation: opKid .7s cubic-bezier(.2,.9,.3,1.3) both; }
.op-kids svg:nth-child(2) { animation-delay: .12s; }
.op-spark { position: absolute; width: 10px; height: 10px; border-radius: 2px; background: #ffd23f; rotate: 45deg; animation: opSpark 1.6s ease-in-out infinite; }
.op-spark.s1 { left: 8%; top: 18%; } .op-spark.s2 { right: 10%; top: 8%; background: #34c759; animation-delay: .4s; } .op-spark.s3 { right: 26%; top: 54%; background: #ff7eb6; width: 7px; height: 7px; animation-delay: .8s; }
@keyframes opKid { from { opacity: 0; transform: translateY(18px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes opSpark { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .op-kids svg, .op-spark { animation: none; } }

/* ===================== TEMA PREMIUM: sederhana, elegan, warna mewah (toko, Pilihan Menu & antrean) ===================== */
.mtheme-onyx { --bg: #0d0d0f; --surface: #17171b; --surface-2: #17171b; --fill: rgba(244,242,238,0.07); --fill-2: rgba(244,242,238,0.045); --border: rgba(244,242,238,0.12); --text: #f4f2ee; --text-2: rgba(244,242,238,0.78); --muted: #9a978f;
  --primary: #d6b47a; --primary-2: #d6b47a; --on-primary: #17130b; --glass-strong: #17171b; --edge: rgba(244,242,238,0.12); --pm-h: "Plus Jakarta Sans", system-ui, "Segoe UI", Roboto, sans-serif; --pm-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 30px rgba(0,0,0,.35);
  color-scheme: dark; background: #0d0d0f; background-image: none; }
.mtheme-ivory { --bg: #f7f4ee; --surface: #ffffff; --surface-2: #ffffff; --fill: rgba(29,27,24,0.07); --fill-2: rgba(29,27,24,0.045); --border: rgba(29,27,24,0.12); --text: #1d1b18; --text-2: rgba(29,27,24,0.78); --muted: #857f75;
  --primary: #1d1b18; --primary-2: #1d1b18; --on-primary: #ffffff; --glass-strong: #ffffff; --edge: rgba(29,27,24,0.12); --pm-h: Georgia, "Noto Serif", "Times New Roman", serif; --pm-shadow: 0 1px 2px rgba(20,16,10,.05), 0 12px 28px rgba(20,16,10,.07);
  color-scheme: light; background: #f7f4ee; background-image: none; }
.mtheme-espresso { --bg: #1b1512; --surface: #251d18; --surface-2: #251d18; --fill: rgba(243,235,226,0.07); --fill-2: rgba(243,235,226,0.045); --border: rgba(243,235,226,0.12); --text: #f3ebe2; --text-2: rgba(243,235,226,0.78); --muted: #a99a8c;
  --primary: #c8a27a; --primary-2: #c8a27a; --on-primary: #1b1512; --glass-strong: #251d18; --edge: rgba(243,235,226,0.12); --pm-h: "Plus Jakarta Sans", system-ui, "Segoe UI", Roboto, sans-serif; --pm-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 30px rgba(0,0,0,.35);
  color-scheme: dark; background: #1b1512; background-image: none; }
.mtheme-sage { --bg: #eef1ea; --surface: #fbfcf9; --surface-2: #fbfcf9; --fill: rgba(31,42,34,0.07); --fill-2: rgba(31,42,34,0.045); --border: rgba(31,42,34,0.12); --text: #1f2a22; --text-2: rgba(31,42,34,0.78); --muted: #6b776d;
  --primary: #4f6b55; --primary-2: #4f6b55; --on-primary: #ffffff; --glass-strong: #fbfcf9; --edge: rgba(31,42,34,0.12); --pm-h: "Plus Jakarta Sans", system-ui, "Segoe UI", Roboto, sans-serif; --pm-shadow: 0 1px 2px rgba(20,16,10,.05), 0 12px 28px rgba(20,16,10,.07);
  color-scheme: light; background: #eef1ea; background-image: none; }
.mtheme-navy { --bg: #0f1a2b; --surface: #16243a; --surface-2: #16243a; --fill: rgba(238,242,247,0.07); --fill-2: rgba(238,242,247,0.045); --border: rgba(238,242,247,0.12); --text: #eef2f7; --text-2: rgba(238,242,247,0.78); --muted: #93a1b5;
  --primary: #c9a96e; --primary-2: #c9a96e; --on-primary: #0f1a2b; --glass-strong: #16243a; --edge: rgba(238,242,247,0.12); --pm-h: Georgia, "Noto Serif", "Times New Roman", serif; --pm-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 30px rgba(0,0,0,.35);
  color-scheme: dark; background: #0f1a2b; background-image: none; }
.mtheme-terracotta { --bg: #f6efe9; --surface: #fffaf6; --surface-2: #fffaf6; --fill: rgba(43,29,22,0.07); --fill-2: rgba(43,29,22,0.045); --border: rgba(43,29,22,0.12); --text: #2b1d16; --text-2: rgba(43,29,22,0.78); --muted: #8a7366;
  --primary: #b5583a; --primary-2: #b5583a; --on-primary: #ffffff; --glass-strong: #fffaf6; --edge: rgba(43,29,22,0.12); --pm-h: "Plus Jakarta Sans", system-ui, "Segoe UI", Roboto, sans-serif; --pm-shadow: 0 1px 2px rgba(20,16,10,.05), 0 12px 28px rgba(20,16,10,.07);
  color-scheme: light; background: #f6efe9; background-image: none; }
.mtheme-rose { --bg: #faf3f2; --surface: #ffffff; --surface-2: #ffffff; --fill: rgba(44,26,30,0.07); --fill-2: rgba(44,26,30,0.045); --border: rgba(44,26,30,0.12); --text: #2c1a1e; --text-2: rgba(44,26,30,0.78); --muted: #8f7a7e;
  --primary: #8e3b4f; --primary-2: #8e3b4f; --on-primary: #ffffff; --glass-strong: #ffffff; --edge: rgba(44,26,30,0.12); --pm-h: Georgia, "Noto Serif", "Times New Roman", serif; --pm-shadow: 0 1px 2px rgba(20,16,10,.05), 0 12px 28px rgba(20,16,10,.07);
  color-scheme: light; background: #faf3f2; background-image: none; }
.mtheme-slate { --bg: #f3f5f7; --surface: #ffffff; --surface-2: #ffffff; --fill: rgba(23,33,43,0.07); --fill-2: rgba(23,33,43,0.045); --border: rgba(23,33,43,0.12); --text: #17212b; --text-2: rgba(23,33,43,0.78); --muted: #687584;
  --primary: #1f6f78; --primary-2: #1f6f78; --on-primary: #ffffff; --glass-strong: #ffffff; --edge: rgba(23,33,43,0.12); --pm-h: "Plus Jakarta Sans", system-ui, "Segoe UI", Roboto, sans-serif; --pm-shadow: 0 1px 2px rgba(20,16,10,.05), 0 12px 28px rgba(20,16,10,.07);
  color-scheme: light; background: #f3f5f7; background-image: none; }
.mtheme-champagne { --bg: #f4eee4; --surface: #fffcf7; --surface-2: #fffcf7; --fill: rgba(34,29,22,0.07); --fill-2: rgba(34,29,22,0.045); --border: rgba(34,29,22,0.12); --text: #221d16; --text-2: rgba(34,29,22,0.78); --muted: #8c8172;
  --primary: #9c7f4f; --primary-2: #9c7f4f; --on-primary: #ffffff; --glass-strong: #fffcf7; --edge: rgba(34,29,22,0.12); --pm-h: Georgia, "Noto Serif", "Times New Roman", serif; --pm-shadow: 0 1px 2px rgba(20,16,10,.05), 0 12px 28px rgba(20,16,10,.07);
  color-scheme: light; background: #f4eee4; background-image: none; }
.mtheme-forest { --bg: #0f1d17; --surface: #172820; --surface-2: #172820; --fill: rgba(237,243,238,0.07); --fill-2: rgba(237,243,238,0.045); --border: rgba(237,243,238,0.12); --text: #edf3ee; --text-2: rgba(237,243,238,0.78); --muted: #95a99c;
  --primary: #d4b46a; --primary-2: #d4b46a; --on-primary: #13221a; --glass-strong: #172820; --edge: rgba(237,243,238,0.12); --pm-h: "Plus Jakarta Sans", system-ui, "Segoe UI", Roboto, sans-serif; --pm-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 30px rgba(0,0,0,.35);
  color-scheme: dark; background: #0f1d17; background-image: none; }

:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) { font-family: system-ui, "Segoe UI", Roboto, sans-serif; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) :is(h1, h2, .mn-name, .mn-number, .qd-num, .sh-pay-amt, .mn-total strong) { font-family: var(--pm-h); letter-spacing: -.01em; text-transform: none; text-shadow: none; -webkit-text-stroke: 0; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .mn-price { font-family: "Plus Jakarta Sans", system-ui, "Segoe UI", Roboto, sans-serif; font-weight: 700; color: var(--text) !important; letter-spacing: 0; text-shadow: none; }
/* kepala toko: kartu bersih, garis rambut, tanpa ornamen */
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest).shop .sh-head { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--pm-shadow); }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest).shop .sh-head::before, :is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest).shop .sh-head::after { display: none; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest).shop .sh-logo { border-radius: 16px; background: var(--primary); color: var(--on-primary); }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest).shop .sh-id h1 { font-weight: 700; font-size: 21px; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest).shop .sh-id p { color: var(--muted); }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest).shop .sh-btn { background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 12px; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest).shop .sh-open.on { background: rgba(52,199,89,0.16); color: #2fb350; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest).shop :is(.sh-install, .sh-meja, .sh-notice) { background: var(--surface); border: 1px solid var(--border); }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest).shop .sh-search, :is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest).shop .sh-sort { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: none; }
/* kategori: pil tipis */
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .mn-cats .chip { background: transparent; border: 1px solid var(--border); color: var(--text-2); border-radius: 999px; font-weight: 600; font-family: inherit; text-transform: none; letter-spacing: 0; box-shadow: none; rotate: 0deg; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .mn-cats .chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
/* kartu produk: permukaan bersih, foto di atas, bayangan lembut — warna kartu TIDAK mengikuti warna foto */
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .mn-item.mc, :is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .mn-item.mc.tinted { background: var(--surface) !important; color: var(--text) !important; border: 1px solid var(--border) !important; border-radius: 18px !important; box-shadow: var(--pm-shadow) !important; rotate: 0deg !important; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .mn-item.mc.tinted :is(.mn-desc, .mn-name) { color: inherit !important; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .mn-item.mc .mn-desc { color: var(--muted) !important; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .mn-item.mc::before, :is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .mn-item.mc::after { display: none !important; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .mn-item.mc .mn-img { border-radius: 14px 14px 0 0 !important; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .mn-plus { background: var(--primary) !important; color: var(--on-primary) !important; border: 0 !important; border-radius: 50% !important; width: 32px; height: 32px; display: grid; place-items: center; box-shadow: none !important; rotate: 0deg !important; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .sh-best { background: var(--surface) !important; color: var(--text) !important; border: 1px solid var(--border); font-weight: 700; letter-spacing: .02em; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .mn-bar { background: var(--surface) !important; border: 1px solid var(--border) !important; box-shadow: var(--pm-shadow) !important; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .mn-sheet { background: var(--surface); color: var(--text); }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: none; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .mn-number { color: var(--text) !important; font-weight: 700; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .sh-pay-amt { color: var(--text) !important; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .sh-flow li.now { background: var(--text); color: var(--bg); } :is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest) .sh-flow li.done i { background: var(--primary); color: var(--on-primary); }
/* antrean & layar menu kios */
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest).qd .qd-num { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--pm-shadow); }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest).qd { --orn-pk: 0%; --orn-ck: 0%; }


/* ===================== Penghalus semua tema (toko & layar Pilihan Menu): modern, rapi, tidak jadul =====================
   Tanpa kartu/label miring, tanpa garis putus-putus, tanpa huruf tulisan tangan / komik / mesin ketik, bayangan lembut,
   ornamen tempel di kartu disembunyikan. Warna & motif latar tiap tema tetap dipertahankan. */
.mtheme :is(.mn-item, .mn-cats .chip, .sh-head, .mn-plus, .mn-price, .sh-best, .sh-logo, .mn-img, .sh-btn) { rotate: 0deg !important; }
.mtheme :is(.mn-item, .mn-cats .chip, .sh-head, .sh-install, .sh-search, .mn-bar, .sh-best) { border-style: solid !important; }
.mtheme:not(.mtheme-borobudur):not(.mtheme-champagne):not(.mtheme-coklat):not(.mtheme-emas):not(.mtheme-ivory):not(.mtheme-kayu):not(.mtheme-kolonial):not(.mtheme-koran):not(.mtheme-megamerah):not(.mtheme-navy):not(.mtheme-nusantara):not(.mtheme-rendang):not(.mtheme-rose):not(.mtheme-songket):not(.mtheme-ubud):not(.mtheme-wayang) :is(h1, h2, .mn-name, .mn-price, .mn-cats .chip, .mn-number, .sh-pay-amt, .sh-dprice, .mn-total strong, .mn-head .mn-biz) {
  font-family: "Plus Jakarta Sans", system-ui, "Segoe UI", Roboto, sans-serif !important; font-style: normal !important; }
.mtheme :is(h1, h2, .mn-name, .mn-price, .mn-cats .chip, .sh-dprice, .sh-pay-amt) { text-transform: none !important; letter-spacing: -.005em !important; -webkit-text-stroke: 0 !important; text-shadow: none !important; }
.mtheme .mn-name { font-weight: 700 !important; }
.mtheme .mn-item.mc { box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 26px rgba(0,0,0,.12) !important; }
.mtheme .mn-item.mc::before, .mtheme .mn-item.mc::after { display: none !important; }
.mtheme .mn-plus { border-radius: 50% !important; box-shadow: none !important; }
.mtheme.shop .sh-head { box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 30px rgba(0,0,0,.12) !important; }
.mtheme .mn-cats .chip { box-shadow: none !important; }
/* motif latar diredam supaya tenang (hanya di toko & layar menu; latar warna/gradasi tema tetap) */
.mtheme.shop::before, .mn.mtheme::before { opacity: .35; }
/* pilihan tema: kelompok Premium di depan */
.tp-group { grid-column: 1 / -1; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 6px 0 -2px; }
.tp-badge { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 99px; background: linear-gradient(135deg, #d6b47a, #a68a5b); color: #1b150b; margin-left: 6px; vertical-align: 1px; }

/* judul yang dulu putih bergaris tepi (gaya komik): setelah garis tepi dihapus, pakai warna teks kartu */
.mtheme.shop.sh-surf-fix .sh-id h1 { color: var(--on-surf) !important; }
.mtheme-ceria.shop .sh-id h1, .mtheme-ceria .mn-head h1 { color: #111 !important; }

/* ===================== Tema KACA (gaya iOS terbaru / "Liquid Glass") — terang & gelap =====================
   Lapisan kaca tembus pandang + blur di atas latar gradasi lembut, sudut besar, tombol kapsul, bilah keranjang melayang.
   Kartu produk memakai kaca tanpa blur (ringan untuk HP murah); blur hanya di kepala toko, bilah, lembar & kategori. */
.mtheme-kaca { --bg: #eef1f8; --surface: rgba(255,255,255,.62); --surface-2: rgba(255,255,255,.8); --fill: rgba(120,120,128,.12); --fill-2: rgba(120,120,128,.08); --border: rgba(255,255,255,.75);
  --text: #0b0b0f; --text-2: rgba(11,11,15,.78); --muted: rgba(60,60,67,.62); --primary: #0a84ff; --primary-2: #0071e3; --on-primary: #fff; --glass-strong: rgba(255,255,255,.72); --edge: rgba(0,0,0,.06);
  --gl-bg: rgba(255,255,255,.55); --gl-card: rgba(255,255,255,.7); --gl-line: rgba(255,255,255,.8); --gl-hi: rgba(255,255,255,.9); --gl-sh: 0 10px 34px rgba(31,38,64,.12), 0 1px 2px rgba(31,38,64,.06);
  color-scheme: light; background: #eef1f8;
  background-image: radial-gradient(60% 45% at 12% 8%, #cfe3ff 0, transparent 70%), radial-gradient(55% 40% at 92% 18%, #ffd9ec 0, transparent 70%), radial-gradient(60% 45% at 70% 92%, #d6f5e9 0, transparent 70%), radial-gradient(45% 35% at 8% 85%, #e8dcff 0, transparent 70%);
  background-attachment: fixed; }
.mtheme-kacagelap { --bg: #07080c; --surface: rgba(38,40,48,.55); --surface-2: rgba(44,46,54,.78); --fill: rgba(120,120,128,.24); --fill-2: rgba(120,120,128,.16); --border: rgba(255,255,255,.12);
  --text: #f5f5f7; --text-2: rgba(245,245,247,.8); --muted: rgba(235,235,245,.6); --primary: #0a84ff; --primary-2: #409cff; --on-primary: #fff; --glass-strong: rgba(30,32,40,.72); --edge: rgba(255,255,255,.1);
  --gl-bg: rgba(40,42,52,.5); --gl-card: rgba(40,42,52,.62); --gl-line: rgba(255,255,255,.14); --gl-hi: rgba(255,255,255,.18); --gl-sh: 0 12px 36px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.06) inset;
  color-scheme: dark; background: #07080c;
  background-image: radial-gradient(55% 40% at 15% 5%, rgba(10,132,255,.35) 0, transparent 70%), radial-gradient(50% 40% at 95% 25%, rgba(191,90,242,.28) 0, transparent 70%), radial-gradient(60% 45% at 60% 100%, rgba(48,209,88,.18) 0, transparent 70%);
  background-attachment: fixed; }
:is(.mtheme-kaca, .mtheme-kacagelap) { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; }
:is(.mtheme-kaca, .mtheme-kacagelap) :is(h1, h2, .mn-name, .mn-price, .mn-number, .sh-pay-amt, .mn-cats .chip, .sh-dprice) { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", system-ui, sans-serif !important; letter-spacing: -.02em !important; }
/* kaca berblur: kepala toko, spanduk, cari, kategori, bilah keranjang, lembar */
:is(.mtheme-kaca, .mtheme-kacagelap).shop :is(.sh-head, .sh-install, .sh-meja, .sh-notice, .sh-search, .sh-sort),
:is(.mtheme-kaca, .mtheme-kacagelap) :is(.mn-bar, .mn-sheet, .mn-cats .chip) {
  background: var(--gl-bg) !important; -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--gl-line) !important; box-shadow: inset 0 1px 0 var(--gl-hi), var(--gl-sh) !important; }
:is(.mtheme-kaca, .mtheme-kacagelap).shop .sh-head { border-radius: 28px; }
:is(.mtheme-kaca, .mtheme-kacagelap).shop .sh-head::before, :is(.mtheme-kaca, .mtheme-kacagelap).shop .sh-head::after { display: none; }
:is(.mtheme-kaca, .mtheme-kacagelap).shop .sh-id h1 { font-size: 22px; font-weight: 700; }
:is(.mtheme-kaca, .mtheme-kacagelap).shop .sh-id p { color: var(--muted); }
:is(.mtheme-kaca, .mtheme-kacagelap).shop .sh-logo { border-radius: 18px; background: linear-gradient(160deg, #3ea0ff, #0a6cff); color: #fff; box-shadow: 0 6px 16px rgba(10,132,255,.35); }
:is(.mtheme-kaca, .mtheme-kacagelap).shop .sh-btn { border-radius: 999px; background: var(--fill-2); border: 0; color: var(--text); }
:is(.mtheme-kaca, .mtheme-kacagelap).shop .sh-search { border-radius: 999px; }
:is(.mtheme-kaca, .mtheme-kacagelap) .mn-cats .chip { border-radius: 999px; color: var(--text); font-weight: 600; }
:is(.mtheme-kaca, .mtheme-kacagelap) .mn-cats .chip.on { background: var(--primary) !important; color: #fff; border-color: transparent !important; box-shadow: 0 6px 18px rgba(10,132,255,.35) !important; }
/* kartu produk: kaca tanpa blur */
:is(.mtheme-kaca, .mtheme-kacagelap) .mn-item.mc, :is(.mtheme-kaca, .mtheme-kacagelap) .mn-item.mc.tinted {
  background: var(--gl-card) !important; color: var(--text) !important; border: 1px solid var(--gl-line) !important; border-radius: 24px !important; box-shadow: inset 0 1px 0 var(--gl-hi), var(--gl-sh) !important; }
:is(.mtheme-kaca, .mtheme-kacagelap) .mn-item.mc .mn-img { border-radius: 18px !important; margin: 6px 6px 0; }
:is(.mtheme-kaca, .mtheme-kacagelap) .mn-item.mc :is(.mn-name) { color: var(--text) !important; }
:is(.mtheme-kaca, .mtheme-kacagelap) .mn-item.mc .mn-desc { color: var(--muted) !important; }
:is(.mtheme-kaca, .mtheme-kacagelap) .mn-price { color: var(--text) !important; font-weight: 700; }
:is(.mtheme-kaca, .mtheme-kacagelap) .mn-plus { background: var(--primary) !important; color: #fff !important; border-radius: 999px !important; width: 32px; height: 32px; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(10,132,255,.35) !important; border: 0 !important; }
:is(.mtheme-kaca, .mtheme-kacagelap) .sh-best { background: var(--gl-bg) !important; color: var(--text) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 999px; }
/* bilah keranjang melayang seperti tab bar iOS */
:is(.mtheme-kaca, .mtheme-kacagelap) .mn-bar { border-radius: 999px !important; }
:is(.mtheme-kaca, .mtheme-kacagelap) .mn-bar .btn-primary, :is(.mtheme-kaca, .mtheme-kacagelap) .btn-primary { background: var(--primary); color: #fff; border-radius: 999px; box-shadow: 0 6px 18px rgba(10,132,255,.35); }
:is(.mtheme-kaca, .mtheme-kacagelap) .mn-sheet { border-radius: 30px 30px 0 0 !important; }
:is(.mtheme-kaca, .mtheme-kacagelap) .mn-sheet .input { background: var(--fill-2); border: 0; border-radius: 14px; }
:is(.mtheme-kaca, .mtheme-kacagelap) .mn-number { color: var(--text) !important; font-weight: 700; }
:is(.mtheme-kaca, .mtheme-kacagelap) .sh-flow li.now { background: var(--primary); color: #fff; }
:is(.mtheme-kaca, .mtheme-kacagelap).qd .qd-num { background: var(--gl-card); border: 1px solid var(--gl-line); box-shadow: inset 0 1px 0 var(--gl-hi), var(--gl-sh); color: var(--text); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
:is(.mtheme-kaca, .mtheme-kacagelap).qd { --orn-pk: 0%; --orn-ck: 0%; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mtheme-kaca { --gl-bg: rgba(255,255,255,.9); } .mtheme-kacagelap { --gl-bg: rgba(40,42,52,.92); } }

/* tema premium & kaca: kartu tidak ikut warna foto → nama/keterangan/harga pakai warna tema (lebih spesifik dari aturan kartu berwarna-foto) */
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest, .mtheme-kaca, .mtheme-kacagelap) .mn .mn-item.mc.tinted .mn-desc, :is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest, .mtheme-kaca, .mtheme-kacagelap) .mn-item.mc.tinted .mn-desc { color: var(--muted) !important; }
:is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest, .mtheme-kaca, .mtheme-kacagelap) .mn .mn-item.mc.tinted :is(.mn-name, .mn-price), :is(.mtheme-onyx, .mtheme-ivory, .mtheme-espresso, .mtheme-sage, .mtheme-navy, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-forest, .mtheme-kaca, .mtheme-kacagelap) .mn-item.mc.tinted :is(.mn-name, .mn-price) { color: var(--text) !important; }
/* saat lembar keranjang / detail terbuka, notifikasi pindah ke atas agar tidak menutupi tombol bayar */
body.in-shop:has(.mn-sheet) #toasts { top: calc(14px + env(safe-area-inset-top, 0px)); bottom: auto; }

/* label "Buka" di tema terang: hijau lebih tua agar terbaca */
.mtheme.shop:is(.mtheme-ivory, .mtheme-sage, .mtheme-terracotta, .mtheme-rose, .mtheme-slate, .mtheme-champagne, .mtheme-kaca) .sh-open.on { color: #1d7a34; }

/* ===================== LAYAR MENU TV: template PREMIUM & KACA iOS (tanpa maskot & ornamen, transisi tenang) ===================== */
.mbd.t-pkaca { --bg: #eef1f8; --fg: #0b0b0f; --muted: rgba(60,60,67,.62); --accent: #0a84ff; --accent2: #0a84ff; --card: rgba(255,255,255,.62); --cardfg: #0b0b0f; --line: rgba(255,255,255,.85); --tick-bg: #0a84ff; --tick-fg: #fff;
  --tf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; --bf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; --tt: none; --tw: 700; --tls: -.02em; --r: 28px; --imgr: 22px; --cardline: 0 0 0 1px var(--line); background-image: radial-gradient(55% 45% at 10% 10%, #cfe3ff 0, transparent 70%), radial-gradient(50% 40% at 92% 15%, #ffd9ec 0, transparent 70%), radial-gradient(60% 45% at 70% 95%, #d6f5e9 0, transparent 70%); }
.mbd.t-pkacagelap { --bg: #07080c; --fg: #f5f5f7; --muted: rgba(235,235,245,.6); --accent: #0a84ff; --accent2: #0a84ff; --card: rgba(40,42,52,.55); --cardfg: #f5f5f7; --line: rgba(255,255,255,.14); --tick-bg: #0a84ff; --tick-fg: #fff;
  --tf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; --bf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; --tt: none; --tw: 700; --tls: -.02em; --r: 28px; --imgr: 22px; --cardline: 0 0 0 1px var(--line); background-image: radial-gradient(55% 40% at 12% 6%, rgba(10,132,255,.35) 0, transparent 70%), radial-gradient(50% 40% at 95% 25%, rgba(191,90,242,.28) 0, transparent 70%), radial-gradient(60% 45% at 60% 100%, rgba(48,209,88,.18) 0, transparent 70%); }
.mbd.t-ponyx { --bg: #0d0d0f; --fg: #f4f2ee; --muted: #9a978f; --accent: #d6b47a; --accent2: #d6b47a; --card: #17171b; --cardfg: #f4f2ee; --line: rgba(244,242,238,.1); --tick-bg: #d6b47a; --tick-fg: #17130b;
  --tf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; --bf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; --tt: none; --tw: 700; --tls: -.02em; --r: 28px; --imgr: 22px; --cardline: 0 0 0 1px var(--line);  }
.mbd.t-pivory { --bg: #f7f4ee; --fg: #1d1b18; --muted: #857f75; --accent: #1d1b18; --accent2: #1d1b18; --card: #ffffff; --cardfg: #1d1b18; --line: rgba(29,27,24,.1); --tick-bg: #1d1b18; --tick-fg: #f7f4ee;
  --tf: Georgia, "Noto Serif", "Times New Roman", serif; --bf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; --tt: none; --tw: 700; --tls: -.02em; --r: 28px; --imgr: 22px; --cardline: 0 0 0 1px var(--line);  }
.mbd.t-pespresso { --bg: #1b1512; --fg: #f3ebe2; --muted: #a99a8c; --accent: #c8a27a; --accent2: #c8a27a; --card: #251d18; --cardfg: #f3ebe2; --line: rgba(243,235,226,.1); --tick-bg: #c8a27a; --tick-fg: #1b1512;
  --tf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; --bf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; --tt: none; --tw: 700; --tls: -.02em; --r: 28px; --imgr: 22px; --cardline: 0 0 0 1px var(--line);  }
.mbd.t-pnavy { --bg: #0f1a2b; --fg: #eef2f7; --muted: #93a1b5; --accent: #c9a96e; --accent2: #c9a96e; --card: #16243a; --cardfg: #eef2f7; --line: rgba(238,242,247,.1); --tick-bg: #c9a96e; --tick-fg: #0f1a2b;
  --tf: Georgia, "Noto Serif", "Times New Roman", serif; --bf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; --tt: none; --tw: 700; --tls: -.02em; --r: 28px; --imgr: 22px; --cardline: 0 0 0 1px var(--line);  }
.mbd.t-pforest { --bg: #0f1d17; --fg: #edf3ee; --muted: #95a99c; --accent: #d4b46a; --accent2: #d4b46a; --card: #172820; --cardfg: #edf3ee; --line: rgba(237,243,238,.1); --tick-bg: #d4b46a; --tick-fg: #13221a;
  --tf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; --bf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; --tt: none; --tw: 700; --tls: -.02em; --r: 28px; --imgr: 22px; --cardline: 0 0 0 1px var(--line);  }
.mbd.t-psage { --bg: #eef1ea; --fg: #1f2a22; --muted: #6b776d; --accent: #4f6b55; --accent2: #4f6b55; --card: #fbfcf9; --cardfg: #1f2a22; --line: rgba(31,42,34,.1); --tick-bg: #4f6b55; --tick-fg: #fff;
  --tf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; --bf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; --tt: none; --tw: 700; --tls: -.02em; --r: 28px; --imgr: 22px; --cardline: 0 0 0 1px var(--line);  }

:is(.mbd.t-pkaca, .mbd.t-pkacagelap, .mbd.t-ponyx, .mbd.t-pivory, .mbd.t-pespresso, .mbd.t-pnavy, .mbd.t-pforest, .mbd.t-psage) .mb-mascot, :is(.mbd.t-pkaca, .mbd.t-pkacagelap, .mbd.t-ponyx, .mbd.t-pivory, .mbd.t-pespresso, .mbd.t-pnavy, .mbd.t-pforest, .mbd.t-psage) .mb-deco { display: none !important; }
:is(.mbd.t-pkaca, .mbd.t-pkacagelap, .mbd.t-ponyx, .mbd.t-pivory, .mbd.t-pespresso, .mbd.t-pnavy, .mbd.t-pforest, .mbd.t-psage) .mb-card { background: var(--card); border-radius: var(--r); box-shadow: var(--cardline), 0 18px 50px rgba(0,0,0,.12); overflow: hidden; }
:is(.mbd.t-pkaca, .mbd.t-pkacagelap, .mbd.t-ponyx, .mbd.t-pivory, .mbd.t-pespresso, .mbd.t-pnavy, .mbd.t-pforest, .mbd.t-psage) .mb-img { border-radius: var(--imgr); margin: 14px 14px 0; }
:is(.mbd.t-pkaca, .mbd.t-pkacagelap, .mbd.t-ponyx, .mbd.t-pivory, .mbd.t-pespresso, .mbd.t-pnavy, .mbd.t-pforest, .mbd.t-psage) .mb-card h3 { font-family: var(--tf); font-weight: 700; letter-spacing: -.01em; }
:is(.mbd.t-pkaca, .mbd.t-pkacagelap, .mbd.t-ponyx, .mbd.t-pivory, .mbd.t-pespresso, .mbd.t-pnavy, .mbd.t-pforest, .mbd.t-psage) .mb-price { color: var(--accent); font-weight: 700; font-family: var(--bf); }
:is(.mbd.t-pkaca, .mbd.t-pkacagelap, .mbd.t-ponyx, .mbd.t-pivory, .mbd.t-pespresso, .mbd.t-pnavy, .mbd.t-pforest, .mbd.t-psage) .mb-title h1, :is(.mbd.t-pkaca, .mbd.t-pkacagelap, .mbd.t-ponyx, .mbd.t-pivory, .mbd.t-pespresso, .mbd.t-pnavy, .mbd.t-pforest, .mbd.t-psage) .mb-sh h2 { font-family: var(--tf); font-weight: 700; text-shadow: none; -webkit-text-stroke: 0; }
:is(.mbd.t-pkaca, .mbd.t-pkacagelap, .mbd.t-ponyx, .mbd.t-pivory, .mbd.t-pespresso, .mbd.t-pnavy, .mbd.t-pforest, .mbd.t-psage) .mb-rule { height: 2px; width: 200px; background: var(--accent); opacity: .7; }
:is(.mbd.t-pkaca, .mbd.t-pkacagelap, .mbd.t-ponyx, .mbd.t-pivory, .mbd.t-pespresso, .mbd.t-pnavy, .mbd.t-pforest, .mbd.t-psage) .mb-kicker { color: var(--muted); letter-spacing: .18em; text-transform: uppercase; font-size: 22px; }
:is(.mbd.t-pkaca, .mbd.t-pkacagelap) .mb-card { -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 20px 60px rgba(31,38,64,.16); }
.mbd.t-pkacagelap .mb-card { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 20px 60px rgba(0,0,0,.5); }
:is(.mbd.t-pkaca, .mbd.t-pkacagelap) .mb-ticker { border-radius: 999px; margin: 0 40px 24px; }


/* TV premium: kartu menyamping — foto persegi di kiri (tampil utuh), nama, keterangan & harga di kanan */
:is(.mbd.t-pkaca, .mbd.t-pkacagelap, .mbd.t-ponyx, .mbd.t-pivory, .mbd.t-pespresso, .mbd.t-pnavy, .mbd.t-pforest, .mbd.t-psage) .mb-grid .mb-card { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); align-items: center; gap: 0; }
:is(.mbd.t-pkaca, .mbd.t-pkacagelap, .mbd.t-ponyx, .mbd.t-pivory, .mbd.t-pespresso, .mbd.t-pnavy, .mbd.t-pforest, .mbd.t-psage) .mb-grid .mb-card .mb-img { height: calc(100% - 24px); margin: 12px; aspect-ratio: auto; }
:is(.mbd.t-pkaca, .mbd.t-pkacagelap, .mbd.t-ponyx, .mbd.t-pivory, .mbd.t-pespresso, .mbd.t-pnavy, .mbd.t-pforest, .mbd.t-psage) .mb-grid .mb-card .mb-img img { width: 100%; height: 100%; object-fit: cover; }
:is(.mbd.t-pkaca, .mbd.t-pkacagelap, .mbd.t-ponyx, .mbd.t-pivory, .mbd.t-pespresso, .mbd.t-pnavy, .mbd.t-pforest, .mbd.t-psage) .mb-grid .mb-card .mb-card-b { padding: 18px 22px 18px 8px; align-content: center; }
:is(.mbd.t-pkaca, .mbd.t-pkacagelap, .mbd.t-ponyx, .mbd.t-pivory, .mbd.t-pespresso, .mbd.t-pnavy, .mbd.t-pforest, .mbd.t-psage) .mb-grid .mb-card h3 { font-size: 34px; line-height: 1.15; }
:is(.mbd.t-pkaca, .mbd.t-pkacagelap, .mbd.t-ponyx, .mbd.t-pivory, .mbd.t-pespresso, .mbd.t-pnavy, .mbd.t-pforest, .mbd.t-psage) .mb-grid .mb-card p { font-size: 20px; }
:is(.mbd.t-pkaca, .mbd.t-pkacagelap, .mbd.t-ponyx, .mbd.t-pivory, .mbd.t-pespresso, .mbd.t-pnavy, .mbd.t-pforest, .mbd.t-psage) .mb-grid .mb-card .mb-price { font-size: 34px; margin-top: 8px; }

/* ===================== LAYAR MENU TV: gerak halus =====================
   Hanya transform & opacity (dikerjakan GPU) → mulus juga di TV box / Android TV yang lambat.
   Kurva "expo-out" ala iOS: cepat di awal, mengendap pelan di akhir. */
.mbd { --mb-in: cubic-bezier(.16, 1, .3, 1); --mb-out: cubic-bezier(.45, 0, .55, 1); }
.mbd .mb-layer.in, .mbd .mb-layer.out { will-change: transform, opacity; }
.mbd .mb-layer.in { animation-duration: 1.15s; animation-timing-function: var(--mb-in); }
.mbd .mb-layer.out { animation-duration: .9s; animation-timing-function: var(--mb-out); }
/* geser: jarak pendek + memudar (lebih lembut dari geser penuh selebar layar) */
@keyframes tr-geser-in { from { opacity: 0; transform: translate3d(9%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes tr-geser-out { to { opacity: 0; transform: translate3d(-6%, 0, 0); } }
/* kabur ke tajam: blur kecil (blur besar berat & patah-patah di TV) */
@keyframes tr-kabur-in { from { filter: blur(10px); opacity: 0; transform: scale(1.03); } to { filter: none; opacity: 1; transform: none; } }
@keyframes tr-kabur-out { to { filter: blur(8px); opacity: 0; transform: scale(.985); } }
@keyframes tr-fade-in { from { opacity: 0; transform: scale(1.012); } to { opacity: 1; transform: none; } }
@keyframes tr-fade-out { to { opacity: 0; transform: scale(.992); } }
@keyframes mb-in { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
@keyframes mb-out { to { opacity: 0; transform: translate3d(0, -20px, 0); } }
/* kartu muncul bergiliran, naik halus */
.mbd .mb-card { will-change: transform, opacity; backface-visibility: hidden; }
.mbd .mb-layer.in .mb-card { animation: mb-card 1s var(--mb-in) calc(.22s + var(--i) * .07s) both; }
@keyframes mb-card { from { opacity: 0; transform: translate3d(0, 32px, 0) scale(.985); } to { opacity: 1; transform: none; } }
.mbd .mb-layer.in .mb-title h1 { animation-timing-function: var(--mb-in); animation-duration: 1.2s; }
@keyframes mb-pop { from { opacity: 0; transform: scale(.94); letter-spacing: .06em; } to { opacity: 1; transform: none; } }
/* foto: gerak sangat pelan (Ken Burns halus) */
.mbd .mb-layer.in .mb-img img { animation: mb-drift 18s linear both; will-change: transform; }
@keyframes mb-drift { from { transform: scale(1.001); } to { transform: scale(1.06); } }
@keyframes mb-kenburns { from { transform: scale(1.02); } to { transform: scale(1.08); } }
/* teks berjalan: transform 3D agar dikerjakan GPU */
.mb-ticker-in { will-change: transform; backface-visibility: hidden; }
@keyframes mb-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-100%, 0, 0); } }
/* label "Siap diambil": nomor baru muncul lembut + denyut halus */
.mb-ready { transition: opacity .5s var(--mb-in), transform .5s var(--mb-in); box-shadow: 0 8px 26px color-mix(in srgb, var(--accent) 35%, transparent); }
.mb-ready b { transition: transform .4s var(--mb-in); }
.mb-ready b.new { animation: mb-num 1.1s var(--mb-in) both, mb-glow 2.4s ease-in-out 1.1s 2; }
@keyframes mb-num { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes mb-glow { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--ready-fg, #fff) 35%, transparent); } }
/* bilah waktu slide */
.mb-progress { position: absolute; left: 80px; right: 80px; bottom: 96px; height: 4px; border-radius: 99px; background: color-mix(in srgb, var(--fg) 10%, transparent); overflow: hidden; z-index: 3; }
.mb-progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
@keyframes mb-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mbd:has(.mb-ticker[hidden]) .mb-progress { bottom: 34px; }
.mbd.portrait .mb-progress { left: 60px; right: 60px; }
/* tombol tutup: kaca, muncul & hilang halus */
.mb-exit { background: rgba(20, 20, 24, .45) !important; -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border: 1px solid rgba(255, 255, 255, .18) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transform: scale(.9); transition: opacity .35s var(--mb-in), transform .35s var(--mb-in), background .2s; }
.mbd.ui .mb-exit { transform: none; } .mb-exit:hover { background: rgba(20, 20, 24, .65) !important; } .mb-exit:active { transform: scale(.94); }
/* template kaca di TV: tanpa blur (ringan), tetap terasa kaca */
.mbd.t-pkaca .mb-card { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(160deg, rgba(255,255,255,.86), rgba(255,255,255,.68)); }
.mbd.t-pkacagelap .mb-card { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(160deg, rgba(52,54,66,.82), rgba(30,32,40,.7)); }
@media (prefers-reduced-motion: reduce) { .mb-progress i { animation: none !important; transform: scaleX(1); } .mb-ready b.new { animation: none; } }

/* bukti transfer di jendela Terima bayar */
.qp-proof { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--fill-2); border: 1px solid var(--edge, var(--border)); margin-top: 10px; animation: qpProof .35s var(--ease) both; }
.qp-proof[hidden] { display: none; }
.qp-proof-img { position: relative; flex: none; width: 96px; height: 120px; border-radius: 12px; overflow: hidden; border: 0; padding: 0; cursor: zoom-in; background: #000; }
.qp-proof-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.qp-proof-img:hover img { transform: scale(1.05); }
.qp-proof-img span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); display: flex; gap: 4px; justify-content: center; align-items: center; }
.qp-proof-t { display: grid; gap: 3px; min-width: 0; } .qp-proof-t strong { display: flex; gap: 6px; align-items: center; font-size: 14px; } .qp-proof-t strong svg.i { color: var(--primary); }
.qp-proof-t span { font-size: 12.5px; color: var(--muted); } .qp-proof-t small { font-size: 12px; color: var(--text-2); line-height: 1.4; }
@keyframes qpProof { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== pantau pesanan ===== */
.trk-page { min-height: 100dvh; display: grid; place-items: start center; padding: 24px max(16px, env(safe-area-inset-left, 0px)) 40px max(16px, env(safe-area-inset-right, 0px)); }
.trk { width: min(440px, 100%); padding: 22px 20px; text-align: center; display: grid; gap: 10px; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.trk.bump { animation: trkBump .6s var(--ease); } @keyframes trkBump { 0% { transform: scale(1); } 40% { transform: scale(1.02); } 100% { transform: none; } }
.trk.is-ready { box-shadow: 0 0 0 2px #34c759, 0 18px 40px rgba(52,199,89,.25); }
.trk-shop { margin: 0; } .trk-lbl { font-size: 13px; color: var(--muted); }
.trk-num { font-size: 76px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.trk-pill { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--fill); color: var(--text); transition: background .3s, color .3s; }
.trk-pill.ok { background: rgba(52,199,89,.16); color: #1f9d48; } .trk-pill.bad { background: rgba(255,59,48,.14); color: #e0352b; }
.trk-steps { list-style: none; margin: 6px 0 2px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.trk-steps li { display: grid; justify-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.trk-steps i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; background: var(--fill); transition: background .35s var(--ease), color .35s; }
.trk-steps li.done i { background: var(--primary); color: #fff; } .trk-steps li.done { color: var(--text); }
.trk-steps li.now i { background: var(--text); color: var(--bg, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 15%, transparent); animation: trkNow 1.8s ease-in-out infinite; } .trk-steps li.now { color: var(--text); font-weight: 700; }
@keyframes trkNow { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 15%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--text) 6%, transparent); } }
.trk-pay { display: flex; gap: 6px; justify-content: center; align-items: center; margin: 0; color: var(--text-2); }
.trk-items { text-align: left; background: var(--fill-2); border-radius: 14px; padding: 10px 14px; display: grid; gap: 4px; font-size: 14px; }
.trk-total { display: flex; justify-content: space-between; border-top: 1px solid var(--edge, var(--border)); padding-top: 6px; margin-top: 2px; }
.trk-live { display: flex; gap: 6px; justify-content: center; align-items: center; margin: 0; }
.mn-track { display: grid; gap: 10px; margin-top: 12px; } .mn-track-st { display: flex; justify-content: center; }
.mn-track-qr { display: flex; align-items: center; gap: 10px; justify-content: center; } .mn-track-qr svg { width: 84px; height: 84px; background: #fff; border-radius: 8px; } .mn-track-qr small { color: var(--muted); max-width: 22ch; text-align: left; }
@media (prefers-reduced-motion: reduce) { .trk-steps li.now i, .trk.bump { animation: none; } }

.mn-meja { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--fill); color: var(--text); font-weight: 700; font-size: 14px; white-space: nowrap; }

.qt-track { display: grid; justify-items: center; gap: 2px; font-size: 11px; } .qt-track svg { width: 110px; height: 110px; }
.qt-note { font-size: 12px; margin-top: 4px; }

/* ===== papan antrean dapur: kolom sama tinggi & terisi penuh (tanpa celah kosong), isi menggulir di dalam kolom ===== */
.kitchen-board { align-items: stretch; }
.k-col { align-content: start; grid-auto-rows: max-content; max-height: max(420px, calc(100dvh - 230px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.k-col h2 { position: sticky; top: -12px; z-index: 2; margin: -12px -12px 0; padding: 12px 12px 8px; background: inherit; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 18px 18px 0 0; }
.k-col { background: color-mix(in srgb, var(--text) 5%, var(--bg, #000)); }
.k-empty { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 160px; height: 100%; color: var(--muted); font-size: 13.5px; text-align: center; border: 1.5px dashed color-mix(in srgb, var(--text) 12%, transparent); border-radius: 14px; }
.k-empty svg.i { width: 26px; height: 26px; opacity: .55; }
@media (max-width: 860px) { .k-col { max-height: none; overflow: visible; } }
/* ruang scrollbar dikunci: halaman tidak bergeser & tidak ada strip hitam yang muncul-hilang saat isi berubah */
html { scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--text, #888) 28%, transparent) transparent; }
html::-webkit-scrollbar { width: 10px; } html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--text, #888) 25%, transparent); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
.k-col:has(> .k-empty) { display: flex; flex-direction: column; gap: 10px; }
.k-col:has(> .k-empty) > .k-empty { flex: 1; min-height: 160px; }
.k-col { scrollbar-color: color-mix(in srgb, var(--text, #888) 22%, transparent) transparent; }
.k-col::-webkit-scrollbar { width: 6px; } .k-col::-webkit-scrollbar-track { background: transparent; }
.k-col::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--text, #888) 22%, transparent); border-radius: 99px; }

/* logo toko di struk antrean */
.qt-logo { display: block; width: 22mm; height: 22mm; object-fit: contain; margin: 2px auto 4px; filter: grayscale(1) contrast(1.15); }
/* kartu pesanan masuk: tombol tidak keluar kartu — Cetak · Ubah · Bukti di baris atas, "Terima bayar" selebar kartu, dasar kartu rata */
.incoming-item { display: flex; flex-direction: column; min-width: 0; }
.incoming-item .ii-foot { margin-top: auto; padding-top: 4px; min-width: 0; }
.incoming-item .ii-actions { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; min-width: 0; }
.incoming-item .ii-actions > * { flex: 1 1 0; min-width: 0; justify-content: center; white-space: nowrap; }
.incoming-item .ii-actions > .icon-btn { flex: 0 0 auto; }
.incoming-item .ii-actions > .btn-ghost:not(.icon-btn) { background: var(--fill); }
.incoming-item .ii-actions > [data-qpay] { flex: 1 1 100%; }
/* kotak cari di atas: isi tidak menabrak tombol sebelahnya */
.search-btn { min-width: 0; overflow: hidden; }
.search-btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-btn kbd { flex: none; }
@media (max-width: 1180px) { .search-btn kbd { display: none; } }
/* Kasir (layar lebar): panel keranjang menggulir sendiri, jadi tombol bayar selalu bisa dicapai walau daftar produk panjang */
@media (min-width: 1181px) {
  .pos-cart { max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-gutter: stable; }
}
