:root {
  --ink: #17150f;
  --ink-2: #221f18;
  --ink-3: #2d2a22;
  --ivory: #f8f4ec;
  --paper: #fffdf8;
  --line: #e7dfcf;
  --line-ink: rgba(255, 255, 255, 0.1);
  --text: #1d1a14;
  --muted: #6f675a;
  --muted-ink: #b8ae9c;
  --gold: #c8a45c;
  --gold-deep: #8a6a2f;
  --gold-soft: #efe3c6;
  --ok: #3f7d55;
  --warn: #b7791f;
  --bad: #b3412f;
  --radius: 10px;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--text); background: var(--ivory); -webkit-font-smoothing: antialiased; }
[dir="rtl"] body, [dir="rtl"] { font-family: var(--arabic); }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
[dir="rtl"] .serif { font-family: var(--arabic); font-weight: 600; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.ink .eyebrow { color: var(--gold); }
.ink { background: var(--ink); color: #f3ede0; }
.muted { color: var(--muted); }
.ink .muted { color: var(--muted-ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 14px; text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d6b46b; }
.btn-ink { background: var(--ink); color: #f3ede0; }
.btn-line { border-color: var(--line); background: var(--paper); color: var(--text); }
.ink .btn-line { border-color: rgba(255, 255, 255, 0.22); background: transparent; color: #f3ede0; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark .mono { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--gold); color: var(--gold); font-family: var(--serif); font-size: 18px; }
.wordmark .wm { font-family: var(--serif); font-size: 21px; letter-spacing: 0.08em; line-height: 1; }
.wordmark small { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; margin-top: 3px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--muted); background: var(--paper); white-space: nowrap; }
.tag.gold { border-color: var(--gold); color: var(--gold-deep); background: #fbf5e6; }
.tag.green { border-color: #bcd8c4; color: var(--ok); background: #f1f8f3; }
.tag.red { border-color: #ebc3bb; color: var(--bad); background: #fcf2f0; }
.tag.amber { border-color: #ecd6ad; color: var(--warn); background: #fdf7ea; }
.demo-note { font-size: 11px; color: var(--muted); }
.ink .demo-note { color: var(--muted-ink); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.hide { display: none !important; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #f3ede0; padding: 12px 18px; border-radius: 999px; font-size: 14px; z-index: 100; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pop { animation: pop 0.35s ease both; }

/* ── Ops consoles (staff / kitchen / manager) ───────────────────── */
.ops { min-height: 100vh; background: var(--ivory); }
.ops-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: var(--ink); color: #f3ede0; position: sticky; top: 0; z-index: 10; }
.ops-top .who { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.ops-top select { background: var(--ink-2); color: #f3ede0; border: 1px solid var(--line-ink); border-radius: 8px; padding: 6px 10px; }
.ops-main { padding: 24px; max-width: 1280px; margin: 0 auto; }
.ops-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ops-title h1 { margin: 4px 0 0; font-size: 38px; }
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi { padding: 16px 18px; }
.kpi b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 400; margin-top: 6px; }
.kpi span { font-size: 12px; color: var(--muted); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--ink) url("../img/kitchen-pass.webp") center/cover; position: relative; }
.login::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 13, 9, 0.72), rgba(15, 13, 9, 0.92)); }
.login-card { position: relative; width: min(420px, 100%); padding: 32px; background: rgba(23, 21, 15, 0.92); color: #f3ede0; border: 1px solid var(--line-ink); border-radius: 14px; }
.login-card h1 { font-size: 34px; margin: 18px 0 6px; }
.pin { width: 100%; margin: 18px 0 10px; padding: 14px 16px; font-size: 22px; letter-spacing: 0.5em; text-align: center; border-radius: 10px; border: 1px solid var(--line-ink); background: var(--ink-2); color: #f3ede0; }
.creds { margin-top: 18px; padding: 12px 14px; border: 1px dashed rgba(200, 164, 92, 0.5); border-radius: 10px; font-size: 13px; color: var(--muted-ink); }
.creds b { color: var(--gold); letter-spacing: 0.15em; }
.err { color: #e8a598; font-size: 13px; min-height: 18px; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.list td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.switch { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #d9d1c1; border: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.switch.on { background: var(--ok); }
.switch.on::after { left: 21px; }
.section { padding: 18px 20px; }
.section h2 { margin: 0 0 4px; font-size: 26px; }
.bar { height: 8px; border-radius: 999px; background: #efe8da; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.empty { padding: 36px; text-align: center; color: var(--muted); }
@media (max-width: 720px) { .ops-main { padding: 16px; } .ops-top { padding: 12px 16px; } .ops-title h1 { font-size: 30px; } }
