/* Painel do dono + super admin. Claro, laranja, com acabamento "futurista" discreto. */
:root {
  --o: #FF5A1F; --o2: #FF9F1C; --o-soft: #FFF1EA; --o-ink: #B83A0B;
  --ink: #1B1F2A; --ink2: #3A4052; --mute: #6B7183; --faint: #9AA0B1;
  --line: #E6E8EF; --line2: #EEF0F5; --bg: #FAFBFD; --side: #F3F4F8; --soft: #F5F6FA; --card: #FFFFFF;
  --ok: #2F9E44; --ok-soft: #E9F7EC; --warn: #E8A200; --warn-soft: #FFF7E0; --bad: #E03131; --bad-soft: #FDECEC;
  --r: 18px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(27,31,42,.04), 0 8px 24px rgba(27,31,42,.05);
  --font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Inter Display", "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.ic { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--o); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 292px 1fr; min-height: 100vh; }
.shell.with-preview { grid-template-columns: 292px minmax(0, 1fr) 470px; }
.side { background: var(--side); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.hub-mark { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; padding: 2px 6px; }
.hub-mark svg { width: 26px; height: 26px; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: #E9EBF2; padding: 4px; border-radius: 14px; }
.tabs a { text-align: center; text-decoration: none; font-size: 12px; font-weight: 700; color: var(--mute); padding: 7px 2px; border-radius: 10px; }
.tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(27,31,42,.08); }
.store-card { display: flex; gap: 10px; align-items: center; padding: 6px; }
.avatar { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-weight: 800; color: var(--o); box-shadow: 0 0 0 1px var(--line); overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.store-card b { display: block; font-size: 15px; line-height: 1.2; }
.save-state { font-size: 12.5px; color: var(--mute); display: flex; align-items: center; gap: 6px; }
.save-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.save-state.saving i { background: var(--warn); animation: pulse 1s infinite; }
.save-state.error i { background: var(--bad); }
.save-state.demo i { background: var(--o); }
@keyframes pulse { 50% { opacity: .3; } }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.steps button { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; padding: 10px 12px; border-radius: 12px; text-align: left; font-size: 14.5px; color: var(--ink2); }
.steps button:hover { background: rgba(255,255,255,.6); }
.steps button.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(27,31,42,.06); }
.steps .n { width: 20px; color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; }
.steps .lbl { flex: 1; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.red { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.dot.yellow { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.publish-btn { margin-top: 4px; display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 14px; padding: 13px 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14.5px; }
.publish-btn.on { background: linear-gradient(100deg, var(--o), var(--o2)); }
.publish-btn .count { margin-left: auto; min-width: 24px; height: 24px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 12px; display: grid; place-items: center; padding: 0 7px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mute); }
.side-foot a { text-decoration: none; padding: 6px 8px; border-radius: 8px; }
.side-foot a:hover { background: rgba(255,255,255,.7); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-list a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink2); font-size: 14.5px; }
.nav-list a.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(27,31,42,.06); }

.main { padding: 30px clamp(18px, 3vw, 44px) 80px; min-width: 0; }
.main-inner { max-width: 880px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.page-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
.page-head p { margin: 0; color: var(--mute); }

/* ---------- banners ---------- */
.notice { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; font-size: 14px; background: var(--o-soft); color: var(--o-ink); }
.notice.dark { background: var(--ink); color: #fff; }
.notice.bad { background: var(--bad-soft); color: #9b1c1c; }
.notice.info { background: #EEF2FF; color: #3446A8; }
.notice a, .notice button { font-weight: 700; white-space: nowrap; }
.notice button { border: 0; background: transparent; text-decoration: underline; }

/* ---------- cards & fields ---------- */
.card { background: var(--card); border: 1px solid var(--line2); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head h2, .card h2 { font-size: 17px; margin: 0; font-weight: 800; letter-spacing: -0.01em; }
.card-head p { margin: 2px 0 0; color: var(--mute); font-size: 13.5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 18px; }
.f { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.f > label, .f > .label { font-weight: 700; font-size: 13.5px; }
.f .hint { font-size: 12.5px; color: var(--mute); }
.f .hint b { color: var(--ink2); }
.f .err { font-size: 12.5px; color: var(--bad); }
.in, .f input[type=text], .f input[type=email], .f input[type=password], .f input[type=tel], .f input[type=date], .f input[type=time], .f input[type=number], .f input[type=url], .f select, .f textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; padding: 11px 13px; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.f textarea { resize: vertical; min-height: 84px; }
.in:focus, .f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--o); box-shadow: 0 0 0 4px rgba(255,90,31,.12); }
.f input.invalid { border-color: var(--bad); }
.prefix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; padding-left: 13px; }
.prefix span { color: var(--mute); font-size: 15px; white-space: nowrap; }
.prefix input { border: 0 !important; box-shadow: none !important; padding-left: 6px !important; }
.prefix:focus-within { border-color: var(--o); box-shadow: 0 0 0 4px rgba(255,90,31,.12); }

.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--soft); border: 1px solid var(--line2); border-radius: 14px; padding: 4px; gap: 4px; }
.seg.block { display: grid; width: 100%; }
.seg button { border: 0; background: transparent; border-radius: 10px; padding: 9px 16px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(27,31,42,.1); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 600; font-size: 14.5px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 46px; height: 27px; border-radius: 14px; background: #D7DAE3; position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { transform: translateX(19px); }
.switch input:focus-visible + .track { outline: 2px solid var(--o); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 16px; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #cfd3de; }
.btn.primary { border: 0; background: linear-gradient(100deg, var(--o), #FF7A1A); color: #fff; box-shadow: 0 6px 18px rgba(255,90,31,.25); }
.btn.dark { border: 0; background: var(--ink); color: #fff; }
.btn.danger { color: var(--bad); border-color: transparent; background: transparent; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.link-btn { border: 0; background: none; color: var(--o-ink); font-weight: 700; padding: 0; }

.color-row { display: flex; gap: 10px; align-items: center; }
.swatch { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); position: relative; overflow: hidden; flex: none; }
.swatch input { position: absolute; inset: -10px; width: 70px; height: 70px; border: 0; padding: 0; cursor: pointer; opacity: 0; }
.palettes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.palette { display: flex; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: none; }
.palette span { width: 18px; height: 28px; display: block; }
.palette:hover { border-color: var(--line); }

.img-up { display: flex; gap: 16px; align-items: center; }
.img-box { width: 110px; height: 110px; border-radius: 16px; border: 1.5px dashed #CDD1DC; background: var(--soft); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--faint); }
.img-box.wide { width: 220px; height: 82px; }
.img-box.share { width: 200px; height: 105px; }
.img-box img { width: 100%; height: 100%; object-fit: cover; }
.img-box.has { border-style: solid; border-color: var(--line); }
.img-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.img-actions .row { display: flex; gap: 8px; align-items: center; }
.img-actions small { color: var(--mute); font-size: 12.5px; }
.emoji-pick { width: 64px; text-align: center; font-size: 22px; }

/* hours */
.day { display: grid; grid-template-columns: 90px 200px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line2); }
.day:last-child { border-bottom: 0; }
.day-name { font-weight: 700; padding-top: 10px; }
.shift { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.shift input { width: 120px; }
.shift .muted { color: var(--mute); }
.closed-txt { color: var(--faint); font-size: 13.5px; padding-top: 11px; }

/* lists (products, groups...) */
.toolbar { display: flex; gap: 12px; margin-bottom: 14px; }
.toolbar .in { flex: 1; }
.toolbar select.in { flex: 0 0 240px; }
.acc { background: #fff; border: 1px solid var(--line2); border-radius: 16px; margin-bottom: 10px; box-shadow: var(--shadow); transition: border-color .15s; }
.acc.open { border: 1.5px solid var(--ink); }
.acc.dragging { opacity: .6; }
.acc-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.handle { cursor: grab; color: var(--faint); padding: 6px 2px; border: 0; background: transparent; touch-action: none; display: grid; place-items: center; }
.thumb { width: 48px; height: 48px; border-radius: 12px; background: var(--soft); overflow: hidden; display: grid; place-items: center; font-size: 26px; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.acc-title { flex: 1; min-width: 0; }
.acc-title b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-title small { color: var(--mute); }
.acc-badges { display: flex; gap: 6px; }
.pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--mute); white-space: nowrap; }
.pill.o { background: var(--o-soft); color: var(--o-ink); }
.pill.red { background: var(--bad-soft); color: #9b1c1c; }
.pill.green { background: var(--ok-soft); color: #1e6b30; }
.pill.yellow { background: var(--warn-soft); color: #7a5600; }
.chev { color: var(--faint); transition: transform .15s; }
.acc.open .chev { transform: rotate(180deg); }
.acc-body { padding: 4px 18px 18px; border-top: 1px solid var(--line2); }
.acc-body .grid2, .acc-body .f { margin-top: 14px; }
.chips-sel { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-t { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.chip-t.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.row-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line2); }
.opt-row { display: grid; grid-template-columns: 1fr 150px 40px; gap: 10px; align-items: center; margin-bottom: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--mute); display: grid; place-items: center; }
.icon-btn:hover { background: var(--soft); color: var(--bad); }
.summary { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--soft); margin-top: 14px; font-size: 14px; }
.summary .k { color: var(--mute); font-size: 13px; }
.summary b { font-size: 16px; }
.summary .msg { flex-basis: 100%; }
.summary.bad { background: var(--bad-soft); }
.summary.bad .msg { color: var(--bad); font-weight: 600; }
.summary.good .msg { color: var(--ok); font-weight: 700; }
.combo-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.combo-items .chip-t { background: var(--soft); border-color: var(--line2); }
.weekdays { display: flex; gap: 6px; flex-wrap: wrap; }
.weekdays button { width: 46px; padding: 8px 0; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 12.5px; }
.weekdays button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty-state { text-align: center; padding: 40px 20px; border: 1.5px dashed var(--line); border-radius: var(--r); color: var(--mute); }
.empty-state b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.empty-state .btn { margin-top: 14px; }

/* checklist */
.check-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line2); }
.check-item:last-child { border-bottom: 0; }
.check-item .txt { flex: 1; }
.lvl { font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 8px; }
.lvl.red { background: var(--bad-soft); color: #9b1c1c; }
.lvl.yellow { background: var(--warn-soft); color: #7a5600; }
.all-good { display: flex; gap: 12px; align-items: center; color: var(--ok); font-weight: 700; }
.qr-row { display: flex; gap: 22px; align-items: center; }
.qr-box { width: 168px; height: 168px; border-radius: 14px; border: 1px solid var(--line); padding: 8px; background: #fff; flex: none; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.copy-line { display: flex; gap: 8px; align-items: center; background: var(--soft); border-radius: 12px; padding: 6px 6px 6px 14px; font-weight: 700; font-size: 14px; word-break: break-all; }
.copy-line span { flex: 1; }
.wa-card { width: 320px; max-width: 100%; border-radius: 14px; overflow: hidden; background: #E7F8E1; border: 1px solid #d3eccb; font-size: 13px; }
.wa-card .img { height: 150px; background: var(--soft); display: grid; place-items: center; color: var(--faint); }
.wa-card .img img { width: 100%; height: 100%; object-fit: cover; }
.wa-card .t { padding: 8px 12px 10px; background: #F5FBF2; }
.wa-card .t b { display: block; }
.wa-card .t small { color: #5c6b57; }
.vars { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.vars button { border: 1px dashed #c9cdd8; background: #fff; border-radius: 8px; padding: 4px 8px; font-size: 12px; font-family: ui-monospace, Menlo, monospace; color: var(--ink2); }
.msg-sample { margin-top: 8px; padding: 10px 12px; background: #E7F8E1; border-radius: 12px 12px 12px 4px; font-size: 13.5px; white-space: pre-wrap; max-width: 520px; }

/* preview pane */
.preview { background: var(--side); border-left: 1px solid var(--line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 16px 18px; gap: 10px; overflow: hidden; }
.preview .seg { width: 100%; max-width: 400px; }
.preview .cap { font-size: 12.5px; color: var(--mute); }

/* toast + modal */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: .2s; z-index: 100; pointer-events: none; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }
.modal-bg { position: fixed; inset: 0; background: rgba(27,31,42,.45); display: grid; place-items: center; z-index: 90; padding: 16px; }
.modal { background: #fff; border-radius: 22px; padding: 26px; width: min(520px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal h2 { margin: 0 0 8px; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.modal p { color: var(--mute); margin: 0 0 14px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.modal ol { padding-left: 18px; color: var(--ink2); }
.modal ol li { margin-bottom: 6px; }

/* demo ribbon */
.demo-bar { position: sticky; top: 0; z-index: 30; display: flex; justify-content: center; align-items: center; gap: 14px; padding: 10px 16px; background: linear-gradient(90deg, #1B1F2A, #2B2F45); color: #fff; font-size: 14px; }
.demo-bar b { color: var(--o2); }
.demo-orders { position: fixed; right: 500px; bottom: 20px; width: 300px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.demo-order { background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 16px 40px rgba(27,31,42,.18); border-left: 4px solid var(--o); animation: slidein .3s ease; font-size: 13.5px; }
.demo-order b { display: block; font-size: 15px; }
@keyframes slidein { from { transform: translateY(16px); opacity: 0; } }

/* mobile builder */
.mobile-bar { display: none; }
@media (max-width: 1180px) {
  .shell.with-preview { grid-template-columns: 272px minmax(0, 1fr); }
  .preview { position: fixed; inset: 0; z-index: 70; display: none; height: auto; }
  .preview.show { display: flex; }
  .preview-close { display: inline-flex !important; }
  .preview-toggle { display: inline-flex !important; }
  .demo-orders { right: 20px; }
}
.preview-close, .preview-toggle { display: none !important; }
@media (max-width: 820px) {
  .shell, .shell.with-preview { grid-template-columns: 1fr; }
  .side { position: static; height: auto; padding: 12px; }
  .side .steps, .side .side-foot, .side .publish-btn { display: none; }
  .side .nav-list { flex-direction: row; overflow-x: auto; }
  .mobile-bar { display: flex; gap: 8px; position: sticky; top: 0; z-index: 20; padding: 10px 12px; background: var(--side); border-bottom: 1px solid var(--line); }
  .mobile-bar select { flex: 1; }
  .main { padding: 18px 14px 100px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .day { grid-template-columns: 1fr; gap: 8px; }
  .day-name { padding-top: 0; }
  .page-head h1 { font-size: 23px; }
  .toolbar { flex-direction: column; }
  .toolbar select.in { flex: none; }
  .opt-row { grid-template-columns: 1fr 110px 38px; }
  .card { padding: 16px; }
  .qr-row { flex-direction: column; align-items: flex-start; }
  .preview .device.fit { height: calc(100vh - 150px); }
}

/* ---------- orders board ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 10px; }
.col { background: var(--soft); border-radius: var(--r); padding: 12px; min-height: 200px; }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; font-weight: 800; font-size: 14px; }
.col-head .pill { background: #fff; }
.ocard { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); border: 1px solid var(--line2); }
.ocard.new { border: 1.5px solid var(--o); animation: newglow 1.6s ease 3; }
@keyframes newglow { 50% { box-shadow: 0 0 0 6px rgba(255,90,31,.15); } }
.ocard-top { display: flex; justify-content: space-between; align-items: baseline; }
.ocard-top b { font-size: 17px; }
.ocard-top small { color: var(--mute); }
.ocard .who { font-weight: 700; margin-top: 4px; }
.ocard ul { list-style: none; padding: 0; margin: 8px 0; font-size: 13.5px; }
.ocard ul li { padding: 2px 0; }
.ocard ul small { color: var(--mute); display: block; padding-left: 18px; }
.ocard .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ocard .addr { font-size: 12.5px; color: var(--ink2); background: var(--soft); border-radius: 10px; padding: 8px 10px; }
.ocard .actions { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; margin-top: 10px; }
.board-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
@media (max-width: 820px) { .board { grid-template-columns: repeat(4, 82vw); } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line2); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12.5px; color: var(--mute); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FCFCFE; white-space: nowrap; }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; }
.t tr.click:hover td { background: #FCFCFE; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13.5px; display: inline-flex; gap: 8px; align-items: center; }
.filters button span { color: var(--faint); font-weight: 600; }
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters button.on span { color: #c9ccd6; }
.drawer-bg { position: fixed; inset: 0; background: rgba(27,31,42,.35); z-index: 80; display: flex; justify-content: flex-end; }
.drawer { width: min(480px, 100%); height: 100%; background: #fff; overflow-y: auto; padding: 24px; box-shadow: -20px 0 60px rgba(0,0,0,.15); }

/* ---------- reports ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line2); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi small { color: var(--mute); font-size: 13px; font-weight: 600; }
.kpi b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12.5px; color: var(--mute); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 170px; padding-top: 10px; }
.bars div { flex: 1; background: linear-gradient(180deg, var(--o2), var(--o)); border-radius: 5px 5px 2px 2px; min-height: 2px; position: relative; }
.bars div:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; margin-bottom: 4px; }
.bars.hours div { background: #C9CEDC; }
.bars.hours div.peak { background: var(--o); }
.axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 6px; }
@media (max-width: 820px) { .kpis { grid-template-columns: 1fr 1fr; } }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.plan.best { border: 1.5px solid var(--o); }
.plan b.price { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* print (thermal) */
@media print { .no-print { display: none !important; } }

/* ajustes */
.card > .f + .f, .card > .f + .grid2, .card > .grid2 + .f, .card > .grid2 + .grid2, .card > .grid3 + .f, .acc-body > .f + .f, .acc-body > .grid2 + .f, .acc-body > .f + .grid2 { margin-top: 16px; }
.hint { font-size: 12.5px; color: var(--mute); }
p.hint { margin: 8px 0 0; }
.wa-card .t small { display: block; }
.img-actions { flex: 1; min-width: 0; }
.f input.emoji-pick { width: 64px; text-align: center; font-size: 22px; padding: 8px; }
.shift input[type=time] { width: 116px; }
.card-head .link-btn { text-align: right; }
.day { grid-template-columns: 96px 184px 1fr; }

.ocard .actions { grid-template-columns: minmax(0, 1fr) auto auto; }
.ocard .actions .btn.sm { padding: 7px 9px; }
.ocard .actions .btn.primary { white-space: normal; line-height: 1.2; text-align: center; }

/* ---------- super admin ---------- */
.super-inner { max-width: 1240px; }
.super-nav a { position: relative; }
.super-nav a .ic { color: var(--faint); }
.super-nav a.on .ic { color: var(--o); }
.super-nav a span:first-of-type { flex: 1; }
.nbadge { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; background: #E4E6EE; color: var(--ink2); }
.nbadge.red { background: var(--bad); color: #fff; }
.nbadge.yellow { background: var(--warn); color: #fff; }
.kpis.kpis-6 { grid-template-columns: repeat(3, 1fr); }
.kpi.accent { background: linear-gradient(140deg, #FFF4EC, #FFE6D4); border-color: #FFD9C2; }
.kpi.accent b { color: var(--o-ink); }
.kpi .minus { font-size: 18px; color: var(--bad); }
.grid2.align-start { align-items: start; }
.grid2 + .grid2, .card + .grid2, .grid2 + .card { margin-top: 0; }
.store-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar.sm { width: 38px; height: 38px; border-radius: 11px; font-size: 13px; }
.avatar.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 20px; }
.store-head h1 { margin-bottom: 6px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.row-btns form { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.split-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line2); }
form.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
form.inline .in { flex: 1; min-width: 140px; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 14px; margin: 0; font-size: 14px; }
.dl dt { color: var(--mute); font-weight: 700; }
.dl dd { margin: 0; word-break: break-word; }
.danger-zone { border-color: #F6C9C9; }
.danger-zone h2 { color: var(--bad); }
.hbar { display: grid; grid-template-columns: 190px 1fr 36px; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.hbar i { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--o), var(--o2)); min-width: 4px; }
.hbar b { text-align: right; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
pre.log { background: #14161D; color: #E6E8EF; border-radius: 12px; padding: 14px; font-size: 12px; line-height: 1.5; overflow-x: auto; max-height: 360px; margin: 0; white-space: pre-wrap; }
.lvl.ok { background: var(--ok-soft); color: #1e6b30; }
.warn-txt { color: #B26B00; font-weight: 700; }
.pill.blue { background: #EAF0FF; color: #2F4BB5; }
.pill.gray { background: var(--soft); color: var(--mute); }
.plan-edit { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.notice.flash { position: sticky; top: 12px; z-index: 5; box-shadow: var(--shadow); }
.filters a { text-decoration: none; }
@media (max-width: 1000px) { .kpis.kpis-6 { grid-template-columns: 1fr 1fr; } .dl { grid-template-columns: 1fr; } .hbar { grid-template-columns: 120px 1fr 30px; } }

/* demonstração: a faixa do topo ocupa espaço, o celular encolhe para caber inteiro */
body.is-demo .side, body.is-demo .preview { top: 53px; height: calc(100vh - 53px); }
body.is-demo .device.fit { height: min(calc(100vh - 172px), 820px); }
.shell { background: linear-gradient(90deg, var(--side) 0 292px, var(--bg) 292px); }
body.super .main a:not(.btn):not(.link-btn) { text-decoration: none; color: inherit; }
body.super .main a:not(.btn):not(.link-btn):hover { color: var(--o-ink); text-decoration: underline; }
@media (max-width: 1180px) { .shell { background: linear-gradient(90deg, var(--side) 0 272px, var(--bg) 272px); } }
@media (max-width: 820px) { .shell { background: var(--bg); } }
form.inline .in[style*="width"] { flex: none; }
body.super .t td:first-child { min-width: 250px; } body.super .t td:nth-child(2) { min-width: 140px; }

/* ---------- agenda / reservas ---------- */
.cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.cal-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cal-nav b { margin-left: 8px; font-size: 16px; }
.in.sm { padding: 7px 10px; font-size: 13.5px; border-radius: 10px; width: auto; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.cal-card { padding: 0; overflow: hidden; }
.cal-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.side-box { padding: 14px 16px; }
.side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.side-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line2); }
.side-item > :first-child { min-width: 0; text-align: left; }
.side-item b { display: block; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item small { color: var(--mute); font-size: 12.5px; font-weight: 500; }
.btn.wa { background: #E9F9EF; border-color: #BFEACD; color: #0E7A3A; gap: 6px; }
.btn.wa .ic { width: 15px; height: 15px; }
.cal-filter { padding: 12px 14px 0; }
.tg-scroll { overflow: auto; max-height: calc(100vh - 250px); }
.tg { min-width: calc(56px + var(--cols) * 150px); }
.tg-head { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(150px, 1fr)); position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.tg-res { display: flex; gap: 8px; align-items: center; padding: 10px; border-left: 1px solid var(--line2); min-width: 0; }
.tg-res b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-res small { color: var(--mute); font-size: 12px; }
.tg-body { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(150px, 1fr)); position: relative; }
.tg-axis { position: relative; }
.tg-axis span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11.5px; color: var(--faint); font-weight: 600; }
.tg-axis span:first-child { transform: none; }
.tg-col { position: relative; border-left: 1px solid var(--line2); cursor: copy; }
.tg-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #F6F7FA 0 6px, #F1F2F6 6px 12px); pointer-events: auto; }
.tg-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line2); pointer-events: none; }
.tg-line.half { border-top-style: dashed; opacity: .6; }
.tg-now { position: absolute; left: 56px; right: 0; border-top: 2px solid var(--bad); z-index: 3; pointer-events: none; }
.tg-now::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.bk { position: absolute; left: 4px; right: 4px; z-index: 2; text-align: left; border: 0; border-left: 4px solid var(--o); border-radius: 9px; background: var(--o-soft);
  padding: 4px 8px; overflow: hidden; display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; line-height: 1.25; cursor: grab; touch-action: none; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.bk b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk span, .bk small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink2); }
.bk-time { font-weight: 700; font-size: 11.5px; }
.bk.short { flex-direction: row; align-items: center; gap: 6px; padding-top: 2px; }
.bk.short span { display: none; }
.bk:hover { filter: brightness(.97); }
.bk.dragging { cursor: grabbing; z-index: 6; box-shadow: 0 10px 30px rgba(0,0,0,.18); opacity: .95; }
.st-pendente.bk, .st-pendente.wk-item, .om-bar.st-pendente { background: var(--warn-soft); border-color: var(--warn); }
.st-confirmado.bk, .st-confirmado.wk-item, .om-bar.st-confirmado { background: #EAF1FF; border-color: #3B6FE0; }
.st-concluido.bk, .st-concluido.wk-item, .om-bar.st-concluido { background: var(--ok-soft); border-color: var(--ok); }
.st-faltou.bk, .st-faltou.wk-item, .om-bar.st-faltou { background: var(--bad-soft); border-color: var(--bad); opacity: .8; }
.bk.block, .wk-item.block, .om-bar.block { background: repeating-linear-gradient(135deg, #ECEDF2 0 7px, #E3E5EC 7px 14px); border-color: #9AA0B1; color: var(--ink2); }
.wk { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow-x: auto; }
.wk-day { border-left: 1px solid var(--line2); padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 360px; }
.wk-day:first-child { border-left: 0; }
.wk-day.today { background: #FFFBF8; }
.wk-head { display: flex; align-items: baseline; gap: 6px; border: 0; background: none; padding: 4px 2px 8px; border-bottom: 1px solid var(--line2); }
.wk-head small { color: var(--mute); font-weight: 700; text-transform: uppercase; font-size: 11.5px; }
.wk-head b { font-size: 20px; }
.wk-head span { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--mute); }
.wk-day.today .wk-head b { color: var(--o); }
.wk-item { text-align: left; border: 0; border-left: 3px solid var(--o); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; font-size: 12.5px; background: var(--o-soft); }
.wk-item b { font-size: 13px; }
.wk-item small, .wk-item span { color: var(--ink2); }
.om { min-width: calc(170px + var(--days) * 44px); }
.om-row { display: grid; grid-template-columns: 170px 1fr; border-bottom: 1px solid var(--line2); }
.om-head { position: sticky; top: 0; background: #fff; z-index: 3; grid-template-columns: 170px repeat(var(--days), 44px); }
.om-name { padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.om-name b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-name small { color: var(--mute); font-size: 12px; }
.om-day { text-align: center; padding: 6px 0; border-left: 1px solid var(--line2); display: flex; flex-direction: column; font-size: 12px; }
.om-day small { color: var(--mute); font-weight: 700; }
.om-day.we { background: #FAFAFC; }
.om-day.today b { color: var(--o); }
.om-lane { display: grid; grid-template-columns: repeat(var(--days), 44px); grid-template-rows: 52px; position: relative; }
.om-cell { grid-row: 1; border: 0; border-left: 1px solid var(--line2); background: transparent; cursor: copy; }
.om-cell:nth-child(n) { grid-column: auto; }
.om-cell:hover { background: var(--o-soft); }
.om-bar { grid-row: 1; margin: 7px 2px 7px 22px; border: 0; border-left: 3px solid var(--o); border-radius: 8px; text-align: left; padding: 3px 7px; display: flex; flex-direction: column;
  justify-content: center; overflow: hidden; z-index: 2; font-size: 12px; }
.om-bar b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.bk-drawer .dl { margin: 14px 0; }
.bk-status { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.bk-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.btn.danger { color: #9b1c1c; }
.drawer-sub { font-size: 15px; margin: 22px 0 10px; }
.wa-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
ul.hist { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
ul.hist li { padding: 5px 0; border-bottom: 1px solid var(--line2); }
ul.hist small { color: var(--mute); }
.notice > b { display: block; }
.bk-drawer .notice { display: block; }
@media (max-width: 1100px) { .cal-layout { grid-template-columns: 1fr; } .cal-side { position: static; } }
.dl > div { display: contents; }
.stamp-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.stamp-row i { width: 22px; height: 22px; border-radius: 50%; border: 2px dashed var(--line); }
.stamp-row i.on { background: var(--o); border: 2px solid var(--o); }
.rep-extra { margin-top: 18px; }
.rv-top { display: flex; gap: 20px; align-items: center; margin-bottom: 10px; }
.rv-avg { text-align: center; }
.rv-avg b { display: block; font-size: 40px; font-weight: 800; color: var(--o); line-height: 1; }
.rv-avg span { font-size: 12.5px; color: var(--mute); }
.rv-dist { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.rv-dist div { display: grid; grid-template-columns: 26px 1fr 30px; gap: 8px; align-items: center; }
.rv-dist i { height: 8px; border-radius: 9px; background: var(--soft); overflow: hidden; }
.rv-dist i b { display: block; height: 100%; background: #f5a524; border-radius: 9px; }
.drawer .kpi { padding: 12px 14px; }
.drawer .kpi b { font-size: 18px; }
.wk { grid-template-columns: repeat(7, minmax(104px, 1fr)); }

/* App | Site no construtor */
.mode-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.mode-seg button { border: 0; background: transparent; border-radius: 10px; padding: 9px 8px; font-weight: 800; font-size: 14px; color: var(--mute); position: relative; }
.mode-seg button.on { background: var(--ink); color: #fff; }
.mode-seg button.warn::after { content: ""; position: absolute; top: 7px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }
.site-map { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink2); }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.gal-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--soft); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; }
.gal-acts { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 4px; justify-content: flex-end; }
.gal-acts .btn { background: rgba(255,255,255,.92); padding: 4px 8px; font-size: 12px; }
.img-box.hero { width: 220px; height: 124px; }
.feat-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 13px; }
.feat-list li { padding-left: 22px; position: relative; }
.feat-list li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.feat-list li.yes::before { content: "✓"; color: var(--ok); }
.feat-list li.no { color: var(--faint); text-decoration: line-through; }
.feat-list li.no::before { content: "–"; }

/* ---------- planos (3 níveis × mensal/anual) ---------- */
.pricing[data-cycle="anual"] .p-mensal, .pricing[data-cycle="mensal"] .p-anual { display: none !important; }
.cycle-switch { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); margin: 0 auto 22px; position: relative; left: 50%; transform: translateX(-50%); }
.cycle-switch button { border: 0; background: transparent; border-radius: 999px; padding: 10px 20px; font-weight: 800; font-size: 15px; cursor: pointer; color: var(--mute); display: inline-flex; gap: 8px; align-items: center; }
.cycle-switch button.on { background: var(--ink); color: #fff; }
.cycle-switch button span { font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #E9F7EC; color: #1E6B30; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.tier { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 24px; padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.tier.best { border-color: var(--o); box-shadow: 0 20px 50px rgba(255,90,31,.14); }
.tier-flag { position: absolute; top: -13px; left: 24px; background: linear-gradient(90deg, var(--o), var(--o2)); color: #fff; font-weight: 800; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; }
.tier h3 { margin: 0; font-size: 22px; }
.tier-pitch { margin: 0; color: var(--mute); font-size: 14.5px; min-height: 2.8em; }
.tier-price { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; }
.tier-price b { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.tier-price small { color: var(--mute); font-weight: 700; }
.tier-sub { font-size: 13.5px; color: var(--mute); min-height: 1.4em; }
.tier ul { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 9px; font-size: 14.5px; flex: 1; }
.tier li { padding-left: 26px; position: relative; line-height: 1.35; }
.tier li::before { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.tier li.yes::before { content: "✓"; background: #E9F7EC; color: #1E6B30; }
.tier li.no { color: #A6ABB8; }
.tier li.no::before { content: "–"; background: #F1F2F6; color: #A6ABB8; }
.tier .btn { justify-content: center; width: 100%; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } .tier-pitch { min-height: 0; } }
.tier-price b { white-space: nowrap; font-size: clamp(30px, 3.2vw, 40px); }
