:root {
  --bg: #f7f3ee; --panel: #fff; --ink: #1f1712; --ink-2: #5d5048; --muted: #8b7d73; --line: #e9e1d8;
  --brand: #6b3f22; --brand-2: #8c5532; --brand-ink: #fff; --accent: #d98c3a;
  --green: #2f7d4f; --green-bg: #e6f4ea; --red: #b23b3b; --red-bg: #fbeaea; --amber: #a8650f; --amber-bg: #fdf1de; --blue: #2c5d8a; --blue-bg: #e7f0f8;
  --radius: 12px; --shadow: 0 1px 2px rgba(31,23,18,.06), 0 4px 16px rgba(31,23,18,.06);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.2; }
h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; } h4 { font-size: .95rem; margin-top: 1em; color: var(--ink-2); }
a { color: var(--brand-2); }
code { background: #f2ece5; padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; justify-content: center; } .right { text-align: right; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pad { padding: 32px; } .row { display: flex; align-items: center; } .gap { gap: 10px; } .row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width: 720px) { .two { grid-template-columns: 1fr; } }
.narrow { max-width: 820px; }
.clickable { cursor: pointer; }
.warn-text { color: var(--amber); font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--brand-ink); } .btn-primary:hover:not(:disabled) { background: var(--brand-2); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); } .btn-secondary:hover:not(:disabled) { border-color: #cdbfb1; }
.btn-ghost { background: transparent; color: var(--ink-2); } .btn-ghost:hover:not(:disabled) { background: rgba(0,0,0,.05); }
.btn-ghost-danger { background: transparent; color: var(--red); } .btn-ghost-danger:hover { background: var(--red-bg); }
.btn-success { background: var(--green); color: #fff; } .btn-warn { background: var(--amber-bg); color: var(--amber); border-color: #f1d3a6; }
.btn-sm { padding: 6px 11px; font-size: .85rem; border-radius: 8px; } .btn-lg { padding: 13px 20px; font-size: 1.02rem; } .btn-block { width: 100%; }
.icon-btn { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 8px; } .icon-btn:hover { background: #f2ece5; }
.link { background: none; border: 0; color: var(--brand-2); font: inherit; font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 10px; }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: sp .7s linear infinite; }
.spin-lg { width: 30px; height: 30px; border-width: 3px; color: var(--brand); } @keyframes sp { to { transform: rotate(360deg); } }

/* Forms */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field-label { font-size: .82rem; font-weight: 600; color: var(--ink-2); } .field-hint { font-size: .78rem; color: var(--muted); }
.input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; font: inherit; color: var(--ink); outline: none; transition: border .15s, box-shadow .15s; }
.input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(140,85,50,.15); }
.input-sm { padding: 6px 9px; font-size: .88rem; width: auto; } .input-lg { font-size: 1.3rem; font-weight: 700; padding: 12px 14px; }
textarea.input { resize: vertical; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; } .seg-btn { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 14px; font: inherit; cursor: pointer; font-weight: 600; color: var(--ink-2); } .seg-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .88rem; } .toggle input { display: none; }
.toggle-track { width: 38px; height: 22px; background: #d8cec4; border-radius: 22px; position: relative; transition: background .15s; flex: none; } .toggle-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked + .toggle-track { background: var(--green); } .toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(16px); }

/* Badges, alerts */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .75rem; font-weight: 700; background: #efe8e1; color: var(--ink-2); white-space: nowrap; }
.badge-success { background: var(--green-bg); color: var(--green); } .badge-danger { background: var(--red-bg); color: var(--red); } .badge-warn { background: var(--amber-bg); color: var(--amber); } .badge-info { background: var(--blue-bg); color: var(--blue); }
.badge-st-submitted { background: #ffe9cc; color: #9a5300; } .badge-st-confirmed { background: var(--blue-bg); color: var(--blue); } .badge-st-preparing { background: #efe5fb; color: #6b3fa0; }
.badge-st-ready { background: var(--green-bg); color: var(--green); } .badge-st-served { background: #eee; color: #666; } .badge-st-cancelled { background: var(--red-bg); color: var(--red); }
.alert { padding: 10px 14px; border-radius: 10px; margin: 10px 0; font-size: .9rem; } .alert-danger { background: var(--red-bg); color: var(--red); } .alert-success { background: var(--green-bg); color: var(--green); } .alert-info { background: var(--blue-bg); color: var(--blue); }
.banner { padding: 10px 24px; font-weight: 600; font-size: .9rem; } .banner-warn { background: var(--amber-bg); color: var(--amber); border-bottom: 1px solid #f1d3a6; }
.empty { text-align: center; padding: 40px 20px; border: 2px dashed var(--line); border-radius: var(--radius); margin: 12px 0; } .empty-title { font-weight: 700; margin-bottom: 4px; }

/* Toasts & modal */
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; max-width: 380px; }
.toast { background: #2b1d14; color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: .9rem; animation: up .2s ease-out; }
.toast-success { background: var(--green); } .toast-danger { background: var(--red); } .toast-warn { background: var(--amber); }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(31,23,18,.45); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; z-index: 100; overflow-y: auto; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: up .15s ease-out; } .modal-wide { max-width: 980px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); } .modal-head h3 { margin: 0; }
.modal-body { padding: 18px 20px; } .modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fcfaf8; border-radius: 0 0 16px 16px; }

/* Shell */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 20px; padding: 10px 24px; background: #2b1d14; color: #fff; position: sticky; top: 0; z-index: 50; flex-wrap: wrap; }
.topbar-dark { background: #14161c; }
.brand { display: flex; align-items: center; gap: 10px; } .logo { font-size: 26px; } .brand-name { font-weight: 800; } .brand-sub { font-size: .75rem; opacity: .7; }
.nav { display: flex; gap: 4px; flex: 1; } .nav-link { color: #e8dcd2; text-decoration: none; padding: 7px 13px; border-radius: 8px; font-weight: 600; font-size: .92rem; } .nav-link:hover { background: rgba(255,255,255,.08); } .nav-on { background: rgba(255,255,255,.14); color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; } .topbar .btn-ghost { color: #e8dcd2; } .topbar .btn-ghost:hover { background: rgba(255,255,255,.1); }
.user-chip { display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; line-height: 1.1; text-align: right; } .user-chip small { opacity: .65; font-weight: 500; }
.live { font-size: .75rem; padding: 3px 9px; border-radius: 99px; background: #6d2b2b; } .live-on { background: #1f5c3a; } .live::before { content: "● "; }
.main { padding: 22px 24px 60px; flex: 1; width: 100%; max-width: 1500px; margin: 0 auto; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { background: none; border: 0; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; } .tab-on { color: var(--brand); border-bottom-color: var(--brand); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); } .stat-label { font-size: .78rem; color: var(--muted); font-weight: 600; } .stat-value { font-size: 1.45rem; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; } .stat-sub { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.stat-green .stat-value { color: var(--green); } .stat-red .stat-value { color: var(--red); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; } .tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); } .tbl td { padding: 9px 8px; border-bottom: 1px solid #f3ede7; vertical-align: middle; } .tbl-hover tr:hover td { background: #fcf8f4; }
.barrow { display: grid; grid-template-columns: 110px 1fr 30px; gap: 10px; align-items: center; margin: 8px 0; } .bar { background: #f2ece5; border-radius: 6px; height: 10px; overflow: hidden; } .bar > div { background: var(--brand-2); height: 100%; }
.mini-order { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f3ede7; font-size: .9rem; flex-wrap: wrap; } .mini-order .num { margin-left: auto; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; } .feat { list-style: none; padding: 0; margin: 12px 0 0; font-size: .85rem; color: var(--ink-2); } .feat li { padding: 3px 0; }

/* Auth */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(1200px 600px at 20% 0%, #f1e2d2, transparent), var(--bg); }
.auth-dark { background: radial-gradient(1000px 600px at 20% 0%, #2a3140, transparent), #14161c; }
.auth-card { background: #fff; border-radius: 18px; padding: 32px 28px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(31,23,18,.12); } .auth-card h1 { margin: 6px 0 2px; } .auth-logo { font-size: 38px; }

/* Operations */
.ops { display: grid; grid-template-columns: 1fr 330px; gap: 22px; } @media (max-width: 1000px) { .ops { grid-template-columns: 1fr; } }
.ops-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; align-self: start; position: sticky; top: 80px; }
.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; margin-bottom: 22px; }
.ocard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); border-left: 5px solid #ccc; display: flex; flex-direction: column; }
.ocard-submitted { border-left-color: var(--accent); animation: pulse 2s ease-in-out 3; } .ocard-confirmed { border-left-color: var(--blue); } .ocard-preparing { border-left-color: #6b3fa0; } .ocard-ready { border-left-color: var(--green); }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(217,140,58,.35); } }
.ocard-head { display: flex; align-items: center; gap: 10px; } .ocard-table { background: #2b1d14; color: #fff; font-weight: 800; border-radius: 9px; padding: 6px 9px; font-size: 1.05rem; } .ocard-meta { display: flex; flex-direction: column; flex: 1; font-size: .85rem; line-height: 1.25; }
.ocard-items { list-style: none; padding: 0; margin: 10px 0 6px; font-size: .95rem; } .ocard-items li { padding: 3px 0; } .inote { font-size: .82rem; color: var(--amber); padding-left: 18px; font-weight: 600; }
.onote { background: var(--amber-bg); color: var(--amber); border-radius: 8px; padding: 6px 9px; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.ocard-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: 6px; margin-top: auto; font-weight: 700; }
.ocard-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pill-new { background: var(--accent); color: #fff; padding: 2px 10px; border-radius: 99px; font-size: .8rem; margin-left: 6px; vertical-align: middle; }
.count { background: #efe8e1; border-radius: 99px; padding: 1px 9px; font-size: .85rem; margin-left: 4px; }
.new-alert { position: sticky; top: 60px; z-index: 40; margin: -22px -24px 18px; background: linear-gradient(90deg, #d97706, #b45309); color: #fff; padding: 14px 24px; cursor: pointer; box-shadow: 0 6px 20px rgba(180,83,9,.35); animation: up .2s; } .new-alert-title { font-size: 1.3rem; font-weight: 900; letter-spacing: .02em; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 8px; }
.tcell { border: 1px solid var(--line); background: #faf7f4; border-radius: 10px; padding: 10px 6px; text-align: center; cursor: pointer; font: inherit; } .tcell:disabled { cursor: default; opacity: .75; }
.tcell-n { font-weight: 800; font-size: 1.2rem; } .tcell-free { font-size: .75rem; color: var(--muted); } .tcell-amt { font-size: .72rem; font-weight: 700; }
.tcell-due { background: #fff4e6; border-color: #f2c48d; } .tcell-paid { background: var(--green-bg); border-color: #b9dfc6; }
.kds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } @media (max-width: 900px) { .kds { grid-template-columns: 1fr; } }
.kcol { background: #efe8e1; border-radius: 14px; padding: 12px; min-height: 60vh; } .kcol .ocard { margin-bottom: 10px; } .kcol-ready { background: #e3efe6; } .kempty { text-align: center; color: var(--muted); padding: 30px; }
.kcol .ocard-items { font-size: 1.1rem; }

/* Bill */
.bill-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; } @media (max-width: 760px) { .bill-grid { grid-template-columns: 1fr; } }
.bill-totals { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 8px; } .bill-totals > div { display: flex; justify-content: space-between; padding: 3px 0; } .bill-rem { font-size: 1.15rem; color: var(--brand); }
.pay-box { background: #faf7f4; border: 1px solid var(--line); border-radius: 12px; padding: 16px; align-self: start; } .pay-box .seg { margin-bottom: 12px; }
.split { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; font-size: .88rem; } .split .input-sm { width: 64px; }

/* QR */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.qr-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; box-shadow: var(--shadow); } .qr-off { opacity: .5; }
.qr-img svg { width: 100%; max-width: 140px; height: auto; } .qr-n { font-weight: 800; margin-top: 4px; } .qr-big svg { width: 280px; max-width: 100%; display: block; margin: 0 auto; }
.qr-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10mm; padding: 10mm; background: #fff; }
.qrcard { border: 1px solid #ccc; border-radius: 6mm; padding: 6mm; text-align: center; break-inside: avoid; font-family: var(--font); } .qrcard-cafe { font-weight: 800; font-size: 14pt; } .qrcard-svg svg { width: 100%; } .qrcard-table { font-size: 20pt; font-weight: 900; } .qrcard-hint { font-size: 8pt; color: #555; }

/* ───────────── Customer menu (m-*) ───────────── */
.m { --m-brand: #6b3f22; --m-ink: #1d1612; --m-soft: #8a7f78; --m-bg: #faf7f4; --m-card: #fff; --m-line: #efe8e1;
  max-width: 720px; margin: 0 auto; min-height: 100vh; background: var(--m-bg); padding-bottom: 120px; color: var(--m-ink); }
.m-hero { position: relative; min-height: 250px; background: linear-gradient(135deg, #2b1d14, var(--m-brand)); background-size: cover; background-position: center; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px 20px; }
.m-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.72) 100%); }
.m-hero-top, .m-hero-body { position: relative; }
.m-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.m-table-pill { background: rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.3); padding: 6px 12px; border-radius: 99px; font-weight: 700; font-size: .85rem; }
.m-langs { display: flex; background: rgba(0,0,0,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 99px; padding: 3px; }
.m-langs button { border: 0; background: none; color: #fff; font: inherit; font-weight: 700; font-size: .75rem; padding: 5px 10px; border-radius: 99px; cursor: pointer; opacity: .8; }
.m-langs button.on { background: #fff; color: var(--m-ink); opacity: 1; }
.m-hero-body { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 26px; }
.m-logo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 8px 24px rgba(0,0,0,.35); background: #fff; }
.m-logo-ph { display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 900; color: var(--m-brand); }
.m-hero h1 { margin: 12px 0 2px; font-size: 1.75rem; font-weight: 900; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.m-tagline { margin: 0; opacity: .92; font-size: .95rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.m-info { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 4px; scrollbar-width: none; }
.m-info::-webkit-scrollbar, .m-tabs::-webkit-scrollbar { display: none; }
.m-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: #fff; border: 1px solid var(--m-line); border-radius: 99px; padding: 7px 12px; font-size: .82rem; font-weight: 600; color: var(--m-ink); text-decoration: none; font-family: inherit; }
.m-chip svg { color: var(--m-brand); } .m-chip-btn { cursor: pointer; }
.m-track-pill { display: flex; align-items: center; gap: 10px; margin: 12px 16px 0; width: calc(100% - 32px); background: #fff; border: 1px solid var(--m-line); border-radius: 14px; padding: 12px 14px; font: inherit; text-align: start; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.m-track-arrow { margin-inline-start: auto; font-size: 1.4rem; color: var(--m-soft); }
.m-dot { width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.2); animation: mpulse 1.6s infinite; flex: none; }
.m-dot-ready { background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.2); } .m-dot-served, .m-dot-cancelled { animation: none; background: #aaa; box-shadow: none; }
@keyframes mpulse { 50% { box-shadow: 0 0 0 8px rgba(245,158,11,0); } }
.m-sticky { position: sticky; top: 0; z-index: 10; background: rgba(250,247,244,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 10px 16px 0; border-bottom: 1px solid var(--m-line); }
.m-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--m-line); border-radius: 12px; padding: 0 12px; color: var(--m-soft); }
.m-search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; padding: 11px 0; color: var(--m-ink); min-width: 0; }
.m-search button { border: 0; background: none; color: var(--m-soft); cursor: pointer; display: flex; padding: 4px; }
.m-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.m-tab { border: 0; background: none; font: inherit; font-weight: 700; color: var(--m-soft); padding: 8px 14px; border-radius: 99px; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.m-tab.on { background: var(--m-brand); color: #fff; }
.m-menu { padding: 0 16px; }
.m-sec { scroll-margin-top: 120px; } .m-sec h2 { font-size: 1.3rem; font-weight: 900; margin: 22px 2px 12px; letter-spacing: -.01em; }
.m-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .m-grid { grid-template-columns: repeat(3, 1fr); } }
.mc { background: var(--m-card); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(60,40,20,.07); display: flex; flex-direction: column; cursor: pointer; transition: transform .12s; }
.mc:active { transform: scale(.98); }
.mc-media { position: relative; aspect-ratio: 1 / 1; background: #f1ebe4; }
.mc-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-img-ph, .m-hero-img.mc-img-ph, .m-line-img.mc-img-ph { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.92); font-size: 44px; font-weight: 900; }
.mc-sold { position: absolute; inset: auto 8px 8px 8px; text-align: center; background: rgba(29,22,18,.78); color: #fff; font-weight: 800; font-size: .78rem; padding: 5px; border-radius: 8px; letter-spacing: .04em; text-transform: uppercase; }
.mc-off .mc-img { filter: grayscale(.9) opacity(.75); } .mc-off { cursor: default; }
.mc-qty { position: absolute; top: 8px; inset-inline-end: 8px; background: var(--m-brand); color: #fff; font-weight: 800; min-width: 26px; height: 26px; border-radius: 13px; display: flex; align-items: center; justify-content: center; padding: 0 7px; font-size: .85rem; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.mc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.mc-body h3 { font-size: .98rem; margin: 0 0 3px; font-weight: 800; line-height: 1.25; }
.mc-body p { font-size: .78rem; color: var(--m-soft); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.mc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mc-price { font-weight: 900; font-size: .95rem; color: var(--m-brand); }
.mc-add { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--m-brand); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.18); flex: none; transition: transform .1s; }
.mc-add:active { transform: scale(.9); }
.m-empty { text-align: center; color: var(--m-soft); padding: 40px 0; }
.m-footer { text-align: center; padding: 40px 24px 10px; color: var(--m-soft); font-size: .88rem; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.m-footer b { color: var(--m-ink); font-size: 1rem; } .m-footer p { margin: 0; max-width: 460px; }
.m-footer-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.m-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 8px 0; }
.m-footer-links a { color: var(--m-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.m-footer-links svg { color: var(--m-brand); } .m-footer small { opacity: .7; margin-top: 10px; }
.m-cartbar { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); width: calc(100% - 28px); max-width: 692px;
  display: flex; align-items: center; gap: 12px; background: var(--m-ink); color: #fff; border: 0; border-radius: 18px; padding: 12px 18px; font: inherit; font-weight: 800; cursor: pointer;
  box-shadow: 0 12px 32px rgba(0,0,0,.3); animation: mpop .35s cubic-bezier(.2,1.6,.4,1); }
@keyframes mpop { 0% { transform: translateX(-50%) scale(.96); } 60% { transform: translateX(-50%) scale(1.03); } 100% { transform: translateX(-50%) scale(1); } }
.m-cartbar b { margin-inline-start: auto; font-size: 1.05rem; }
.m-cartbar-ico { position: relative; background: var(--m-brand); width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.m-cartbar-ico i { position: absolute; top: -6px; inset-inline-end: -6px; background: #fff; color: var(--m-ink); font-style: normal; font-size: .72rem; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
/* sheets */
.m-sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(20,14,10,.5); display: flex; align-items: flex-end; justify-content: center; animation: mfade .2s; }
@keyframes mfade { from { opacity: 0; } }
.m-sheet { position: relative; background: #fff; width: 100%; max-width: 720px; max-height: 92vh; border-radius: 24px 24px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: mslide .28s cubic-bezier(.2,.9,.3,1); padding-bottom: env(safe-area-inset-bottom); }
@keyframes mslide { from { transform: translateY(100%); } }
.m-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 8px; } .m-sheet-head h3 { margin: 0; font-size: 1.2rem; }
.m-sheet-x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--m-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.m-sheet-x.static { position: static; box-shadow: none; background: #f3eee9; }
.m-sheet-scroll { overflow-y: auto; padding: 4px 20px 12px; }
.m-sheet-foot { border-top: 1px solid var(--m-line); padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.m-sheet-foot small { text-align: center; color: var(--m-soft); }
.m-sheet-product { max-height: 94vh; } .m-sheet-product .m-hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; max-height: 46vh; }
.m-product-body { padding: 18px 20px 8px; overflow-y: auto; } .m-product-body h2 { margin: 0; font-size: 1.45rem; font-weight: 900; }
.m-product-price { color: var(--m-brand); font-weight: 900; font-size: 1.2rem; margin: 4px 0 10px; } .m-product-body p { color: var(--m-soft); margin: 0 0 14px; }
.m-product-foot { flex-direction: row; align-items: center; } .m-product-foot .m-btn { flex: 1; }
.m-sheet-small { padding: 26px 22px 30px; align-items: center; text-align: center; } .m-sheet-small h3 { margin: 8px 0 14px; }
.m-wifi-ico { width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--m-brand) 14%, #fff); color: var(--m-brand); display: flex; align-items: center; justify-content: center; }
.m-wifi-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--m-line); border-radius: 12px; margin-bottom: 8px; }
.m-wifi-row span { color: var(--m-soft); font-size: .85rem; } .m-wifi-row b { margin-inline-start: auto; font-size: 1.05rem; }
.m-copy { border: 0; background: var(--m-brand); color: #fff; border-radius: 8px; padding: 6px 10px; font: inherit; font-weight: 700; font-size: .8rem; cursor: pointer; }
.m-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--m-line); }
.m-line-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; font-size: 24px !important; }
.m-line-main { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; } .m-line-name { font-weight: 800; }
.m-line-foot { display: flex; align-items: center; justify-content: space-between; }
.mc-sold-inline { margin-inline-start: 6px; background: #fbeaea; color: #b23b3b; font-size: .7rem; padding: 2px 6px; border-radius: 6px; }
.m-input { width: 100%; border: 1px solid var(--m-line); border-radius: 12px; padding: 11px 12px; font: inherit; background: #fff; outline: none; color: var(--m-ink); }
.m-input:focus { border-color: var(--m-brand); } .m-input-sm { padding: 7px 10px; font-size: .85rem; } textarea.m-input { margin-top: 12px; resize: vertical; }
.m-stepper { display: inline-flex; align-items: center; background: #f3eee9; border-radius: 99px; padding: 3px; }
.m-stepper button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; color: var(--m-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.m-stepper span { min-width: 32px; text-align: center; font-weight: 800; } .m-stepper-lg button { width: 42px; height: 42px; } .m-stepper-lg span { min-width: 38px; font-size: 1.1rem; }
.m-total { display: flex; justify-content: space-between; font-size: 1.15rem; } .m-total b { font-weight: 900; }
.m-btn { border: 0; border-radius: 14px; padding: 15px 18px; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.m-btn-primary { background: var(--m-brand); color: #fff; } .m-btn:disabled { opacity: .5; }
.m-alert { background: #fbeaea; color: #b23b3b; padding: 10px 12px; border-radius: 10px; font-size: .9rem; }
/* tracking page */
.m-page { padding: 18px 16px; } .m-page h3 { margin: 18px 2px 10px; }
.m-back { border: 0; background: none; font: inherit; font-weight: 700; color: var(--m-brand); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; padding: 0; }
.m-sent { text-align: center; padding: 18px 0 4px; } .m-sent h2 { margin: 12px 0 4px; font-size: 1.5rem; } .m-sent p { color: var(--m-soft); margin: 0; }
.m-sent-check { width: 76px; height: 76px; border-radius: 50%; background: #16a34a; color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto; animation: mpopc .45s cubic-bezier(.2,1.6,.4,1); box-shadow: 0 10px 30px rgba(22,163,74,.35); }
@keyframes mpopc { from { transform: scale(.3); opacity: 0; } }
.m-order { background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(60,40,20,.06); }
.m-order-head { display: flex; justify-content: space-between; align-items: center; }
.m-status { font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: #fff1dc; color: #9a5300; }
.m-status-ready { background: #dcfce7; color: #15803d; } .m-status-served { background: #eee; color: #555; } .m-status-cancelled { background: #fbeaea; color: #b23b3b; } .m-status-preparing { background: #efe5fb; color: #6b3fa0; } .m-status-confirmed { background: #e7f0f8; color: #2c5d8a; }
.m-steps { list-style: none; display: flex; padding: 0; margin: 14px 0 10px; }
.m-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .66rem; color: var(--m-soft); position: relative; text-align: center; }
.m-steps li span { width: 14px; height: 14px; border-radius: 50%; background: #e6ded6; position: relative; z-index: 1; }
.m-steps li::before { content: ""; position: absolute; top: 6px; inset-inline-start: -50%; width: 100%; height: 3px; background: #e6ded6; }
.m-steps li:first-child::before { display: none; }
.m-steps li.done span, .m-steps li.done::before { background: var(--m-brand); } .m-steps li.done { color: var(--m-ink); font-weight: 700; }
.m-order-items { list-style: none; padding: 0; margin: 0; font-size: .9rem; } .m-order-items li { padding: 2px 0; } .m-order-items span { font-weight: 800; } .m-order-items em { color: #a8650f; }
.m-order-total { text-align: end; font-weight: 900; margin-top: 6px; }
.m-bill { background: #fff; border-radius: 16px; padding: 14px; margin: 14px 0; display: flex; flex-direction: column; gap: 6px; } .m-bill div { display: flex; justify-content: space-between; font-size: 1.05rem; } .m-bill small { color: var(--m-soft); }
.m-msg { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; } .m-msg-icon { font-size: 44px; } .m-msg-logo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }

/* Thermal ticket */
#print-root { display: none; }
@media print {
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block !important; }
  body.printing { background: #fff; }
  .qr-sheet { padding: 0; }
}
#print-root[data-width="58"] .tk { width: 48mm; font-size: 9pt; }
#print-root[data-width="80"] .tk { width: 72mm; font-size: 10.5pt; }
.tk { font-family: "Courier New", ui-monospace, monospace; color: #000; padding: 2mm 0; line-height: 1.3; }
.tk-c { text-align: center; } .tk-b { font-weight: 700; } .tk-l { font-size: 1.2em; } .tk-xl { font-size: 1.8em; font-weight: 900; margin: 1mm 0; } .tk-s { font-size: .8em; }
.tk-row { display: flex; justify-content: space-between; gap: 2mm; } .tk-row span:last-child { white-space: nowrap; }
.tk-sep { border-top: 1px dashed #000; margin: 1.5mm 0; } .tk-note { padding-left: 3mm; font-style: italic; } .tk-cut { page-break-after: always; height: 4mm; }
.tk .qrcard { border: 0; }

/* Reports */
.report-bar { display: flex; flex-direction: column; gap: 10px; } .wrap { flex-wrap: wrap; }
.day-total { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; align-items: center; background: linear-gradient(135deg, #2b1d14, #6b3f22); color: #fff; border: 0; }
.day-total-label { font-size: .85rem; opacity: .8; font-weight: 600; } .day-total-value { font-size: 2.3rem; font-weight: 900; font-variant-numeric: tabular-nums; margin: 4px 0; }
.day-total .delta .muted { color: rgba(255,255,255,.6); } .day-total .muted { color: rgba(255,255,255,.6); }
.day-total-split > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: .92rem; } .day-total-split > div:last-child { border-bottom: 0; }
@media (max-width: 760px) { .day-total { grid-template-columns: 1fr; } }
.delta { font-size: .78rem; font-weight: 700; } .delta-up { color: var(--green); } .delta-down { color: var(--red); } .day-total .delta-up { color: #8fe0aa; } .day-total .delta-down { color: #ffaaaa; }
.chart { width: 100%; display: block; } .chart-labels { display: flex; } .chart-labels span { flex: 1; text-align: center; font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: visible; } .chart-bar { fill: #b88660; } .chart-bar:hover, .chart-bar-hi { fill: var(--brand); } .chart-grid { stroke: #efe8e1; stroke-width: 1; } .chart-label { font-size: 22px; fill: var(--muted); }
.scroll-y { max-height: 360px; overflow-y: auto; }
.refreshing > *:not(.report-bar) { opacity: .55; transition: opacity .15s; }

/* Photo picker & shop */
.pp { display: flex; flex-direction: column; gap: 8px; }
.pp-preview { position: relative; background: #f2ece5; border: 2px dashed #d8cbbd; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pp-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-square .pp-preview { width: 150px; height: 150px; border-radius: 16px; }
.pp-circle .pp-preview { width: 120px; height: 120px; border-radius: 50%; }
.pp-wide .pp-preview { width: 100%; max-width: 420px; aspect-ratio: 16 / 7; border-radius: 14px; }
.pp-preview:has(img) { border-style: solid; border-color: transparent; }
.pp-empty { display: flex; flex-direction: column; align-items: center; color: #a08e7f; font-size: 26px; } .pp-empty small { font-size: .75rem; font-weight: 600; }
.pp-busy { position: absolute; inset: 0; background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.pp-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.shop-brand { display: grid; grid-template-columns: 180px 1fr; gap: 20px; } @media (max-width: 640px) { .shop-brand { grid-template-columns: 1fr; } }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; } .swatch-on { box-shadow: 0 0 0 3px var(--ink); }
.color-input { width: 44px; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; display: block; } .thumb-empty { background: #f2ece5; display: flex; align-items: center; justify-content: center; font-size: 18px; opacity: .6; }
.logo-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fff; }

/* Loyalty card (customer) */
.m-loy { margin: 12px 16px 0; border-radius: 18px; }
.m-loy-promo { width: calc(100% - 32px); display: flex; align-items: center; gap: 12px; border: 1px dashed color-mix(in srgb, var(--m-brand) 45%, #fff); background: color-mix(in srgb, var(--m-brand) 7%, #fff); padding: 12px 14px; font: inherit; text-align: start; cursor: pointer; color: var(--m-ink); }
.m-loy-ico { font-size: 26px; } .m-loy-txt { display: flex; flex-direction: column; flex: 1; } .m-loy-txt small { color: var(--m-soft); }
.m-loy-cta { background: var(--m-brand); color: #fff; font-weight: 800; padding: 8px 14px; border-radius: 99px; font-size: .85rem; }
.m-loy-card { background: linear-gradient(135deg, var(--m-brand), color-mix(in srgb, var(--m-brand) 60%, #000)); color: #fff; padding: 16px; box-shadow: 0 10px 26px rgba(0,0,0,.16); }
.m-loy-head { display: flex; justify-content: space-between; align-items: baseline; } .m-loy-head small { opacity: .75; }
.m-loy-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0 10px; }
.m-loy-dots span { aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.14); border: 2px dashed rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.55); }
.m-loy-dots span.on { background: #fff; border: 2px solid #fff; color: var(--m-brand); font-size: 1.1rem; animation: mstamp .35s cubic-bezier(.2,1.6,.4,1); }
.m-loy-dots span.gift { font-size: 1.15rem; filter: grayscale(1); opacity: .6; } .m-loy-dots span.gift.on { filter: none; opacity: 1; background: #ffd56b; border-color: #ffd56b; animation: mwiggle 1.2s ease-in-out infinite; }
@keyframes mstamp { from { transform: scale(.3) rotate(-30deg); } }
@keyframes mwiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.m-loy-msg { font-weight: 800; } .m-loy-info { opacity: .7; font-size: .72rem; }
.m-loy-card.ready { box-shadow: 0 0 0 3px #ffd56b, 0 10px 26px rgba(0,0,0,.2); }
.m-loy-big { font-size: 46px; } .m-loy-sub { color: var(--m-soft); margin: -6px 0 14px; }
.m-join { width: 100%; display: flex; flex-direction: column; gap: 10px; } .m-join small { color: var(--m-soft); }
.m-reward { border: 2px dashed #e7c46b; background: #fff8e6; border-radius: 14px; padding: 10px 12px; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.m-reward.on { border-style: solid; } .m-reward-top { display: flex; align-items: center; gap: 8px; font-weight: 800; cursor: pointer; } .m-reward-top b { margin-inline-start: auto; color: #15803d; }
.m-reward small { color: #8a6a12; } .m-gift { color: #15803d; font-size: .8rem; }

.gift-tag { display: inline-block; margin-inline-start: 6px; background: #fff3c4; color: #8a6a12; border: 1px solid #f1d98a; font-size: .7rem; font-weight: 800; padding: 1px 7px; border-radius: 99px; vertical-align: middle; }
.loy-chip { font-size: .78rem; font-weight: 700; color: #8a6a12; background: #fff8e6; border-radius: 8px; padding: 4px 8px; margin-bottom: 6px; }
.loy-dots-sm { display: inline-flex; gap: 3px; } .loy-dots-sm i { width: 10px; height: 10px; border-radius: 50%; background: #e6ded6; display: inline-block; } .loy-dots-sm i.on { background: var(--brand); } .loy-dots-sm i.gift { background: #f5c542; }
.chip-check { border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; background: #fff; cursor: pointer; }

/* Customer space */
.m-loy-actions { display: flex; gap: 8px; margin-top: 12px; }
.m-loy-actions button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; padding: 9px 10px; font: inherit; font-weight: 800; font-size: .85rem; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; }
.m-loy-actions button:last-child { background: #fff; color: var(--m-brand); }
.m-pin { letter-spacing: .6em; text-align: center; font-size: 1.2rem; font-weight: 800; }
.m-account h3 { margin: 18px 2px 8px; }
.m-acc-head { display: flex; align-items: center; gap: 12px; margin: 14px 0; } .m-acc-head h2 { margin: 0; } .m-acc-head small { color: var(--m-soft); }
.m-acc-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--m-brand); color: #fff; font-size: 1.4rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.m-acc-tabs { display: flex; gap: 4px; overflow-x: auto; background: #efe8e1; border-radius: 14px; padding: 4px; margin-bottom: 14px; scrollbar-width: none; }
.m-acc-tabs button { flex: 1; border: 0; background: none; padding: 9px 10px; border-radius: 10px; font: inherit; font-weight: 800; font-size: .85rem; color: var(--m-soft); white-space: nowrap; cursor: pointer; }
.m-acc-tabs button.on { background: #fff; color: var(--m-ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.m-events { list-style: none; padding: 0; margin: 0; background: #fff; border-radius: 14px; }
.m-events li { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--m-line); } .m-events li:last-child { border-bottom: 0; }
.m-events li span { display: flex; flex-direction: column; font-weight: 700; } .m-events small { color: var(--m-soft); font-weight: 500; }
.m-events .pos { color: #15803d; } .m-events .neg { color: #b23b3b; }
.m-link-danger { border: 0; background: none; color: #b23b3b; font: inherit; font-weight: 700; margin: 18px auto 0; display: block; cursor: pointer; }
.m-stars { display: inline-flex; gap: 2px; } .m-stars button { border: 0; background: none; padding: 0 1px; line-height: 1; color: #ddd3c8; cursor: pointer; transition: transform .1s; } .m-stars button.on { color: #f5a524; } .m-stars button:active { transform: scale(1.25); } .m-stars.ro button { cursor: default; }
.m-rate-list { list-style: none; padding: 0; margin: 10px 0; } .m-rate-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--m-line); }
.m-rate-name { font-weight: 600; font-size: .92rem; } .m-rate { display: inline-flex; align-items: center; gap: 4px; } .m-ok { color: #15803d; font-weight: 900; } .m-soft { color: var(--m-soft); font-size: .8rem; }
.m-btn-soft { background: #f3eee9; color: var(--m-ink); } .m-btn-wa { background: #25d366; color: #fff; text-decoration: none; }
.m-invite-hero { text-align: center; background: #fff; border-radius: 18px; padding: 20px 16px; margin-bottom: 12px; } .m-invite-hero span { font-size: 46px; } .m-invite-hero h2, .m-invite-hero h3 { margin: 6px 0; } .m-invite-hero p { color: var(--m-soft); margin: 0; }
.m-code { text-align: center; border: 2px dashed var(--m-brand); border-radius: 16px; padding: 12px; margin-bottom: 12px; background: #fff; } .m-code small { color: var(--m-soft); display: block; } .m-code b { font-size: 1.8rem; letter-spacing: .25em; color: var(--m-brand); }
.m-invite-btns { display: flex; flex-direction: column; gap: 8px; }
.m-invite-stats { display: flex; gap: 10px; margin-top: 14px; } .m-invite-stats div { flex: 1; background: #fff; border-radius: 14px; padding: 12px; text-align: center; } .m-invite-stats b { font-size: 1.5rem; display: block; } .m-invite-stats small { color: var(--m-soft); }
.m-bonus { background: #fff3c4; color: #8a6a12; border-radius: 10px; padding: 8px 12px; font-weight: 800; display: inline-block; margin-top: 8px !important; }
.m-invite-land .m-join { background: #fff; border-radius: 18px; padding: 16px; }
.m-seg { display: flex; gap: 6px; flex-wrap: wrap; } .m-seg button { flex: 1; border: 1px solid var(--m-line); background: #fff; border-radius: 10px; padding: 9px 8px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; } .m-seg button.on { background: var(--m-brand); color: #fff; border-color: var(--m-brand); }
.m-fb-form { display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: 18px; padding: 16px; } .m-fb-form h3 { margin: 0; } .m-fb-form textarea { margin-top: 0; }
.m-fb { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; } .m-fb p { margin: 6px 0; } .m-fb-head { display: flex; justify-content: space-between; align-items: center; }
.m-fb-st { font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #efe8e1; } .m-fb-in_progress { background: #e7f0f8; color: #2c5d8a; } .m-fb-resolved { background: #dcfce7; color: #15803d; }
.m-fb-reply { background: #f6f1ec; border-inline-start: 3px solid var(--m-brand); border-radius: 8px; padding: 8px 10px; margin: 8px 0; } .m-fb-reply small { font-weight: 800; color: var(--m-brand); } .m-fb-reply p { margin: 2px 0 0; }
.m-fb-done { text-align: center; background: #fff; border-radius: 18px; padding: 20px; } .m-fb-done .m-sent-check { width: 60px; height: 60px; }
.m-fb-open { width: auto; margin: 10px 0 4px; padding: 10px 16px; }
.m-row2 { display: flex; gap: 8px; width: 100%; margin-top: 8px; }
.m-sheet-small .m-stars { margin: 4px 0 10px; } .m-sheet-small textarea { width: 100%; }
.center { text-align: center; }
.report-mode { margin-bottom: 2px; }
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; } @media (max-width: 1100px) { .four { grid-template-columns: 1fr 1fr; } } @media (max-width: 640px) { .four { grid-template-columns: 1fr; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; font-size: .85rem; font-weight: 600; } .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.stars-ro { color: #f5a524; white-space: nowrap; } .stars-ro .off { color: #e3dad0; } .stars-ro small { color: var(--muted); }
.row-dim td { opacity: .55; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } @media (max-width: 720px) { .three { grid-template-columns: 1fr; } }
.fb-card { border-left: 5px solid #ccc; } .fb-complaint { border-left-color: var(--red); } .fb-suggestion { border-left-color: var(--blue); } .fb-compliment { border-left-color: var(--green); } .fb-visit { border-left-color: #f5a524; }
.fb-done { opacity: .7; } .fb-msg { margin: 8px 0; white-space: pre-wrap; } .fb-reply { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.m-pin:placeholder-shown { letter-spacing: normal; text-align: start; font-size: 1rem; font-weight: 400; }

/* ───── Stocks ───── */
.stat-amber .stat-value { color: var(--amber); }
.alert-warn { background: var(--amber-bg); color: var(--amber); }
.text-red { color: var(--red); } .text-green { color: var(--green); } .nowrap { white-space: nowrap; }
.stock-tbl td { vertical-align: middle; }
.lvl { height: 5px; border-radius: 4px; background: #f0e9e2; margin-top: 5px; overflow: hidden; min-width: 70px; margin-left: auto; width: 90px; }
.lvl > div { height: 100%; border-radius: 4px; }
.lvl-ok > div { background: var(--green); } .lvl-low > div { background: var(--amber); } .lvl-out > div { background: var(--red); width: 100% !important; opacity: .35; }
.recipe-sum { background: #faf7f4; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: .9rem; }
@media (max-width: 760px) {
  .card { overflow-x: auto; }               /* wide admin tables scroll inside their card instead of the page */
  .card .tbl { min-width: 640px; }
}

/* ───── Comito brand ───── */
.wordmark { display: inline-flex; align-items: center; gap: .28em; line-height: 1; }
.wordmark-text { font-weight: 800; letter-spacing: -0.045em; }
.auth-brand { margin: 0 0 4px !important; }
.auth-kicker { margin: 0 0 10px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #B85C2E; }
.logo-tile { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.logo-mark { display: block; flex: none; }

/* Remises */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; background: #fff; cursor: pointer; font: inherit; font-size: .85rem; }
.chip:hover { border-color: var(--brand, #b85c2e); }
.chip-on { background: var(--brand, #b85c2e); border-color: var(--brand, #b85c2e); color: #fff; }
.disc-list { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 6px; }
.disc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0; color: var(--amber, #b45309); }
.disc-box { display: flex; flex-direction: column; gap: 8px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; margin-left: 8px; font-size: .95rem; padding: 2px 4px; }
.link-btn:hover { color: var(--red); }
.link-under { display: block; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; margin: 12px auto 0; }
.auth-overlay { position: fixed; inset: 0; background: rgba(20,14,10,.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.auth-overlay .auth-card { max-height: 92vh; overflow: auto; }
