/* GASTRO — design system (preto, grafite, branco e laranja) */
:root {
  --bg: #09090b; --bg-2: #0f0f12; --panel: #141418; --panel-2: #1b1b20; --panel-3: #232329;
  --line: #2a2a31; --line-2: #34343c; --text: #f4f4f5; --muted: #a1a1aa; --faint: #71717a;
  --accent: #ff6b1a; --accent-2: #ff8a3d; --accent-soft: rgba(255, 107, 26, .12); --accent-line: rgba(255, 107, 26, .35);
  --red: #ef4444; --red-soft: rgba(239, 68, 68, .12); --green: #22c55e; --green-soft: rgba(34, 197, 94, .12);
  --yellow: #eab308; --yellow-soft: rgba(234, 179, 8, .13); --blue: #60a5fa; --blue-soft: rgba(96, 165, 250, .12);
  --radius: 14px; --radius-sm: 10px; --shadow: 0 10px 30px rgba(0,0,0,.35); --side: 248px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.num, .money, td.num { font-variant-numeric: tabular-nums; }
::selection { background: var(--accent); color: #000; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--bg); }
.svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 12px; gap: 6px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 700; letter-spacing: -.02em; font-size: 17px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #ff3d00); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(255,107,26,.35); }
.brand-mark .svg { stroke: #fff; width: 20px; height: 20px; }
.brand small { display: block; font-weight: 500; color: var(--faint); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 14px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); transition: background .18s, color .18s; position: relative; }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--text); }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); }
.nav a.active .svg { stroke: var(--accent); }
.nav .badge { margin-left: auto; }
.side-foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--panel-3); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.side-foot .who { min-width: 0; flex: 1; } .side-foot .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .side-foot .who span { font-size: 12px; color: var(--faint); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: rgba(9,9,11,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 20px; margin: 0; letter-spacing: -.02em; font-weight: 650; }
.topbar .sub { color: var(--faint); font-size: 13px; }
.topbar .spacer { flex: 1; }
.btn.menu-btn { display: none; }
.content { padding: 24px 28px 60px; animation: fadeUp .28s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.45); } 50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } }

/* ---------- Componentes ---------- */
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.card.flat { background: var(--bg-2); }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-h h3 { margin: 0; font-size: 15px; font-weight: 600; } .card-h .spacer { flex: 1; } .card-h p { margin: 0; color: var(--faint); font-size: 12px; }
.kpi { position: relative; overflow: hidden; transition: transform .2s, border-color .2s; }
.kpi:hover { transform: translateY(-2px); border-color: var(--line-2); }
.kpi .label { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.kpi .label .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-3); }
.kpi .label .ic .svg { width: 15px; height: 15px; }
.kpi .value { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.kpi .foot { color: var(--faint); font-size: 12px; margin-top: 4px; }
.kpi.accent .ic { background: var(--accent-soft); color: var(--accent); } .kpi.green .ic { background: var(--green-soft); color: var(--green); }
.kpi.red .ic { background: var(--red-soft); color: var(--red); } .kpi.yellow .ic { background: var(--yellow-soft); color: var(--yellow); } .kpi.blue .ic { background: var(--blue-soft); color: var(--blue); }
.kpi.hero { background: linear-gradient(140deg, #1d130d, var(--panel) 60%); border-color: var(--accent-line); }
.delta { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 20px; } .delta.up { color: var(--green); background: var(--green-soft); } .delta.down { color: var(--red); background: var(--red-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2);
  cursor: pointer; font-weight: 550; font-size: 13.5px; transition: background .15s, border-color .15s, transform .08s, opacity .15s; white-space: nowrap; user-select: none; }
.btn:hover { background: var(--panel-3); } .btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #140700; } .btn.primary:hover { background: var(--accent-2); }
.btn.danger { background: var(--red-soft); border-color: rgba(239,68,68,.35); color: #fca5a5; } .btn.danger:hover { background: rgba(239,68,68,.2); }
.btn.success { background: var(--green-soft); border-color: rgba(34,197,94,.35); color: #86efac; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); } .btn.ghost:hover { background: var(--panel-2); color: var(--text); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; } .btn.lg { height: 46px; padding: 0 20px; font-size: 15px; }
.btn.icon { width: 38px; padding: 0; } .btn.sm.icon { width: 30px; }
.btn.block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--panel-3); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.green { background: var(--green-soft); color: #4ade80; } .badge.red { background: var(--red-soft); color: #f87171; } .badge.yellow { background: var(--yellow-soft); color: #facc15; }
.badge.orange { background: var(--accent-soft); color: var(--accent-2); } .badge.blue { background: var(--blue-soft); color: var(--blue); } .badge.gray { background: var(--panel-3); color: var(--muted); }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #140700; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 550; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; position: sticky; top: 0; }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: none; }
table.t tbody tr { transition: background .12s; } table.t tbody tr:hover { background: var(--panel-2); }
table.t tr.click { cursor: pointer; }
table.t td.r, table.t th.r { text-align: right; } table.t tfoot td { font-weight: 700; background: var(--bg-2); border-top: 1px solid var(--line-2); }
.cell-title { font-weight: 600; } .cell-sub { color: var(--faint); font-size: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.field .hint { font-size: 12px; color: var(--faint); }
.input, select.input, textarea.input { width: 100%; height: 40px; padding: 0 12px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--faint); }
.form { display: grid; gap: 14px; } .form.cols-2 { grid-template-columns: 1fr 1fr; } .form.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; padding: 6px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.search { position: relative; } .search .svg { position: absolute; left: 12px; top: 11px; color: var(--faint); } .search .input { padding-left: 38px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.tabs button { height: 32px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 550; font-size: 13px; }
.tabs button.on { background: var(--panel-3); color: var(--text); }
.empty { text-align: center; padding: 40px 20px; color: var(--faint); } .empty .svg { width: 34px; height: 34px; margin-bottom: 8px; stroke-width: 1.4; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; } .right { text-align: right; } .bold { font-weight: 650; }
.text-green { color: #4ade80; } .text-red { color: #f87171; } .text-accent { color: var(--accent-2); } .text-yellow { color: #facc15; }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .col { display: flex; flex-direction: column; gap: 10px; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mt-s { margin-top: 8px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.list { display: flex; flex-direction: column; } .list-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); } .list-item:last-child { border-bottom: 0; }

/* ---------- Modal, toast, banners ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 100; padding: 20px; animation: fadeUp .15s ease; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); animation: pop .18s ease; }
.modal.wide { width: min(860px, 100%); } .modal.xwide { width: min(1100px, 100%); }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.modal-h h2 { margin: 0; font-size: 17px; flex: 1; letter-spacing: -.01em; }
.modal-b { padding: 20px; } .modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--panel); }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { display: flex; gap: 10px; align-items: flex-start; min-width: 260px; max-width: 380px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pop .2s ease; }
.toast.ok { border-color: rgba(34,197,94,.4); } .toast.err { border-color: rgba(239,68,68,.45); } .toast.info { border-color: var(--accent-line); }
.toast.ok .svg { color: var(--green); } .toast.err .svg { color: var(--red); } .toast.info .svg { color: var(--accent); }
.net-banner { position: fixed; left: 50%; transform: translateX(-50%); top: 12px; z-index: 150; padding: 8px 16px; border-radius: 30px; background: #3a1414; border: 1px solid rgba(239,68,68,.5); color: #fecaca; font-weight: 600; font-size: 13px; display: none; align-items: center; gap: 8px; box-shadow: var(--shadow); }
.net-banner.show { display: flex; } .net-banner.sync { background: #2a1d0c; border-color: var(--accent-line); color: #fed7aa; }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 10% 10%, rgba(255,107,26,.25), transparent 60%), radial-gradient(800px 500px at 90% 90%, rgba(239,68,68,.18), transparent 60%), #0c0c0e; border-right: 1px solid var(--line); padding: 48px; display: flex; flex-direction: column; }
.auth-art h2 { font-size: 40px; line-height: 1.05; letter-spacing: -.045em; margin: 12px 0 10px; max-width: 560px; }
.auth-art h2 em { font-style: normal; background: linear-gradient(90deg, #ff8a3d, #ff4d1a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-art { gap: 20px; padding: 36px 48px; overflow-y: auto; max-height: 100vh; position: sticky; top: 0; }
.auth-art::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 75%); }
.auth-art > * { position: relative; flex-shrink: 0; }
.la-hero { margin-top: auto; } .la-hero h2 { margin-top: 0; }
.la-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 30px; font-size: 14px; font-weight: 800; letter-spacing: .08em; color: #fff; background: linear-gradient(90deg, #ff6b1a, #ff3d1a); box-shadow: 0 6px 24px rgba(255,107,26,.45); animation: laPulse 2.6s ease-in-out infinite, laWiggle 3.2s ease-in-out infinite; text-decoration: none; transform-origin: center; cursor: pointer; }
.la-cta:hover { animation-play-state: paused; filter: brightness(1.1); }
@keyframes laWiggle { 0%, 62%, 100% { transform: translateY(0) rotate(0) scale(1); } 66% { transform: translateY(-3px) rotate(-4deg) scale(1.06); } 70% { transform: translateY(-3px) rotate(4deg) scale(1.06); } 74% { transform: translateY(-2px) rotate(-3deg) scale(1.05); } 78% { transform: translateY(-1px) rotate(2deg) scale(1.03); } 84% { transform: translateY(0) rotate(0) scale(1); } }
.la-cta svg { width: 16px; height: 16px; } .la-arrow { display: inline-flex; margin-left: 2px; animation: knowArrow 1.2s ease-in-out infinite; }
@keyframes laPulse { 50% { box-shadow: 0 6px 34px rgba(255,107,26,.75); } }
.auth-art p.la-lead { color: var(--text); font-size: 17px; margin: 0 0 6px; max-width: 520px; }
.auth-art p.la-desc { margin: 0; font-size: 14.5px; }
.la-price { margin-top: 16px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 16px 20px; border-radius: 16px; max-width: 560px; border: 1px solid rgba(255,107,26,.45); background: linear-gradient(135deg, rgba(255,107,26,.16), rgba(255,107,26,.03)); }
.la-price small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #ff9a5a; }
.la-price b { font-size: 34px; letter-spacing: -.03em; line-height: 1.1; }
.la-price b span { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.la-price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.la-price li { display: flex; align-items: center; gap: 6px; } .la-price li svg { width: 14px; height: 14px; color: #ff8a3d; }
.la-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 640px; }
.la-feat { display: flex; gap: 11px; padding: 10px 12px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.025); transition: border-color .2s, transform .2s; }
.la-feat:hover { border-color: rgba(255,107,26,.5); transform: translateY(-2px); }
.la-feat .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,107,26,.14); color: #ff8a3d; } .la-feat .ic svg { width: 18px; height: 18px; }
.la-feat b { display: block; font-size: 13.5px; } .la-feat small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 2px; }
.la-segs > small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.la-win { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.la-track { display: flex; gap: 10px; width: max-content; animation: laMarquee 40s linear infinite; } .la-segs:hover .la-track { animation-play-state: paused; }
@keyframes laMarquee { to { transform: translateX(calc(-50% - 5px)); } }
.la-seg { position: relative; width: 140px; height: 84px; border-radius: 13px; overflow: hidden; display: flex; align-items: flex-end; padding: 10px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.78)), var(--img) center/cover no-repeat, linear-gradient(135deg, #2a1a10, #120d0b 70%); }
.la-seg .em { position: absolute; top: 10px; right: 12px; font-size: 28px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.la-seg b { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .la-track, .la-cta { animation: none; } }
.auth-art p { color: var(--muted); max-width: 520px; font-size: 15px; }
.auth-art .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.auth-art .pills span { padding: 7px 12px; border-radius: 30px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--muted); font-size: 13px; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(400px, 100%); animation: pop .3s ease; }
.auth-card h1 { font-size: 26px; letter-spacing: -.03em; margin: 22px 0 6px; } .auth-card p.lead { color: var(--muted); margin: 0 0 26px; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.alert.err { background: var(--red-soft); border: 1px solid rgba(239,68,68,.35); color: #fecaca; }
.alert.warn { background: var(--yellow-soft); border: 1px solid rgba(234,179,8,.35); color: #fef08a; }
.alert.info { background: var(--accent-soft); border: 1px solid var(--accent-line); color: #fed7aa; }
.alert.ok { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.35); color: #bbf7d0; } .alert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.suspended { text-align: center; }
.suspended .big-ic { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.suspended .big-ic .svg { width: 30px; height: 30px; }
.contact { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; } .contact a { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); }

/* ---------- Mesas ---------- */
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.tcard { position: relative; border-radius: 16px; padding: 16px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s; min-height: 148px; display: flex; flex-direction: column; text-align: left; }
.tcard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.tcard .tn { font-size: 30px; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.tcard .tl { color: var(--faint); font-size: 12px; margin-top: 2px; min-height: 18px; }
.tcard .tfoot { margin-top: auto; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); }
.tcard .tval { font-size: 17px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.tcard .tstat { position: absolute; top: 14px; right: 14px; }
.tcard.livre { background: var(--bg-2); border-style: dashed; } .tcard.livre .tn { color: var(--faint); }
.tcard.ocupada { border-color: var(--accent-line); background: linear-gradient(160deg, rgba(255,107,26,.10), var(--panel) 55%); }
.tcard.aguardando { border-color: rgba(234,179,8,.45); background: linear-gradient(160deg, rgba(234,179,8,.10), var(--panel) 55%); }
.tcard.ready { animation: pulse 1.6s infinite; }
.tcard .pending-dot { align-self: flex-start; margin-top: 6px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Atendimento */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.svc > * { min-width: 0; }
.jump { display: none; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pcard { border-radius: 14px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s; display: flex; flex-direction: column; text-align: left; padding: 0; }
.pcard:hover { transform: translateY(-2px); border-color: var(--accent-line); }
.pcard .ph { aspect-ratio: 16/10; background: var(--panel-2) center/cover no-repeat; display: grid; place-items: center; color: var(--faint); }
.pcard .ph .svg { width: 28px; height: 28px; stroke-width: 1.3; }
.pcard .pb { padding: 10px 12px 12px; } .pcard .pn { font-weight: 600; font-size: 13.5px; line-height: 1.3; } .pcard .pp { color: var(--accent-2); font-weight: 700; margin-top: 4px; font-size: 13.5px; }
.pcard .pp s { color: var(--faint); font-weight: 500; margin-right: 6px; font-size: 12px; }
.pcard.off { opacity: .45; pointer-events: none; }
.order { position: sticky; top: 84px; display: flex; flex-direction: column; max-height: calc(100vh - 108px); }
.order .scroll { overflow: auto; flex: 1; margin: 0 -18px; padding: 0 18px; }
.cmd { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.cmd-h { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--bg-2); cursor: pointer; }
.cmd-h b { flex: 1; } .cmd.sel { border-color: var(--accent); } .cmd.sel .cmd-h { background: var(--accent-soft); } .cmd.closed { opacity: .55; }
.oi { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); align-items: start; font-size: 13px; }
.oi .q { font-weight: 700; color: var(--accent-2); } .oi .n { font-weight: 550; } .oi .ad { color: var(--faint); font-size: 12px; } .oi .ob { color: #fde68a; font-size: 12px; }
.oi .v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.oi.pend { background: rgba(255,107,26,.05); } .oi.canc { opacity: .5; } .oi.canc .n { text-decoration: line-through; } .oi.paid .v { color: var(--green); }
.oi .acts { display: flex; gap: 4px; justify-content: flex-end; margin-top: 4px; }
.totals { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; display: grid; gap: 4px; font-size: 13.5px; }
.totals .row { justify-content: space-between; } .totals .grand { font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.qty button { width: 40px; height: 40px; border: 0; background: var(--panel-2); cursor: pointer; font-size: 18px; } .qty span { width: 46px; text-align: center; font-weight: 700; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; font-size: 13px; transition: all .12s; }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.pay-line { display: grid; grid-template-columns: 1fr 140px 34px; gap: 8px; margin-bottom: 8px; }

/* ---------- Cozinha ---------- */
.kds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kcol h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0 0 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.kcol .klist { display: flex; flex-direction: column; gap: 12px; }
.ticket { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ticket.new { animation: pop .25s ease; }
.ticket-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ticket-h .tno { font-size: 20px; font-weight: 800; letter-spacing: -.03em; } .ticket-h .tmeta { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); line-height: 1.3; } .ticket-h .tmeta b { color: var(--text); display: block; font-size: 14px; }
.timer { font-weight: 750; font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 8px; background: var(--panel-3); font-size: 14px; }
.timer.warn { background: var(--yellow-soft); color: #facc15; } .timer.late { background: var(--red-soft); color: #f87171; animation: pulse 1.4s infinite; }
.ticket-b { padding: 10px 14px; } .ti { padding: 7px 0; border-bottom: 1px dashed var(--line); } .ti:last-child { border-bottom: 0; }
.ti .tq { font-weight: 800; color: var(--accent-2); margin-right: 8px; font-size: 16px; } .ti .tname { font-weight: 650; font-size: 15px; }
.ti .tadd { color: var(--muted); font-size: 13px; margin-left: 30px; } .ti .tobs { margin: 4px 0 0 30px; padding: 4px 8px; border-radius: 6px; background: var(--yellow-soft); color: #fde68a; font-weight: 600; font-size: 13px; display: inline-block; }
.ti .tcmd { color: var(--faint); font-size: 12px; margin-left: 30px; }
.ticket-f { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.ticket.cancel { border-color: rgba(239,68,68,.55); } .ticket.cancel .ticket-h { background: var(--red-soft); }
.ticket.late { border-color: rgba(239,68,68,.55); }

/* ---------- Gráficos ---------- */
.chart { width: 100%; height: 240px; display: block; }
.chart .bar { fill: var(--accent); opacity: .9; transition: opacity .15s; } .chart .bar:hover { opacity: 1; } .chart .bar.prev { fill: var(--line-2); }
.chart .grid-l { stroke: var(--line); stroke-dasharray: 3 4; } .chart text { fill: var(--faint); font-size: 10.5px; font-family: var(--font); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.4; } .chart .line.prev { stroke: var(--faint); stroke-dasharray: 5 5; stroke-width: 1.6; } .chart .area { fill: url(#gArea); }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; margin-bottom: 10px; font-size: 13px; }
.hbar .track { grid-column: 1 / -1; height: 7px; padding: 0; border-radius: 7px; background: var(--panel-3); overflow: hidden; } .hbar .fill { height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .6s ease; }
.tip { position: fixed; pointer-events: none; z-index: 300; background: #000; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 9px; font-size: 12px; display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) { .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .svc { grid-template-columns: minmax(0,1fr) 340px; } }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .shell.nav-open .side { transform: none; }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 25; }
  .btn.menu-btn { display: inline-flex; }
  .g-3 { grid-template-columns: 1fr 1fr; } .span-3 { grid-column: span 2; }
  .svc { grid-template-columns: 1fr; } .order { position: static; max-height: none; }
  .kds { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; } .auth-art { order: 2; position: static; max-height: none; padding: 28px 20px; border-right: 0; border-top: 1px solid var(--line); } .auth-art h2 { font-size: 32px; } .la-feats { grid-template-columns: 1fr; } .auth-art > .brand { display: none; }
}
@media (max-width: 640px) {
  .content { padding: 16px 14px 80px; } .topbar { padding: 12px 14px; } .topbar h1 { font-size: 17px; } .topbar .sub { display: none; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } .span-2, .span-3 { grid-column: auto; }
  .form.cols-2, .form.cols-3 { grid-template-columns: 1fr; }
  .tables { grid-template-columns: repeat(2, 1fr); gap: 10px; } .tcard { min-height: 130px; padding: 13px; }
  .tcard .tstat { position: static; order: -1; margin-bottom: 8px; } .tcard .tstat:empty { display: none; } .tcard .tstat .badge { font-size: 11px; }
  .kpi .value { font-size: 22px; } .modal { border-radius: 16px; } .overlay { padding: 10px; align-items: end; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); } .pcard .ph { aspect-ratio: 16/8; }
  .jump { display: flex; position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 40; box-shadow: var(--shadow); }
  .hide-sm { display: none !important; }
}
@media print { body * { visibility: hidden; } }

/* Planos de assinatura na tela de login */
.la-plans { max-width: 640px; }
.la-plans h3 { font-size: 19px; letter-spacing: -.02em; margin: 0 0 12px; line-height: 1.3; }
.la-plans h3 em { font-style: normal; color: #ff8a3d; }
.la-pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.la-plan { position: relative; padding: 18px 18px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); display: flex; flex-direction: column; }
.la-plan small { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.la-plan .la-val { display: flex; align-items: baseline; gap: 4px; margin: 6px 0 6px; flex-wrap: wrap; }
.la-plan .la-val span { font-size: 16px; font-weight: 700; color: var(--muted); }
.la-plan .la-val b { font-size: 38px; letter-spacing: -.04em; line-height: 1; }
.la-plan .la-val i, .la-plan .la-val em { font-style: normal; font-size: 14px; color: var(--muted); }
.la-plan .la-val em { width: 100%; font-weight: 600; color: #ffb27a; margin-bottom: -2px; }
.la-plan p { margin: 0; font-size: 13px; color: var(--muted); }
.la-plan.best { border-color: rgba(255,107,26,.7); background: linear-gradient(160deg, rgba(255,107,26,.22), rgba(255,107,26,.04) 70%); box-shadow: 0 10px 40px -12px rgba(255,107,26,.55); }
.la-plan.best small { color: #ff9a5a; }
.la-badge { position: absolute; top: -11px; right: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: #fff; background: linear-gradient(90deg, #ff6b1a, #ff3d1a); box-shadow: 0 4px 16px rgba(255,107,26,.5); }
.la-badge svg { width: 12px; height: 12px; }
.la-save { margin-top: 10px; display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; font-weight: 600; color: #ffc49a; } .la-save svg { flex: none; width: 14px; height: 14px; margin-top: 2px; color: #ff8a3d; }
.la-inc { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.la-inc li { display: flex; align-items: center; gap: 6px; } .la-inc svg { width: 14px; height: 14px; color: #ff8a3d; }
@media (max-width: 520px) { .la-pgrid { grid-template-columns: 1fr; gap: 18px; } }

.la-btn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 11px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-decoration: none; color: var(--text); border: 1px solid var(--line-2); background: rgba(255,255,255,.05); transition: transform .15s, box-shadow .2s, background .2s; }
.la-plan .la-btn { margin-top: 14px; } .la-plan p + .la-btn { margin-top: auto; padding-top: 11px; } .la-plan > p { margin-bottom: 14px; }
.la-btn svg { width: 17px; height: 17px; } .la-btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.09); }
.la-btn.primary { color: #fff; border-color: transparent; background: linear-gradient(90deg, #ff6b1a, #ff3d1a); box-shadow: 0 8px 26px -8px rgba(255,107,26,.8); } .la-btn.primary:hover { box-shadow: 0 10px 30px -6px rgba(255,107,26,.95); background: linear-gradient(90deg, #ff7a2e, #ff4d2a); }
.la-help { max-width: 640px; display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(120deg, rgba(37,211,102,.08), rgba(255,255,255,.02) 60%); }
.la-help h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.01em; } .la-help p { margin: 0; font-size: 13px; }
.la-help .la-btn { margin: 0; flex: none; }
.la-btn.wa { color: #fff; border-color: transparent; background: #1fa855; box-shadow: 0 8px 24px -10px rgba(37,211,102,.8); } .la-btn.wa:hover { background: #22b85e; }
@media (max-width: 620px) { .la-help { flex-direction: column; align-items: stretch; } }

/* Celular: tela fixa, sem zoom ao tocar em campos e sem arrastar para os lados */
html, body { overflow-x: hidden; max-width: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { touch-action: manipulation; overscroll-behavior-x: none; }
@media (max-width: 900px) { input, select, textarea, .input { font-size: 16px !important; } }

.menu-back { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 90; padding: 9px 16px; border-radius: 30px; border: 1px solid rgba(255,255,255,.15); background: rgba(20,20,22,.88); color: #fff; font: 600 13px/1 inherit; backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0,0,0,.4); cursor: pointer; }

/* Chamada "Conheça o GASTRO" dentro do cartão de login */
.know { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 16px 16px; border-radius: 16px; text-decoration: none; color: var(--text);
  border: 1.5px solid rgba(255,107,26,.65); background: linear-gradient(120deg, rgba(255,107,26,.2), rgba(255,61,26,.06)); box-shadow: 0 10px 30px -14px rgba(255,107,26,.8);
  animation: knowGlow 2.4s ease-in-out infinite; overflow: hidden; transition: transform .15s; }
.know::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent); transform: skewX(-20deg); animation: knowShine 3.2s ease-in-out infinite; }
.know:hover { transform: translateY(-2px); }
.know-ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff6b1a, #ff3d1a); box-shadow: 0 6px 18px rgba(255,107,26,.55); animation: laWiggle 3.2s ease-in-out infinite; }
.know-ic svg { width: 24px; height: 24px; }
.know-t { flex: 1; display: grid; gap: 1px; min-width: 0; } .know-t small { font-size: 12px; color: #ffb27a; font-weight: 600; } .know-t b { font-size: 17px; letter-spacing: -.01em; } .know-t i { font-style: normal; font-size: 12.5px; color: var(--muted); }
.know-go { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #ff6b1a; color: #fff; } .know-go svg { width: 18px; height: 18px; animation: knowArrow 1.2s ease-in-out infinite; }
@keyframes knowGlow { 50% { box-shadow: 0 10px 36px -8px rgba(255,107,26,1); border-color: rgba(255,140,60,.95); } }
@keyframes knowShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes knowArrow { 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .know, .know::after, .know-ic, .know-go svg, .la-arrow { animation: none; } }

.trial-bar { display: flex; align-items: center; gap: 12px; margin: 14px 28px 0; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(59,130,246,.4); background: rgba(59,130,246,.1); font-size: 13.5px; color: #dbeafe; }
.trial-bar > svg { flex: none; width: 18px; height: 18px; } .trial-bar span { flex: 1; } .trial-bar .btn { flex: none; }
.trial-bar.urgent { border-color: rgba(255,107,26,.6); background: rgba(255,107,26,.12); color: #fed7aa; }
@media (max-width: 760px) { .trial-bar { margin: 10px 12px 0; flex-wrap: wrap; } .trial-bar .btn { width: 100%; } }

.wa-preview { padding: 12px 14px; border-radius: 12px 12px 12px 4px; background: #1f3b2c; color: #e8f5ec; font-size: 14px; line-height: 1.5; border: 1px solid rgba(37,211,102,.3); }

/* Primeiros passos */
.ob { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; }
.ob-side { position: sticky; top: 16px; padding: 18px; }
.ob-prog b { font-size: 13px; } .ob-prog .ob-track { height: 7px; border-radius: 7px; background: var(--panel-3); overflow: hidden; margin-top: 8px; } .ob-prog .ob-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #ff3d00); transition: width .4s; }
.ob-side ol { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 4px; }
.ob-side li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; }
.ob-side li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); font-size: 12px; flex: none; } .ob-side li span svg { width: 14px; height: 14px; }
.ob-side li.ok span { background: rgba(34,197,94,.18); color: #4ade80; } .ob-side li.on { background: var(--accent-soft); color: var(--text); } .ob-side li.on span { background: var(--accent); color: #fff; }
.ob-main { padding: 26px; min-height: 440px; display: flex; flex-direction: column; }
.ob-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; } .ob-h h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; } .ob-h p { margin: 0; color: var(--muted); }
.ob-ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #ff3d00); color: #fff; } .ob-ic svg { width: 23px; height: 23px; }
.ob-nav { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; } .ob-nav .btn.primary { margin-left: auto; }
.ob-logo { width: 64px; height: 64px; border-radius: 16px; background: var(--panel-2) center/cover; display: grid; place-items: center; color: var(--faint); border: 1px solid var(--line); }
.ob-howto { margin: 0 0 14px; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; font-size: 14px; } .ob-howto a { color: #ff9a5a; font-weight: 600; }
.ob-count { display: flex; align-items: center; gap: 10px; } .ob-count .input { width: 90px; text-align: center; font-size: 22px; font-weight: 800; }
.ob-link { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); } .ob-link code { display: block; font-size: 15px; word-break: break-all; margin-top: 4px; }
.ob-done { text-align: center; display: flex; flex-direction: column; flex: 1; } .ob-done h2 { font-size: 26px; margin: 10px 0 4px; } .ob-done h3 { text-align: left; }
.ob-big { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: rgba(34,197,94,.15); color: #4ade80; } .ob-big svg { width: 36px; height: 36px; }
.ob-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 18px; text-align: left; } .ob-sum div { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); color: var(--muted); font-size: 13.5px; } .ob-sum div.ok { color: var(--text); } .ob-sum svg { width: 16px; height: 16px; flex: none; } .ob-sum div.ok svg { color: #4ade80; }
.ob-next { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; text-align: left; } .ob-next a { display: grid; gap: 4px; padding: 14px; text-decoration: none; color: var(--text); transition: border-color .2s; } .ob-next a:hover { border-color: var(--accent-line); } .ob-next svg { width: 20px; height: 20px; color: var(--accent); } .ob-next span { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .ob { grid-template-columns: 1fr; } .ob-side { position: static; } .ob-side ol { grid-template-columns: repeat(3, 1fr); } .ob-side li { padding: 6px; font-size: 12px; flex-direction: column; text-align: center; gap: 4px; } .ob-main { padding: 18px; } .ob-next { grid-template-columns: 1fr; } .pay-line { grid-template-columns: 1fr 1fr !important; } }

.fee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .fee-box { padding: 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); display: grid; gap: 8px; }
@media (max-width: 860px) { .fee-grid { grid-template-columns: 1fr; } }

.pr-step { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; } .pr-step > b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 12px; } .pr-step .check { display: flex; font-size: 13.5px; }
