/* =====================================================================
   POS — design system
   Light + dark themes. Switch with <html data-theme="dark">.
   ===================================================================== */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #eef1f4;
  --ink: #111827;
  --ink-2: #4b5563;
  --muted: #8b93a1;
  --line: #e5e7eb;
  --line-2: #f0f1f4;
  --input: #ffffff;
  --input-line: #d6d9df;
  --sidebar: #0c1220;
  --sidebar-2: #151d2e;
  --sidebar-ink: #aab3c2;
  --sidebar-line: #1d2638;
  --accent: #0f766e;
  --accent-2: #0b5f58;
  --accent-3: #14b8a6;
  --accent-soft: #e7f5f3;
  --accent-ring: rgba(15, 118, 110, .16);
  --grad: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #14b8a6 100%);
  --warn: #b45309;
  --warn-soft: #fef5e7;
  --danger: #c02626;
  --danger-soft: #fdeeee;
  --ok: #15803d;
  --ok-soft: #e9f7ee;
  --info: #1d4ed8;
  --info-soft: #eaf1ff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .06);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0b0f16;
  --surface: #121824;
  --surface-2: #161d2b;
  --surface-3: #1c2433;
  --ink: #e7eaf0;
  --ink-2: #b3bbc8;
  --muted: #7d8797;
  --line: #242d3d;
  --line-2: #1d2533;
  --input: #0f1520;
  --input-line: #2c3647;
  --sidebar: #080c13;
  --sidebar-2: #111827;
  --sidebar-ink: #9aa4b5;
  --sidebar-line: #171f2c;
  --accent: #2dd4bf;
  --accent-2: #5eead4;
  --accent-soft: rgba(45, 212, 191, .12);
  --accent-ring: rgba(45, 212, 191, .22);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, .12);
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, .12);
  --info: #93b4ff;
  --info-soft: rgba(147, 180, 255, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.015em; }
h1 { font-size: 21px; } h2 { font-size: 15.5px; } h3 { font-size: 14px; }
code { font-family: var(--mono); font-size: 12px; background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }
.i { flex-shrink: 0; vertical-align: middle; }
.num, .money { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 12px; }
::selection { background: var(--accent-ring); }

/* ---------- layout ---------- */
.layout { display: flex; height: 100vh; }
.sidebar { width: 236px; background: var(--sidebar-bg, var(--sidebar)); color: var(--sidebar-ink); display: flex; flex-direction: column; flex-shrink: 0; }
.brand { padding: 16px 14px; border-bottom: 1px solid var(--sidebar-line); display: flex; gap: 10px; align-items: center; }
.brand .logo { width: 38px; height: 38px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: var(--on-grad, #fff); font-weight: 700; font-size: 16px; flex-shrink: 0; overflow: hidden; }
.brand .logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.brand .bt { min-width: 0; }
.brand b { color: var(--sidebar-head, #fff); font-size: 14.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--sidebar-muted, #6b7588); }
.nav { flex: 1; overflow-y: auto; padding: 8px 10px; scrollbar-width: thin; scrollbar-color: #253047 transparent; }
.nav .group { padding: 14px 8px 5px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--sidebar-muted, #5b6578); font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7.5px 10px; color: var(--sidebar-ink); font-size: 13.5px; border-radius: 8px; margin: 1px 0; transition: background .12s, color .12s; }
.nav a:hover { background: var(--sidebar-2); color: var(--sidebar-hover-ink, #fff); }
.nav a.active { background: var(--nav-active-bg, linear-gradient(90deg, rgba(20, 184, 166, .22), rgba(20, 184, 166, .06))); color: var(--nav-active-ink, #fff); box-shadow: inset 2px 0 0 var(--nav-active-bar, #2dd4bf); font-weight: 550; }
.nav a .ico { width: 18px; display: inline-flex; justify-content: center; opacity: .85; }
.nav a.active .ico { color: var(--nav-active-ico, #5eead4); opacity: 1; }
.userbox { padding: 12px 14px; border-top: 1px solid var(--sidebar-line); font-size: 12.5px; display: flex; align-items: center; gap: 10px; }
.userbox .av { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: var(--on-grad, #fff); font-weight: 600; flex-shrink: 0; }
.userbox .who { flex: 1; min-width: 0; }
.userbox b { color: var(--sidebar-head, #fff); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.userbox .ub { background: none; border: 0; color: var(--sidebar-ink); cursor: pointer; padding: 6px; border-radius: 6px; display: inline-flex; }
.userbox .ub:hover { background: var(--sidebar-2); color: var(--sidebar-hover-ink, #fff); }
.main { flex: 1; overflow-y: auto; }
.page { padding: 22px 28px 48px; max-width: 1440px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.btn.menu-toggle { display: none; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card-head { padding: 13px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 14px; }
.kpis { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.kpi { padding: 15px 18px; position: relative; overflow: hidden; }
.kpi .label { font-size: 12px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; padding-right: 40px; flex-wrap: wrap; }
.kpi .value { font-family: var(--mono); font-size: 23px; font-weight: 600; margin-top: 6px; letter-spacing: -.02em; }
.kpi .sub { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.kpi.alert .value { color: var(--warn); }
a.kpi, a.card { color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.kpi:hover, a.card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: 2fr 1fr; }

/* ---------- forms ---------- */
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--input); border: 1px solid var(--input-line); border-radius: var(--radius-sm); padding: 8px 11px; outline: none; width: 100%; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
input[type=color] { padding: 2px; height: 38px; }
.check { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-all { grid-column: 1 / -1; }
.btn { font: inherit; font-weight: 550; border: 1px solid var(--input-line); background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); box-shadow: 0 1px 2px var(--accent-shadow, rgba(15, 118, 110, .3)); }
html[data-theme="dark"] .btn.primary { color: var(--on-accent, #042f2e); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn.wa:hover { background: #1ebe5b; border-color: #1ebe5b; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn.lg { padding: 12px 20px; font-size: 15px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
table.t td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr:hover td { background: var(--surface-2); }
table.t td.num, table.t th.num { text-align: right; }
table.t tfoot td { font-weight: 600; background: var(--surface-2); }
.empty { padding: 36px; text-align: center; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 550; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--accent-soft); color: var(--accent); }
.veg { color: #16a34a; } .non_veg { color: #dc2626; } .egg { color: #d97706; }

/* ---------- toolbar / tabs ---------- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.toolbar input, .toolbar select { width: auto; min-width: 150px; }
.toolbar input[type=checkbox], .toolbar input[type=radio] { min-width: 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: inherit; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 14, 22, .5); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; z-index: 50; overflow-y: auto; animation: fade .15s ease; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; width: 100%; max-width: 640px; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
.modal.lg { max-width: 960px; } .modal.xl { max-width: 1240px; } .modal.sm { max-width: 440px; }
.modal-head { padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-body { padding: 20px; }
.modal-foot { padding: 13px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; align-items: center; background: var(--surface-2); border-radius: 0 0 16px 16px; }
.x { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); margin-left: auto; line-height: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

#toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: #111827; color: #fff; padding: 11px 15px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-lg); max-width: 400px; animation: slide .2s ease; }
.toast.error { background: #c02626; }
.toast.ok { background: #15803d; }
@keyframes slide { from { transform: translateY(8px); opacity: 0; } }

/* ---------- auth: login / signup ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1.05fr) 1fr; background: var(--bg); }
.auth-side { position: relative; overflow: hidden; background: #0c1220; color: #e2e8f0; padding: 44px 52px; display: flex; flex-direction: column; }
.auth-side::before { content: ''; position: absolute; width: 620px; height: 620px; right: -220px; top: -180px; background: radial-gradient(circle, rgba(20, 184, 166, .38), transparent 62%); }
.auth-side::after { content: ''; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -220px; background: radial-gradient(circle, rgba(59, 130, 246, .22), transparent 62%); }
.auth-side > * { position: relative; z-index: 1; }
.auth-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: #fff; }
.auth-logo .mark { width: 38px; height: 38px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.auth-side h2 { font-size: 34px; line-height: 1.15; color: #fff; margin: 56px 0 14px; letter-spacing: -.03em; font-weight: 700; }
.auth-side h2 em { font-style: normal; background: linear-gradient(90deg, #5eead4, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-side p.lead { color: #94a3b8; font-size: 15px; line-height: 1.6; max-width: 460px; margin: 0; }
.auth-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; color: #cbd5e1; font-size: 14px; line-height: 1.45; }
.auth-points li .pi { width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); display: grid; place-items: center; color: #5eead4; flex-shrink: 0; }
.auth-points li b { color: #fff; display: block; font-weight: 600; }
.auth-foot { margin-top: auto; padding-top: 30px; color: #64748b; font-size: 12.5px; display: flex; gap: 16px; flex-wrap: wrap; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 26px; letter-spacing: -.025em; }
.auth-card .sub { color: var(--muted); margin: 6px 0 24px; }
.auth-card .btn.lg { width: 100%; justify-content: center; }
.auth-alt { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); text-align: center; font-size: 13.5px; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
/* old class names kept for reset-password */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.login { width: 100%; max-width: 400px; padding: 28px; }
.login h1 { font-size: 22px; margin-bottom: 4px; }

.signup-wrap { min-height: 100vh; background: var(--bg); }
.signup { max-width: 820px; margin: 0 auto; padding: 30px; }
.steps { display: flex; gap: 8px; margin: 4px 0 20px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps span.on { background: var(--grad); }
.type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.type-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; background: var(--surface); color: var(--ink); text-align: left; font: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; }
.type-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.type-card.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-ring); }
.type-card.on::after { content: '✓'; position: absolute; top: 10px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; display: grid; place-items: center; }
.type-card .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); }
.type-card.on .ico { background: var(--accent); color: #fff; }
.type-card b { display: block; margin: 10px 0 3px; }
.type-card span { font-size: 12px; color: var(--ink-2); line-height: 1.4; }

/* ---------- plans ---------- */
.plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.plan-card { border: 1.5px solid var(--line); border-radius: 16px; padding: 20px; background: var(--surface); color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.plan-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.plan-card .price { font-family: var(--mono); font-size: 30px; font-weight: 650; letter-spacing: -.03em; }
.plan-card .per { font-size: 13px; color: var(--muted); }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; }

/* ---------- POS ---------- */
.pos { display: grid; grid-template-columns: 1fr 430px; height: 100%; }
.pos-left { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); }
.pos-top { padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pos-search { position: relative; flex: 1; min-width: 220px; }
.pos-search input { padding: 11px 13px; font-size: 15px; border-radius: 10px; }
.suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 20; max-height: 380px; overflow-y: auto; }
.suggest div { padding: 9px 13px; cursor: pointer; display: flex; gap: 8px; }
.suggest div.on, .suggest div:hover { background: var(--accent-soft); }
.cats { display: flex; gap: 6px; padding: 10px 16px; overflow-x: auto; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.chip { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; font-size: 13px; font: inherit; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tiles { flex: 1; overflow-y: auto; padding: 14px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; align-content: start; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-height: 92px; user-select: none; transition: border-color .12s, box-shadow .12s, transform .08s; }
.tile:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.tile:active { transform: scale(.98); }
.tile img { width: 100%; height: 74px; object-fit: cover; border-radius: 8px; }
.tile .n { font-weight: 550; font-size: 13px; line-height: 1.25; }
.tile .p { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-top: auto; font-weight: 600; }
.tile .s { font-size: 11px; color: var(--muted); }
.tile.out { opacity: .5; }
.pos-right { display: flex; flex-direction: column; background: var(--surface); min-height: 0; }
.cart-head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.cart { flex: 1; overflow-y: auto; }
.cart-item { padding: 9px 14px; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; }
.cart-item .nm { font-weight: 550; }
.cart-item .ctl { display: flex; gap: 6px; align-items: center; grid-column: 1 / -1; }
.cart-item .ctl input { width: 76px; padding: 5px 7px; text-align: right; font-family: var(--mono); }
.qtybtn { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; cursor: pointer; font-size: 15px; }
.qtybtn:hover { border-color: var(--accent); color: var(--accent); }
.totals { padding: 11px 14px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 13px; }
.totals .l { display: flex; justify-content: space-between; padding: 2px 0; }
.totals .grand { font-size: 23px; font-weight: 700; padding-top: 7px; margin-top: 5px; border-top: 1px dashed var(--input-line); }
.pay-actions { padding: 11px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); }
.pay-actions .btn.lg { justify-content: center; }
.pay-actions .full { grid-column: 1 / -1; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.method-grid button { padding: 12px 8px; justify-content: center; }
.method-grid button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.method-grid button.pts { border-style: dashed; border-color: #d97706; color: #b45309; }
.method-grid button.pts.on { background: #d97706; color: #fff; border-style: solid; }
.pay-lines .pl { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.bigtotal { font-family: var(--mono); font-size: 32px; font-weight: 650; letter-spacing: -.02em; }
.pts-box { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(245, 158, 11, .14), rgba(245, 158, 11, .04)); border: 1px solid rgba(217, 119, 6, .25); font-size: 13px; }
.pts-box .i { color: #d97706; }

/* sale done */
.done { text-align: center; padding: 8px 4px 4px; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; animation: pop .3s ease; }
.done .amt { font-family: var(--mono); font-size: 30px; font-weight: 700; margin: 6px 0 2px; }
.done-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.done-actions .btn { justify-content: center; flex-direction: column; padding: 14px 8px; gap: 6px; }

/* restaurant floor */
.floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.table-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); cursor: pointer; min-height: 104px; display: flex; flex-direction: column; gap: 4px; transition: border-color .12s, box-shadow .12s; }
.table-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.table-card.occupied { border-color: var(--warn); background: var(--warn-soft); }
.table-card b { font-size: 18px; }
.table-card .badge { align-self: flex-start; white-space: normal; }
.kds { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }

/* ---------- charts ---------- */
.chart-bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 8px; }
.chart-bars div { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; opacity: .8; }
.chart-bars div:hover { opacity: 1; }
.chart-bars div:hover::after { content: attr(data-t); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--surface); font-size: 11px; padding: 3px 7px; border-radius: 5px; white-space: nowrap; margin-bottom: 4px; z-index: 2; }
.spark { width: 100%; height: 190px; display: block; }
.spark .area { fill: url(#sg); }
.spark .ln { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.spark .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.spark .dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.spark text { fill: var(--muted); font-size: 10.5px; font-family: Inter, sans-serif; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--surface); font-size: 12px; padding: 6px 9px; border-radius: 7px; white-space: nowrap; transform: translate(-50%, -115%); box-shadow: var(--shadow-lg); }

/* ---------- dashboard ---------- */
.hello { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.hello h1 { font-size: 24px; }
.trend { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.trend.up { color: var(--ok); background: var(--ok-soft); }
.trend.down { color: var(--danger); background: var(--danger-soft); }
.kpi .kico { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.kpi.hero { background: var(--grad); color: var(--on-grad, #fff); border: 0; }
.kpi.hero .label, .kpi.hero .sub { color: inherit; opacity: .86; }
.kpi.hero .kico { background: rgba(255, 255, 255, .2); color: inherit; }
.kpi.hero .trend.up, .kpi.hero .trend.down { background: rgba(255, 255, 255, .2); color: #fff; }
.insights { display: flex; flex-direction: column; }
.insight { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); color: inherit; align-items: flex-start; }
.insight:last-child { border-bottom: 0; }
a.insight:hover { background: var(--surface-2); }
.insight .em { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; background: var(--surface-3); }
.insight.bad .em { background: var(--danger-soft); } .insight.warn .em { background: var(--warn-soft); }
.insight.good .em { background: var(--ok-soft); } .insight.info .em { background: var(--info-soft); }
.insight b { display: block; font-weight: 600; font-size: 13.5px; }
.insight span { color: var(--ink-2); font-size: 12.5px; line-height: 1.45; }
.rank { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.rank .r { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.rank .r .n { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-3); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.rank .r:first-child .n { background: #fde68a; color: #92400e; }
.rank .bar { height: 6px; border-radius: 6px; background: var(--surface-3); margin-top: 5px; overflow: hidden; }
.rank .bar i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }
.pm-list { padding: 8px 18px 16px; display: flex; flex-direction: column; gap: 11px; }
.pm-list .pm { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.pm-list .track { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.pm-list .track i { display: block; height: 100%; border-radius: 8px; }

/* ---------- misc ---------- */
.upi-box { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px dashed var(--accent); border-radius: 12px; background: var(--accent-soft); }
.upi-box img { background: #fff; padding: 6px; border-radius: 8px; flex-shrink: 0; }
.main-col { flex: 1; display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.main-col .main { flex: 1; min-height: 0; }
.sub-banner { display: flex; align-items: center; gap: 10px; padding: 8px 22px; font-size: 13px; border-bottom: 1px solid var(--line); }
.sub-banner.trial { background: var(--accent-soft); color: var(--accent-2); }
html[data-theme="dark"] .sub-banner.trial { color: var(--accent); }
.sub-banner.expired { background: var(--danger-soft); color: var(--danger); }
.logo-preview { width: 72px; height: 72px; border-radius: 14px; border: 1px dashed var(--input-line); display: grid; place-items: center; overflow: hidden; background: var(--surface-2); color: var(--muted); flex-shrink: 0; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.section-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--info-soft); color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }

@media (max-width: 1100px) {
  .pos { grid-template-columns: 1fr 370px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; z-index: 40; height: 100vh; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .btn.menu-toggle { display: inline-flex; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .pos { grid-template-columns: 1fr; height: auto; }
  .pos-left { height: 60vh; }
  .page { padding: 16px; }
  .form-grid .span-2 { grid-column: 1 / -1; }
  .done-actions { grid-template-columns: 1fr; }
}

/* =====================================================================
   Public landing page
   ===================================================================== */
.lp { background: #fff; color: #0f172a; font-size: 15px; }
html[data-theme="dark"] .lp { background: #fff; color: #0f172a; }
.lp a { color: inherit; }
.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.lp-nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); border-bottom: 1px solid #eef0f3; }
.lp-nav .lp-wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.lp-nav .links { display: flex; gap: 26px; font-size: 14px; color: #475569; }
.lp-nav .links a:hover { color: #0f172a; }
.lp-logo { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; letter-spacing: -.02em; }
.lp-logo .mark { width: 36px; height: 36px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.lp .btn { font-size: 14px; }
.lp .btn.primary { background: #0f766e; border-color: #0f766e; color: #fff; }
.lp .btn.primary:hover { background: #0b5f58; }
.lp .btn.outline { background: #fff; border-color: #cbd5e1; color: #0f172a; }
.lp-hero { position: relative; overflow: hidden; padding: 76px 0 40px; background: radial-gradient(1000px 500px at 85% -10%, #ccfbf1 0, transparent 60%), radial-gradient(800px 420px at -10% 10%, #e0f2fe 0, transparent 55%); }
.lp-hero .lp-wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid #d1fae5; font-size: 13px; color: #0f766e; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.lp-pill b { background: #0f766e; color: #fff; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; }
.lp-hero h1 { font-size: 54px; line-height: 1.05; letter-spacing: -.04em; margin: 20px 0 18px; font-weight: 800; color: #0b1220; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(90deg, #0f766e, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero p.lead { font-size: 18px; line-height: 1.6; color: #475569; margin: 0 0 28px; max-width: 540px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.lp-cta .btn.lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.lp-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; color: #64748b; }
.lp-trust span { display: inline-flex; align-items: center; gap: 6px; }
.lp-trust .i { color: #0f766e; }
/* product mockup */
.mock { position: relative; }
.mock-win { background: #0c1220; border-radius: 18px; padding: 12px; box-shadow: 0 40px 80px -20px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .08); transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); }
.mock-bar { display: flex; gap: 6px; padding: 2px 4px 10px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.mock-body { background: #f5f6f8; border-radius: 10px; display: grid; grid-template-columns: 1fr 190px; min-height: 330px; overflow: hidden; font-size: 11px; color: #0f172a; }
.mock-tiles { padding: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.mock-tiles div { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px; height: 62px; display: flex; flex-direction: column; justify-content: space-between; }
.mock-tiles div b { font-weight: 600; }
.mock-tiles div span { color: #0f766e; font-family: var(--mono); font-weight: 600; }
.mock-cart { background: #fff; border-left: 1px solid #e5e7eb; padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.mock-cart .li { display: flex; justify-content: space-between; border-bottom: 1px dashed #e5e7eb; padding-bottom: 5px; }
.mock-cart .tot { margin-top: auto; font-size: 18px; font-weight: 800; font-family: var(--mono); display: flex; justify-content: space-between; }
.mock-cart .pay { background: #0f766e; color: #fff; text-align: center; border-radius: 8px; padding: 8px; font-weight: 700; }
.float-card { position: absolute; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .3); padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: #0f172a; }
.float-card .fi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.float-card b { display: block; font-size: 13.5px; }
.float-card small { color: #64748b; }
.fc-1 { left: -28px; bottom: 34px; animation: bob 5s ease-in-out infinite; }
.fc-2 { right: -18px; top: -18px; animation: bob 6s ease-in-out infinite .8s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.lp-types { padding: 34px 0 10px; }
.lp-types .lp-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lp-type { border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px; display: flex; gap: 12px; align-items: center; background: #fff; transition: transform .15s, box-shadow .15s; }
.lp-type:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(15, 23, 42, .25); }
.lp-type .ti { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.lp-type b { display: block; }
.lp-type span { font-size: 12.5px; color: #64748b; }
.lp-sec { padding: 84px 0; }
.lp-sec.alt { background: #f8fafc; border-top: 1px solid #eef1f5; border-bottom: 1px solid #eef1f5; }
.lp-sec .eyebrow { color: #0f766e; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.lp-sec h2 { font-size: 38px; letter-spacing: -.035em; line-height: 1.12; margin: 10px 0 12px; font-weight: 800; color: #0b1220; }
.lp-sec .intro { color: #475569; font-size: 17px; max-width: 640px; line-height: 1.6; margin: 0 0 40px; }
.lp-center { text-align: center; }
.lp-center .intro { margin-left: auto; margin-right: auto; }
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-feat { background: #fff; border: 1px solid #e8ecf1; border-radius: 18px; padding: 24px; transition: transform .15s, box-shadow .15s; }
.lp-feat:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .25); }
.lp-feat .fi { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; }
.lp-feat h3 { font-size: 17px; margin-bottom: 6px; color: #0b1220; }
.lp-feat p { color: #64748b; margin: 0; line-height: 1.55; font-size: 14.5px; }
.lp-feat .tag { display: inline-block; margin-top: 12px; font-size: 11.5px; font-weight: 700; color: #0f766e; background: #ecfdf5; padding: 3px 9px; border-radius: 999px; }
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.lp-list li { display: flex; gap: 12px; }
.lp-list li .ck { width: 24px; height: 24px; border-radius: 50%; background: #ccfbf1; color: #0f766e; display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.lp-list li b { display: block; color: #0b1220; }
.lp-list li span { color: #64748b; font-size: 14.5px; line-height: 1.5; }
.phone { width: 270px; margin: 0 auto; background: #0b1220; border-radius: 36px; padding: 12px; box-shadow: 0 40px 80px -24px rgba(15, 23, 42, .45); }
.phone-in { background: #e5ddd5; border-radius: 26px; overflow: hidden; min-height: 470px; font-size: 12px; color: #111; }
.phone-top { background: #075e54; color: #fff; padding: 14px 14px 12px; display: flex; gap: 10px; align-items: center; }
.phone-top .av { width: 30px; height: 30px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-weight: 700; }
.bubble { background: #dcf8c6; margin: 12px 12px 0 36px; padding: 10px 12px; border-radius: 10px 0 10px 10px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); white-space: pre-line; }
.bubble .lk { color: #0369a1; text-decoration: underline; word-break: break-all; }
.menu-phone .phone-in { background: #fff; }
.menu-phone .mh { padding: 18px 14px 12px; background: var(--grad); color: #fff; }
.menu-phone .mc { display: flex; gap: 6px; padding: 10px 12px; overflow: hidden; }
.menu-phone .mc span { padding: 4px 10px; border-radius: 999px; border: 1px solid #e2e8f0; white-space: nowrap; font-size: 11px; }
.menu-phone .mc span.on { background: #0f172a; color: #fff; border-color: #0f172a; }
.menu-phone .mi { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #f1f5f9; }
.menu-phone .mi b { display: block; font-size: 12.5px; }
.menu-phone .mi small { color: #64748b; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.lp-step { padding: 26px; border-radius: 18px; background: #fff; border: 1px solid #e8ecf1; position: relative; }
.lp-step::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: #0b1220; color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.lp-step h3 { font-size: 17px; margin-bottom: 6px; color: #0b1220; }
.lp-step p { margin: 0; color: #64748b; line-height: 1.55; font-size: 14.5px; }
.lp-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.lp-price { border: 1px solid #e2e8f0; border-radius: 20px; padding: 28px; background: #fff; display: flex; flex-direction: column; text-align: left; position: relative; }
.lp-price.best { border: 2px solid #0f766e; box-shadow: 0 30px 60px -30px rgba(15, 118, 110, .45); }
.lp-price .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #0f766e; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.lp-price h3 { font-size: 18px; color: #0b1220; }
.lp-price .amt { font-size: 42px; font-weight: 800; letter-spacing: -.04em; margin: 12px 0 2px; color: #0b1220; }
.lp-price .amt small { font-size: 15px; font-weight: 500; color: #64748b; letter-spacing: 0; }
.lp-price .save { color: #15803d; font-weight: 600; font-size: 13px; min-height: 18px; }
.lp-price ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; font-size: 14px; color: #334155; }
.lp-price ul li { display: flex; gap: 8px; align-items: center; }
.lp-price ul .i { color: #0f766e; }
.lp-price .btn { justify-content: center; margin-top: auto; }
.lp-faq { max-width: 780px; margin: 0 auto; }
.lp-faq details { border-bottom: 1px solid #e2e8f0; padding: 18px 4px; }
.lp-faq summary { cursor: pointer; font-weight: 650; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: #0b1220; }
.lp-faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: #0f766e; }
.lp-faq details[open] summary::after { content: '–'; }
.lp-faq details p { color: #475569; line-height: 1.6; margin: 10px 0 0; }
.lp-band { background: #0b1220; color: #fff; border-radius: 26px; padding: 54px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; position: relative; overflow: hidden; }
.lp-band::before { content: ''; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(20, 184, 166, .45), transparent 65%); }
.lp-band > * { position: relative; }
.lp-band h2 { color: #fff; margin: 0 0 6px; }
.lp-band p { color: #94a3b8; margin: 0; font-size: 16px; }
.lp-foot { padding: 40px 0; color: #64748b; font-size: 13.5px; border-top: 1px solid #eef1f5; margin-top: 84px; }
.lp-foot .lp-wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
@media (max-width: 980px) {
  .lp-hero .lp-wrap, .lp-split { grid-template-columns: 1fr; }
  .lp-hero h1 { font-size: 40px; }
  .lp-features, .lp-steps { grid-template-columns: 1fr 1fr; }
  .lp-types .lp-wrap { grid-template-columns: 1fr 1fr; }
  .lp-nav .links { display: none; }
  .mock-win { transform: none; }
  .fc-1 { left: 8px; } .fc-2 { right: 8px; }
}
@media (max-width: 620px) {
  .lp-nav .lp-wrap { gap: 10px; }
  .lp-nav .btn.primary { display: none; }
  .lp-features, .lp-steps, .lp-types .lp-wrap { grid-template-columns: 1fr; }
  .lp-sec { padding: 60px 0; }
  .lp-sec h2 { font-size: 30px; }
  .lp-band { padding: 32px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-cart { display: none; }
}

/* =====================================================================
   Landing: business-type switcher in the hero
   ===================================================================== */
.lp-hero h1 .rot { display: inline-block; position: relative; }
.lp-hero h1 .rot em { display: inline-block; animation: rotIn .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes rotIn { from { transform: translateY(40%) rotateX(-70deg); opacity: 0; } }
.lp-switch { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: -6px 0 26px; }
.lp-switch > span { font-size: 13px; color: #64748b; font-weight: 600; margin-right: 2px; white-space: nowrap; }
.lp-switch button { font: inherit; font-size: 13.5px; font-weight: 600; display: inline-flex; gap: 7px; align-items: center; padding: 8px 13px; border-radius: 999px; border: 1.5px solid #e2e8f0; background: #fff; color: #334155; cursor: pointer; transition: all .2s; }
.lp-switch button .i { color: var(--tc); }
.lp-switch button:hover { border-color: var(--tc); }
.lp-switch button.on { background: var(--tc); border-color: var(--tc); color: #fff; box-shadow: 0 8px 20px -8px var(--tc); }
.lp-switch button.on .i { color: #fff; }
.mock-head { display: flex; align-items: center; gap: 8px; padding: 0 6px 10px; color: #cbd5e1; font-size: 12px; font-weight: 600; }
.mock-head .dotc { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: #fff; background: var(--tc, #0f766e); transition: background .3s; }
.mock-body.swap .mock-tiles div, .mock-body.swap .mock-cart > * { animation: mockIn .45s ease both; }
.mock-body.swap .mock-tiles div:nth-child(3n+2) { animation-delay: .05s; } .mock-body.swap .mock-tiles div:nth-child(3n) { animation-delay: .1s; }
@keyframes mockIn { from { opacity: 0; transform: translateY(6px); } }
.mock-tiles div small { color: #94a3b8; font-size: 9.5px; }
.mock-tiles div .rx { color: #dc2626; font-size: 9px; font-weight: 700; margin-left: 3px; }
.mock-cart .pay { background: var(--tc, #0f766e); transition: background .3s; }
.mock-cart .li small { display: block; color: #94a3b8; font-size: 9.5px; }

.lp-biz { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; }
.lp-biz .bz { border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.lp-biz .bz:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(15, 23, 42, .35); }
.lp-biz .bh { padding: 20px; color: #fff; background: var(--tc); position: relative; overflow: hidden; }
.lp-biz .bh::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.lp-biz .bh .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; margin-bottom: 12px; }
.lp-biz .bh b { font-size: 18px; display: block; }
.lp-biz .bh small { opacity: .9; font-size: 13px; }
.lp-biz ul { list-style: none; margin: 0; padding: 18px 20px 6px; display: grid; gap: 10px; font-size: 14px; color: #334155; }
.lp-biz ul li { display: flex; gap: 8px; align-items: flex-start; }
.lp-biz ul li .i { color: var(--tc); margin-top: 2px; }
.lp-biz a.go { margin: auto 20px 20px; padding-top: 12px; font-weight: 700; color: var(--tc); display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
@media (max-width: 980px) { .lp-biz { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .lp-biz { grid-template-columns: 1fr; } .lp-switch button { padding: 7px 11px; font-size: 13px; } }

/* =====================================================================
   Landing: 3D feature film
   ===================================================================== */
.show { --sc: 1; position: relative; background: radial-gradient(1200px 500px at 50% 110%, #134e4a 0, transparent 60%), linear-gradient(180deg, #060a12, #0b1220 60%, #0a1a1f); border-radius: 28px; overflow: hidden; padding: 30px 24px 22px; color: #e2e8f0; text-align: left; margin: 0 auto 48px; box-shadow: 0 50px 100px -40px rgba(2, 6, 23, .7); isolation: isolate; }
.show-floor { position: absolute; left: -50%; right: -50%; bottom: -40%; height: 90%; background-image: linear-gradient(rgba(45, 212, 191, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(45, 212, 191, .18) 1px, transparent 1px); background-size: 60px 60px; transform: perspective(600px) rotateX(72deg); transform-origin: top; mask-image: linear-gradient(to top, #000 10%, transparent 75%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 75%); animation: floorMove 6s linear infinite; z-index: -1; }
@keyframes floorMove { to { background-position: 0 60px; } }
.show-glow { position: absolute; width: 560px; height: 560px; left: 50%; top: 42%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(20, 184, 166, .35), transparent 62%); filter: blur(10px); z-index: -1; transition: background 1s; }
.show[data-scene="upi"] .show-glow { background: radial-gradient(circle, rgba(124, 58, 237, .38), transparent 62%); }
.show[data-scene="whatsapp"] .show-glow { background: radial-gradient(circle, rgba(37, 211, 102, .32), transparent 62%); }
.show[data-scene="loyalty"] .show-glow { background: radial-gradient(circle, rgba(245, 158, 11, .35), transparent 62%); }
.show[data-scene="qrmenu"] .show-glow { background: radial-gradient(circle, rgba(249, 115, 22, .33), transparent 62%); }
.show[data-scene="insights"] .show-glow { background: radial-gradient(circle, rgba(244, 63, 94, .3), transparent 62%); }
.show[data-scene="stock"] .show-glow { background: radial-gradient(circle, rgba(59, 130, 246, .35), transparent 62%); }
.show-viewport { position: relative; width: 100%; height: 560px; }
.show-stage { position: absolute; left: 50%; top: 0; width: 1080px; height: 600px; margin-left: -540px; transform: scale(var(--sc)); transform-origin: top center; perspective: 1700px; }
.show-rig { --ry: -17deg; --rx: 7deg; position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 1.6s cubic-bezier(.45, .05, .2, 1); animation: rigFloat 7s ease-in-out infinite; }
@keyframes rigFloat { 50% { translate: 0 -10px; } }
.show.paused .show-rig, .show.paused .show-floor { animation-play-state: paused; }

/* laptop */
.lap { position: absolute; left: 30px; top: 40px; width: 700px; transform-style: preserve-3d; transform: translateZ(0); }
.lap-lid { position: relative; width: 700px; height: 440px; background: linear-gradient(145deg, #1e293b, #0f172a); border-radius: 18px 18px 6px 6px; padding: 16px; box-shadow: 0 0 0 1.5px #334155 inset, 0 40px 70px -20px rgba(0, 0, 0, .8); }
.lap-cam { position: absolute; top: 6px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: #334155; }
.lap-scr { position: relative; width: 100%; height: 100%; border-radius: 8px; overflow: hidden; background: #f5f6f8; }
.lap-scr::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0, rgba(255, 255, 255, 0) 35%); pointer-events: none; z-index: 5; }
.lap-base { width: 820px; height: 20px; margin-left: -60px; background: linear-gradient(#cbd5e1, #64748b); border-radius: 0 0 22px 22px; transform: rotateX(78deg); transform-origin: top; position: relative; box-shadow: 0 30px 40px -10px rgba(0, 0, 0, .7); }
.lap-base i { position: absolute; left: 50%; top: 0; width: 120px; height: 7px; margin-left: -60px; background: #94a3b8; border-radius: 0 0 8px 8px; }
/* phone */
.phn { position: absolute; left: 800px; top: 80px; width: 220px; height: 440px; border-radius: 38px; padding: 11px; background: linear-gradient(145deg, #334155, #0f172a); box-shadow: 0 0 0 1.5px #475569 inset, 0 40px 70px -20px rgba(0, 0, 0, .85); transform: translateZ(70px) rotateY(-8deg); }
.phn-notch { position: absolute; top: 18px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 12px; background: #020617; z-index: 6; }
.phn-scr { position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: #fff; }
.orb { position: absolute; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff; box-shadow: 0 20px 30px -10px rgba(0, 0, 0, .6); }
.o1 { left: 20px; top: 380px; background: linear-gradient(135deg, #14b8a6, #0f766e); transform: translateZ(200px); animation: orb 5s ease-in-out infinite; }
.o2 { left: 1010px; top: 40px; background: linear-gradient(135deg, #f59e0b, #d97706); transform: translateZ(180px); animation: orb 6s ease-in-out infinite 1s; }
.o3 { left: 40px; top: 30px; background: linear-gradient(135deg, #8b5cf6, #6d28d9); transform: translateZ(160px); animation: orb 7s ease-in-out infinite .5s; }
@keyframes orb { 50% { translate: 0 -16px; } }

/* scenes */
.sc { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; font-family: Inter, sans-serif; color: #0f172a; font-size: 11px; }
.sc.on { opacity: 1; }
.sc b { font-weight: 700; }
.sc small { color: #64748b; }
.sc .i { vertical-align: -2px; }
/* shared mini UI */
.ui { position: absolute; inset: 0; display: flex; background: #f5f6f8; }
.ui-dim::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #eef1f4 0 90px, #f5f6f8 90px 96px); }
.ui-dim::after { content: ''; position: absolute; inset: 0; background: rgba(10, 14, 22, .45); }
.ui-side { width: 42px; background: #0c1220; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 14px; color: #64748b; }
.ui-side i.on { color: #5eead4; background: rgba(20, 184, 166, .18); border-radius: 7px; padding: 5px; }
.ui-main { flex: 1; padding: 12px; min-width: 0; }
.ui-search { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; color: #94a3b8; }
.ui-chips { display: flex; gap: 6px; margin: 10px 0; }
.ui-chips span { padding: 3px 9px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; font-size: 10px; }
.ui-chips span.on { background: #0f172a; color: #fff; }
.ui-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tl { background: #fff; border: 1px solid #e5e7eb; border-radius: 9px; padding: 9px; height: 70px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.tl span { color: #0f766e; font-family: var(--mono); font-weight: 700; }
.sc.on .tap { animation: tap .5s ease both; }
.sc.on .tap0 { animation-delay: .7s; } .sc.on .tap1 { animation-delay: 1.3s; } .sc.on .tap2 { animation-delay: 1.9s; }
@keyframes tap { 40% { transform: scale(.92); border-color: #14b8a6; box-shadow: 0 0 0 4px rgba(20, 184, 166, .3); } 100% { border-color: #14b8a6; } }
.ui-cart { width: 210px; background: #fff; border-left: 1px solid #e5e7eb; padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.ui-cart .ch small { display: block; }
.cl { display: flex; justify-content: space-between; border-bottom: 1px dashed #e5e7eb; padding-bottom: 5px; opacity: 0; }
.sc.on .cl { animation: slideIn .4s ease forwards; }
.sc.on .l0 { animation-delay: .95s; } .sc.on .l1 { animation-delay: 1.55s; } .sc.on .l2 { animation-delay: 2.15s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.ct { display: flex; justify-content: space-between; color: #64748b; margin-top: auto; }
.tt { display: flex; justify-content: space-between; font-size: 18px; border-top: 2px solid #0f172a; padding-top: 6px; }
.tt b { font-family: var(--mono); }
.pb { background: #0f766e; color: #fff; border-radius: 8px; padding: 9px; text-align: center; font-weight: 700; }
.sc.on .pb { animation: pulse 1.2s ease 3s 2; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(20, 184, 166, .35); transform: scale(1.03); } }
/* modal */
.smodal { position: absolute; z-index: 2; left: 50%; top: 50%; width: 560px; transform: translate(-50%, -50%); background: #fff; border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); overflow: hidden; }
.smodal.sm { width: 320px; }
.sc.on .smodal { animation: modalIn .55s cubic-bezier(.2, .8, .2, 1) .15s both; }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -44%) scale(.94); } }
.smodal .mh { padding: 10px 14px; border-bottom: 1px solid #eef0f3; font-weight: 700; font-size: 12.5px; display: flex; justify-content: space-between; align-items: center; }
.smodal .mb { display: flex; gap: 14px; padding: 14px; }
.smodal .mb.col { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.mleft { flex: 1.2; display: flex; flex-direction: column; gap: 8px; }
.mright { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.smodal .big { font-family: var(--mono); font-size: 24px; font-weight: 800; }
.mg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mg span { border: 1px solid #e2e8f0; border-radius: 7px; padding: 6px 4px; text-align: center; font-weight: 600; font-size: 10px; }
.mg span.on { background: #0f766e; color: #fff; border-color: #0f766e; }
.mg span.pts { grid-column: 1 / -1; border: 1.5px dashed #d97706; color: #b45309; }
.sc.on .mg span.glow { animation: glow 1s ease .8s 3 alternate; }
@keyframes glow { to { background: #d97706; color: #fff; box-shadow: 0 0 16px rgba(217, 119, 6, .6); } }
.upi { display: flex; gap: 10px; align-items: center; border: 1px dashed #0f766e; border-radius: 10px; padding: 8px; background: #ecfdf5; }
.upi small { display: block; font-size: 9.5px; }
.sc.on .qrpop { animation: qrpop .6s cubic-bezier(.2, 1.4, .4, 1) .6s both; }
@keyframes qrpop { from { transform: scale(.4) rotate(-8deg); opacity: 0; } }
@keyframes popIn { from { transform: scale(.4) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.pl { display: flex; gap: 6px; align-items: center; justify-content: space-between; padding: 8px; border-radius: 8px; background: #f8fafc; border: 1px solid #eef0f3; opacity: 0; }
.pl .i { color: #16a34a; }
.sc.on .pl.paid { animation: slideIn .4s ease 3.1s forwards; }
.sc.on .pl.p1 { animation: slideIn .4s ease 2.2s forwards; } .sc.on .pl.p2 { animation: slideIn .4s ease 2.8s forwards; }
.pl.p1 .i { color: #d97706; }
.sdone { margin-top: auto; background: #0f766e; color: #fff; text-align: center; padding: 10px; border-radius: 9px; font-weight: 700; opacity: .5; }
.sc.on .sdone { animation: enable .3s ease 3.4s forwards; }
@keyframes enable { to { opacity: 1; box-shadow: 0 0 0 5px rgba(20, 184, 166, .25); } }
.ptsbox { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 9px; background: linear-gradient(90deg, rgba(245, 158, 11, .16), rgba(245, 158, 11, .04)); border: 1px solid rgba(217, 119, 6, .3); color: #78350f; }
.ptsbox .i { color: #d97706; flex-shrink: 0; }
.tick { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: #16a34a; }
.sc.on .tick { animation: qrpop .5s cubic-bezier(.2, 1.4, .4, 1) .4s both; }
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; width: 100%; margin-top: 8px; }
.acts span { border: 1px solid #e2e8f0; border-radius: 9px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 700; font-size: 10px; }
.acts .wa { background: #25d366; color: #fff; border-color: #25d366; }
.acts .nb { background: #0f766e; color: #fff; border-color: #0f766e; }
.sc.on .press { animation: press 1.4s ease .9s 1 both; }
@keyframes press { 30% { transform: scale(.9); box-shadow: 0 0 0 8px rgba(37, 211, 102, .35); } 60% { transform: scale(1); } }
/* QR cards */
.cards { position: absolute; inset: 14px 14px 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qc { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 16px rgba(15, 23, 42, .12); display: flex; flex-direction: column; opacity: 0; }
.sc.on .qc { animation: cardIn .5s cubic-bezier(.2, .8, .2, 1) forwards; }
.sc.on .c1 { animation-delay: .15s; } .sc.on .c2 { animation-delay: .3s; } .sc.on .c3 { animation-delay: .45s; } .sc.on .c4 { animation-delay: .6s; } .sc.on .c5 { animation-delay: .75s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) rotateX(30deg); } to { opacity: 1; transform: none; } }
.qh { background: #b45309; color: #fff; padding: 7px; display: flex; gap: 6px; align-items: center; font-size: 10px; }
.qh i { font-style: normal; width: 20px; height: 20px; border-radius: 6px; background: #fff; color: #b45309; display: grid; place-items: center; font-weight: 800; font-size: 8.5px; }
.qq { flex: 1; display: grid; place-items: center; }
.qf { background: #0f172a; color: #fff; text-align: center; font-weight: 800; padding: 4px; }
.printbar { position: absolute; right: 14px; bottom: 12px; background: #14b8a6; color: #042f2e; padding: 7px 12px; border-radius: 8px; font-weight: 700; }
/* dashboard */
.dash { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.dhello { font-size: 15px; font-weight: 800; }
.kp { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1fr; gap: 8px; }
.k { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 9px; position: relative; }
.k b { display: block; font-family: var(--mono); font-size: 16px; margin-top: 2px; }
.k b.w { color: #b45309; }
.k.hero { background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; border: 0; }
.k.hero small { color: rgba(255, 255, 255, .85); }
.k em { position: absolute; right: 8px; top: 8px; font-style: normal; font-size: 9px; font-weight: 700; background: rgba(255, 255, 255, .2); padding: 1px 6px; border-radius: 999px; }
.row2 { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 9px; min-height: 0; }
.chart { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px; }
.chart svg { width: 100%; height: 100%; }
.chart .ln { stroke-dasharray: 520; stroke-dashoffset: 520; }
.sc.on .chart .ln { animation: draw 2.2s ease .6s forwards; }
.chart .ar { opacity: 0; }
.sc.on .chart .ar { animation: fadeIn 1s ease 1.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.ins { display: flex; flex-direction: column; gap: 6px; }
.in { background: #fff; border: 1px solid #e5e7eb; border-radius: 9px; padding: 7px 8px; display: flex; gap: 7px; align-items: center; font-weight: 600; opacity: 0; }
.in span { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; flex-shrink: 0; }
.in.bad span { background: #fee2e2; } .in.warn span { background: #fef3c7; } .in.good span { background: #dcfce7; } .in.info span { background: #e0e7ff; }
.sc.on .in { animation: dropIn .45s cubic-bezier(.2, 1.3, .4, 1) forwards; }
.sc.on .i0 { animation-delay: .9s; } .sc.on .i1 { animation-delay: 1.3s; } .sc.on .i2 { animation-delay: 1.7s; } .sc.on .i3 { animation-delay: 2.1s; } .sc.on .i4 { animation-delay: 2.5s; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-12px) scale(.96); } to { opacity: 1; transform: none; } }
/* inventory + reports tables */
.inv, .rep { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ih { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.ih .stabs { display: flex; gap: 4px; font-size: 10.5px; }
.ih .stabs i { font-style: normal; padding: 4px 9px; border-radius: 7px; color: #64748b; }
.ih .stabs i.on { background: #fff; color: #0f766e; font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.ih .po { margin-left: auto; background: #0f766e; color: #fff; padding: 5px 10px; border-radius: 7px; font-size: 10.5px; font-weight: 700; }
.it, .gst { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 2fr 1.2fr 1.1fr 1fr; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #f1f5f9; align-items: center; }
.tr.th { background: #f8fafc; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; font-weight: 700; }
.inv .tr:not(.th) { opacity: 0; }
.sc.on .inv .tr:not(.th) { animation: slideIn .35s ease forwards; }
.sc.on .r0 { animation-delay: .3s; } .sc.on .r1 { animation-delay: .45s; } .sc.on .r2 { animation-delay: .6s; } .sc.on .r3 { animation-delay: .75s; } .sc.on .r4 { animation-delay: .9s; } .sc.on .r5 { animation-delay: 1.05s; }
.bd.ok { color: #15803d; } .bd.warn { color: #b45309; font-weight: 700; } .bd.bad { color: #dc2626; font-weight: 700; }
.sc.on .r0 { box-shadow: inset 3px 0 0 #14b8a6; }
.sc.on .inv .r0 { animation: slideIn .35s ease .3s forwards, hl 1s ease 2.2s 2 alternate; }
@keyframes hl { to { background: #ecfdf5; } }
.fefo { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; border-radius: 9px; padding: 8px 10px; opacity: 0; }
.sc.on .fefo { animation: slideIn .4s ease 2.2s forwards; }
.rg { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bars { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 12px 24px; display: flex; align-items: flex-end; gap: 7px; }
.bars i { flex: 1; height: 0; background: linear-gradient(#14b8a6, #0f766e); border-radius: 5px 5px 0 0; position: relative; }
.sc.on .bars i { animation: grow .8s cubic-bezier(.2, .8, .2, 1) var(--d) forwards; }
@keyframes grow { to { height: var(--h); } }
.bars i em { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 9px; color: #94a3b8; }
.gst { align-self: start; }
.gst .tr { grid-template-columns: 1fr 1.3fr 1fr 1fr; font-family: var(--mono); font-size: 10.5px; }
.gst .tr.th { font-family: Inter, sans-serif; }
.gst .tr.tot { font-weight: 800; background: #f0fdfa; color: #0f766e; }
.gst .tr:not(.th) { opacity: 0; }
.sc.on .gst .tr:not(.th) { animation: slideIn .35s ease forwards; }
.sc.on .g0 { animation-delay: 1.2s; } .sc.on .g1 { animation-delay: 1.4s; } .sc.on .g2 { animation-delay: 1.6s; } .sc.on .gst .tot { animation-delay: 1.9s; }

/* ---- phone scenes ---- */
.ph-scan { position: absolute; inset: 0; background: #0b1220; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #e2e8f0; padding: 20px; text-align: center; }
.ph-scan .box { background: #fff; border-radius: 12px; padding: 16px 14px 10px; width: 150px; }
.ph-scan .bars { display: flex; gap: 2px; height: 60px; align-items: stretch; padding: 0; border: 0; background: none; }
.ph-scan .bars i { background: #0f172a; flex: 1; height: auto; border-radius: 0; animation: none !important; }
.ph-scan .bars i:nth-child(3n) { flex: 2; } .ph-scan .bars i:nth-child(4n) { background: transparent; }
.ph-scan small { color: #0f172a; font-family: var(--mono); font-size: 10px; }
.ph-scan .laser { position: absolute; left: 30px; right: 30px; top: 42%; height: 2px; background: #ef4444; box-shadow: 0 0 12px #ef4444; }
.sc.on .ph-scan .laser { animation: laser 1.2s ease-in-out infinite alternate; }
@keyframes laser { from { top: 36%; } to { top: 50%; } }
.ph-scan .beep { background: #16a34a; color: #fff; padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 11px; opacity: 0; }
.sc.on .ph-scan .beep { animation: popIn .5s cubic-bezier(.2, 1.4, .4, 1) 2.6s forwards; }
.ph-scan p { font-size: 10.5px; color: #94a3b8; margin: 0; }
.ph-upi { position: absolute; inset: 0; background: #f8fafc; display: flex; flex-direction: column; }
.ph-upi .bar { background: #5b21b6; color: #fff; padding: 34px 14px 10px; font-weight: 800; font-size: 14px; }
.ph-upi .camera { margin: 16px auto 0; width: 150px; height: 150px; border-radius: 16px; background: #111827; display: grid; place-items: center; position: relative; overflow: hidden; }
.ph-upi .frame { transform: scale(.95); border-radius: 6px; overflow: hidden; }
.ph-upi .scanline { position: absolute; left: 10px; right: 10px; height: 2px; background: #a78bfa; box-shadow: 0 0 12px #a78bfa; top: 10%; }
.sc.on .ph-upi .scanline { animation: scanY 1s ease-in-out 2 alternate; }
@keyframes scanY { to { top: 90%; } }
.ph-upi .payto { text-align: center; padding: 14px; display: flex; flex-direction: column; gap: 3px; }
.ph-upi .payto .amt { font-size: 26px; font-weight: 800; }
.ph-upi .payto .pbtn { background: #5b21b6; color: #fff; border-radius: 10px; padding: 9px; font-weight: 700; margin-top: 6px; }
.ph-upi .ok { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; opacity: 0; }
.ph-upi .ok .c { width: 70px; height: 70px; border-radius: 50%; background: #16a34a; color: #fff; display: grid; place-items: center; }
.ph-upi .ok b { font-size: 15px; }
.sc.on .ph-upi .ok { animation: fadeIn .35s ease 2.6s forwards; }
.sc.on .ph-upi .ok .c { animation: qrpop .6s cubic-bezier(.2, 1.4, .4, 1) 2.7s both; }
.ph-wa { position: absolute; inset: 0; background: #e5ddd5; display: flex; flex-direction: column; }
.ph-wa .top { background: #075e54; color: #fff; padding: 34px 12px 10px; display: flex; gap: 8px; align-items: center; }
.ph-wa .top small { color: #b2dfdb; display: block; font-size: 9.5px; }
.ph-wa .av { width: 28px; height: 28px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-weight: 800; }
.ph-wa .chat { padding: 10px; position: relative; flex: 1; }
.ph-wa .typing { display: inline-flex; gap: 3px; background: #fff; padding: 8px 10px; border-radius: 10px; position: absolute; right: 10px; top: 10px; }
.ph-wa .typing i { width: 5px; height: 5px; border-radius: 50%; background: #94a3b8; animation: dots 1s infinite; }
.ph-wa .typing i:nth-child(2) { animation-delay: .15s; } .ph-wa .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 50% { transform: translateY(-3px); opacity: .4; } }
.sc.on .ph-wa .typing { animation: fadeOut .2s ease 1.6s forwards; }
@keyframes fadeOut { to { opacity: 0; } }
.ph-wa .bub { background: #dcf8c6; border-radius: 10px 0 10px 10px; padding: 9px 10px; white-space: pre-line; line-height: 1.42; font-size: 10.2px; margin-left: 18px; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); opacity: 0; }
.ph-wa .bub u { color: #0369a1; }
.sc.on .ph-wa .bub { animation: bubIn .5s cubic-bezier(.2, 1.2, .4, 1) 1.7s forwards; }
@keyframes bubIn { from { opacity: 0; transform: translateY(16px) scale(.92); transform-origin: right top; } to { opacity: 1; transform: none; } }
.ph-wa .tk { text-align: right; color: #34b7f1; font-size: 10px; margin-top: 2px; opacity: 0; }
.sc.on .ph-wa .tk { animation: fadeIn .3s ease 2.6s forwards; }
.ph-bill { position: absolute; inset: 0; background: #f1f5f9; padding: 40px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.ph-bill .hd { background: #fff; border-radius: 12px; padding: 10px; text-align: center; }
.ph-bill .hd small { display: block; }
.ph-bill .rows { background: #fff; border-radius: 12px; padding: 6px 10px; }
.ph-bill .rows div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed #e2e8f0; }
.ph-bill .tot { display: flex; justify-content: space-between; background: #0f172a; color: #fff; border-radius: 12px; padding: 10px; font-size: 14px; }
.ph-bill .star { position: relative; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; border-radius: 12px; padding: 12px; text-align: center; font-size: 14px; opacity: 0; }
.ph-bill .star small { color: #fef3c7; display: block; font-size: 10px; }
.sc.on .ph-bill .star { animation: popIn .6s cubic-bezier(.2, 1.4, .4, 1) 2.4s forwards; }
.burst { position: absolute; left: 50%; top: 50%; }
.burst i { position: absolute; font-style: normal; color: #fde047; font-size: 14px; opacity: 0; }
.sc.on .burst i { animation: burst 1s ease-out 2.6s forwards; }
.burst i:nth-child(1) { --x: -70px; --y: -40px; } .burst i:nth-child(2) { --x: 70px; --y: -44px; } .burst i:nth-child(3) { --x: -80px; --y: 20px; } .burst i:nth-child(4) { --x: 84px; --y: 16px; }
.burst i:nth-child(5) { --x: -30px; --y: -64px; } .burst i:nth-child(6) { --x: 34px; --y: -66px; } .burst i:nth-child(7) { --x: -50px; --y: 50px; } .burst i:nth-child(8) { --x: 50px; --y: 52px; }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) scale(.5); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.3) rotate(90deg); } }
.ph-menu { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; }
.ph-menu .mh { background: linear-gradient(135deg, #b45309, #f59e0b); color: #fff; padding: 36px 14px 14px; }
.ph-menu .mh small { color: #fef3c7; display: block; }
.ph-menu .mc { display: flex; gap: 5px; padding: 8px 10px; }
.ph-menu .mc span { padding: 3px 9px; border-radius: 999px; border: 1px solid #e2e8f0; font-size: 9.5px; white-space: nowrap; }
.ph-menu .mc span.on { background: #0f172a; color: #fff; }
.ph-menu .scroll { flex: 1; overflow: hidden; }
.sc.on .ph-menu .list { animation: menuScroll 4.5s ease-in-out .8s forwards; }
@keyframes menuScroll { to { transform: translateY(-150px); } }
.ph-menu .mi { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid #f1f5f9; font-weight: 600; }
.ft { display: inline-block; width: 10px; height: 10px; border: 1.5px solid; border-radius: 2px; margin-right: 6px; vertical-align: -1px; position: relative; }
.ft::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: currentColor; }
.ft.veg { color: #16a34a; } .ft.non_veg { color: #dc2626; } .ft.egg { color: #d97706; }
.ph-notif { position: absolute; inset: 0; background: linear-gradient(160deg, #1e3a8a, #0f766e); color: #fff; padding: 44px 10px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ph-notif .time { font-size: 44px; font-weight: 300; letter-spacing: -.03em; }
.ph-notif .date { font-size: 11px; opacity: .85; margin-top: -6px; margin-bottom: 10px; }
.nt { background: rgba(255, 255, 255, .88); color: #0f172a; border-radius: 14px; padding: 9px 10px; width: 100%; opacity: 0; backdrop-filter: blur(6px); }
.nt .h { display: flex; gap: 5px; align-items: center; font-size: 9px; color: #64748b; margin-bottom: 3px; }
.nt .h span { width: 15px; height: 15px; border-radius: 4px; display: grid; place-items: center; color: #fff; }
.nt .h .wa { background: #25d366; } .nt .h .al { background: #e11d48; }
.nt p { margin: 3px 0 0; font-size: 10px; color: #334155; }
.sc.on .nt { animation: dropIn .5s cubic-bezier(.2, 1.3, .4, 1) forwards; }
.sc.on .n0 { animation-delay: 1.4s; } .sc.on .n1 { animation-delay: 2.6s; }
.ph-po { position: absolute; inset: 0; background: #f8fafc; padding: 42px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.ph-po .hd { font-size: 13px; }
.ph-po .sp { color: #64748b; margin-top: -6px; }
.ph-po .pr { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 9px; display: flex; justify-content: space-between; opacity: 0; }
.sc.on .ph-po .pr { animation: slideIn .35s ease forwards; }
.sc.on .ph-po .p0 { animation-delay: .8s; } .sc.on .ph-po .p1 { animation-delay: 1.1s; } .sc.on .ph-po .p2 { animation-delay: 1.4s; }
.ph-po .grn { margin-top: auto; background: #16a34a; color: #fff; border-radius: 10px; padding: 10px; text-align: center; font-weight: 700; opacity: 0; }
.sc.on .ph-po .grn { animation: popIn .5s cubic-bezier(.2, 1.4, .4, 1) 3s forwards; }
.ph-pdf { position: absolute; inset: 0; background: #334155; padding: 44px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.ph-pdf .pg { background: #fff; border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.sc.on .ph-pdf .pg { animation: cardIn .6s ease .4s both; }
.ph-pdf .bn { background: #b45309; color: #fff; margin: -10px -10px 4px; padding: 10px; border-radius: 6px 6px 0 0; display: flex; gap: 6px; align-items: center; font-size: 10px; }
.ph-pdf .bn i { font-style: normal; background: #fff; color: #b45309; border-radius: 5px; width: 18px; height: 18px; display: grid; place-items: center; font-weight: 800; font-size: 8px; }
.ph-pdf .bn em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 8.5px; }
.ph-pdf .ln { height: 7px; border-radius: 4px; background: #e2e8f0; }
.ph-pdf .w70 { width: 70%; } .ph-pdf .w50 { width: 50%; } .ph-pdf .w40 { width: 40%; margin-top: auto; }
.ph-pdf .tb { display: flex; flex-direction: column; gap: 6px; border-top: 2px solid #b45309; padding-top: 8px; }
.ph-pdf .tt { display: flex; justify-content: space-between; border-top: 2px solid #0f172a; padding-top: 6px; }
.ph-pdf .dl { background: #14b8a6; color: #042f2e; border-radius: 10px; padding: 9px; text-align: center; font-weight: 800; opacity: 0; }
.sc.on .ph-pdf .dl { animation: popIn .5s cubic-bezier(.2, 1.4, .4, 1) 2.4s forwards; }

/* caption + controls */
.show-cap { display: flex; gap: 18px; align-items: flex-start; max-width: 820px; margin: 6px auto 16px; min-height: 64px; }
.show-cap .num { font-family: Inter, sans-serif; font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; background: linear-gradient(135deg, #5eead4, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.show-cap .num small { font-size: 15px; color: #475569; -webkit-text-fill-color: #475569; }
.show-cap h3 { color: #fff; font-size: 21px; margin: 0 0 4px; letter-spacing: -.02em; }
.show-cap p { margin: 0; color: #94a3b8; font-size: 15px; line-height: 1.5; }
.show-cap.cin > * { animation: capIn .6s cubic-bezier(.2, .8, .2, 1) both; }
.show-cap.cin > div { animation-delay: .08s; }
@keyframes capIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.show-ctl { display: flex; gap: 12px; align-items: center; max-width: 980px; margin: 0 auto; }
.show-play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #14b8a6; color: #042f2e; cursor: pointer; flex-shrink: 0; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.show-chapters { flex: 1; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.show-chapters button { background: none; border: 0; padding: 0; cursor: pointer; color: #64748b; text-align: left; font: inherit; }
.show-chapters .bar { display: block; height: 4px; border-radius: 4px; background: rgba(148, 163, 184, .25); overflow: hidden; }
.show-chapters .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #14b8a6, #38bdf8); border-radius: 4px; }
.show-chapters .lb { display: flex; gap: 5px; align-items: center; margin-top: 7px; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.show-chapters .lb em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.show-chapters button.on, .show-chapters button:hover { color: #e2e8f0; }
.show-chapters button.on .i { color: #5eead4; }
@media (max-width: 860px) {
  .show { padding: 18px 12px 16px; border-radius: 20px; }
  .show-chapters .lb em { display: none; }
  .show-chapters .lb { justify-content: center; }
  .show-cap h3 { font-size: 17px; } .show-cap p { font-size: 13.5px; } .show-cap .num { font-size: 30px; }
}
/* full-screen promo mode (used to record the MP4) */
.show.promo { border-radius: 0; margin: 0; min-height: 100vh; padding: 26px 40px 20px; display: flex; flex-direction: column; justify-content: center; }
.promo-card { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; text-align: center; background: radial-gradient(800px 400px at 50% 60%, #134e4a, #060a12 70%); color: #fff; transition: opacity .8s; }
.promo-card h1 { font-size: 64px; letter-spacing: -.04em; margin: 16px 0 8px; font-weight: 800; }
.promo-card p { color: #94a3b8; font-size: 22px; margin: 0; }
.promo-card .mark { width: 84px; height: 84px; border-radius: 24px; background: var(--grad); display: grid; place-items: center; margin: 0 auto; box-shadow: 0 20px 50px -10px rgba(20, 184, 166, .6); }
.promo-card .types { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }
.promo-card .types span { padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; font-size: 16px; }
.promo-card.hide { opacity: 0; pointer-events: none; }
.promo-card > div > * { animation: capIn .9s cubic-bezier(.2, .8, .2, 1) both; }
.promo-card > div > *:nth-child(2) { animation-delay: .2s; } .promo-card > div > *:nth-child(3) { animation-delay: .4s; } .promo-card > div > *:nth-child(4) { animation-delay: .6s; } .promo-card > div > *:nth-child(5) { animation-delay: .8s; }
/* hero tightened so types + buttons fit on a laptop screen */
.lp-hero { padding: 44px 0 36px; }
.lp-hero h1 { font-size: 50px; margin: 16px 0 14px; }
.lp-hero p.lead { font-size: 16.5px; margin-bottom: 20px; }
.lp-switch { gap: 6px; margin: -4px 0 22px; flex-wrap: nowrap; }
.lp-switch button { padding: 7px 11px; font-size: 13px; gap: 6px; }
@media (max-width: 1180px) { .lp-switch { flex-wrap: wrap; } }
@media (max-width: 980px) { .lp-hero h1 { font-size: 40px; } }
@media (max-width: 620px) { .lp-hero h1 { font-size: 34px; } .lp-switch > span { width: 100%; } }
.show.promo .show-play { display: none; } .show.promo .show-chapters button { pointer-events: none; }
/* header: all POS categories */
.lp-nav .links { align-items: center; gap: 22px; }
.lp-cats { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #f1f5f9; }
.lp-cats a, .lp-cats-m a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #334155; transition: background .2s, color .2s; white-space: nowrap; }
.lp-cats a .i, .lp-cats-m a .i { color: var(--tc); }
.lp-cats a:hover { background: #fff; }
.lp-cats a.on, .lp-cats-m a.on { background: var(--tc); color: #fff; }
.lp-cats a.on .i, .lp-cats-m a.on .i { color: #fff; }
.lp-nav .lp-wrap { gap: 20px; }
.lp-cats-m { display: none; }
@media (max-width: 1180px) { .lp-nav .links > a { display: none; } }
@media (max-width: 980px) {
  .lp-cats-m { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
  .lp-cats-m::-webkit-scrollbar { display: none; }
  .lp-cats-m a { border: 1px solid #e2e8f0; background: #fff; font-size: 12.5px; }
}
.lp-logo { white-space: nowrap; flex-shrink: 0; }
/* feature modules */
.nav a.locked { opacity: .55; }
.nav a .lk { margin-left: auto; font-size: 11px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.feat { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; gap: 12px; background: var(--surface); }
.feat .fi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.feat.off .fi { background: var(--surface-3); color: var(--muted); }
.feat b { display: block; }
.feat p { margin: 3px 0 8px; color: var(--ink-2); font-size: 12.5px; line-height: 1.45; }
.locked-hero { max-width: 620px; margin: 40px auto; text-align: center; }
.locked-hero .big { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); position: relative; }
.locked-hero .big::after { content: '🔒'; position: absolute; right: -8px; bottom: -8px; font-size: 22px; }
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.cz-row { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 110px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.cz-row:last-child { border-bottom: 0; }
/* kitchen display */
.kds-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.kds-col { display: flex; flex-direction: column; gap: 10px; }
.kds-colh { font-weight: 700; padding: 8px 12px; border-radius: 10px; display: flex; justify-content: space-between; color: #fff; }
.kds-colh span { background: rgba(255, 255, 255, .25); border-radius: 999px; padding: 0 9px; }
.kds-colh.pending { background: #d97706; } .kds-colh.preparing { background: #2563eb; } .kds-colh.ready { background: #16a34a; }
.kt { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid #16a34a; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.kt.slow { border-left-color: #d97706; } .kt.late { border-left-color: #dc2626; background: color-mix(in srgb, #dc2626 6%, var(--surface)); }
.kth { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.kt .tm { font-family: var(--mono); font-weight: 700; font-size: 13px; }
.kt.late .tm { color: #dc2626; } .kt.slow .tm { color: #d97706; }
.kt ul { margin: 8px 0 10px; padding-left: 0; list-style: none; font-size: 15px; }
.kt li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.kt .nt { color: var(--warn); font-size: 13px; }
.kt .btn { width: 100%; justify-content: center; }
.kds-empty { color: var(--muted); text-align: center; padding: 20px; }
body.kds-full .sidebar, body.kds-full #subBanner { display: none; }
body.kds-full .kds-page { max-width: none; }
body.kds-full .kt { font-size: 17px; } body.kds-full .kt ul { font-size: 19px; }
@media (max-width: 860px) { .kds-cols { grid-template-columns: 1fr; } }
/* roomier user box with 4 buttons */
.userbox { gap: 6px; padding: 12px 10px; }
.userbox .ub { padding: 5px; }
/* landing: hardware bundle */
.lp-hw { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; background: linear-gradient(135deg, #f0fdfa, #eff6ff); border: 1px solid #e2e8f0; border-radius: 26px; padding: 44px; }
.lp-hw-card { background: #fff; border-radius: 20px; padding: 28px; text-align: center; box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .35); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.lp-hw-card .hw-ico { width: 70px; height: 70px; border-radius: 20px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.lp-hw-card .hw-price { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: #0b1220; }
.lp-hw-card .btn { justify-content: center; width: 100%; margin-top: 8px; }
@media (max-width: 860px) { .lp-hw { grid-template-columns: 1fr; padding: 26px; } }
/* demo visitors */
.demo-bar { background: #fef3c7; color: #92400e; padding: 7px 20px; font-size: 13px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid #fde68a; }

/* ---------- multi-branch control ---------- */
.br-switch { display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 8px 10px; background: var(--sidebar-2); color: var(--sidebar-head, #e5e9f0); border: 1px solid var(--sidebar-line); border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.br-switch.hidden { display: none; }
.br-switch:hover { border-color: var(--accent-3); }
.br-switch .arr { margin-left: auto; color: var(--accent-3); }
.br-list { display: grid; gap: 8px; }
.br-item { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.br-item > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.br-item:hover:not([disabled]) { border-color: var(--accent); background: var(--accent-soft); }
.br-item.me { cursor: default; background: var(--surface-2); }
.br-item .ico { color: var(--accent); display: grid; place-items: center; }
.br-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.br-matrix th.num, .br-report th.num { white-space: nowrap; }
.br-matrix td.cell-low { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.br-matrix td.cell-low .small { font-weight: 400; }
.dot-here { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); vertical-align: middle; }
.br-tiles { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.br-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); min-width: 150px; }
.br-tile b { font-family: var(--mono); font-size: 16px; }
.br-report td:first-child { color: var(--ink-2); white-space: nowrap; }
.br-report tr.strong td { font-weight: 700; color: var(--ink); background: var(--surface-2); }
/* permission picker */
.perm-mode { margin-bottom: 8px; font-weight: 600; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; }
.perm-grid.compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 14px; }
.perm-grid.is-default { opacity: .6; }
.perm-group { display: flex; flex-direction: column; gap: 3px; }
.perm-group b { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.perm-group .check { font-size: 13px; }
.perm-note { padding: 6px 0; }
.acc-list { display: grid; gap: 8px; }
.acc-row { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); }
.acc-row.on { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-ring); }
.acc-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.acc-top select { width: auto; min-width: 170px; }
.acc-row .acc-perms { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.acc-row.on .acc-perms { display: block; }
.acc-line { margin: 2px 0; }


/* =====================================================================
   Look & layout options (Appearance page) — classes on <html>
   ===================================================================== */
html.look-c-soft { --radius: 18px; --radius-sm: 11px; }
html.look-c-sharp { --radius: 4px; --radius-sm: 3px; }
html.look-c-sharp .modal { border-radius: 6px; } html.look-c-sharp .modal-foot { border-radius: 0 0 6px 6px; }
html.look-c-soft .btn, html.look-c-soft input, html.look-c-soft select { border-radius: 11px; }
html.look-w-wide .page { max-width: none; }
html.look-w-boxed .page { max-width: 1200px; margin: 0 auto; }
html.look-t-large body { font-size: 15.5px; }
html.look-t-large .nav a { font-size: 14.5px; padding: 9px 10px; }
html.look-t-large table.t td { font-size: 15px; }
html.look-t-large .kpi .value { font-size: 26px; }
html.look-d-compact body { font-size: 13px; }
html.look-d-compact .page { padding: 14px 20px 36px; }
html.look-d-compact .card-pad { padding: 13px; }
html.look-d-compact .card-head { padding: 9px 14px; }
html.look-d-compact table.t td { padding: 6px 12px; }
html.look-d-compact table.t th { padding: 7px 12px; }
html.look-d-compact .kpi { padding: 11px 14px; }
html.look-d-compact .kpi .value { font-size: 20px; margin-top: 3px; }
html.look-d-compact .grid { gap: 10px; }
html.look-d-compact .nav a { padding: 5.5px 10px; }
html.look-d-compact .btn { padding: 6px 12px; }
html.look-d-compact .hello { margin-bottom: 12px; }
@media (min-width: 861px) {
  html.menu-icons .sidebar { width: 74px; }
  html.menu-icons .brand { justify-content: center; padding: 14px 8px; }
  html.menu-icons .brand .bt { display: none; }
  html.menu-icons .br-switch { justify-content: center; margin: 10px 10px 0; padding: 8px; }
  html.menu-icons .br-switch span { display: none; }
  html.menu-icons .nav { padding: 6px 10px; }
  html.menu-icons .nav .group { font-size: 0; padding: 0; margin: 8px 6px; border-top: 1px solid var(--sidebar-line); }
  html.menu-icons .nav a { justify-content: center; font-size: 0; padding: 10px 0; }
  html.menu-icons .nav a .ico { width: auto; }
  html.menu-icons .nav a .lk { display: none; }
  html.menu-icons .userbox { flex-direction: column; padding: 10px 6px; gap: 2px; }
  html.menu-icons .userbox .who { display: none; }
}
html.menu-light .sidebar { border-right: 1px solid var(--line); }
html.menu-light .nav { scrollbar-color: var(--line) transparent; }

/* ---------- Appearance page ---------- */
.ap-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.ap-side { position: sticky; top: 16px; }
.ap-sec { margin-bottom: 18px; }
.ap-sec > .card-head h2 { display: flex; align-items: center; gap: 8px; }
.ap-sec .hint { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; padding: 16px; }
.th-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; padding: 0; text-align: left; font: inherit; color: inherit; overflow: hidden; transition: transform .12s, box-shadow .12s, border-color .12s; position: relative; }
.th-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.th-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.th-card .tick { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent, #fff); display: none; place-items: center; font-size: 12px; font-weight: 800; z-index: 2; }
.th-card.on .tick { display: grid; }
.th-mini { height: 92px; display: flex; background: #f5f6f8; }
.th-mini .sb { width: 30%; padding: 8px 6px; display: flex; flex-direction: column; gap: 5px; }
.th-mini .sb i { display: block; height: 5px; border-radius: 3px; background: currentColor; opacity: .35; }
.th-mini .sb i.a { opacity: 1; }
.th-mini .ct { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.th-mini .hero { height: 26px; border-radius: 6px; }
.th-mini .row2 { display: flex; gap: 5px; }
.th-mini .row2 span { flex: 1; height: 20px; border-radius: 5px; background: #fff; border: 1px solid #e5e7eb; }
.th-mini .bt { align-self: flex-end; width: 44px; height: 12px; border-radius: 4px; }
.th-meta { padding: 10px 12px; border-top: 1px solid var(--line-2); }
.th-meta b { display: block; font-size: 13.5px; }
.th-meta span { font-size: 11.5px; color: var(--muted); }
.th-meta .sw { display: flex; gap: 4px; margin-top: 6px; }
.th-meta .sw i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.th-card .rec { position: absolute; left: 8px; top: 8px; z-index: 2; font-size: 10.5px; font-weight: 700; background: #fff; color: #111827; padding: 2px 7px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.color-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; }
.color-pick { display: flex; gap: 10px; align-items: center; }
.color-pick input[type=color] { width: 54px; height: 44px; padding: 3px; border-radius: 10px; cursor: pointer; flex-shrink: 0; }
.color-pick input[type=text] { font-family: var(--mono); text-transform: lowercase; }
.pairs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 0 16px 16px; }
.pair { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font: inherit; font-size: 12px; color: var(--ink-2); }
.pair i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.pair:hover { border-color: var(--accent); }
.contrast-note { padding: 0 16px 16px; font-size: 12.5px; color: var(--ink-2); display: flex; gap: 14px; flex-wrap: wrap; }
.contrast-note .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; font-weight: 600; font-size: 12px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 16px; }
.opt { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 10px; cursor: pointer; font: inherit; color: inherit; text-align: left; display: flex; flex-direction: column; gap: 8px; transition: border-color .12s, box-shadow .12s; }
.opt:hover { border-color: var(--muted); }
.opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.opt b { font-size: 13px; } .opt span { font-size: 11.5px; color: var(--muted); }
.opt .pic { height: 56px; border-radius: 6px; background: var(--surface-3); display: flex; overflow: hidden; gap: 4px; padding: 5px; }
.opt .pic i { display: block; border-radius: 3px; background: var(--line); }
.seg { display: inline-flex; border: 1px solid var(--input-line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; font: inherit; padding: 7px 14px; cursor: pointer; color: var(--ink-2); border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent); color: var(--on-accent, #fff); font-weight: 600; }
.setting-rows { padding: 6px 16px 14px; }
.setting-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.setting-row:last-child { border-bottom: 0; }
.setting-row > div:first-child { flex: 1; min-width: 180px; }
.setting-row b { font-size: 13.5px; display: block; } .setting-row span.muted { font-size: 12px; }
.save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 8px; align-items: center; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-top: 6px; flex-wrap: wrap; }
.save-bar .sb-st { display: flex; flex-direction: column; gap: 1px; min-width: 150px; }
.save-bar .dirty { font-size: 12.5px; color: var(--warn); font-weight: 600; display: none; }
.save-bar.is-dirty .dirty { display: inline; }
/* live preview frame */
.pv { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: var(--shadow-lg); }
.pv-top { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--surface-3); border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.pv-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.pv-body { display: flex; height: 330px; }
.pv-sb { width: 92px; background: var(--sidebar-bg, var(--sidebar)); padding: 10px 8px; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; border-right: 1px solid var(--sidebar-line); }
html.menu-icons .pv-sb { width: 40px; }
.pv-sb .lg { width: 24px; height: 24px; border-radius: 7px; background: var(--grad); margin-bottom: 8px; }
.pv-sb .pv-it { height: 18px; border-radius: 5px; display: flex; align-items: center; gap: 5px; padding: 0 5px; }
.pv-sb .pv-it::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--sidebar-ink); opacity: .7; flex-shrink: 0; }
.pv-sb .pv-it::after { content: ''; height: 4px; flex: 1; border-radius: 2px; background: var(--sidebar-ink); opacity: .35; }
html.menu-icons .pv-sb .pv-it::after { display: none; }
.pv-sb .pv-it.on { background: var(--nav-active-bg); box-shadow: inset 2px 0 0 var(--nav-active-bar); }
.pv-sb .pv-it.on::before { background: var(--nav-active-ico); opacity: 1; }
.pv-main { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 9px; min-width: 0; overflow: hidden; }
.pv-h { display: flex; align-items: center; gap: 6px; }
.pv-h b { font-size: 12px; flex: 1; color: var(--ink); }
.pv-btn { font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent, #fff); }
.pv-btn.o { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.pv-grid { display: grid; gap: 7px; }
.pv-w { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); padding: 7px; min-height: 30px; font-size: 9.5px; color: var(--muted); overflow: hidden; }
.pv-w.hero { background: var(--grad); color: var(--on-grad, #fff); border: 0; }
.pv-w b { display: block; font-size: 12px; color: inherit; font-family: var(--mono); }
.pv-w .ln { height: 30px; margin-top: 4px; background: linear-gradient(180deg, var(--accent-ring), transparent); border-top: 2px solid var(--accent); border-radius: 0 40px 0 0; }
.pv-w .bd { display: inline-block; margin-top: 4px; padding: 1px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.pv-legend { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
/* ---------- dashboard widgets ---------- */
.dash-grid { display: grid; gap: 14px; grid-template-columns: repeat(var(--dash-cols, 2), minmax(0, 1fr)); align-items: start; }
.dash-grid > .w-full { grid-column: 1 / -1; }
.dash-grid[data-cols="2"] > .w-wide, .dash-grid[data-cols="3"] > .w-wide { grid-column: span 2; }
.dash-grid > *, .dash-grid .card { min-width: 0; }
.hello .btn { flex-shrink: 0; }
.dash-w-head-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; padding: 14px; }
.quick { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-size: 12.5px; font-weight: 600; background: var(--surface); transition: border-color .12s, background .12s, transform .12s; }
.quick:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.quick .qi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.plan-w { padding: 16px; display: grid; gap: 12px; }
.plan-w .pl-top { display: flex; align-items: center; gap: 10px; }
.plan-w .pl-top b { font-size: 16px; }
.meter { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.plan-w .pl-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); gap: 8px; }
.recent-list a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.recent-list a:last-child { border-bottom: 0; }
.recent-list a:hover { background: var(--surface-2); }
.recent-list .ri { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-3); display: grid; place-items: center; color: var(--ink-2); flex-shrink: 0; }
/* widget editor */
.we-list { display: grid; gap: 6px; }
.we-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.we-item.off { opacity: .55; background: var(--surface-2); }
.we-item.drag { opacity: .4; }
.we-item.over { border-color: var(--accent); box-shadow: 0 -2px 0 var(--accent); }
.we-item .grip { cursor: grab; color: var(--muted); font-size: 16px; line-height: 1; user-select: none; padding: 0 2px; }
.we-item .nm { flex: 1; min-width: 0; } .we-item .nm b { font-size: 13px; display: block; } .we-item .nm span { font-size: 11.5px; color: var(--muted); }
.we-item .mv { display: flex; gap: 2px; }
.we-item .mv button { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; width: 26px; height: 26px; cursor: pointer; color: var(--ink-2); font-size: 12px; }
.we-item .mv button:disabled { opacity: .35; cursor: default; }
.switch { position: relative; width: 38px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--input-line); border-radius: 999px; transition: background .15s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.cols-pick { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cols-pick .opt { min-width: 120px; flex: 1; }
.cols-pick .pic i { flex: 1; }
@media (max-width: 1180px) { .ap-wrap { grid-template-columns: 1fr; } .ap-side { position: static; order: -1; } }
@media (max-width: 860px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .hello { gap: 8px; } .hello > div:nth-child(2) { flex-basis: calc(100% - 60px); } .hello .spacer { display: none; }
  .hello .btn { padding: 7px 11px; font-size: 13px; }
  .dash-grid .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dash-grid .kpi { padding: 12px; } .dash-grid .kpi .value { font-size: 18px; } .dash-grid .kpi .kico { width: 28px; height: 28px; right: 10px; top: 10px; }
  .dash-grid .kpi .label { padding-right: 30px; }
  .dash-grid > * { grid-column: auto !important; }
  .color-row { grid-template-columns: 1fr; }
  .pv-body { height: 260px; }
  .save-bar { gap: 6px; padding: 8px 10px; } .save-bar .btn { padding: 7px 10px; font-size: 13px; } .save-bar #scope { display: none; }
}

/* ---------- login / signup: business-specific panels ---------- */
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.biz-tile { border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .04); border-radius: 14px; padding: 14px 16px; position: relative; overflow: hidden; }
.biz-tile::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--bc); }
.biz-tile .bt-h { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.biz-tile .bt-h b { color: #fff; font-size: 15px; }
.biz-tile .bi, .biz-side .biz-badge .i { color: #fff; }
.biz-tile .bi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--bc); flex-shrink: 0; }
.biz-tile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.biz-tile li { color: #cbd5e1; font-size: 13px; line-height: 1.35; padding-left: 16px; position: relative; }
.biz-tile li::before { content: '✓'; position: absolute; left: 0; color: var(--bc); font-weight: 800; filter: brightness(1.4); }
.biz-common { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; color: #94a3b8; font-size: 12.5px; line-height: 1.5; }
.biz-common .i { color: #5eead4; margin-top: 2px; }
.biz-side::before { background: radial-gradient(circle, color-mix(in srgb, var(--bc) 45%, transparent), transparent 62%); transition: background .4s; }
.biz-side h2 { margin-top: 14px; }
.biz-side h2 em { background: linear-gradient(90deg, color-mix(in srgb, var(--bc) 55%, #fff), #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.biz-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 44px; padding: 6px 12px; border-radius: 999px; background: var(--bc); color: #fff; font-size: 13px; font-weight: 700; align-self: flex-start; }
.biz-side .auth-points li .pi { color: color-mix(in srgb, var(--bc) 50%, #fff); border-color: color-mix(in srgb, var(--bc) 40%, transparent); background: color-mix(in srgb, var(--bc) 18%, transparent); }
.biz-pack { border-color: color-mix(in srgb, var(--bc) 35%, var(--line)); }
.biz-pack .card-head { gap: 10px; }
.biz-pack .card-head .bi { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--bc); color: #fff; }
.biz-special { display: grid; gap: 8px; margin-bottom: 12px; }
.biz-special .bs { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--bc) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--bc) 25%, var(--line)); }
.biz-special .bs > div { flex: 1; min-width: 0; } .biz-special .bs b { display: block; font-size: 13.5px; } .biz-special .bs span { font-size: 12px; color: var(--ink-2); }
.biz-special .bi { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--bc); color: #fff; flex-shrink: 0; }
.biz-special .badge.info { background: color-mix(in srgb, var(--bc) 14%, transparent); color: var(--bc); }
.biz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.biz-chips .chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.biz-chips .chip .i { color: var(--bc); }
@media (max-width: 1280px) { .biz-grid { grid-template-columns: 1fr; } .biz-tile ul { grid-template-columns: 1fr 1fr; } }
#bizSide { position: sticky; top: 0; height: 100vh; align-self: start; }
#bizSide > .auth-side { height: 100%; overflow-y: auto; scrollbar-width: none; }
@media (max-width: 1100px) { #bizSide { display: none; } }

/* ---------- website content: announcement bar + Super Admin editor ---------- */
[data-ce-hidden] { display: none !important; }
html.ce-on [data-ce-hidden] { display: revert !important; opacity: .35; outline: 2px dashed #f59e0b; outline-offset: 2px; }
.ce-ann { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 9px 16px; background: linear-gradient(90deg, #0f766e, #1d4ed8); color: #fff; font-size: 14px; font-weight: 600; text-align: center; position: relative; z-index: 60; }
.ce-ann a { color: #fff; text-decoration: underline; white-space: nowrap; }
html.ce-editing .ce-hover { outline: 2px solid #f59e0b !important; outline-offset: 2px; cursor: text !important; background-color: rgba(245, 158, 11, .08); }
html.ce-editing a, html.ce-editing button { cursor: text; }
.ce-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9999; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 24px);
  background: #111827; color: #e5e7eb; padding: 10px 14px; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); font: 13px/1.3 Inter, system-ui, sans-serif; }
.ce-bar > b { color: #fbbf24; }
.ce-bar .ce-pg b { color: #fff; }
.ce-sw { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); cursor: pointer; }
.ce-dirty { color: #fbbf24; font-weight: 700; }
.ce-btn { font: 600 12.5px Inter, system-ui, sans-serif; padding: 6px 12px; border-radius: 8px; border: 1px solid #374151; background: #1f2937; color: #f3f4f6; cursor: pointer !important; }
.ce-btn:hover { background: #374151; }
.ce-btn.primary { background: #f59e0b; border-color: #f59e0b; color: #111827; }
.ce-btn:disabled { opacity: .45; cursor: default !important; }
.ce-box { position: fixed; z-index: 10000; width: min(460px, calc(100vw - 20px)); max-height: 70vh; overflow: auto; background: #fff; color: #111827; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); border: 1px solid #e5e7eb; font: 13px/1.4 Inter, system-ui, sans-serif; text-align: left; }
.ce-box .ce-h { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid #f0f1f4; position: sticky; top: 0; background: #fff; }
.ce-box .ce-h span { color: #6b7280; font-size: 12px; }
.ce-x { margin-left: auto; border: 0; background: none; font-size: 20px; cursor: pointer !important; color: #6b7280; }
.ce-f { padding: 12px 14px; border-bottom: 1px solid #f0f1f4; display: grid; gap: 7px; }
.ce-o { font-size: 11.5px; color: #6b7280; word-break: break-word; }
.ce-box textarea { width: 100%; font: 14px/1.4 Inter, system-ui, sans-serif; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; resize: vertical; color: #111827; background: #fff; cursor: text !important; }
.ce-box textarea:focus { outline: 2px solid #f59e0b; border-color: #f59e0b; }
.ce-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ce-box select { font: 12.5px Inter, system-ui, sans-serif; padding: 5px 8px; border: 1px solid #d1d5db; border-radius: 7px; background: #fff; color: #111827; width: auto; cursor: pointer !important; }
.ce-box .ce-btn { background: #fff; color: #111827; border-color: #d1d5db; }
.ce-box .ce-btn.primary { background: #f59e0b; border-color: #f59e0b; }
.ce-foot { display: flex; gap: 8px; align-items: center; padding: 10px 14px; position: sticky; bottom: 0; background: #f9fafb; }
.ce-tip { flex: 1; font-size: 11.5px; color: #6b7280; }
.ce-items { padding: 6px 14px; }
.ce-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #f0f1f4; }
.ce-item > div { flex: 1; min-width: 0; word-break: break-word; }
.ce-tag { font-size: 10.5px; font-weight: 700; background: #fef3c7; color: #92400e; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.ce-flash { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 10001; background: #15803d; color: #fff; padding: 10px 16px; border-radius: 10px; font: 600 13px Inter, system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.ce-flash.bad { background: #c02626; }

/* ---------- email code step ---------- */
.code-step { width: 100%; max-width: 420px; }
.code-step h1 { font-size: 24px; letter-spacing: -.02em; }
.code-step .sub { color: var(--muted); margin-top: 6px; line-height: 1.5; }
.code-step .cs-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.code-input { font-family: var(--mono); font-size: 30px !important; letter-spacing: 14px; text-align: center; padding: 12px !important; font-weight: 700; }
.code-step .btn.lg { width: 100%; justify-content: center; }
.code-step .btn-link:disabled { color: var(--muted); cursor: default; }

/* ---------- v10: locations, transfers, production, FOC, modules ---------- */
.cart-item.is-foc { background: var(--ok-soft); border-radius: var(--radius-sm); }
.cart-item.is-foc .money { color: var(--ok); }
.loc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); margin-bottom: 12px; }
.loc-tags { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.loc-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.loc-card.off { opacity: .6; }
.loc-card.add { align-items: center; justify-content: center; text-align: center; border-style: dashed; cursor: pointer; color: var(--ink-2); font: inherit; min-height: 150px; gap: 6px; }
.loc-card.add:hover { border-color: var(--accent); color: var(--accent); }
.loc-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.loc-ico.t-warehouse { background: var(--info-soft); color: var(--info); }
.loc-ico.t-kitchen { background: var(--warn-soft); color: var(--warn); }
.loc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.loc-stats > div { display: flex; flex-direction: column; gap: 2px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; min-width: 0; }
.loc-stats b { font-family: var(--mono); font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.cost-sheet { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; background: var(--surface-2); max-width: 520px; margin-left: auto; }
.cs-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13.5px; }
.cs-row.sub { padding-left: 14px; color: var(--ink-2); font-size: 12.5px; }
.cs-row.tot { border-top: 1px dashed var(--line-2); margin-top: 4px; padding-top: 8px; }
.cs-row.big { font-size: 16px; color: var(--accent); }
.cs-row.neg b { color: var(--danger); }
.cs-row.pos b { color: var(--ok); }
.cost-break { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 14px; align-items: start; }
.cost-break > div:first-child { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.mod-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.mod-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); }
.mod-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.mod-opt input { width: auto; margin-top: 3px; flex: none; }
.mod-opt > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.cat-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.t.ql input.bad, input.bad { border-color: var(--danger); }
.neg { color: var(--danger); }
.card.flash { animation: cardflash 1.6s ease; }
@keyframes cardflash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent-ring); } 100% { box-shadow: var(--shadow); } }
@media (max-width: 720px) {
  .cost-break { grid-template-columns: 1fr; }
  .cost-sheet { max-width: none; }
}

/* ---------- v11: product types, main modules, cost trail ---------- */
.kind-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.kind-card { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.kind-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.ki { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; margin-bottom: 4px; }
.kind-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.kind-head .ki { margin: 0; }
.kind-tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); }
.kind-ticks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.kind-cfg { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.kind-cfg .kc { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.kind-cfg .kc label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kind-cfg .kc label > span:last-child { display: flex; flex-direction: column; }
.kind-cfg .ki { width: 28px; height: 28px; margin: 0; }
.field-ticks { display: grid; gap: 6px 14px; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.main-mods { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.main-mod { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 14px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.main-mod input { position: absolute; top: 12px; right: 12px; width: auto; }
.main-mod .mi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); margin-bottom: 4px; }
.main-mod:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.main-mod:has(input:checked) .mi { background: var(--accent); color: #fff; }
.mod-more { margin-top: 12px; }
.mod-more summary { cursor: pointer; font-size: 13px; color: var(--accent); margin-bottom: 10px; }
.charge-lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.charge-lines .row { flex-wrap: wrap; }
.trace { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.trace-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.trace-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.trace-chain .chip { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.trace-chain .chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.trace-chain .arr { color: var(--muted); font-weight: 700; }
.cost-flowline { display: flex; flex-wrap: wrap; gap: 6px; }
.flow-strip { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; margin-bottom: 14px; }
.fs-step { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); min-width: 0; }
.fs-step b { font-family: var(--mono); font-size: 14px; }
.fs-arr { align-self: center; color: var(--muted); font-weight: 700; }

/* ---------- v12: accounts books ---------- */
.vbook tr.vfirst td { border-top: 2px solid var(--line-2); }
.vbook td { vertical-align: top; }
.vto { color: var(--muted); font-size: 12px; margin-left: 18px; }
.grp-row td { background: var(--surface-2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.fin-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.fin-2 h3 { margin: 0 0 8px; }
.fin-2 .cs-row a, .fin-chart .cs-row a { color: inherit; }
.bs-head { font-weight: 700; margin: 10px 0 2px; }
.bs-sub { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 8px 0 2px; }
.fin-chart { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.fin-chart .cs-row { align-items: center; gap: 8px; }
@media (max-width: 720px) { .fin-2 { grid-template-columns: 1fr; } }
@media print { .tabs, .toolbar, .page-head .btn { display: none !important; } }
.help-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.help-toc { position: sticky; top: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.help-toc nav { display: flex; flex-direction: column; }
.help-toc nav a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 13.5px; }
.help-toc nav a:hover { background: var(--surface-2); color: var(--ink); }
.help-body { display: flex; flex-direction: column; gap: 14px; }
.help-topic .ki { margin: 0; }
.help-list { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
@media (max-width: 860px) { .help-wrap { grid-template-columns: 1fr; } .help-toc { position: static; } }

/* v13: bank reconciliation */
.t tr.warn-row td { background: color-mix(in srgb, var(--warn, #d97706) 7%, transparent); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.po-text { white-space: pre-wrap; font: 13px/1.5 var(--mono); background: var(--surface-2, var(--bg)); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; max-height: 280px; overflow: auto; margin: 0; }
.muted-row td { opacity: .72; }
.reorder-foot { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); }
.reorder-t td { vertical-align: top; }
@media (max-width: 640px) { .reorder-foot .btn { flex: 1 1 100%; } }
@media (max-width: 640px) { .toolbar .seg { max-width: 100%; overflow-x: auto; } .toolbar .seg button { white-space: nowrap; flex: 0 0 auto; } }
.den-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.den-grid label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.shift-rep .cs-row { padding: 4px 0; }
.shift-rep h4 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.seg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.seg-card .value { font-family: var(--mono); font-size: 26px; font-weight: 600; margin: 4px 0; }
.modal-foot { flex-wrap: wrap; }
