/* زوّار | Zowar — shared styles. Qatar maroon on warm sand. */
:root {
  --maroon: #8A1538;
  --maroon-ink: #6B0F2B;
  --maroon-soft: #F6E7EB;
  --sand: #FBF7F1;
  --sand-2: #F3ECE1;
  --ink: #1F1A17;
  --ink-2: #5B524C;
  --line: #E7DED2;
  --card: #FFFFFF;
  --ok: #0F7B5F;
  --ok-soft: #E3F4EE;
  --warn: #B45309;
  --warn-soft: #FDF1E2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 26, 23, .06), 0 6px 24px rgba(31, 26, 23, .06);
  --brand: var(--maroon);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px; line-height: 1.6;
}
a { color: var(--maroon); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; }
.muted { color: var(--ink-2); }
.center { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 12px; padding: 16px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* buttons & inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--maroon);
  background: var(--maroon); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--maroon-ink); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--maroon); }
.btn.ghost:hover { background: var(--maroon-soft); }
.btn.light { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.light:hover { background: var(--sand-2); }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.sm { min-height: 34px; padding: 4px 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 3px solid rgba(138, 21, 56, .25); outline-offset: 1px; border-color: var(--maroon); }
.hint { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: 14px;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--sand-2); color: var(--ink-2); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.red { background: var(--maroon-soft); color: var(--maroon); }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.switch input { width: 44px; height: 26px; min-height: 0; appearance: none; border-radius: 99px; background: var(--line); position: relative; border: 0; cursor: pointer; }
.switch input::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { inset-inline-start: 21px; }

/* toast */
#toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 99;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 12px; max-width: calc(100% - 32px);
  box-shadow: var(--shadow); font-size: 15px;
}
#toast.err { background: var(--maroon); }

/* auth screens */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth .card { width: min(420px, 100%); }
.brandmark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.brandmark .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--maroon); display: grid; place-items: center; color: #fff; font-size: 18px; }
.code-input { letter-spacing: .4em; text-align: center; font-size: 22px; direction: ltr; }

/* ---------- dashboard ---------- */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: #fff; border-inline-end: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side .shopname { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.side .shopname .logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.side a.nav:hover { background: var(--sand); }
.side a.nav[aria-current="page"] { background: var(--ink); color: #fff; }
.side .foot { margin-top: auto; font-size: 13px; color: var(--ink-2); display: grid; gap: 6px; padding: 8px; }
.main { padding: 22px; max-width: 1200px; width: 100%; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.trialbar { background: var(--maroon-soft); color: var(--maroon-ink); border-radius: 12px; padding: 8px 14px; font-size: 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mobile-top { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 260px; z-index: 50; transform: translateX(100%); transition: transform .2s; box-shadow: var(--shadow); }
  [dir="rtl"] .side { transform: translateX(100%); }
  .side.open { transform: none !important; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
  .main { padding: 16px; }
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 26px; }
.stat span { font-size: 13px; color: var(--ink-2); }
.stat.hot { border-color: var(--maroon); background: var(--maroon-soft); }
.addbar { display: flex; gap: 10px; margin-bottom: 16px; }
.addbar input { font-size: 22px; font-weight: 700; direction: ltr; text-align: center; max-width: 220px; }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .board { grid-template-columns: 1fr; } }
.col { background: var(--sand-2); border-radius: var(--radius); padding: 12px; min-height: 200px; }
.col h2 { font-size: 16px; display: flex; justify-content: space-between; }
.tickets { display: grid; gap: 10px; }
.ticket { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.ticket .num { font-size: 30px; font-weight: 700; min-width: 64px; text-align: center; direction: ltr; }
.ticket .meta { font-size: 13px; color: var(--ink-2); display: grid; gap: 2px; }
.ticket .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ticket.ready { border-color: var(--ok); }
.ticket.coming { box-shadow: 0 0 0 2px var(--ok) inset; }
.empty { text-align: center; color: var(--ink-2); padding: 24px 8px; font-size: 14px; }
.checklist { display: grid; gap: 8px; margin-bottom: 16px; }
.checklist .step { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.checklist .step.done { opacity: .6; text-decoration: line-through; }
table.list { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
table.list th, table.list td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.list th { background: var(--sand-2); font-weight: 600; }
.section { margin-bottom: 22px; }
.section > h2 { font-size: 18px; }
.keybox { direction: ltr; font-family: ui-monospace, Menlo, monospace; background: var(--ink); color: #fff; padding: 12px; border-radius: 10px; word-break: break-all; font-size: 14px; }
pre.code { direction: ltr; text-align: left; background: #1f1a17; color: #f3ece1; padding: 12px; border-radius: 10px; overflow: auto; font-size: 13px; }
.cat-block { margin-bottom: 18px; }
.cat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.items { display: grid; gap: 8px; }
.item-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.item-row img, .item-row .ph { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--sand-2); display: grid; place-items: center; color: var(--ink-2); font-size: 12px; }
dialog { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100% - 24px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(31, 26, 23, .45); }
dialog .dlg { padding: 20px; }
dialog .dlg-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

/* ---------- customer pager page ---------- */
.q-page { min-height: 100svh; display: flex; flex-direction: column; align-items: center; padding: 16px; gap: 14px; }
.q-head { width: 100%; max-width: 440px; display: flex; align-items: center; justify-content: space-between; }
.q-shop { display: flex; align-items: center; gap: 10px; }
.q-shop .logo, .logo.ph { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.pager { width: 100%; max-width: 440px; background: #1d1917; border-radius: 26px; padding: 20px; color: #fff; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.lcd { background: #0f0d0c; border-radius: 16px; padding: 18px 10px; margin-bottom: 14px;
  background-image: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.4px); background-size: 9px 9px; }
.lcd .n { font-size: clamp(64px, 22vw, 108px); font-weight: 700; letter-spacing: .04em; direction: ltr; line-height: 1; color: #fff; text-shadow: 0 0 18px rgba(255,255,255,.45); }
.pager h1 { font-size: 22px; margin: 6px 0; }
.pager p { color: #d6cfc8; margin: 0 0 12px; }
.pager .btn { width: 100%; }
.pager .btn.light { color: var(--ink); }
.pager .note { background: rgba(255,255,255,.07); border-radius: 12px; padding: 10px; font-size: 14px; color: #e9e3dc; margin-bottom: 10px; }
.q-ready { position: fixed; inset: 0; background: var(--brand); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; z-index: 30;
  background-image: radial-gradient(rgba(255,255,255,.12) 1.4px, transparent 1.6px); background-size: 10px 10px; animation: flash 1.2s ease-in-out 3; }
.q-ready .n { font-size: clamp(90px, 34vw, 170px); font-weight: 700; line-height: 1; direction: ltr; }
.q-ready h1 { font-size: 30px; margin: 0; }
.q-ready .btn { background: #fff; color: var(--ink); border-color: #fff; min-width: 220px; font-size: 18px; }
@keyframes flash { 50% { filter: brightness(1.25); } }
.stars { display: flex; justify-content: center; gap: 6px; direction: ltr; }
.stars button { background: none; border: 0; font-size: 36px; cursor: pointer; color: #cfc6bd; padding: 2px; }
.stars button.on { color: #F5B301; }
.claim { width: 100%; max-width: 440px; }
.powered { font-size: 13px; color: var(--ink-2); text-align: center; padding: 12px; }
.powered a { color: var(--ink-2); }

/* ---------- waiting screen (TV) ---------- */
.display { min-height: 100vh; background: #141110; color: #fff; display: grid; grid-template-rows: auto 1fr; }
.display header { display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; }
.display .cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; }
.display .dcol { padding: 18px 28px; }
.display .dcol + .dcol { background: var(--brand); }
.display h2 { font-size: 30px; opacity: .9; }
.display .nums { display: flex; flex-wrap: wrap; gap: 14px; }
.display .nums span { font-size: 54px; font-weight: 700; background: rgba(255,255,255,.08); border-radius: 16px; padding: 4px 22px; direction: ltr; }
.display .dcol + .dcol .nums span { font-size: 80px; background: rgba(255,255,255,.16); }
.display .nums span.new { animation: flash 1s ease-in-out 4; outline: 4px solid #fff; }
.display .start { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.7); }

/* ---------- public menu ---------- */
.menu-page { max-width: 720px; margin: 0 auto; padding: 0 16px 24px; }
.menu-head { text-align: center; padding: 26px 0 10px; }
.menu-head .logo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 8px; object-fit: cover; }
.menu-head .logo.ph { font-size: 28px; }
.menu-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; font-size: 14px; }
.menu-nav { position: sticky; top: 0; background: var(--sand); display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; z-index: 5; border-bottom: 1px solid var(--line); }
.menu-nav a { white-space: nowrap; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.menu-cat { padding-top: 18px; }
.menu-cat h2 { font-size: 20px; display: flex; gap: 8px; align-items: baseline; }
.menu-cat h2 small { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.menu-item { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.menu-item img { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; flex: none; }
.menu-item h3 { font-size: 17px; margin: 0; }
.menu-item .mi-en { margin: 0; font-size: 13px; color: var(--ink-2); }
.menu-item .mi-desc { margin: 4px 0; font-size: 14px; color: var(--ink-2); }
.menu-item .mi-meta { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.menu-item .price { font-weight: 700; color: var(--brand); }
.menu-item .cal { font-size: 13px; color: var(--ink-2); }
.menu-item.soldout { opacity: .55; }

/* ---------- print card ---------- */
.print-card { max-width: 480px; margin: 24px auto; background: #fff; border: 2px solid var(--brand); border-radius: 24px; padding: 28px; text-align: center; }
.print-card .pc-head { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 22px; margin-bottom: 12px; }
.print-card .pc-head img { border-radius: 12px; }
.print-card h1 { font-size: 24px; }
.print-card .en { color: var(--ink-2); margin-top: -4px; }
.print-card .qr svg { width: 260px; height: 260px; margin: 12px auto; display: block; }
.print-card .steps { text-align: start; display: inline-block; margin: 6px auto 10px; }
.print-card .brandline { font-weight: 700; color: var(--brand); }
@media print { .no-print { display: none !important; } body { background: #fff; } .print-card { margin: 0 auto; box-shadow: none; } }

/* ---------- landing ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; max-width: 1100px; margin: 0 auto; }
.hero { max-width: 1100px; margin: 0 auto; padding: 32px 16px 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--maroon); }
.hero p.lead { font-size: 19px; color: var(--ink-2); }
.hero .ticks { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.phone { width: min(300px, 80vw); margin: 0 auto; aspect-ratio: 9 / 18; border-radius: 40px; background: var(--maroon); border: 10px solid #1d1917; color: #fff; display: grid; place-content: center; text-align: center; gap: 6px;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.4px, transparent 1.6px); background-size: 10px 10px; box-shadow: 0 30px 60px rgba(138,21,56,.25); }
.phone .n { font-size: 96px; font-weight: 700; line-height: 1; }
.phone .pill { background: #fff; color: var(--ink); border-radius: 12px; padding: 8px 20px; font-weight: 600; margin-top: 10px; }
.band { max-width: 1100px; margin: 0 auto; padding: 32px 16px; }
.band > h2 { font-size: 30px; text-align: center; margin-bottom: 22px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.features .card h3 { font-size: 19px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } }
.how .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--maroon); color: #fff; font-weight: 700; margin-bottom: 8px; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .prices { grid-template-columns: 1fr; } }
.prices .card.pro { border: 2px solid var(--maroon); }
.prices .amount { font-size: 34px; font-weight: 700; }
.prices ul { padding-inline-start: 18px; margin: 10px 0 16px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { font-weight: 600; cursor: pointer; }
.site-foot { border-top: 1px solid var(--line); padding: 24px 16px; text-align: center; color: var(--ink-2); font-size: 14px; }
.site-foot a { color: var(--ink-2); margin: 0 8px; }
.prose { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }

.qr svg { width: 180px; height: 180px; display: block; }

/* ---------- loyalty stamp card ---------- */
.stampcard { width: 100%; max-width: 440px; background: var(--card, #8A1538); color: #fff; border-radius: 20px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
  background-image: radial-gradient(rgba(255,255,255,.10) 1.2px, transparent 1.4px); background-size: 10px 10px; }
.sc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 15px; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 8px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,255,255,.55); display: grid; place-items: center; font-size: 20px; }
.stamp.on { background: #fff; border-style: solid; border-color: #fff; }
.stamp.last:not(.on) { border-style: solid; background: rgba(255,255,255,.12); }
.sc-reward { margin-top: 12px; font-size: 14px; background: rgba(0,0,0,.18); border-radius: 10px; padding: 8px 10px; }
.sc-reward.ready { background: #fff; color: var(--ink); font-weight: 700; }
.card-page { min-height: 100svh; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px; }
.card-page .qrbox { background: #fff; border-radius: 16px; padding: 14px; text-align: center; width: 100%; max-width: 440px; border: 1px solid var(--line); }
.card-page .qrbox .qr svg { margin: 0 auto; }
.wallet-btns { display: grid; gap: 8px; width: 100%; max-width: 440px; }
.wallet-btns .btn { background: #000; border-color: #000; }
.scan-video { width: 100%; max-width: 360px; border-radius: 14px; background: #000; }
.ticket .card-tag { font-weight: 600; }
.lp-preview { display: grid; place-items: center; padding: 10px; background: var(--sand-2); border-radius: 14px; }
.icon-chip { font-size: 20px; min-width: 46px; }

[hidden] { display: none !important; }

/* ---------- offers & menu loyalty ---------- */
.menu-offers h2 { font-size: 20px; padding-top: 18px; }
.offer-list { display: grid; gap: 10px; }
.offer-card { display: flex; gap: 12px; background: var(--maroon-soft); border: 1px solid #ecc9d3; border-radius: 14px; padding: 12px; }
.offer-card img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; flex: none; }
.offer-card h3 { font-size: 17px; margin: 6px 0 2px; }
.offer-code { margin: 4px 0 0; font-size: 14px; }
.menu-item .was { color: var(--ink-2); font-size: 13px; }
.menu-loyalty { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--brand); color: #fff; text-decoration: none; }
.menu-loyalty span { font-size: 14px; opacity: .9; }
.offer-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.state-live { background: var(--ok-soft); color: var(--ok); }
.state-scheduled { background: #E8F0FE; color: #1E40AF; }
.state-expired, .state-used_up, .state-paused, .state-draft { background: var(--sand-2); color: var(--ink-2); }
.items-pick { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; gap: 4px; }
.items-pick label { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; }
.items-pick input { width: auto; min-height: 0; }
.progress { height: 10px; background: var(--sand-2); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--maroon); width: 0; transition: width .3s; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; border-bottom: 1px solid var(--line); padding-top: 6px; }
.bars span { flex: 1; background: var(--maroon); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.heat { display: grid; grid-template-columns: 56px repeat(24, 1fr); gap: 2px; font-size: 11px; direction: ltr; }
.heat i { aspect-ratio: 1; border-radius: 3px; background: var(--maroon); }
.heat b { font-weight: 500; text-align: right; padding-right: 6px; color: var(--ink-2); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

.print-card .table-label { font-size: 30px; font-weight: 700; color: var(--brand); margin: 0; }

/* ---------- mobile ordering ---------- */
.order-page { max-width: 720px; margin: 0 auto; padding: 12px 16px 96px; }
.order-page .q-head { margin: 0 auto 8px; max-width: none; }
.order-page main { display: grid; gap: 14px; }
.order-page .menu-nav a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.order-page .menu-item img { width: 72px; height: 72px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty b { min-width: 18px; text-align: center; }
.cartbar { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); width: min(688px, calc(100% - 32px)); display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--brand); color: #fff; padding: 14px 18px; border-radius: 16px; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 20; }
.checkout .chips .chip { font-size: 15px; padding: 8px 16px; }
.incoming { border: 2px solid var(--maroon); background: #fff; border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.incoming ul { margin: 0; padding-inline-start: 18px; }
.incoming .who { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.incoming-col { background: var(--maroon-soft); border-radius: var(--radius); padding: 12px; margin-bottom: 14px; }
.incoming-col h2 { font-size: 16px; display: flex; justify-content: space-between; align-items: center; }

/* landing demo order: "you're the cashier" box on the pager page */
.demo-box { width: 100%; max-width: 440px; margin: 0 auto; padding: 18px; border-radius: 18px; border: 2px dashed var(--brand, #8A1538); text-align: center; display: grid; gap: 10px; }
.demo-box p { margin: 0; }
.demo-box .demo-count { min-height: 1.6em; font-weight: 700; color: var(--brand, #8A1538); }
.demo-box .demo-start { font-size: 14px; }
.q-ready .demo-box { border-color: rgba(255,255,255,.6); margin-top: 18px; }
.q-ready .demo-box .demo-count, .q-ready .demo-box a { color: #fff; }
.q-ready .demo-box .btn { background: #fff; color: var(--brand); }

/* order numbers in a dot-matrix face, like a pager display (Doto, OFL, Google Fonts) */
.lcd .n, .q-ready .n, .display .nums span { font-family: 'Doto', ui-monospace, monospace; font-weight: 900; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* ================= dashboard v2: icon sidebar, phone tab bar, screens menu, order cards, features hub ================= */
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; }
.app { grid-template-columns: 252px 1fr; }
.app-main { min-width: 0; }
.side { padding: 18px 14px; gap: 2px; }
.side .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; color: var(--maroon); text-decoration: none; padding: 0 8px 14px; }
.side .brand i { width: 30px; height: 30px; border-radius: 9px; background: var(--maroon); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 16px; }
.shopname { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: #fff; }
.shopname .logo, .mobile-top .logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.shopname b { display: block; line-height: 1.2; }
.side .shopname { border-bottom: 1px solid var(--line); padding: 10px; margin-bottom: 12px; }
.navlist { display: grid; gap: 2px; }
.navlist a.nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; }
.navlist a.nav:hover { background: var(--sand); }
.navlist a.nav[aria-current="page"] { background: var(--ink); color: #fff; }
.navlist .lock { margin-inline-start: auto; font-size: 12px; }
.side .foot, .sheet .foot { margin-top: auto; display: grid; gap: 8px; padding: 8px 4px; font-size: 13px; color: var(--ink-2); }
.foot a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.foot a:hover { color: var(--ink); }
.foot .help { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff; color: var(--ink); margin-bottom: 6px; }
.foot .help b { display: block; font-size: 14px; }
.foot .help small { color: var(--ink-2); }
.foot .who { border-top: 1px solid var(--line); padding-top: 8px; text-align: end; }
.main { padding: 26px 28px 40px; }
.topbar h1 { font-size: 28px; margin: 0; }
.trialbar { padding: 8px 10px 8px 16px; }
.trialbar .btn.sm { min-height: 30px; border-radius: 999px; }
.crumb { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.crumb:hover { color: var(--maroon); }

/* header pills + «الشاشات» menu */
.pill-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.pill-btn::-webkit-details-marker { display: none; }
.pill-btn:hover { background: var(--sand-2); }
.pill-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.screens { position: relative; }
.screens[open] > summary { background: var(--sand-2); }
.scr-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30; width: min(440px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 20px 50px -18px rgba(31,26,23,.35); }
.scr-h { font-size: 12px; color: var(--ink-2); margin: 4px 4px 8px; }
.scr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.scr { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.scr:hover { border-color: var(--ink); }
.scr-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--sand-2); display: grid; place-items: center; }
.scr b { font-size: 14px; }
.scr small { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.scr-all { display: block; text-align: center; padding: 10px; border-top: 1px solid var(--line); margin-top: 4px; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 14px; }

/* stats, add bar, search */
.stat { border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.stat span { order: 0; }
.stat b { font: 900 34px/1 'Doto', ui-monospace, monospace; }
.stat.hot { border-color: #F3C4D1; background: #FDF0F3; }
.stat.hot b { color: var(--maroon); }
.addrow { justify-content: space-between; align-items: stretch; }
.addbar { flex: 1; margin-bottom: 14px; }
.addbar input { max-width: none; flex: 1; min-height: 56px; border-radius: 16px; font: 900 28px 'Doto', ui-monospace, monospace; }
.addbar input::placeholder { font: 500 17px 'IBM Plex Sans Arabic', sans-serif; }
.addbar .btn { min-height: 56px; border-radius: 16px; padding: 0 26px; font-size: 18px; }
.searchbar { display: flex; align-items: center; gap: 8px; max-width: 320px; margin: 0 auto 16px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); }
.searchbar input { border: 0; min-height: 42px; padding: 0; background: transparent; outline: none; }
.searchbar:focus-within { border-color: var(--maroon); }

/* order cards */
.col { border-radius: 20px; padding: 14px; }
.col h2 { font-size: 17px; align-items: center; }
.col h2 span { font: 900 20px 'Doto', ui-monospace, monospace; }
.board .col + .col { background: #FDF0F3; }
.board .col + .col h2 span { color: var(--maroon); }
.ticket { display: grid; grid-template-columns: 1fr; gap: 12px; border-radius: 16px; padding: 14px; }
.ticket .t-top { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.ticket .num { font: 900 46px/1 'Doto', ui-monospace, monospace; min-width: 70px; }
.ticket .acts { justify-content: flex-start; align-items: center; flex-direction: row-reverse; }
.ticket .acts .btn { border-radius: 999px; }
.ticket.ready .num { color: var(--ok); }
.more { position: relative; }
.more summary { list-style: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover, .more[open] summary { background: var(--sand-2); color: var(--ink); }
.more-list { position: absolute; inset-inline-end: 0; top: calc(100% + 4px); z-index: 20; min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 16px 40px -14px rgba(31,26,23,.35); display: grid; }
.more-list button { text-align: start; border: 0; background: none; font: inherit; font-size: 14px; padding: 9px 12px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.more-list button:hover { background: var(--sand); }
.more-list button.danger { color: var(--maroon); }

/* «كود الطلب» popup */
.oc-dialog { width: min(360px, calc(100% - 24px)); border-radius: 24px; }
.order-code { text-align: center; display: grid; justify-items: center; gap: 6px; }
.order-code small { color: var(--ink-2); }
.oc-num { font: 900 56px/1 'Doto', ui-monospace, monospace; }
.order-code .qr svg { width: 230px; height: 230px; }
.oc-dialog .dlg-actions { justify-content: center; }
@media print {
  body.print-dialog > *:not(dialog) { display: none !important; }
  body.print-dialog dialog { position: static; box-shadow: none; border: 0; }
  body.print-dialog dialog::backdrop { display: none; }
  body.print-dialog .dlg-actions { display: none; }
}

/* features hub */
.feat-grid { display: grid; gap: 14px; max-width: 860px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.feat-h { display: flex; align-items: center; gap: 12px; }
.feat-h h2 { font-size: 19px; margin: 0; }
.feat-h .state { margin-inline-start: auto; }
.feat-ic { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.feat > p { margin: 10px 0 0; color: var(--ink-2); }
.feat .plan-note { font-size: 13px; margin-top: 4px; }
.feat-acts { margin-top: 14px; }
.feat-acts .btn { border-radius: 999px; }
.feat.locked { background: var(--sand); }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state.on { color: var(--ok); }
.state.off { color: var(--ink-2); }
.modes-list { margin-top: 14px; display: grid; gap: 8px; }
.mode-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.mode-row b { display: block; font-size: 15px; }
.mode-row small { color: var(--ink-2); }

/* phones: bottom tab bar + «المزيد» sheet */
.tabbar { display: none; }
.sheet { width: 100%; max-width: 520px; margin: auto auto 0; border-radius: 24px 24px 0 0; padding: 0; max-height: 86dvh; }
.sheet::backdrop { background: rgba(31,26,23,.45); }
.sheet[open] { animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-in { position: relative; padding: 14px 16px 24px; display: grid; gap: 10px; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 6px; }
.sheet .x { position: absolute; inset-inline-start: 12px; top: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--ink-2); }
.sheet .navlist a.nav { border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .mobile-top { display: flex; }
  .main { padding: 16px 16px 96px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none; font: inherit; font-size: 11px; color: var(--ink-2); text-decoration: none; cursor: pointer; border-radius: 14px; }
  .tabbar [aria-current="page"] { color: var(--ink); font-weight: 700; }
  .tabbar [aria-current="page"] .ic { background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 12px; width: 46px; height: 30px; }
  .topbar h1 { font-size: 26px; }
  .scr-grid { grid-template-columns: 1fr; }
  .scr-pop { inset-inline-end: auto; inset-inline-start: 0; }
}
@media (max-width: 560px) {
  .addbar .btn { padding: 0 16px; }
  .addbar input { font-size: 24px; }
  .stat b { font-size: 28px; }
}

/* analytics */
.an-card h2 { font-size: 16px; }
.chart { display: grid; grid-template-columns: auto 1fr; gap: 8px; direction: ltr; }
.chart .y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--ink-2); height: 140px; text-align: right; }
.chart .x { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); margin-top: 4px; }
.chart .bars { background: repeating-linear-gradient(to bottom, transparent 0 69px, var(--line) 69px 70px); }
.an-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 26px 0 10px; }
.an-h h2 { font-size: 20px; margin: 0; }
.eq { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 10px; }
.eq .op { font: 900 26px 'Doto', monospace; color: var(--ink-2); }
.an-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.an-two .card { margin-bottom: 14px; }
.stack-bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; border-bottom: 1px solid var(--line); direction: ltr; }
.stack-bars span { flex: 1; display: flex; flex-direction: column; border-radius: 6px 6px 0 0; overflow: hidden; min-height: 2px; }
.stack-bars i { display: block; min-height: 0; }
.stack-bars i.new, .k.new::before { background: var(--maroon); }
.stack-bars i.ret, .k.ret::before { background: var(--ok); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.k::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: middle; }
.split { display: flex; height: 18px; border-radius: 99px; overflow: hidden; background: var(--sand-2); }
.split i.push, .k.push::before { background: var(--ok); }
.split i.page, .k.page::before { background: #E3A008; }
.split i.none, .k.none::before { background: #CFC6BD; }
.stars-dist { display: grid; gap: 8px; }
.sd-row { display: grid; grid-template-columns: 40px 1fr 30px; gap: 10px; align-items: center; font-size: 14px; }
.sd-bar { height: 10px; background: var(--sand-2); border-radius: 99px; overflow: hidden; }
.sd-bar i { display: block; height: 100%; background: #F5B301; }
.rank { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sand-2); font-size: 12px; }
@media (max-width: 760px) { .an-two { grid-template-columns: 1fr; } .eq { grid-template-columns: 1fr; } .eq .op { display: none; } }

/* ---------- customer screen (kiosk tablet at the counter) ---------- */
.kiosk-body { background: var(--brand); }
.kiosk { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 24px 32px; color: #fff;
  background-image: radial-gradient(rgba(255,255,255,.10) 1.4px, transparent 1.6px); background-size: 12px 12px; }
.kiosk .q-shop b { font-size: 22px; }
.k-stage { display: grid; place-items: center; text-align: center; }
.k-order { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; text-align: start; max-width: 980px; }
.k-num { display: block; font: 900 clamp(90px, 16vw, 170px)/1 'Doto', ui-monospace, monospace; margin: 4px 0 16px; }
.k-big { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; margin: 0 0 8px; }
.k-order p, .k-wait p, .k-done p { margin: 0 0 6px; font-size: 20px; opacity: .92; }
.k-en { opacity: .7 !important; font-size: 16px !important; direction: ltr; }
.k-qr { background: #fff; padding: 22px; border-radius: 28px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.k-qr svg { width: min(360px, 38vw); height: min(360px, 38vw); display: block; }
.k-done .k-num { margin-bottom: 8px; }
.k-idle { font-size: 20px; }
.k-foot { text-align: center; opacity: .6; font-size: 13px; }
@media (max-width: 760px) { .k-order { grid-template-columns: 1fr; text-align: center; gap: 24px; } .k-qr svg { width: 70vw; height: 70vw; } }
.branch .b-h { font-size: 16px; margin: 22px 0 2px; }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.way { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.way-h { display: flex; align-items: center; gap: 10px; }
.way .qr { justify-self: center; }
.way .qr svg { width: 150px; height: 150px; }
.linkbox { font-family: ui-monospace, monospace; font-size: 12px; background: var(--sand); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } }
/* billing */
.bill-status { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; }
.bill-big { font-size: 32px; font-weight: 700; margin: 8px 0 4px; }
.bill-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bill-nums > div { background: var(--sand); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; }
.bill-nums small { color: var(--ink-2); font-size: 13px; }
.bill-nums b { font: 900 30px/1 'Doto', ui-monospace, monospace; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; align-items: start; }
.plan-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 6px; }
.plan-card.pro { border: 2px solid var(--ink); }
.plan-card.current { box-shadow: 0 0 0 3px var(--ok-soft); border-color: var(--ok); }
.plan-card h3 { font-size: 20px; margin: 0; }
.plan-badge { position: absolute; top: -12px; inset-inline-start: 16px; background: var(--ink); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.plan-price { margin: 8px 0; }
.plan-price b { font: 900 38px/1 'Doto', ui-monospace, monospace; }
.plan-price b.soon { font: 700 26px var(--body, inherit); }
.plan-price small { color: var(--ink-2); }
.plan-card ul { list-style: none; padding: 0; margin: 6px 0 12px; display: grid; gap: 6px; font-size: 14px; }
.plan-card li::before { content: '✓'; color: var(--ok); font-weight: 700; margin-inline-end: 8px; }
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; }
@media (max-width: 860px) { .plans-grid, .bill-status { grid-template-columns: 1fr; } }
.k-head { display: flex; align-items: center; justify-content: space-between; }
.k-fs { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.k-fs:hover { background: rgba(255,255,255,.22); }
.k-wait .k-title { font-size: clamp(40px, 6vw, 72px); font-weight: 700; margin: 0 0 12px !important; opacity: 1 !important; }
.k-wait p:not(.k-title):not(.k-en) { max-width: 30em; margin-inline: auto; }
