/* IBM Plex Sans Arabic - مستضاف محلياً (SIL OFL) */
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 400; font-display: swap; src: url(vendor/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-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: 'IBM Plex Sans Arabic'; font-weight: 500; font-display: swap; src: url(vendor/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-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: 'IBM Plex Sans Arabic'; font-weight: 600; font-display: swap; src: url(vendor/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-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: 'IBM Plex Sans Arabic'; font-weight: 700; font-display: swap; src: url(vendor/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-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: 'IBM Plex Sans Arabic'; font-weight: 400; font-display: swap; src: url(vendor/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 500; font-display: swap; src: url(vendor/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 600; font-display: swap; src: url(vendor/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 700; font-display: swap; src: url(vendor/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --paper: #f3f1ec;
  --surface: #ffffff;
  --ink: #1c1e21;
  --ink-2: #565b61;
  --ink-3: #8a8f95;
  --line: #dcd8cf;
  --line-2: #ebe8e1;
  --brand: #1d5c49;
  --brand-ink: #ffffff;
  --brand-soft: #e3eee9;
  --amber: #a8601a;
  --amber-soft: #f6ead9;
  --ok: #1d5c49;
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- أزرار ---------- */
.btn {
  border: 1px solid var(--line); background: var(--surface);
  padding: 9px 16px; border-radius: var(--radius); font-weight: 500;
  transition: background .12s, border-color .12s;
}
.btn:hover { background: #faf9f6; border-color: #c9c4b8; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.btn.primary:hover { background: #17493a; }
.btn.primary:disabled { background: #b9c9c3; border-color: #b9c9c3; cursor: not-allowed; }
.btn.small { padding: 5px 12px; font-size: 13px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--line-2); }

/* ---------- شريط علوي ---------- */
.topbar {
  height: 52px; background: var(--ink); color: #f3f1ec;
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
}
.brand { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: .2px; }
.brand small { font-weight: 400; font-size: 12.5px; color: #a9aeb3; }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a {
  color: #c8ccd0; text-decoration: none; font-size: 13.5px; padding: 6px 12px; border-radius: 4px;
}
.topbar nav a:hover { background: #2d3033; color: #fff; }
.topbar nav a.on { background: #2d3033; color: #fff; }

/* ---------- الكاشير ---------- */
.pos { display: grid; grid-template-columns: 1fr 340px 360px; height: calc(100vh - 52px); }
.col { border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--paper); }
.col:first-child { border-inline-start: 0; }
.col-head {
  padding: 14px 18px 10px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.col-head h2 { font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: .2px; }
.scroll { overflow-y: auto; flex: 1; min-height: 0; }

.tabs { display: flex; gap: 2px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.tab {
  border: 0; background: none; padding: 11px 14px; font-weight: 500; color: var(--ink-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.on { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 16px 18px; }
.item {
  text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; min-height: 78px; display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .12s;
}
.item:hover { border-color: var(--brand); }
.item:active { background: var(--brand-soft); }
.item .nm { font-weight: 600; }
.item .pr { color: var(--ink-3); font-size: 13px; }

/* التذكرة */
.ticket { background: var(--surface); }
.ticket .col-head { background: var(--surface); }
.lines { padding: 6px 18px; }
.empty { color: var(--ink-3); text-align: center; padding: 48px 20px; font-size: 14px; }
.line { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.line .nm { font-weight: 500; }
.line .sub { color: var(--ink-3); font-size: 12.5px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.qty button { border: 0; background: none; width: 28px; height: 28px; font-size: 16px; color: var(--ink-2); }
.qty button:hover { background: var(--line-2); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.line .amt { min-width: 64px; text-align: end; font-weight: 600; }
.total-box { border-top: 1px solid var(--line); padding: 14px 18px 18px; background: var(--surface); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.total-row span:first-child { color: var(--ink-2); }
.total-row b { font-size: 26px; font-weight: 700; }
.total-box .btn.primary { width: 100%; padding: 13px; font-size: 16px; }
.total-box .clear { width: 100%; margin-top: 8px; }

/* قائمة الطلبات */
.queue-group { padding: 14px 18px 4px; }
.queue-group h3 { font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; }
.ord { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.ord.ready { border-color: var(--brand); background: #f6faf8; }
.ord-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ord-no { font-size: 22px; font-weight: 700; }
.ord-meta { color: var(--ink-3); font-size: 12.5px; }
.ord-items { color: var(--ink-2); font-size: 13.5px; margin-bottom: 10px; }
.ord-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.scan { font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.scan i { width: 8px; height: 8px; border-radius: 50%; background: #c6c2b8; display: inline-block; }
.scan.yes { color: var(--ok); font-weight: 500; }
.scan.yes i { background: var(--ok); }

/* نافذة QR */
.overlay { position: fixed; inset: 0; background: rgba(28,30,33,.55); display: none; align-items: center; justify-content: center; z-index: 10; }
.overlay.show { display: flex; }
.qr-card { background: var(--surface); width: 420px; border-radius: 8px; padding: 28px 28px 24px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.qr-card .lbl { color: var(--ink-3); font-size: 13px; }
.qr-card .big { display: block; font-size: 54px; font-weight: 700; line-height: 1.1; margin: 2px 0 14px; }
.qr-box { display: inline-block; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.qr-box img, .qr-box canvas { display: block; width: 230px; height: 230px; }
.qr-card p { color: var(--ink-2); margin: 14px 0 4px; font-size: 14.5px; }
.state { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 20px; font-size: 13.5px; font-weight: 500; background: var(--amber-soft); color: var(--amber); }
.state i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.state.yes { background: var(--brand-soft); color: var(--ok); }
.qr-card .acts { display: flex; gap: 8px; margin-top: 18px; }
.qr-card .acts .btn { flex: 1; }

/* ---------- صفحة الزبون ---------- */
.phone { max-width: 440px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); transition: background .3s; }
.p-head { padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.p-head b { font-size: 16px; }
.p-head span { color: var(--ink-3); font-size: 13px; }
.p-main { padding: 34px 22px 20px; text-align: center; flex: 1; }
.p-main .lbl { color: var(--ink-2); font-size: 14px; }
.p-main .no { display: block; font-size: 92px; font-weight: 700; line-height: 1.05; margin: 4px 0 8px; }
.p-status { font-size: 20px; font-weight: 600; margin-bottom: 26px; }
.steps { display: flex; justify-content: center; gap: 0; margin: 0 auto 28px; max-width: 320px; }
.step { flex: 1; text-align: center; position: relative; font-size: 12.5px; color: var(--ink-3); }
.step::before { content: ''; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); margin: 0 auto 8px; position: relative; z-index: 1; }
.step::after { content: ''; position: absolute; top: 6px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step.done { color: var(--ink); }
.step.done::before, .step.now::before { background: var(--brand); border-color: var(--brand); }
.step.done::after { background: var(--brand); }
.step.now { color: var(--ink); font-weight: 600; }
.receipt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: start; padding: 4px 16px; margin-top: 8px; }
.receipt .r { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.receipt .r:last-child { border-bottom: 0; font-weight: 700; }
.p-foot { padding: 14px 22px 22px; }
.p-foot .btn { width: 100%; padding: 12px; }
.p-note { color: var(--ink-3); font-size: 12.5px; text-align: center; margin-top: 10px; }

.phone.ready { background: var(--brand); color: #fff; }
.phone.ready .p-head { border-color: rgba(255,255,255,.2); }
.phone.ready .p-head span, .phone.ready .lbl { color: rgba(255,255,255,.75); }
.phone.ready .step, .phone.ready .step.done { color: rgba(255,255,255,.8); }
.phone.ready .receipt { color: var(--ink); }
.phone.ready .step::before { background: transparent; border-color: rgba(255,255,255,.5); }
.phone.ready .step.done::before, .phone.ready .step.now::before { background: #fff; border-color: #fff; }
.phone.ready .step::after { background: rgba(255,255,255,.35); }
.phone.ready .step.done::after { background: #fff; }
.phone.ready .step.now { color: #fff; }
.phone.ready .no { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.phone.ready .btn { background: #fff; color: var(--brand); border-color: #fff; font-weight: 600; }
.phone > .bad { text-align: center; padding: 90px 30px; color: var(--ink-2); }

/* ---------- شاشة العرض ---------- */
.board { display: grid; grid-template-columns: 1fr 1.25fr; height: calc(100vh - 52px); }
.board-col { padding: 28px 40px; }
.board-col + .board-col { border-inline-start: 1px solid var(--line); }
.board-col.rdy { background: var(--brand); color: #fff; border: 0; }
.board-col h2 { font-size: 22px; font-weight: 600; margin-bottom: 24px; color: var(--ink-2); }
.board-col.rdy h2 { color: rgba(255,255,255,.8); }
.nums { display: flex; flex-wrap: wrap; gap: 14px; }
.n { font-size: 64px; font-weight: 700; padding: 6px 26px; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); min-width: 130px; text-align: center; }
.rdy .n { font-size: 84px; background: #fff; color: var(--brand); border-color: #fff; animation: pop .5s ease-out; }
@keyframes pop { from { transform: scale(.85); opacity: .3; } to { transform: scale(1); opacity: 1; } }
.board .none { color: var(--ink-3); font-size: 18px; }
.rdy .none { color: rgba(255,255,255,.6); }

/* ---------- الصفحة الرئيسية ---------- */
.home { max-width: 860px; margin: 0 auto; padding: 64px 24px; }
.home h1 { font-size: 40px; font-weight: 700; margin-bottom: 8px; }
.home .sub { color: var(--ink-2); font-size: 17px; margin-bottom: 40px; max-width: 560px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; text-decoration: none; color: inherit; display: block; }
.card:hover { border-color: var(--brand); }
.card b { display: block; font-size: 17px; margin-bottom: 6px; }
.card span { color: var(--ink-2); font-size: 14px; }
.home .foot { margin-top: 36px; color: var(--ink-3); font-size: 13px; }

@media (max-width: 1100px) { .pos { grid-template-columns: 1fr 300px 300px; } }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* ---------- إضافات الدخول والاتصال ---------- */
.field { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 18px; text-align: center; letter-spacing: 4px; background: #fff; }
.field:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.err { color: #a63a2a; font-size: 13.5px; min-height: 22px; margin-top: 8px; }
.conn { font-size: 12px; color: var(--ok); }
.conn.off { color: #a63a2a; }
.linkbtn { margin-top: 6px; padding-inline: 0; }

/* ---------- إدارة المنيو ---------- */
.admin { max-width: 880px; margin: 0 auto; padding: 28px 24px 120px; }
.admin-intro h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.admin-intro p { color: var(--ink-2); font-size: 14px; margin-bottom: 22px; max-width: 640px; }
.acat { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px 16px; margin-bottom: 16px; }
.acat-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.f { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; min-width: 0; }
.f:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.acat-head .f { font-weight: 600; font-size: 16px; max-width: 320px; }
.tools { display: flex; gap: 2px; margin-inline-start: auto; align-items: center; }
.arows { margin-bottom: 12px; }
.arow { display: grid; grid-template-columns: 1fr 130px 60px 190px; gap: 10px; align-items: center; padding: 6px 0; }
.arow-h { color: var(--ink-3); font-size: 12.5px; font-weight: 600; padding-bottom: 2px; }
.arow.off .f { background: var(--paper); color: var(--ink-3); }
.price { text-align: end; font-variant-numeric: tabular-nums; direction: ltr; }
.danger { color: #a63a2a; }
.danger:hover { background: #f7e5e1; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.sw { position: relative; display: inline-block; width: 38px; height: 22px; }
.sw input { opacity: 0; width: 100%; height: 100%; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.sw span { position: absolute; inset: 0; background: #c9c4b8; border-radius: 22px; transition: background .15s; }
.sw span::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.sw input:checked + span { background: var(--brand); }
.sw input:checked + span::after { inset-inline-start: 19px; }
.sw input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.savebar { position: fixed; inset-inline: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.savebar > div { display: flex; gap: 8px; }
.save-msg { font-size: 14px; color: var(--ink-2); }
.save-msg.warn { color: var(--amber); font-weight: 500; }
.save-msg.bad { color: #a63a2a; font-weight: 500; }
.item.off { background: var(--paper); border-style: dashed; cursor: not-allowed; }
.item.off .nm { color: var(--ink-3); text-decoration: line-through; }
.item.off .pr { color: var(--amber); font-weight: 600; }
.login-title { font-size: 26px; margin: 6px 0 18px; }
@media (max-width: 760px) { .arow { grid-template-columns: 1fr 90px 52px; } .arow .tools { grid-column: 1 / -1; margin: 0; } .arow-h span:last-child { display: none; } .acat-head { flex-wrap: wrap; } }
.p-note.ok { color: var(--ok); font-weight: 500; margin-top: 0; }
.p-foot .btn + .p-note { margin-top: 10px; }
.p-foot .btn { margin-bottom: 8px; }
.phone.ready .p-note { color: rgba(255,255,255,.85); }
.phone.ready .p-note.ok { color: #fff; }

/* ---------- صفحة الدخول ---------- */
.login-wrap { min-height: calc(100vh - 52px); display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 32px 28px 24px; }
.login-card h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.login-sub { color: var(--ink-2); font-size: 14px; margin-bottom: 24px; }
.login-label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.pin-row { display: flex; gap: 8px; }
.pin-row .field { flex: 1; min-width: 0; }
.login-btn { width: 100%; margin-top: 14px; padding: 13px; font-size: 16px; }
.login-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); color: var(--ink-3); font-size: 12.5px; text-align: center; }
.cta { display: inline-block; text-decoration: none; padding: 12px 22px; margin-bottom: 36px; }

/* ---------- ملخص اليوم وأزرار الطلب الإضافية ---------- */
.ord-more { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.ord-more .btn { padding-inline: 6px; }
.ord-more:empty { display: none; }
[hidden] { display: none !important; }
.summary { border-top: 1px solid var(--line); background: var(--surface); padding: 12px 18px 14px; }
.sum-title { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.sum-grid b { display: block; font-size: 17px; font-weight: 700; }
.sum-grid span { font-size: 12px; color: var(--ink-3); }

/* ---------- العروض في صفحة العميل ---------- */
.offers { margin-top: 18px; text-align: start; }
.offers-h { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.offer { background: var(--amber-soft); border: 1px solid #ead7b9; border-radius: var(--radius); padding: 11px 14px; margin-bottom: 8px; }
.offer b { display: block; color: var(--amber); font-size: 15px; }
.offer span { display: block; color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
.phone.cancelled .no { color: var(--ink-3); text-decoration: line-through; }
.phone.cancelled .p-status { color: #a63a2a; }
.phone.ready .offers { display: none; }

/* ---------- إعدادات المحل والعروض في الإدارة ---------- */
.sec-h { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.sec-h small { font-weight: 400; color: var(--ink-3); font-size: 12.5px; margin-inline-start: 8px; }
.sec-h-out { margin: 24px 2px 10px; font-size: 18px; }
.orow { display: grid; grid-template-columns: 1fr 1.6fr 60px 70px; gap: 10px; align-items: center; padding: 6px 0; }
.orow.off .f { background: var(--paper); color: var(--ink-3); }
.empty-note { color: var(--ink-3); font-size: 13.5px; padding: 6px 0 12px; }
@media (max-width: 760px) { .orow { grid-template-columns: 1fr 52px 60px; } .orow .f[data-o="body"] { grid-column: 1 / -1; order: 5; } }

/* ---------- الهوية: اللوجو (جرس خدمة ملوّن) ---------- */
:root { --navy: #1b2540; --coral: #ff6b4a; --amber: #ffb800; --teal: #14b8a6; }
.logo { display: inline-block; vertical-align: middle; flex: none; width: 24px; height: 24px; }
.brand { align-items: center; }
.brand .logo { width: 32px; height: 32px; margin-inline-end: 4px; }
.home .hero { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.home .hero h1 { margin: 0; }
.hero-mark { width: 68px; height: 68px; }
.home .foot a { color: var(--ink-3); text-decoration: none; border-bottom: 1px dotted var(--ink-3); }
.home .foot a:hover { color: var(--brand); border-color: var(--brand); }
.login-logo { display: block; width: 60px; height: 60px; margin-bottom: 12px; }
.p-head .by { display: inline-flex; align-items: center; gap: 5px; }
.p-head .by .logo { width: 20px; height: 20px; }

/* ---------- الانترو: جرس بينزل ويرن ---------- */
.intro { display: none; position: fixed; inset: 0; z-index: 1000; background: var(--navy); color: #fff; overflow: hidden;
  flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
  transition: opacity .55s ease, transform .55s ease, visibility 0s .55s; }
.intro-on .intro { display: flex; }
.intro-on body { overflow: hidden; }
.intro.intro-out { opacity: 0; transform: translateY(-18px); visibility: hidden; pointer-events: none; }
.intro-core { position: relative; display: flex; flex-direction: column; align-items: center; }
.intro .mark { width: 176px; height: 176px; overflow: visible; }

.intro .bellwrap { animation: i-drop .95s .1s both; }
.intro .dome { transform-origin: 32px 42px; animation: i-ring 1.25s 1s ease-in-out both; }
.intro .snd { fill: none; stroke-width: 3; stroke-linecap: round; transform-box: fill-box; transform-origin: center; opacity: 0;
  animation: i-snd .55s cubic-bezier(.2, .9, .3, 1.4) forwards, i-pulse 1.3s 2s ease-in-out infinite; }
.intro .s1 { animation-delay: 1s, 2s; } .intro .s2 { animation-delay: 1.08s, 2.08s; }
.intro .s3 { animation-delay: 1s, 2s; } .intro .s4 { animation-delay: 1.08s, 2.08s; }
.intro .ripple { fill: none; stroke-width: 1.6; opacity: 0; transform-origin: 32px 42px; animation: i-ripple 1.7s ease-out infinite; }
.intro .rp1 { animation-delay: 1s; } .intro .rp2 { animation-delay: 1.5s; } .intro .rp3 { animation-delay: 2s; }

.confetti { position: absolute; left: 50%; top: 100px; width: 0; height: 0; }
.confetti i { position: absolute; left: -6px; top: -6px; width: var(--s, 10px); height: var(--s, 10px); background: var(--c); border-radius: var(--br, 50%);
  opacity: 0; animation: i-conf 1.2s 1s cubic-bezier(.1, .75, .3, 1) forwards; }

.fl { position: absolute; width: var(--s); height: var(--s); opacity: 0; animation: i-flin .8s .3s forwards, i-bob 5.5s ease-in-out infinite alternate; }
.fl.ring { border: 5px solid var(--c); border-radius: 50%; }
.fl.sq { background: var(--c); border-radius: 24%; rotate: 14deg; }
.fl.tri { background: var(--c); clip-path: polygon(50% 8%, 92% 88%, 8% 88%); }
.fl.dot { background: var(--c); border-radius: 50%; }

.intro-name { margin-top: 20px; font-size: 46px; font-weight: 700; opacity: 0; transform: translateY(12px); animation: i-up .7s 1.4s ease-out forwards; }
.intro-bar { display: flex; gap: 6px; margin-top: 12px; }
.intro-bar i { height: 5px; width: 0; border-radius: 3px; animation: i-bar .5s ease-out forwards; }
.intro-bar i:nth-child(1) { background: var(--coral); animation-delay: 1.8s; }
.intro-bar i:nth-child(2) { background: var(--amber); animation-delay: 1.9s; }
.intro-bar i:nth-child(3) { background: var(--teal); animation-delay: 2s; }
.intro-tag { margin-top: 14px; font-size: 17px; color: rgba(255, 255, 255, .82); opacity: 0; transform: translateY(10px); animation: i-up .7s 1.95s ease-out forwards; }
.intro-skip { position: absolute; bottom: 28px; inset-inline-start: 50%; transform: translateX(50%); background: none; border: 1px solid rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .85);
  border-radius: 20px; padding: 6px 18px; font: inherit; font-size: 13px; cursor: pointer; opacity: 0; animation: i-fade .5s 1s forwards; }
.intro-skip:hover { background: rgba(255, 255, 255, .12); }

@keyframes i-drop { 0% { transform: translateY(-150px); opacity: 0; } 12% { opacity: 1; } 55% { transform: translateY(7px); } 75% { transform: translateY(-3px); } 100% { transform: none; opacity: 1; } }
@keyframes i-ring { 0%, 100% { transform: rotate(0); } 14% { transform: rotate(-11deg); } 30% { transform: rotate(9deg); } 46% { transform: rotate(-7deg); } 62% { transform: rotate(5deg); } 78% { transform: rotate(-3deg); } 90% { transform: rotate(1deg); } }
@keyframes i-snd { 0% { opacity: 0; transform: translate(var(--tx, 0), var(--ty, 0)) scale(.3); } 100% { opacity: 1; transform: none; } }
@keyframes i-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes i-ripple { 0% { opacity: .75; transform: scale(.55); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes i-conf { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); } }
@keyframes i-flin { to { opacity: .9; } }
@keyframes i-bob { from { translate: 0 -9px; } to { translate: 0 11px; } }
@keyframes i-up { to { opacity: 1; transform: none; } }
@keyframes i-bar { to { width: 30px; } }
@keyframes i-fade { to { opacity: 1; } }

.home { animation: i-home .7s ease-out both; }
@keyframes i-home { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } .home { animation: none; } }
@media (max-width: 480px) { .intro-name { font-size: 36px; } .intro .mark { width: 140px; height: 140px; } .confetti { top: 80px; } }

/* ---------- حقول نصية عامة (اسم مستخدم / كلمة سر) ---------- */
.field.txt { letter-spacing: 0; text-align: start; font-size: 16px; }
.login-card .field.txt { width: 100%; }
.topbar .who { color: #9aa3bd; font-size: 13px; padding: 6px 8px; }

/* ---------- هوية موحّدة v2: الكحلي للأزرار الأساسية، التركواز للنجاح ---------- */
:root { --brand: #1b2540; --brand-ink: #fff; --brand-soft: #e7eaf3; --ok: #0e8f80; --ok-soft: #dcf5f1; }
.btn.primary:hover { background: #2a3866; }
.btn.primary:disabled { background: #b3b9cc; border-color: #b3b9cc; }
.item:hover, .card:hover { border-color: var(--coral); }
.phone.ready, .board-col.rdy { background: var(--ok); }
.phone.ready .btn { color: var(--ok); }
.rdy .n { color: var(--ok); }
.step.done::before, .step.now::before { background: var(--ok); border-color: var(--ok); }
.step.done::after { background: var(--ok); }
.phone.ready .step::before { background: transparent; border-color: rgba(255,255,255,.5); }
.phone.ready .step.done::before, .phone.ready .step.now::before { background: #fff; border-color: #fff; }
.state.yes { background: var(--ok-soft); color: #0b7a6c; }
.scan.yes { color: #0b7a6c; } .scan.yes i { background: var(--ok); }
.ord.ready { border-color: var(--ok); }
.conn { color: var(--ok); }
.field:focus, .f:focus { outline-color: var(--coral); border-color: var(--coral); }

/* ---------- أيقونات عامة وبطاقات الرئيسية ---------- */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.card .ci { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 14px; background: color-mix(in srgb, var(--cc) 14%, #fff); color: var(--cc); }
.card .ci .ic { width: 26px; height: 26px; }
.card { transition: transform .12s, box-shadow .15s, border-color .15s; } .card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(27, 37, 64, .08); }
.btn .ic { width: 18px; height: 18px; vertical-align: -4px; margin-inline-end: 6px; }

/* ---------- الاشتراك: تنبيه قرب الانتهاء + شاشة الإيقاف ---------- */
.sub-banner { background: #fff1cc; color: #7a5a00; border-bottom: 1px solid #f0d78a; padding: 9px 20px; font-size: 14px; text-align: center; font-weight: 500; }
.blocked-screen { position: fixed; inset: 0; z-index: 2000; background: #1b2540; display: grid; place-items: center; padding: 20px; }
.blocked-box { background: #fff; border-radius: 16px; max-width: 440px; width: 100%; padding: 36px 30px; text-align: center; }
.blocked-box .logo { width: 64px; height: 64px; margin-bottom: 14px; }
.blocked-box h2 { margin: 0 0 10px; font-size: 22px; color: #d64545; } .blocked-box p { margin: 0; color: #5b6478; line-height: 1.7; }

/* ---------- الصفحة الرئيسية: الدخول بكود المطعم ---------- */
.code-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 0 0 32px; max-width: 560px; }
.code-card label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.code-row { display: flex; align-items: center; gap: 8px; }
.code-pre { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--ink-3); font-size: 14px; }
.code-in { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.code-in:focus { outline: 2px solid var(--coral); border-color: var(--coral); }
.code-card small { display: block; margin-top: 8px; color: var(--ink-3); font-size: 12.5px; }
.topbar nav a .ic { width: 16px; height: 16px; vertical-align: -3px; margin-inline-end: 4px; }
