/* TableTap — marketing site, hotel portal, live board, super admin */
:root {
  --brand: #0f766e;
  --brand-2: #14b8a6;
  --brand-soft: #e3f4f1;
  --sand: #f7f3ec;
  --ink: #17232a;
  --muted: #64717a;
  --line: #e6e0d6;
  --card: #fff;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --r: 14px;
  --shadow: 0 1px 2px rgba(23, 35, 42, .05), 0 4px 18px rgba(23, 35, 42, .06);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji"; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 26px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 0 0 12px; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
button, input, select, textarea { font: inherit; color: inherit; }
.brand { display: inline-flex; gap: 9px; align-items: center; font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo { width: 26px; height: 26px; border-radius: 8px; background: conic-gradient(from 200deg, var(--brand), var(--brand-2), var(--brand)); position: relative; flex: none; }
.logo::after { content: ""; position: absolute; inset: 7px; border-radius: 3px; border: 2.5px solid #fff; border-right-color: transparent; }

/* buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 11px; border: 1.5px solid transparent; font-weight: 650; text-decoration: none; cursor: pointer; background: #ece6dc; color: var(--ink); white-space: nowrap; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: #0b5f59; }
.btn.ghost { background: #fff; border-color: var(--line); }
.btn.ghost:hover { border-color: #cfc6b8; }
.btn.danger { background: #fdecea; color: var(--bad); }
.btn.sm { padding: 6px 11px; font-size: 13.5px; border-radius: 9px; }
.btn.lg { padding: 13px 22px; font-size: 16px; }
.btn.icon { padding: 6px 10px; background: transparent; color: var(--muted); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linkish.bad, .bad.linkish { color: var(--bad); }
input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea { padding: 9px 11px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; min-width: 0; }
input[type=color] { height: 40px; width: 70px; padding: 2px; border-radius: 10px; border: 1.5px solid var(--line); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.fld { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13.5px; }
.fld small { font-weight: 400; color: var(--muted); }
.chk { display: inline-flex; gap: 7px; align-items: center; font-size: 14px; cursor: pointer; margin-right: 14px; }
.chk.big { font-weight: 650; margin: 14px 0; }
.chk input { width: 17px; height: 17px; accent-color: var(--brand); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 16px; margin-bottom: 16px; align-items: end; }
.form-grid .wide { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline.wrap input { flex: 1 1 140px; }
.inline .num, .num { width: 84px; flex: none !important; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-end { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.fs { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 14px 0; }
.fs legend { font-weight: 700; padding: 0 6px; }
.flash { padding: 11px 14px; border-radius: 11px; margin: 0 0 16px; font-weight: 550; }
.flash.ok { background: #e7f6ec; color: #135f2d; }
.flash.bad { background: #fdecea; color: var(--bad); }

/* ---------- marketing site ---------- */
.s-nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; max-width: 1180px; margin: 0 auto; gap: 16px; flex-wrap: wrap; }
.s-nav nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.s-nav nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 550; }
.hero { max-width: 1180px; margin: 0 auto; padding: 40px 28px 70px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px; font-weight: 700; color: var(--brand); margin: 0 0 10px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1; letter-spacing: -.035em; margin: 0 0 18px; }
.hl { color: var(--brand); background: linear-gradient(transparent 62%, #bfe9e1 62%); padding: 0 4px; }
.lead { font-size: 19px; line-height: 1.55; color: #3c4a52; max-width: 600px; margin: 0 0 26px; }
.hero-phone { position: relative; justify-self: center; }
.phone { width: 300px; border-radius: 40px; background: var(--sand); border: 10px solid #17232a; box-shadow: 0 30px 60px rgba(23, 35, 42, .25); overflow: hidden; padding-bottom: 14px; transform: rotate(2deg); }
.ph-hero { background: var(--brand); color: #fff; padding: 22px 18px 18px; border-radius: 0 0 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.ph-hero small { font-size: 9.5px; letter-spacing: .08em; opacity: .85; }
.ph-hero b { font-size: 21px; }
.ph-hero span { font-size: 12px; background: rgba(255, 255, 255, .18); border-radius: 9px; padding: 4px 8px; align-self: flex-start; }
.ph-item { display: flex; justify-content: space-between; gap: 10px; background: #fff; margin: 10px 12px 0; border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.ph-item span { display: flex; flex-direction: column; font-size: 12.5px; }
.ph-item small { color: var(--muted); font-size: 11px; }
.ph-item em { font-style: normal; font-weight: 700; margin-top: 3px; }
.ph-item i { font-style: normal; font-size: 30px; width: 54px; height: 54px; display: grid; place-items: center; background: var(--brand-soft); border-radius: 11px; }
.ph-bar { margin: 14px 12px 0; background: var(--ink); color: #fff; border-radius: 13px; padding: 11px 13px; display: flex; gap: 9px; align-items: center; font-size: 13px; font-weight: 650; }
.ph-bar span { background: var(--brand); border-radius: 7px; padding: 1px 8px; }
.ph-bar b { margin-left: auto; }
.ph-toast { position: absolute; left: -60px; bottom: 120px; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: 0 14px 30px rgba(23, 35, 42, .18); font-weight: 650; font-size: 14px; transform: rotate(-2deg); }
.how, .features, .pricing, .demo-strip { max-width: 1180px; margin: 0 auto; padding: 50px 28px; }
.how > h2, .pricing > h2, .demo-strip > h2 { font-size: 32px; text-align: center; margin-bottom: 30px; letter-spacing: -.02em; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps3 article { background: #fff; border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.steps3 .n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; }
.steps3 h3 { font-size: 19px; margin: 14px 0 6px; }
.steps3 p, .features p { color: #4b5860; margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px; border-top: 1px solid var(--line); }
.features h3 { font-size: 17px; margin: 0 0 6px; }
.cur-switch { display: flex; justify-content: center; gap: 4px; background: #fff; border-radius: 99px; padding: 4px; width: max-content; margin: 0 auto 26px; box-shadow: var(--shadow); }
.cur-switch a { text-decoration: none; color: var(--ink); padding: 7px 16px; border-radius: 99px; font-weight: 650; }
.cur-switch a.on { background: var(--ink); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.current { border: 2px solid var(--brand); }
.plan h3, .plan h2 { font-size: 20px; margin: 0; }
.plan-price { font-size: 32px; font-weight: 800; margin: 10px 0; letter-spacing: -.02em; }
.plan-price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { padding-left: 18px; color: #4b5860; flex: 1; }
.plan .btn { width: 100%; }
.badge { position: absolute; top: -12px; right: 18px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.demo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.demo-card { background: #fff; border-radius: 16px; padding: 18px 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.demo-card span { color: var(--muted); }
.narrow { max-width: 900px; margin: 0 auto; padding: 30px 24px 60px; }
.narrow > h1 { font-size: 38px; }
.demo-hotel h2 small { font-weight: 500; font-size: 14px; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.demo-spot { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.demo-spot:hover { border-color: var(--brand); }
.demo-spot span { display: flex; flex-direction: column; }
.demo-spot small { color: var(--muted); }
.prose h2 { margin-top: 26px; }
.prose p { color: #3c4a52; }
.auth { max-width: 420px; margin: 40px auto 80px; }
.auth.wide { max-width: 760px; }
.s-foot { max-width: 1180px; margin: 0 auto; padding: 30px 28px 40px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.s-foot a { color: inherit; }

/* ---------- portal ---------- */
.p-top { display: flex; align-items: center; gap: 22px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.p-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.p-nav a { text-decoration: none; color: #3c4a52; font-weight: 600; padding: 7px 12px; border-radius: 9px; display: inline-flex; gap: 6px; align-items: center; }
.p-nav a.on { background: var(--brand-soft); color: var(--brand); }
.p-nav a:hover:not(.on) { background: #f4f0e9; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }
.p-hotel { margin-left: auto; font-weight: 650; color: var(--muted); font-size: 14px; }
.p-out button { background: none; border: 1.5px solid var(--line); border-radius: 9px; padding: 6px 11px; cursor: pointer; font-size: 13.5px; color: var(--muted); }
.p-banner { background: #fff7e3; color: #7a5200; padding: 10px 24px; font-weight: 550; border-bottom: 1px solid #f2e2b8; }
.p-banner.bad { background: #fdecea; color: var(--bad); border-color: #f6cdc8; }
.p-main { max-width: 1240px; margin: 0 auto; padding: 24px; }
.board-page .p-main { max-width: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; }
.back { text-decoration: none; font-size: 14px; font-weight: 600; display: inline-block; margin-bottom: 6px; }
.card { background: var(--card); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card.flush { padding: 0; overflow-x: auto; }
.card .pad { padding: 16px 20px 0; }
.card h2 small { font-weight: 500; }
.more { float: right; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2 > .card { margin-bottom: 0; }
.grid2 + .grid2, .grid2 { margin-bottom: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.kpi span { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi b { font-size: 25px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); }
.bars { width: 100%; height: auto; display: block; }
.bars .bl { font-size: 11px; fill: #7a868d; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 650; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid #f1ece4; vertical-align: middle; }
.card:not(.flush) .tbl td:first-child, .card:not(.flush) .tbl th:first-child { padding-left: 0; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { border: 0; padding-top: 4px; padding-bottom: 4px; }
.tbl tfoot .tot td { font-weight: 800; font-size: 16px; border-top: 1px dashed var(--line); padding-top: 10px; }
.tbl tr.out td { opacity: .5; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #eee; color: #444; text-transform: capitalize; white-space: nowrap; }
.s-paid { background: #dbeafe; color: #1d4ed8; }
.s-preparing { background: #fef3c7; color: #92400e; }
.s-ready { background: #ede9fe; color: #6d28d9; }
.s-on_the_way { background: #cffafe; color: #0e7490; }
.s-served, .s-active { background: #dcfce7; color: #166534; }
.s-cancelled, .s-suspended { background: #fee2e2; color: #991b1b; }
.s-trial { background: #fef3c7; color: #92400e; }
.st { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; padding: 1px 6px; border-radius: 5px; text-transform: uppercase; }
.st-bar { background: #ede9fe; color: #6d28d9; }
.st-kitchen { background: #ffedd5; color: #9a3412; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.stars.sm { font-size: 12px; }
.review { margin: 0 0 12px; padding: 10px 14px; background: var(--sand); border-radius: 12px; }
.note { background: #fff7e3; padding: 10px 12px; border-radius: 10px; }
.timeline { padding-left: 18px; margin: 0 0 16px; }
.timeline li { margin-bottom: 6px; }
.timeline li.bad { color: var(--bad); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters input[type=search] { flex: 1 1 220px; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 6px 4px; }
.outlets { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-bottom: 18px; }
.outlets .card { margin: 0; }
.outlet header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.outlet header h2 { margin: 0; }
.outlet p { margin: 6px 0; }
.outlet .row { margin-top: 12px; }
.menu-cat .cat-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.cat-name { font-weight: 750; font-size: 16px; }
.inline .sort { width: 70px; }
.menu-tbl .pic { width: 56px; }
.menu-tbl .pic img, .menu-tbl .pic span { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: var(--brand-soft); font-size: 24px; }
.thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.opt-group { border: 1px dashed var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.choices { display: flex; flex-direction: column; gap: 6px; padding-left: 14px; }
.price-in { width: 110px; }
.spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.spot { display: grid; grid-template-columns: 120px 1fr; gap: 14px; margin: 0; }
.spot.off { opacity: .6; }
.spot .qr { width: 120px; height: 120px; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.spot-acts { grid-column: 1 / -1; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 13.5px; }
.p-dlg { border: 0; border-radius: 18px; padding: 22px; max-width: 440px; width: calc(100% - 32px); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.p-dlg::backdrop { background: rgba(15, 23, 25, .45); }
.p-dlg h3 { margin: 0 0 6px; }
.p-dlg .row-end { margin-top: 16px; }

/* ---------- live board ---------- */
.b-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.b-head p { margin: 4px 0 0; max-width: 620px; }
.b-clock { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; font-size: 20px; margin-left: 8px; }
.b-filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.b-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.b-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.b-stats div { background: #fff; border-radius: 11px; padding: 8px 14px; box-shadow: var(--shadow); color: var(--muted); font-size: 14px; }
.b-stats b { color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
.b-calls { background: #fff7e3; border: 1.5px solid #f3d58b; border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; animation: glow 1.8s ease-in-out infinite; }
.b-calls h2 { margin: 0 8px 0 0; font-size: 15px; width: 100%; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); } }
.b-call { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 11px; padding: 8px 10px 8px 14px; box-shadow: var(--shadow); }
.b-call b { font-size: 15px; }
.b-call small { color: var(--muted); }
.b-cols { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.b-col { background: #ece6dc; border-radius: 16px; padding: 10px; min-height: 220px; }
.b-col h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: #4b5860; margin: 4px 6px 10px; display: flex; justify-content: space-between; }
.b-col h2 .n { background: var(--ink); color: #fff; border-radius: 99px; min-width: 22px; text-align: center; padding: 0 7px; font-size: 12px; line-height: 20px; }
.b-col h2 .n:empty { display: none; }
.b-col[data-col="paid"] { background: #dbeafe; }
.b-col[data-col="ready"] { background: #ede9fe; }
.b-list { display: flex; flex-direction: column; gap: 10px; }
.b-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 20px 6px; margin: 0; }
.b-card { background: #fff; border-radius: 13px; padding: 12px 13px; box-shadow: var(--shadow); border-left: 5px solid #cbd5e1; }
.b-card.late1 { border-left-color: #f59e0b; }
.b-card.late2 { border-left-color: #ef4444; background: #fffafa; }
.b-card.mine { outline: 2px solid var(--brand-2); }
.b-card.fresh { animation: pop .6s ease 2; }
@keyframes pop { 50% { transform: scale(1.03); box-shadow: 0 0 0 6px rgba(37, 99, 235, .2); } }
.b-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.b-spot { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.b-age { font-weight: 700; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.late1 .b-age { color: var(--warn); }
.late2 .b-age { color: var(--bad); }
.b-meta { margin: 2px 0 8px; font-size: 13px; color: var(--muted); }
.b-meta b { color: var(--ink); }
.b-lines { list-style: none; padding: 0; margin: 0; }
.b-lines li { display: flex; gap: 8px; padding: 4px 0; border-top: 1px dashed #eee6da; align-items: flex-start; }
.b-lines li.dim { opacity: .35; }
.b-lines .q { font-weight: 800; min-width: 26px; }
.b-lines li > span:nth-child(2) { flex: 1; font-weight: 600; }
.b-lines small { display: block; font-weight: 400; color: var(--muted); }
.b-lines small.nt { color: #92400e; }
.b-note { background: #fff7e3; border-radius: 8px; padding: 6px 9px; font-size: 13.5px; margin: 8px 0 0; }
.b-card footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.b-waiter { font-weight: 700; color: #0e7490; }
.b-acts { display: flex; gap: 6px; margin-top: 10px; }
.b-acts .btn { flex: 1; padding: 9px 8px; }
.b-acts .btn.icon { flex: none; }
.b-done { margin-top: 18px; }
.b-done h2 { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.b-done-list { display: flex; gap: 8px; flex-wrap: wrap; }
.b-chip { background: #fff; border-radius: 99px; padding: 5px 12px; font-size: 13px; box-shadow: var(--shadow); }

@media (max-width: 1100px) { .b-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero-phone { display: none; }
  .steps3, .features, .plans, .demo-cards, .grid2 { grid-template-columns: 1fr; }
  .p-hotel { margin-left: 0; }
}
@media (max-width: 600px) {
  .b-cols { grid-template-columns: 1fr; }
  .p-main { padding: 16px 12px; }
  .s-nav nav a:not(.btn) { display: none; }
  .spot { grid-template-columns: 1fr; }
}
