@font-face { font-family: "Readex Pro"; font-weight: 160 700; font-display: swap; src: url("../fonts/readex-pro-arabic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Readex Pro"; font-weight: 160 700; font-display: swap; src: url("../fonts/readex-pro-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --bg: #e7eaf0; --card: #fff; --ink: #111827; --ink2: #1f2937; --muted: #6b7385; --line: #dde1ea; --soft: #eef0f5;
  --brand: #111827; --brand2: #2f4bff; --accent: #ffb020;
  --ok: #087f5b; --ok-bg: #dcf5ea; --info: #2f4bff; --info-bg: #e5e9ff; --warn: #a45d00; --warn-bg: #fff0cf; --bad: #d1284a; --bad-bg: #fde4ea;
  --r: 18px; --tap: 52px;
  --font: "Readex Pro", "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 16px; color: var(--ink); background: var(--bg); touch-action: manipulation; overscroll-behavior: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; }
small { font-size: .78em; color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); } .center { text-align: center; }
[hidden] { display: none !important; }
.pos-page, .kds-page, .login-page { user-select: none; -webkit-user-select: none; overflow: hidden; }
.print-frame { position: fixed; right: 0; bottom: 0; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }

/* ---------- الأزرار (≥ 48px، ردّ فعل فوري) ---------- */
.btn { min-height: var(--tap); min-width: 48px; padding: 0 18px; border: 0; border-radius: 12px; background: #dfe8e6; color: var(--ink); font-weight: 700; font-size: 17px;
  transition: transform .05s, filter .05s, background .1s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.btn:active, .top-btn:active, .mode:active, .chip:active, .opt:active, .pick-btn:active, .np-key:active, .kb-key:active, .pm:active, .cat:active, .mini:active, .stepper button:active {
  transform: scale(.95); filter: brightness(.88); }
.btn.primary { background: var(--brand2); color: #fff; }
.btn.ghost { background: #fff; border: 1.5px solid var(--line); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.sm { min-height: 48px; padding: 0 12px; font-size: 15px; }
.btn.big { min-height: 64px; font-size: 20px; }
.btn[disabled], button[disabled] { opacity: .45; pointer-events: none; }
.btn.on { background: var(--info-bg); border-color: var(--info); color: var(--info); }
.icon-btn { width: 48px; height: 48px; border: 0; background: transparent; font-size: 22px; border-radius: 12px; }
.chip { min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); background: #fff; border-radius: 24px; font-weight: 600; }
.chip.on { background: var(--brand2); color: #fff; border-color: var(--brand2); }
.chip.alt { border-style: dashed; color: var(--brand2); }
.mini { min-width: 48px; min-height: 48px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; font-size: 18px; }
.mini.del { color: var(--bad); border-color: #f1c4c4; font-size: 15px; font-weight: 700; }

/* ---------- الشاشة الرئيسية ---------- */
.app { display: grid; grid-template-rows: 60px 1fr; height: 100dvh; }
.topbar, .kds-top { display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--brand); color: #fff; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 18px; white-space: nowrap; }
.logo-sm { font-size: 24px; }
.modes { display: flex; gap: 6px; flex: 1; justify-content: center; }
.mode { min-height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: 16px; position: relative; display: inline-flex; align-items: center; gap: 6px; }
.mode.on { background: #fff; color: var(--brand); }
.count { background: var(--accent); color: #fff; border-radius: 12px; padding: 0 8px; font-size: 13px; min-width: 22px; text-align: center; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.top-btn { min-height: 48px; padding: 0 12px; border: 0; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
.top-btn.warn { background: var(--accent); }
.who { font-size: 14px; white-space: nowrap; } .who small { color: #b8d0ce; }

.work { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 32vw, 430px); min-height: 0; }
.main { display: flex; flex-direction: column; min-height: 0; padding: 10px 12px 0; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; flex-shrink: 0; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 auto; min-height: 52px; min-width: 100px; padding: 0 18px; border: 1.5px solid var(--line); background: #fff; border-radius: 26px; font-weight: 700; font-size: 17px; }
.cat.on { background: var(--brand2); color: #fff; border-color: var(--brand2); }
.items { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; align-content: start; padding: 2px 2px 16px; overscroll-behavior: contain; }
.item { position: relative; min-height: 104px; border: 0; background: var(--card); border-radius: var(--r); box-shadow: 0 1px 3px rgba(0,0,0,.13); padding: 10px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; transition: transform .05s, box-shadow .05s; overflow: hidden; }
.item img { width: 100%; height: 64px; object-fit: cover; border-radius: 10px; }
.item .nm { font-weight: 700; font-size: 17px; line-height: 1.3; }
.item .pr { color: var(--brand2); font-weight: 700; font-size: 16px; }
.item:active, .item.tap { transform: scale(.94); background: #e4f5ea; box-shadow: inset 0 0 0 2px var(--ok); }
.item .opt-flag { position: absolute; top: 6px; inset-inline-start: 8px; font-size: 14px; color: var(--muted); }
.item .badge { position: absolute; top: 6px; inset-inline-end: 8px; min-width: 28px; height: 28px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.item.unavail { opacity: .55; background: #e9eceb; }
.item .un-flag { position: absolute; bottom: 0; inset-inline: 0; background: var(--bad); color: #fff; font-size: 13px; padding: 2px 0; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; grid-column: 1 / -1; }

/* ---------- الطاولات ---------- */
.legend { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; flex-shrink: 0; }
.lg { padding: 4px 12px; border-radius: 14px; font-size: 14px; font-weight: 700; }
.st-free { background: var(--ok-bg); color: var(--ok); } .st-ordering { background: var(--warn-bg); color: var(--warn); }
.st-occupied { background: var(--bad-bg); color: var(--bad); } .st-bill { background: var(--info-bg); color: var(--info); }
.tables-wrap { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 16px; }
.zone { margin: 8px 0 8px; color: var(--muted); font-size: 16px; }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tbl { min-height: 108px; border-radius: var(--r); border: 2.5px solid; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 16px; transition: transform .05s; }
.tbl b { font-size: 20px; }
.tbl .st { font-weight: 800; font-size: 15px; }
.tbl.st-free { border-color: #3aa76d; } .tbl.st-ordering { border-color: #e0a100; } .tbl.st-occupied { border-color: #d64545; } .tbl.st-bill { border-color: #3b6fd6; }
.tbl:active, .tbl.tap { transform: scale(.94); filter: brightness(.9); }
.tbl.dim { opacity: .35; }
.pick-banner { background: var(--warn-bg); border: 1.5px solid #e0a100; border-radius: 12px; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; flex-shrink: 0; }

/* ---------- السلة ---------- */
.cart { background: var(--card); border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-shrink: 0; min-height: 60px; }
.cart-head h2 { font-size: 18px; line-height: 1.3; } .cart-head h2 small { font-size: 15px; color: var(--brand2); font-weight: 800; }
.head-btns { display: flex; gap: 6px; }
.deliv-card { margin: 8px 12px 0; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #f7faf9; text-align: start; display: flex; flex-direction: column; gap: 2px; min-height: 52px; flex-shrink: 0; }
.deliv-card.need { border-color: var(--accent); background: #fff1e8; color: var(--accent); font-weight: 700; justify-content: center; }
.lines { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px; }
.empty-cart { display: grid; place-items: center; height: 100%; color: var(--muted); text-align: center; }
.line { padding: 8px 2px; border-bottom: 1px solid var(--line); }
.line.is-cancel { opacity: .55; } .line.is-cancel .l-name b { text-decoration: line-through; }
.l-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.l-name { display: flex; flex-direction: column; font-size: 16px; line-height: 1.35; }
.l-sub { display: block; color: var(--muted); } .l-note { display: block; color: #8a4b00; background: var(--warn-bg); border-radius: 8px; padding: 1px 8px; margin-top: 2px; font-weight: 700; font-size: 14px; }
.l-total { font-weight: 800; white-space: nowrap; }
.l-bot { display: flex; align-items: center; gap: 8px; margin-top: 6px; justify-content: flex-start; }
.l-bot .chip, .chip[class*="st-"] { min-height: 0; padding: 3px 10px; font-size: 13px; border-radius: 12px; border: 0; font-weight: 700; margin-inline-end: auto; }
.chip.st-draft { background: #e8ecec; color: #4a5a5a; } .chip.st-new { background: var(--info-bg); color: var(--info); }
.chip.st-prep { background: var(--warn-bg); color: var(--warn); } .chip.st-ready { background: var(--ok-bg); color: var(--ok); }
.chip.st-served { background: #ece8f7; color: #5b46a6; } .chip.st-cancel { background: var(--bad-bg); color: var(--bad); }
.q-fixed { font-weight: 800; font-size: 17px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 48px; height: 48px; border: 0; background: #f2f6f5; font-size: 24px; font-weight: 700; }
.stepper .q { width: 52px; background: #fff; font-size: 19px; font-weight: 800; }
.stepper span.q { width: 46px; text-align: center; font-weight: 800; font-size: 19px; }
.stepper.big button { width: 60px; height: 56px; }
.cart-foot { border-top: 2px solid var(--line); padding: 8px 12px 10px; flex-shrink: 0; background: #fafcfb; }
.totals > div { display: flex; justify-content: space-between; font-size: 15px; padding: 1px 0; color: #3b4b4a; }
.totals .disc { color: var(--bad); }
.totals .grand { font-size: 24px; font-weight: 800; color: var(--ink); border-top: 1px dashed var(--line); margin-top: 3px; padding-top: 3px; }
.foot-row { display: flex; gap: 8px; margin-top: 8px; }
.foot-row .btn { flex: 1; min-height: 50px; font-size: 15px; padding: 0 6px; }
.foot-row .btn.on { background: var(--info-bg); }
.main-actions .btn { min-height: 64px; font-size: 20px; }
.btn.send { background: var(--info); color: #fff; } .btn.pay { background: var(--ok); color: #fff; flex: 1.3; }

/* ---------- النوافذ ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(10,25,25,.55); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 10px; animation: fade .12s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 18px; width: min(580px, 96vw); max-height: 96dvh; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,.35); animation: pop .12s; }
@keyframes pop { from { transform: scale(.96); } }
.modal.small { width: min(440px, 96vw); } .modal.np-modal { width: min(400px, 96vw); } .modal.kb-modal { width: min(920px, 98vw); }
.modal.pay-modal, .modal.opts-modal { width: min(640px, 98vw); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--line); min-height: 56px; }
.modal-head h3 { font-size: 19px; }
.modal-body { padding: 14px 16px; overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
.modal-foot { display: flex; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.modal-foot .btn { flex: 1; }
.confirm-msg { font-size: 18px; line-height: 1.7; margin: 6px 0; }
.pick-grid { display: grid; gap: 10px; } .pick-grid.cols-1 { grid-template-columns: 1fr; } .pick-grid.cols-2 { grid-template-columns: 1fr 1fr; } .pick-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pick-btn { min-height: 62px; border: 1.5px solid var(--line); background: #f8fbfa; border-radius: 14px; padding: 8px 12px; font-weight: 700; font-size: 17px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; }
.pick-btn.danger { background: var(--bad-bg); color: var(--bad); border-color: #f0b8b8; } .pick-btn.alt { border-style: dashed; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 6px; }
.opt { min-height: 60px; border: 2px solid var(--line); background: #fff; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 16px; padding: 6px; }
.opt.on { border-color: var(--brand2); background: #e1f1ef; box-shadow: inset 0 0 0 1px var(--brand2); }
.opts h4, .deliv h4, .split h4 { margin: 12px 0 8px; font-size: 16px; color: var(--muted); } .opts h4 em { color: var(--bad); font-style: normal; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qty-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-weight: 700; font-size: 18px; }
.seg { display: flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg button { flex: 1; min-height: 52px; border: 0; background: #fff; font-weight: 700; } .seg button.on { background: var(--brand2); color: #fff; }

/* لوحة الأرقام */
.np-display { background: #f2f6f5; border: 2px solid var(--line); border-radius: 14px; min-height: 76px; display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 800; letter-spacing: 1px; direction: ltr; margin-bottom: 10px; }
.np-val.sel { background: #cfe8f5; padding: 0 8px; border-radius: 6px; }
.np-hint { text-align: center; color: var(--muted); margin: -4px 0 8px; font-size: 14px; }
.np-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; justify-content: center; }
.np-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; direction: ltr; }
.np-key { height: 68px; border: 0; border-radius: 14px; background: #e8efed; font-size: 28px; font-weight: 700; }
/* لوحة المفاتيح العربية */
.kb-display { min-height: 62px; border: 2px solid var(--line); background: #f8fbfa; border-radius: 12px; padding: 8px 14px; font-size: 24px; margin-bottom: 10px; display: flex; align-items: center; flex-wrap: wrap; word-break: break-word; }
.kb-caret { width: 2px; height: 28px; background: var(--brand2); margin-inline-start: 2px; animation: blink 1s steps(1) infinite; } @keyframes blink { 50% { opacity: 0; } }
.kb-row { display: flex; gap: 6px; margin-bottom: 6px; justify-content: center; }
.kb-key { flex: 1; min-width: 0; height: 56px; border: 0; border-radius: 10px; background: #e8efed; font-size: 22px; font-weight: 600; }
.kb-key.wide { flex: 1.6; font-size: 16px; } .kb-key.space { flex: 4; font-size: 16px; background: #fff; border: 1.5px solid var(--line); }

/* الدفع */
.pay-due { display: flex; justify-content: space-between; align-items: baseline; background: var(--brand); color: #fff; border-radius: 14px; padding: 10px 16px; font-size: 18px; }
.pay-due b { font-size: 34px; } .pay-due small { color: #bcd; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.pm { min-height: 64px; border: 2px solid var(--line); background: #fff; border-radius: 14px; font-size: 19px; font-weight: 700; }
.pm.on { border-color: var(--brand2); background: #e1f1ef; }
.pay-lines { display: flex; flex-direction: column; gap: 8px; }
.pl { border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 10px; }
.pl-top { display: flex; align-items: center; gap: 10px; } .pl-top b { font-size: 18px; flex: 1; }
.amt { min-width: 130px; min-height: 52px; border: 2px solid var(--brand2); border-radius: 12px; background: #fff; font-size: 24px; font-weight: 800; direction: ltr; }
.tend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; } .tend > span { font-weight: 700; margin-inline-end: 4px; }
.pay-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; text-align: center; }
.pay-sum > div { background: #f2f6f5; border-radius: 12px; padding: 6px; display: flex; flex-direction: column; } .pay-sum b { font-size: 22px; }
.pay-sum .bad b { color: var(--bad); } .pay-sum .chg { background: var(--ok-bg); } .pay-sum .chg b { color: var(--ok); }
.pay-status { margin-top: 10px; padding: 10px; background: var(--warn-bg); border-radius: 10px; font-weight: 700; text-align: center; }
.paid-ok { text-align: center; } .big-ok { width: 80px; height: 80px; margin: 0 auto 8px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 52px; display: grid; place-items: center; }
.change-box { background: var(--ok-bg); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; margin-top: 8px; } .change-box b { font-size: 44px; color: var(--ok); } .change-box.bad { background: var(--bad-bg); } .change-box.bad b { color: var(--bad); }

/* الحقول والقوائم */
.fld { margin-bottom: 8px; } .fld label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 3px; }
.fld-btn { width: 100%; min-height: 54px; text-align: start; padding: 0 14px; border: 1.5px solid var(--line); background: #f8fbfa; border-radius: 12px; font-size: 18px; }
.held-list { display: flex; flex-direction: column; gap: 8px; }
.held-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; text-align: start; font-size: 16px; }
.held-row small { display: block; } .btn-row { width: 100%; min-height: 60px; }
.split-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sh-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 18px; } .sh-row.total { font-size: 22px; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 8px; }
.warn-note { background: var(--warn-bg); padding: 8px 12px; border-radius: 10px; font-weight: 700; }
hr { border: 0; border-top: 1px dashed var(--line); margin: 8px 0; }

/* بوابة الوردية */
.gate { position: fixed; inset: 0; background: rgba(15,61,62,.96); z-index: 90; display: grid; place-items: center; }
.gate-card { background: #fff; border-radius: 20px; padding: 28px 34px; text-align: center; max-width: 460px; display: flex; flex-direction: column; gap: 12px; } .gate-card .logo { font-size: 54px; }

/* تنبيه */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 30px); background: #1d2f2f; color: #fff; padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: 17px; opacity: 0; pointer-events: none; transition: all .18s; z-index: 300; max-width: 92vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.err { background: var(--bad); } .toast.ok { background: #176b3c; }

/* ---------- الدخول ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; background: linear-gradient(135deg, #0f3d3e, #1b6b6d); padding: 16px; overflow: auto; }
.login-card { background: #fff; border-radius: 22px; padding: 26px; width: min(720px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-brand { text-align: center; margin-bottom: 14px; } .login-brand .logo { font-size: 54px; } .login-brand h1 { font-size: 28px; } .login-brand p { color: var(--muted); margin: 4px 0 0; }
.login h2 { font-size: 18px; text-align: center; margin: 10px 0; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile-user { min-height: 120px; border: 2px solid var(--line); background: #f8fbfa; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 18px; transition: transform .05s; }
.tile-user:active { transform: scale(.95); background: #dff0ee; } .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--brand2); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.link-btn { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--brand2); font-weight: 700; min-height: 48px; text-decoration: underline; }
.pass-form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; user-select: text; }
.pass-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; } .pass-form input { min-height: 52px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; font-size: 18px; }
.alert { padding: 10px 14px; border-radius: 10px; font-weight: 700; } .alert.err { background: var(--bad-bg); color: var(--bad); }

/* ---------- شاشة المطبخ ---------- */
.kds-page { background: #0d1b1c; color: #fff; }
.kds { display: grid; grid-template-rows: 60px auto 1fr; height: 100dvh; }
.kds-top { background: #072728; }
.stations { display: flex; gap: 8px; flex: 1; justify-content: center; }
.clock { font-size: 20px; font-weight: 700; } .top-btn[aria-pressed="false"] { opacity: .6; }
.alerts { display: flex; flex-direction: column; gap: 6px; padding: 0 10px; }
.alert-card { background: #b71c1c; border: 3px solid #ff8a80; border-radius: 14px; padding: 10px 16px; margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; animation: pulse 1s infinite; font-size: 22px; }
.alert-card ul { margin: 6px 0 0; padding-inline-start: 22px; } .alert-card small { color: #ffd6d2; font-size: 16px; }
@keyframes pulse { 50% { background: #8e1515; } }
.alert-card .act { min-width: 150px; min-height: 64px; border: 0; border-radius: 12px; background: #fff; color: #b71c1c; font-weight: 800; font-size: 20px; }
.kds-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px; min-height: 0; }
.col { background: #14292a; border-radius: 16px; display: flex; flex-direction: column; min-height: 0; }
.col h2 { padding: 10px 16px; font-size: 22px; display: flex; justify-content: space-between; border-bottom: 2px solid rgba(255,255,255,.1); }
.col-new h2 { color: #7cb7ff; } .col-prep h2 { color: #ffd166; } .col-ready h2 { color: #6fe39b; }
.cnt { background: rgba(255,255,255,.15); border-radius: 14px; padding: 0 12px; }
.cards { overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; flex: 1; overscroll-behavior: contain; }
.col .empty { color: #6f8888; }
.ticket { background: #fff; color: #111; border-radius: 14px; overflow: hidden; border-top: 10px solid #2563c9; }
.ticket.preparing { border-top-color: #f59f00; } .ticket.ready { border-top-color: #1e8e4e; }
.ticket.warn { box-shadow: 0 0 0 4px #f59f00; } .ticket.late { box-shadow: 0 0 0 4px #e03131; }
.ticket header { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #f1f5f4; font-size: 22px; }
.tk-no { font-size: 30px; } .tk-label { flex: 1; font-weight: 800; } .tk-age { font-weight: 800; }
.ticket.late .tk-age { color: #e03131; }
.ticket ul { list-style: none; margin: 0; padding: 8px 14px; }
.ticket li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #cfd8d6; font-size: 26px; font-weight: 700; line-height: 1.3; }
.ticket li:last-child { border: 0; } .ticket .q { min-width: 54px; color: #0f3d3e; font-size: 30px; font-weight: 900; }
.ticket .n small { display: block; font-size: 19px; color: #444; font-weight: 600; } .ticket em { font-style: normal; font-size: .8em; color: #555; }
.ticket mark { display: block; background: #ffe066; border-radius: 8px; padding: 2px 10px; font-size: 22px; margin-top: 3px; font-weight: 800; }
.ticket .act { width: 100%; min-height: 72px; border: 0; background: #2563c9; color: #fff; font-size: 24px; font-weight: 800; }
.ticket.preparing .act { background: #e08a00; } .ticket.ready .act { background: #1e8e4e; }
.ticket .act:active { filter: brightness(.8); }
.conn { position: fixed; bottom: 0; inset-inline: 0; background: var(--bad); text-align: center; padding: 10px; font-weight: 800; font-size: 18px; z-index: 50; }

/* ---------- شاشات أصغر (تابلت 10 بوصة) ---------- */
@media (max-width: 1180px) {
  .brand b { display: none; } .who { display: none; } .mode, .top-btn { padding: 0 10px; font-size: 15px; }
  .work { grid-template-columns: minmax(0, 1fr) 350px; }
  .items { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
}
@media (max-width: 900px) { .top-actions .top-btn:not([data-act="shift"]):not([data-act="logout"]) { display: none; } .kds-cols { grid-template-columns: 1fr; overflow-y: auto; } .col { min-height: 300px; } }
@media (max-height: 800px) {
  .app { grid-template-rows: 56px 1fr; } .cart-head { min-height: 52px; padding: 4px 12px; } .totals > div { font-size: 14px; }
  .totals .grand { font-size: 22px; } .foot-row { margin-top: 6px; } .cart-foot { padding: 6px 12px 8px; } .main-actions .btn { min-height: 60px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* =====================================================================
   الهوية البصرية الجديدة — تُطبَّق فوق ما سبق (نفس الـ DOM بدون تغيير JS)
   حبر داكن للاختيار، أزرق كوبالت للإجراء، أخضر للتحصيل، والسلة «تذكرة» مثقّبة
   ===================================================================== */
body { font-variant-numeric: tabular-nums; letter-spacing: 0; line-height: 1.45; }
.btn, .mode, .top-btn, .cat, .chip, .pick-btn, .opt, .pm, .tile-user, .np-key, .kb-key { font-weight: 600; }

/* أزرار */
.btn { background: var(--soft); border-radius: 14px; font-size: 16px; }
.btn.primary { background: var(--brand2); }
.btn.ghost { background: #fff; border: 1px solid var(--line); }
.btn.on { background: var(--info-bg); border-color: var(--brand2); color: var(--brand2); }
.chip { border: 1px solid var(--line); border-radius: 14px; font-weight: 500; }
.chip.on { background: var(--ink); border-color: var(--ink); }
.chip.alt { color: var(--brand2); border-color: var(--brand2); }
.mini { border-radius: 14px; border: 1px solid var(--line); }
.mini.del { border-color: #f4c1cc; }

/* الشريط العلوي: فاتح، والاختيار بالحبر */
.topbar { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); gap: 14px; padding: 0 14px; }
.brand { font-size: 17px; font-weight: 700; } .logo-sm { font-size: 22px; }
.modes { justify-content: center; gap: 4px; background: var(--soft); border-radius: 16px; padding: 4px; flex: 0 1 auto; margin-inline: auto; }
.mode { background: transparent; color: var(--muted); border-radius: 12px; font-size: 16px; }
.mode.on { background: var(--ink); color: #fff; box-shadow: 0 2px 6px rgba(17,24,39,.25); }
.count { background: var(--accent); color: var(--ink); font-weight: 700; }
.top-btn { background: var(--soft); color: var(--ink); border-radius: 12px; font-weight: 500; }
.top-btn.warn { background: var(--accent); color: var(--ink); }
.who { color: var(--ink); } .who small { color: var(--muted); }

/* منطقة العمل: السلة تطفو كبطاقة منفصلة */
.work { padding: 12px; gap: 12px; }
.main { padding: 0; }
.cats { padding-bottom: 12px; gap: 8px; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: 16px; font-size: 16px; min-width: 96px; }
.cat.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* كروت الأصناف: محاذاة للبداية، السعر في كبسولة أسفل الكرت */
.items { gap: 12px; padding: 2px 2px 14px; }
.item { align-items: flex-start; justify-content: space-between; text-align: start; gap: 10px; min-height: 112px; padding: 14px; box-shadow: none; border: 1px solid var(--line); border-radius: var(--r); }
.item .nm { font-size: 17px; font-weight: 600; line-height: 1.35; }
.item .pr { background: var(--soft); border-radius: 10px; padding: 3px 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.item img { height: 72px; }
.item:active, .item.tap { background: var(--info-bg); box-shadow: inset 0 0 0 2px var(--brand2); }
.item .badge { background: var(--brand2); top: 8px; min-width: 30px; height: 30px; border-radius: 15px; font-size: 15px; }
.item .opt-flag { top: 12px; font-size: 13px; opacity: .8; }
.item.unavail { background: repeating-linear-gradient(135deg, #f1f2f6 0 10px, #e9ebf1 10px 20px); opacity: .85; }
.item.unavail .nm { color: var(--muted); }
.item .un-flag { background: var(--bad); font-size: 12px; font-weight: 600; padding: 3px 0; text-align: center; }

/* الطاولات: شريط ملوّن على البداية + حالة بالكلمة */
.lg { border-radius: 10px; font-weight: 600; font-size: 14px; }
.tables { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.tbl { position: relative; border: 1px solid; border-radius: var(--r); background: #fff; align-items: flex-start; padding: 12px 16px 12px 12px; padding-inline-start: 22px; overflow: hidden; min-height: 112px; }
.tbl::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 9px; background: currentColor; }
.tbl b { font-size: 21px; color: var(--ink); font-weight: 700; } .tbl small { color: var(--muted); }
.tbl .st { font-weight: 700; font-size: 14px; }
.tbl.st-free { background: #fff; color: #0b9b6d; border-color: #bfe8d8; } .tbl.st-ordering { background: #fffaf0; color: #b87500; border-color: #f2d9a2; }
.tbl.st-occupied { background: #fff3f5; color: var(--bad); border-color: #f4bcc8; } .tbl.st-bill { background: #f1f3ff; color: var(--brand2); border-color: #c3cbff; }
.pick-banner { border: 1px solid #f2d9a2; border-radius: 14px; background: var(--warn-bg); }

/* السلة = تذكرة مثقّبة */
.cart { border: 0; border-radius: 24px; box-shadow: 0 1px 0 var(--line), 0 12px 30px -12px rgba(17,24,39,.28); }
.cart-head { border-bottom: 1px solid var(--line); padding: 8px 14px; }
.cart-head h2 { font-size: 18px; font-weight: 700; } .cart-head h2 small { color: var(--brand2); font-weight: 700; }
.deliv-card { background: var(--soft); border: 0; border-radius: 14px; }
.deliv-card.need { background: #fff2dc; color: var(--warn); }
.lines { padding: 4px 14px; }
.line { border-bottom: 1px dashed var(--line); padding: 10px 0; } .line:last-child { border-bottom: 0; }
.l-name { font-weight: 600; } .l-total { font-weight: 700; }
.l-note { background: #fff0cf; color: #7a4a00; border-radius: 8px; font-weight: 600; }
.stepper { border: 0; background: var(--soft); border-radius: 14px; }
.stepper button { background: transparent; border-radius: 14px; } .stepper .q, .stepper span.q { background: transparent; font-weight: 700; }
.chip.st-draft { background: var(--soft); color: var(--muted); } .chip.st-new { background: var(--info-bg); color: var(--brand2); } .chip.st-served { background: #efeaff; color: #5b3fd0; }
.cart-foot { position: relative; border-top: 2px dashed #cfd4e0; background: #fff; padding: 12px 14px 14px; border-radius: 0 0 24px 24px; }
.cart-foot::before, .cart-foot::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.cart-foot::before { inset-inline-start: -11px; } .cart-foot::after { inset-inline-end: -11px; }
.totals > div { color: #4b5366; }
.totals .grand { font-size: 28px; font-weight: 700; border-top: 0; margin-top: 4px; padding-top: 2px; letter-spacing: -.3px; }
.foot-row .btn { background: var(--soft); border-radius: 14px; font-weight: 600; }
.foot-row .btn.on { background: var(--info-bg); color: var(--brand2); }
.btn.send { background: var(--brand2); } .btn.pay { background: var(--ok); }
.main-actions .btn { font-size: 19px; border-radius: 16px; }

/* النوافذ */
.modal-back { background: rgba(17,24,39,.55); }
.modal { border-radius: 26px; box-shadow: 0 30px 80px -20px rgba(17,24,39,.55); }
.modal-head { border-bottom: 1px solid var(--line); } .modal-head h3 { font-size: 19px; font-weight: 700; }
.modal-foot { border-top: 1px solid var(--line); }
.pick-btn { background: #fff; border: 1px solid var(--line); border-radius: 16px; font-weight: 600; }
.pick-btn.danger { border-color: #f4bcc8; } .pick-btn.alt { border-color: var(--brand2); color: var(--brand2); }
.opt { border: 1.5px solid var(--line); border-radius: 16px; font-weight: 500; }
.opt.on { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: none; }
.opt.on small { color: #c9cfdd; }
.seg { border: 0; background: var(--soft); border-radius: 14px; padding: 4px; gap: 4px; } .seg button { background: transparent; border-radius: 11px; } .seg button.on { background: var(--ink); color: #fff; }
.np-display { background: var(--soft); border: 0; border-radius: 18px; font-size: 40px; font-weight: 700; }
.np-key { background: #fff; border: 1px solid var(--line); border-radius: 16px; font-weight: 600; box-shadow: 0 2px 0 var(--line); }
.np-key:active { box-shadow: none; }
.kb-display { background: var(--soft); border: 0; border-radius: 14px; } .kb-key { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 0 var(--line); font-weight: 500; }
.pay-due { background: var(--ink); border-radius: 18px; } .pay-due b { font-weight: 700; letter-spacing: -.5px; }
.pm { border: 1.5px solid var(--line); border-radius: 16px; font-weight: 600; } .pm.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.pl { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.amt { border: 2px solid var(--ink); border-radius: 14px; font-weight: 700; }
.pay-sum > div { background: var(--soft); border-radius: 14px; }
.fld-btn { background: var(--soft); border: 0; border-radius: 14px; }
.held-row { border: 1px solid var(--line); border-radius: 16px; }
.big-ok { background: var(--ok); }
.gate { background: rgba(17,24,39,.94); } .gate-card { border-radius: 28px; }
.toast { background: var(--ink); border-radius: 16px; font-weight: 600; } .toast.ok { background: var(--ok); }

/* الدخول: صفحة حبر + بطاقة بيضاء، الأسماء كرقائق بحرف أول */
.login { background: var(--ink); }
.login-card { border-radius: 30px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); }
.login-brand h1 { font-weight: 700; letter-spacing: -.3px; }
.tile-user { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 2px 0 var(--line); font-weight: 600; }
.tile-user:active { background: var(--info-bg); box-shadow: none; }
.avatar { background: var(--ink); border-radius: 16px; font-weight: 700; }
.link-btn { color: var(--brand2); font-weight: 600; }
.pass-form input { border: 1px solid var(--line); background: var(--soft); border-radius: 14px; }

/* شاشة المطبخ */
.kds-page { background: #0a0e18; }
.kds-top { background: #0a0e18; border-bottom: 1px solid #1c2438; }
.stations .mode { background: #1a2236; color: #aeb8d0; } .stations .mode.on { background: #fff; color: var(--ink); }
.kds-page .top-btn { background: #1a2236; color: #fff; }
.col { background: #121929; border: 1px solid #1c2438; border-radius: 20px; }
.col h2 { font-weight: 700; border-bottom: 1px solid #1c2438; }
.cnt { background: #1f2942; }
.ticket { border-radius: 18px; border-top-width: 8px; }
.ticket header { background: #f4f5f9; }
.ticket .q { color: var(--brand2); }
.ticket mark { background: #ffe38a; }
.ticket .act { font-weight: 700; }
.alert-card { border-radius: 18px; }
.item .opt-flag { top: auto; bottom: 14px; inset-inline-end: 12px; inset-inline-start: auto; font-size: 12px; font-weight: 600; color: var(--muted); background: transparent; }
.item .opt-flag::before { content: "خيارات "; }
.cards .ticket, .cards .alert-card { flex: none; }
.item.unavail { padding-bottom: 34px; }
#clock { direction: ltr; }
.opt small { font-size: 14px; line-height: 1.2; margin-top: 4px; color: var(--muted); } .opt { min-height: 68px; }
#confirm-pay { background: var(--ok); }
.item .opt-flag::before { content: none; }
.item .opt-flag { font-size: 15px; }
.item:has(.badge) .nm { padding-inline-end: 36px; }

.tiles .tile-user:nth-child(5n+1) .avatar { background: var(--ink); } .tiles .tile-user:nth-child(5n+2) .avatar { background: var(--brand2); }
.tiles .tile-user:nth-child(5n+3) .avatar { background: #087f5b; } .tiles .tile-user:nth-child(5n+4) .avatar { background: #b87500; } .tiles .tile-user:nth-child(5n) .avatar { background: #7a3fd0; }

/* =====================================================================
   طبقة «Foodics»: شريط علوي بتبويبات، قائمة جانبية، بلاطات ملونة،
   سلة بشرائح بيانات الطلب، دخول بشاشة منقسمة
   ===================================================================== */
.app { grid-template-rows: 64px 1fr; }
.topbar { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); gap: 12px; padding: 0 12px; }
.burger { position: relative; width: 52px; height: 48px; border: 0; border-radius: 14px; background: var(--soft); font-size: 24px; line-height: 1; }
.burger-dot { position: absolute; top: -4px; inset-inline-start: -4px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.brand { font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.modes { background: var(--soft); border-radius: 16px; padding: 4px; gap: 4px; flex: 0 1 auto; margin-inline: auto; }
.mode { background: transparent; color: var(--muted); border-radius: 12px; min-height: 48px; padding: 0 18px; font-weight: 600; }
.mode .mi { font-size: 18px; }
.mode.on { background: var(--ink); color: #fff; box-shadow: 0 6px 14px -6px rgba(17,24,39,.5); }
.top-actions { gap: 10px; }
.shift-pill { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); background: #fff; border-radius: 22px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.shift-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.shift-pill.on i { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.shift-pill.warn { background: var(--warn-bg); border-color: #f2c66b; color: var(--warn); } .shift-pill.warn i { background: var(--accent); }
.who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.avatar-sm { width: 38px; height: 38px; border-radius: 12px; background: var(--brand2); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* القائمة الجانبية */
.drawer-back { position: fixed; inset: 0; background: rgba(17,24,39,.5); z-index: 120; animation: fade .15s; }
.drawer { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(340px, 86vw); background: #fff; display: flex; flex-direction: column; padding: 16px; gap: 10px; animation: slide-in .18s ease-out; box-shadow: 0 0 60px rgba(0,0,0,.35); }
@keyframes slide-in { from { transform: translateX(40px); opacity: .4; } }
[dir=rtl] .drawer { animation-name: slide-in-rtl; } @keyframes slide-in-rtl { from { transform: translateX(40px); opacity: .4; } }
.dr-head { display: flex; align-items: center; gap: 12px; padding: 6px 4px 14px; border-bottom: 1px solid var(--line); } .dr-head > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.avatar-lg { width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.dr-list { display: flex; flex-direction: column; gap: 6px; flex: 1; padding-top: 6px; }
.dr-item { min-height: 58px; display: flex; align-items: center; gap: 14px; padding: 0 14px; border: 0; background: transparent; border-radius: 14px; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; text-align: start; width: 100%; }
.dr-item span { width: 30px; text-align: center; font-size: 20px; } .dr-item em { margin-inline-start: auto; background: var(--bad); color: #fff; border-radius: 12px; padding: 1px 9px; font-style: normal; font-size: 13px; }
.dr-item:active { background: var(--soft); } .dr-item.out { color: var(--bad); border-top: 1px solid var(--line); border-radius: 0; margin-top: auto; }

/* التصنيفات والبلاطات الملونة */
.catbar { display: flex; gap: 8px; align-items: center; flex-shrink: 0; padding-bottom: 10px; }
.catbar .cats { padding-bottom: 0; flex: 1; min-width: 0; }
.search-btn { flex: 0 0 auto; min-height: 52px; max-width: 220px; padding: 0 16px; border: 1.5px solid var(--line); background: #fff; border-radius: 26px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat { border-radius: 14px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; position: relative; }
.cat::before { content: ""; position: absolute; inset-inline-start: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: hsl(var(--h, 215) 70% 52%); }
.cat { padding-inline-start: 30px; }
.cat.on { background: hsl(var(--h, 215) 70% 46%); color: #fff; box-shadow: none; } .cat.on::before { background: #fff; }
.items { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); }
.item { border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(17,24,39,.08), inset 0 5px 0 hsl(var(--h, 215) 70% 52%); padding: 16px 10px 12px; min-height: 124px; justify-content: space-between; }
.item .mono { width: 46px; height: 46px; border-radius: 15px; background: hsl(var(--h, 215) 80% 94%); color: hsl(var(--h, 215) 60% 38%); display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.item img { height: 60px; border-radius: 12px; }
.item .nm { font-weight: 600; font-size: 16px; }
.item .pr { color: var(--ink); font-weight: 700; background: hsl(var(--h, 215) 80% 95%); padding: 2px 12px; border-radius: 12px; font-size: 15px; }
.item:active, .item.tap { background: hsl(var(--h, 215) 80% 96%); box-shadow: inset 0 5px 0 hsl(var(--h, 215) 70% 52%), inset 0 0 0 2px hsl(var(--h, 215) 70% 52%); }

/* السلة */
.cart { background: #fff; }
.meta-row { display: flex; gap: 6px; padding: 8px 12px 0; flex-wrap: wrap; flex-shrink: 0; }
.meta-chip { min-height: 44px; padding: 0 12px; border: 1.5px dashed #c5cbd9; background: #fff; border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--muted); max-width: 100%; }
.meta-chip.on { border-style: solid; border-color: var(--ink); color: var(--ink); background: var(--soft); }
.meta-chip.need { border-style: solid; border-color: var(--bad); color: var(--bad); background: var(--bad-bg); }
.l-disc { display: block; color: var(--ok); font-weight: 600; font-size: 13px; }
.l-total s { display: block; color: var(--muted); font-weight: 400; font-size: 13px; text-align: end; }
.line.is-held { background: repeating-linear-gradient(135deg, #fff, #fff 8px, #f6f7fb 8px, #f6f7fb 16px); }
.chip.st-held { background: #ece8f7; color: #5b46a6; }
.main-actions .btn.pay { display: flex; justify-content: space-between; padding: 0 18px; } .main-actions .btn.pay b { font-weight: 700; direction: ltr; }
.danger-lite { color: var(--bad) !important; border-color: #f4bcc8 !important; }

/* الخصم والدفع */
.disc-active { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--ok-bg); color: var(--ok); border-radius: 14px; padding: 8px 12px; font-weight: 600; }
.tip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 0; } .tip-row > span { font-weight: 700; margin-inline-end: 4px; }
.pay-round { color: var(--muted); font-size: 14px; text-align: center; margin-top: 4px; }

/* الدخول: لوحة علامة تجارية + لوحة رمز PIN */
.login-page { background: var(--ink); }
.lg-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); height: 100dvh; }
.lg-brand { background: radial-gradient(120% 90% at 100% 0%, #2f4bff 0%, #1a2a8a 38%, #0b1022 100%); color: #fff; padding: 44px 48px; display: flex; flex-direction: column; gap: 10px; justify-content: center; position: relative; overflow: hidden; }
.lg-brand::after { content: ""; position: absolute; inset: auto -80px -120px auto; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255,255,255,.06); }
.lg-mark { width: 84px; height: 84px; border-radius: 26px; background: #fff; color: var(--brand2); font-size: 44px; font-weight: 700; display: grid; place-items: center; margin-bottom: 14px; }
.lg-brand h1 { font-size: 38px; font-weight: 700; letter-spacing: -.5px; } .lg-brand p { margin: 0; color: #b9c3ff; font-size: 18px; }
.lg-clock { margin-top: 30px; display: flex; flex-direction: column; } .lg-clock b { font-size: 64px; font-weight: 300; direction: ltr; text-align: start; letter-spacing: -2px; line-height: 1.1; } .lg-clock span { color: #b9c3ff; }
.lg-feats { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: #dfe4ff; } .lg-feats i { color: var(--accent); font-style: normal; margin-inline-end: 10px; font-size: 10px; }
.lg-panel { background: #fff; display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.lg-box { width: min(380px, 100%); display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.lg-box h2 { font-size: 30px; font-weight: 700; margin: 0; letter-spacing: -.4px; } .lg-sub { margin: 0 0 4px; color: var(--muted); }
.lg-who { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; } .lg-who::-webkit-scrollbar { display: none; }
.who-chip { flex: 0 0 auto; min-height: 48px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; border: 1.5px solid var(--line); background: #fff; border-radius: 24px; font-weight: 600; }
.who-chip .avatar { width: 30px; height: 30px; border-radius: 10px; font-size: 14px; }
.who-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pin-dots { display: flex; gap: 12px; justify-content: center; padding: 14px 0 6px; direction: ltr; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c5cbd9; transition: background .08s, transform .08s; }
.pin-dots i.on { background: var(--ink); border-color: var(--ink); transform: scale(1.1); }
.pin-dots.shake { animation: shake .35s; } @keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.lg-err { background: var(--bad-bg); color: var(--bad); border-radius: 12px; padding: 8px 12px; font-weight: 600; text-align: center; font-size: 15px; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; direction: ltr; }
.pin-key { height: 70px; border: 1px solid var(--line); background: #fff; border-radius: 20px; font-size: 28px; font-weight: 600; box-shadow: 0 3px 0 var(--line); transition: transform .05s; }
.pin-key.soft { background: var(--soft); font-size: 22px; color: var(--muted); } .pin-key:active { transform: translateY(2px) scale(.97); box-shadow: none; background: var(--info-bg); }
.lg-go { min-height: 62px; border: 0; border-radius: 20px; background: var(--brand2); color: #fff; font-size: 20px; font-weight: 700; margin-top: 4px; } .lg-go[disabled] { background: #c9d0f5; }
.lg-f { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 15px; } .lg-f input { min-height: 56px; border: 1px solid var(--line); background: var(--soft); border-radius: 16px; padding: 0 14px; font-size: 18px; }
@media (max-width: 820px) { .lg-split { grid-template-columns: 1fr; } .lg-brand { display: none; } }
@media (max-height: 760px) { .pin-key { height: 58px; font-size: 24px; } .lg-box h2 { font-size: 26px; } .pin-dots { padding: 8px 0 2px; } }
