/* باركود: one stylesheet for every screen. Right-to-left, phone first. */

:root {
  --ground: #F3F4EF;
  --ink: #101413;
  --ink-2: #2B3330;
  --muted: #555E5A;
  --line: #DADFD8;
  --soft: #E2E5DD;
  --card: #FFFFFF;
  --accent: #22C55E;
  --ok-bg: #DCFCE7;
  --ok-fg: #14532D;
  --warn: #F97316;
  --warn-bg: #FFEDD5;
  --warn-fg: #9A3412;
  --bad-bg: #FEE2E2;
  --bad-fg: #991B1B;
  --cam: #0C100F;
  --sumer: #06B6D4;
  --r-lg: 22px;
  --r-md: 18px;
  --r-sm: 14px;
  --shadow: 0 1px 0 var(--soft), 0 8px 24px rgba(16, 20, 19, .08);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ink); }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0; }

/* ---------- shared pieces ---------- */

.mark { display: inline-flex; align-items: center; justify-content: center; flex: none; color: #F3F4EF; font-weight: 700; object-fit: cover; background: var(--ink); }
.mark-sm { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
.mark-md { width: 48px; height: 48px; border-radius: 14px; font-size: 22px; }
.mark-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 22px; border: 0; border-radius: var(--r-md);
  background: var(--ink); color: #F3F4EF; font-size: 17px; font-weight: 600; text-decoration: none;
}
.btn .ic { color: var(--accent); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); font-weight: 500; font-size: 16px; min-height: 52px; }
.btn-ghost .ic { color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--ink); font-weight: 700; }
.btn-accent .ic { color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; border-radius: var(--r-sm); font-size: 14px; }
.btn-danger { background: var(--card); color: var(--bad-fg); border: 1px solid #F3C7C7; min-height: 48px; font-size: 15px; font-weight: 500; }
.linkbtn { border: 0; background: none; padding: 12px; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.round { width: 48px; height: 48px; border-radius: 24px; border: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--card); text-decoration: none; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.chip-ok { background: var(--ok-bg); color: var(--ok-fg); }
.chip-warn { background: var(--warn-bg); color: var(--warn-fg); }
.chip-dark { background: var(--ink); color: #F3F4EF; }
.chip-soft { background: var(--soft); color: var(--ink); }
.card { background: var(--card); border-radius: var(--r-lg); padding: 18px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex-grow: 1; min-width: 0; }
.notice { border-radius: 16px; padding: 12px 14px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.notice-ok { background: var(--ok-bg); color: var(--ok-fg); }
.notice-bad { background: var(--bad-bg); color: var(--bad-fg); }
.notice-warn { background: var(--warn-bg); color: var(--warn-fg); }

.listbar {
  width: 100%; min-height: 64px; border: 0; border-radius: 20px; background: var(--card); color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px; box-shadow: var(--shadow);
}
.listbar .label { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: var(--accent); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.listbar .total { font-size: 18px; font-weight: 700; }

.message { max-width: 440px; margin: 0 auto; min-height: 100dvh; padding: 48px 24px; display: flex; flex-direction: column; justify-content: center; gap: 14px; text-align: center; align-items: center; }
.message h1 { font-size: 26px; }
.message p { color: var(--muted); }

/* ---------- shopper ---------- */

.app { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; }
.screen { min-height: 100dvh; display: flex; flex-direction: column; }

.home { padding: calc(40px + var(--safe-t)) 24px calc(24px + var(--safe-b)); }
.shop-head { display: flex; align-items: center; gap: 12px; }
.shop-head .name { font-size: 18px; font-weight: 700; }
.shop-head .sub { font-size: 13px; color: var(--muted); }
.home .hero { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center; padding: 24px 0; }
.home h1 { font-size: 34px; font-weight: 700; letter-spacing: -.5px; }
.home .lead { font-size: 16px; color: var(--muted); margin-top: 8px; }
.bigscan {
  width: 196px; height: 196px; border-radius: 50%; border: 0; background: var(--ink); color: #F3F4EF;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 0 0 10px var(--soft), 0 20px 40px rgba(16, 20, 19, .18);
  font-size: 18px; font-weight: 600; transition: transform .12s ease;
}
.bigscan:active { transform: scale(.97); }
.bigscan .ic { color: var(--accent); }
.home .foot-note { text-align: center; font-size: 13px; color: var(--muted); }

.cam { background: var(--cam); color: #F3F4EF; position: relative; overflow: hidden; align-items: center; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam .shade { position: absolute; inset: 0; background: rgba(12, 16, 15, .35); pointer-events: none; }
.cam .top { position: relative; width: 100%; padding: calc(16px + var(--safe-t)) 20px 0; display: flex; justify-content: space-between; z-index: 2; }
.cam .round { background: rgba(12, 16, 15, .55); color: #F3F4EF; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cam .round[aria-pressed="true"] { background: #F3F4EF; color: var(--ink); }
.cam .middle { position: relative; z-index: 2; flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; width: 100%; padding: 0 24px; }
.cam .hint { font-size: 16px; color: #E4E9E6; text-align: center; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); min-height: 24px; }
.frame { width: min(300px, 82vw); height: 176px; position: relative; border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(12, 16, 15, .45); }
.frame i { position: absolute; width: 36px; height: 36px; border: 0 solid var(--accent); }
.frame i:nth-child(1) { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 18px; }
.frame i:nth-child(2) { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 18px; }
.frame i:nth-child(3) { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 18px; }
.frame i:nth-child(4) { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 18px; }
.frame .laser { position: absolute; left: 20px; right: 20px; top: 12px; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: sweep 2.4s ease-in-out infinite; }
.frame.hit i { border-color: #F3F4EF; }
.frame.hit .laser { display: none; }
@keyframes sweep { 0%, 100% { top: 12px; } 50% { top: 160px; } }
.cam .pill { min-height: 48px; padding: 0 20px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(12, 16, 15, .45); color: #F3F4EF; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.cam .bottom { position: relative; z-index: 2; width: 100%; padding: 0 24px calc(24px + var(--safe-b)); min-height: 88px; display: flex; align-items: flex-end; }
.cam .listbar { background: #F3F4EF; min-height: 60px; }
.cam .starting { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1; color: #C9D0CC; font-size: 15px; }

.sheet-wrap { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet-wrap .backdrop { position: absolute; inset: 0; background: rgba(12, 16, 15, .55); animation: fade .2s ease; }
.sheet {
  position: relative; width: 100%; max-width: 480px; background: var(--card); color: var(--ink);
  border-radius: 28px 28px 0 0; padding: 14px 24px calc(24px + var(--safe-b));
  display: flex; flex-direction: column; gap: 18px; animation: rise .28s cubic-bezier(.2, .8, .2, 1);
}
.sheet .grab { align-self: center; width: 44px; height: 5px; border-radius: 3px; background: var(--line); }
.sheet .pname { font-size: 22px; font-weight: 600; line-height: 1.35; }
.sheet .pcode { font-size: 13px; color: var(--muted); letter-spacing: 1px; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-big { font-size: 60px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.price-cur { font-size: 20px; font-weight: 600; }
.price-old { margin-inline-start: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.price-old s { font-size: 16px; color: var(--muted); }
.tag-offer { padding: 3px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-fg); font-size: 12px; font-weight: 700; }
.sheet .icon-tile { width: 52px; height: 52px; border-radius: 16px; background: var(--ground); display: flex; align-items: center; justify-content: center; }
.sheet .actions { display: flex; flex-direction: column; gap: 10px; }
.sheet .listbtn { min-height: 52px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-size: 16px; }
.sheet .addbox { margin-top: 4px; }
.sheet .added { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 8px 0 0; }
.sheet .added .stepper button { width: 44px; height: 44px; }
.sheet .added .stepper span { min-width: 32px; font-size: 18px; }
.sheet .added.pop .chip { animation: pop .3s cubic-bezier(.2, .8, .2, 1.4); }
.skeleton { height: 18px; border-radius: 9px; background: linear-gradient(90deg, var(--soft), var(--ground), var(--soft)); background-size: 200% 100%; animation: shimmer 1s linear infinite; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }

.manual, .blocked, .listview { padding: calc(28px + var(--safe-t)) 20px calc(24px + var(--safe-b)); gap: 20px; }
.topbar { display: flex; align-items: center; gap: 12px; }
.topbar h2 { font-size: 22px; font-weight: 700; flex-grow: 1; }
.display { background: var(--card); border-radius: var(--r-lg); padding: 26px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.display .digits { font-size: 32px; font-weight: 700; letter-spacing: 3px; min-height: 48px; display: flex; align-items: center; word-break: break-all; text-align: center; }
.display .digits:empty::before { content: '—'; color: var(--line); }
.display .caret { width: 2px; height: 36px; background: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.where { display: flex; align-items: center; gap: 12px; padding: 0 4px; font-size: 14px; color: var(--muted); }
.keypad { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; direction: ltr; }
.keypad button { height: 60px; border: 0; border-radius: 16px; background: var(--card); font-size: 24px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.keypad button:active { background: var(--soft); }
.keypad .alt { background: var(--soft); font-size: 15px; }

.blocked .icon-tile { width: 72px; height: 72px; border-radius: 22px; background: var(--card); display: flex; align-items: center; justify-content: center; margin-top: 24px; }
.blocked h2 { font-size: 28px; font-weight: 700; }
.steps { display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 12px; font-size: 15px; line-height: 1.6; }
.steps ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.step-n { flex: none; width: 28px; height: 28px; border-radius: 14px; background: var(--ground); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.step-n.go { background: var(--accent); }
.push-end { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

.listview { padding-bottom: 0; }
.items { flex-grow: 1; display: flex; flex-direction: column; gap: 10px; }
.item { background: var(--card); border-radius: 20px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.item .iname { font-size: 16px; font-weight: 600; }
.item .iunit { font-size: 14px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--ground); border-radius: 14px; padding: 4px; flex: none; }
.stepper button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--card); display: flex; align-items: center; justify-content: center; }
.stepper span { min-width: 24px; text-align: center; font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.totalbar { position: sticky; bottom: 0; margin: 0 -20px; background: var(--card); border-radius: 28px 28px 0 0; padding: 20px 24px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -8px 24px rgba(16, 20, 19, .06); }
.totalbar .sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.totalbar .sum b { font-size: 32px; letter-spacing: -1px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); z-index: 40; background: var(--ink); color: #F3F4EF; border-radius: 14px; padding: 12px 18px; font-size: 15px; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: rise .2s ease; }

/* ---------- shop team ---------- */

.team { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.team main { flex-grow: 1; padding: calc(24px + var(--safe-t)) 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.team .head { display: flex; align-items: center; gap: 12px; }
.team .head .who { font-size: 13px; color: var(--muted); }
.team .head h1 { font-size: 22px; font-weight: 700; }
.admin-bar { background: var(--ink); color: #F3F4EF; font-size: 13px; text-align: center; padding: 8px 12px; }
.demo-bar { background: var(--soft); font-size: 13px; text-align: center; padding: 8px 12px; }
.nav { position: sticky; bottom: 0; background: var(--card); padding: 8px 12px calc(10px + var(--safe-b)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; border-top: 1px solid var(--soft); z-index: 10; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; text-decoration: none; color: var(--muted); font-size: 12px; position: relative; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.badge { position: absolute; top: 2px; left: calc(50% - 26px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--warn); color: var(--ink); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--card); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.stat.dark { background: var(--ink); color: #F3F4EF; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat.dark .k { color: #C9D0CC; }
.stat .v { font-size: 34px; font-weight: 700; letter-spacing: -1px; line-height: 1.2; }
.stat .s { font-size: 12px; color: var(--muted); }
.stat.dark .s { color: var(--accent); }
.stat.warn { background: var(--warn-bg); }
.stat.warn .v { color: var(--warn-fg); }
.alert-link { display: flex; align-items: center; gap: 12px; background: var(--warn-bg); border-radius: var(--r-md); padding: 14px 16px; text-decoration: none; }
.alert-link .count { background: var(--warn); }
.alert-link .t { font-size: 15px; font-weight: 700; }
.alert-link .d { font-size: 13px; color: #7C2D12; }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row .top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.bar { height: 6px; border-radius: 3px; background: var(--accent); margin-top: 4px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--card); border-radius: var(--r-md); padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-size: 13px; font-weight: 600; text-align: center; }

.camstrip { height: 170px; border-radius: var(--r-lg); background: var(--cam); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #C9D0CC; }
.camstrip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camstrip .frame { width: 230px; height: 96px; box-shadow: 0 0 0 100vmax rgba(12, 16, 15, .4); }
.camstrip .frame i { width: 24px; height: 24px; }
.camstrip .status { position: absolute; bottom: 10px; z-index: 2; font-size: 13px; color: #E4E9E6; background: rgba(12, 16, 15, .55); padding: 4px 12px; border-radius: 999px; }
.camstrip .start { position: relative; z-index: 2; }
.camstrip .round { position: absolute; top: 10px; left: 10px; z-index: 2; width: 40px; height: 40px; background: rgba(12, 16, 15, .55); color: #F3F4EF; }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  min-height: 50px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card);
  padding: 0 14px; font-size: 16px; width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.field input[readonly] { background: var(--ground); border-color: transparent; }
.field .hint { font-size: 12px; color: var(--muted); }
.field input.price { font-size: 24px; font-weight: 700; min-height: 58px; }
.field input[type="color"] { padding: 4px; height: 50px; }
.field input[type="file"] { padding: 12px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.check input { width: 22px; height: 22px; }

.search { position: relative; }
.search input { width: 100%; min-height: 50px; border: 0; border-radius: 16px; background: var(--card); padding: 0 46px 0 14px; font-size: 16px; }
.search .ic { position: absolute; top: 14px; right: 14px; color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters a { min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); text-decoration: none; display: inline-flex; align-items: center; font-size: 14px; }
.filters a[aria-current="true"] { background: var(--ink); color: #F3F4EF; border-color: var(--ink); }
.plist { display: flex; flex-direction: column; gap: 8px; }
.prow { background: var(--card); border-radius: var(--r-md); padding: 13px 16px; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.prow .n { font-size: 15px; font-weight: 600; display: block; }
.prow .c { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.prow .p { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.prow .p b { font-size: 17px; }
.prow .p s { font-size: 12px; color: var(--warn-fg); }
.fab { position: fixed; left: max(20px, calc(50% - 260px)); bottom: calc(88px + var(--safe-b)); z-index: 11; box-shadow: 0 10px 24px rgba(16, 20, 19, .18); border-radius: 28px; }
.pager { display: flex; justify-content: space-between; gap: 10px; }

.mrow { background: var(--card); border-radius: var(--r-md); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.times { min-width: 44px; height: 40px; padding: 0 6px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-fg); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.mrow form { margin: 0; }

.tiles4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.problems { display: flex; flex-direction: column; }
.problems div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ECEEE9; font-size: 14px; }
.problems div:last-child { border-bottom: 0; }
.problems .l { color: var(--muted); flex: none; min-width: 64px; }
.downloads { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 14px; }

.staff-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #ECEEE9; }
.staff-row:last-child { border-bottom: 0; }
.staff-row form { margin: 0; }

/* sign-in */
.signin { max-width: 440px; margin: 0 auto; min-height: 100dvh; padding: calc(48px + var(--safe-t)) 24px calc(24px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.signin h1 { font-size: 26px; font-weight: 700; margin-top: 4px; }
.signin .shopname { margin-top: 14px; font-size: 14px; color: var(--muted); }
.signin form { width: 100%; display: flex; flex-direction: column; flex-grow: 1; }
.dots { margin: 28px auto 0; display: flex; gap: 14px; direction: ltr; min-height: 16px; }
.dots span { width: 16px; height: 16px; border-radius: 8px; border: 2px solid #9AA39F; }
.dots span.on { background: var(--ink); border-color: var(--ink); }
.signin .pin-input { margin: 20px auto 0; width: 220px; text-align: center; letter-spacing: 8px; font-size: 24px; min-height: 52px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.js .signin .pin-input { position: absolute; opacity: 0; pointer-events: none; width: 1px; min-height: 1px; }
.signin .keypad { margin-top: auto; padding-top: 24px; }
.signin .keypad button { height: 64px; font-size: 26px; }
.signin .btn { margin-top: 14px; }
.demo-people { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.demo-people button { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.demo-people button b { margin-inline-start: 6px; }

/* admin */
.admin { max-width: 720px; margin: 0 auto; padding: calc(28px + var(--safe-t)) 20px 48px; display: flex; flex-direction: column; gap: 14px; }
.shop-row { background: var(--card); border-radius: var(--r-md); padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.shop-row .actions { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.shop-row .actions form { margin: 0; }
details.card summary { cursor: pointer; font-weight: 700; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card[open] summary { margin-bottom: 12px; }
.secret { font-size: 28px; font-weight: 700; letter-spacing: 6px; }

/* home page */
.landing { max-width: 560px; margin: 0 auto; padding: calc(28px + var(--safe-t)) 24px 0; display: flex; flex-direction: column; }
.landing .top { display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.brand em { font-style: normal; color: var(--accent); }
.landing h1 { font-size: 36px; font-weight: 700; letter-spacing: -.5px; margin-top: 40px; }
.landing .lead { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-top: 14px; }
.landing section { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.landing h2 { font-size: 24px; font-weight: 700; }
.preview { background: var(--ink); border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 14px; color: #F3F4EF; }
.preview .pc { background: var(--card); color: var(--ink); border-radius: 20px; padding: 18px; }
.preview .pc .price-big { font-size: 44px; letter-spacing: -1.5px; }
.preview .lb { display: flex; justify-content: space-between; background: var(--ground); color: var(--ink); border-radius: 16px; padding: 12px 16px; font-size: 15px; }
.step { background: var(--card); border-radius: 20px; padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.step .step-n { width: 34px; height: 34px; border-radius: 17px; background: var(--ink); color: #F3F4EF; }
.step .step-n.go { background: var(--accent); color: var(--ink); }
.step b { display: block; font-size: 16px; }
.step span { font-size: 14px; color: var(--muted); }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.feat { background: var(--card); border-radius: 20px; padding: 16px; }
.feat b { display: block; font-size: 15px; }
.feat span { font-size: 13px; color: var(--muted); }
.demo-card { background: var(--card); border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.demo-links { display: flex; flex-direction: column; gap: 8px; }
.demo-links a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--ground); text-decoration: none; }
.demo-links a b { display: block; font-size: 15px; }
.demo-links a span { font-size: 13px; color: var(--muted); }
.landing footer { text-align: center; font-size: 13px; color: var(--muted); padding: 32px 0; }

/* printable pages */
.paper { max-width: 640px; margin: 0 auto; padding: 32px 24px; }
.poster { background: var(--ground); border-radius: 28px; padding: 48px 40px 36px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.poster h1 { font-size: 56px; font-weight: 700; margin-top: 36px; }
.poster .lead { font-size: 22px; line-height: 1.5; color: var(--ink-2); margin-top: 10px; }
.poster .qr { margin-top: 32px; width: 300px; height: 300px; border-radius: 28px; background: #fff; padding: 22px; box-shadow: 0 0 0 10px var(--accent); }
.poster .qr svg { width: 100%; height: 100%; }
.poster .url { margin-top: 26px; font-size: 15px; color: var(--muted); }
.poster .steps3 { margin-top: 28px; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.poster .steps3 div { background: var(--card); border-radius: 18px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.poster .steps3 .step-n { background: var(--ink); color: #F3F4EF; width: 32px; height: 32px; border-radius: 16px; }
.poster .steps3 .step-n.go { background: var(--accent); color: var(--ink); }
.poster .foot { margin-top: 26px; font-size: 13px; color: var(--muted); }
.print-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
/* Each card has its own colour (--c); the bars stay dark on white so every phone reads them. */
.code-card { --c: var(--ink); background: color-mix(in srgb, var(--c) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c) 22%, #fff); border-radius: 20px; padding: 16px 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; break-inside: avoid; }
.code-card .t { align-self: stretch; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.code-card .t .price { background: var(--c); color: #fff; border-radius: 999px; padding: 1px 10px; font-weight: 600; font-size: 13px; }
.code-card .bc { align-self: stretch; background: #fff; border-radius: 14px; padding: 12px 8px 8px; display: flex; justify-content: center; }
.code-card .bc svg { width: 100%; max-width: 230px; height: auto; }
.code-card .sumer-logo { align-self: flex-end; font-size: 12px; color: var(--ink-2); }
.sumer-mark { flex: none; }
.sumer-mark rect { stroke: var(--sumer); }
.sumer-logo { display: inline-flex; align-items: center; gap: 5px; letter-spacing: 1.5px; }
.sumer-logo .ai { color: var(--sumer); margin-inline-start: -1px; }
.made-by .maker { display: inline-flex; align-items: center; gap: 4px; vertical-align: -3px; color: var(--ink-2); }
@media (max-width: 420px) { .codes { grid-template-columns: 1fr; } .poster { padding: 32px 18px; } .poster h1 { font-size: 44px; } .poster .qr { width: 240px; height: 240px; } }
@media print {
  body { background: #fff; }
  .print-actions { display: none; }
  .paper { padding: 0; max-width: none; }
  .poster { border-radius: 0; min-height: 100vh; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.sheet .pcode { text-align: right; }
.field input.ltr { text-align: right; }
.made-by .ltr { font-weight: 600; }
.home .credit { margin-top: 8px; }
.landing section.feats { display: grid; }
