/* Estilos do editor Cardápio Rápido */
:root {
  --bg: #f6f1ea; --card: #fff; --ink: #2a1a14; --muted: #7a6a60;
  --line: #e6dccf; --brand: #8e2318; --brand-dark: #6b1a12; --accent: #f4c430;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: "Roboto Condensed", system-ui, sans-serif; background: var(--bg); color: var(--ink); }
header { background: linear-gradient(135deg, #6b1a12 0%, #8e2318 55%, #a8321f 100%); color: #fff; padding: 12px 22px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; box-shadow: 0 3px 14px rgba(0,0,0,.18); }
.brand { display: flex; align-items: center; gap: 14px; flex: 1 0 auto; min-width: 0; color: #fff; text-decoration: none; }
.brand img { width: 58px; height: 58px; flex-shrink: 0; display: block; background: #fff; border-radius: 14px; padding: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,.28), 0 0 0 3px rgba(255,255,255,.18); }
.brand-text { min-width: 0; }
.brand-name { font-family: Oswald, "Roboto Condensed", sans-serif; font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.brand-name span { color: var(--accent); }
.brand-tag { font-size: 14px; color: rgba(255,255,255,.82); margin-top: 4px; letter-spacing: .3px; }

.wrap { display: grid; grid-template-columns: minmax(340px, 500px) 1fr; gap: 20px; padding: 20px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.card h2 { margin: 0 0 12px; font-size: 17px; color: var(--brand); text-transform: uppercase; letter-spacing: .5px; }
.card h3 { margin: 18px 0 4px; font-size: 15px; color: var(--brand); }
label { display: block; font-size: 13px; color: var(--muted); margin: 8px 0 4px; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; }
label.check input { width: auto; }
input, select, textarea { width: 100%; max-width: 100%; min-width: 0; font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
input[type=color] { padding: 2px; height: 40px; cursor: pointer; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
button { font: inherit; font-size: 15px; border: 0; border-radius: 6px; padding: 9px 14px; cursor: pointer; background: #ece3d7; color: var(--ink); }
button:hover { filter: brightness(.96); }
button:disabled { opacity: .4; cursor: default; }
button.primary { background: var(--brand); color: #fff; }
button.gen { background: var(--accent); color: #3a1a0a; font-weight: 700; font-size: 17px; padding: 10px 20px; }
button.danger { background: #fde2df; color: #8e2318; }
.actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.etabs { display: flex; gap: 4px; margin-bottom: 14px; background: #ece3d7; padding: 4px; border-radius: 10px; position: sticky; top: 0; z-index: 5; }
.etabs button { flex: 1; background: transparent; font-size: 14px; padding: 9px 4px; font-weight: 500; }
.etabs button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pane { display: none; }
.pane.on { display: block; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tabs button { font-size: 13px; padding: 6px 10px; }
.tabs button.on { background: var(--brand); color: #fff; }
.tabs .n { opacity: .7; margin-left: 4px; }
ul.items { list-style: none; margin: 0; padding: 0; max-height: 52vh; overflow: auto; border-top: 1px solid var(--line); }
ul.items li { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--line); }
ul.items li.editing { background: #fff6d6; }
.it-name { flex: 1; min-width: 0; }
.it-name b { font-weight: 700; }
.it-name small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { background: var(--brand-dark); color: #fff; border-radius: 4px; padding: 2px 7px; font-weight: 500; white-space: nowrap; }
.controls { display: flex; gap: 2px; }
.ib { padding: 4px 7px; font-size: 14px; background: transparent; }
.ib:hover { background: #ece3d7; }
.ib.del:hover { background: #fde2df; }
.empty { color: var(--muted); padding: 14px 4px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.list-head h2 { margin: 0; }
.list-head .ib { font-size: 13px; color: var(--muted); }
#itemSearch { margin-bottom: 10px; }
#groups { max-height: 62vh; overflow: auto; padding-right: 2px; }
.grp { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.grp-h { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: #f7f2ea; }
.grp-h b { flex: 1; cursor: pointer; }
.grp-h .n { font-size: 12px; background: #e6dccf; border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.grp-h .tog { background: none; padding: 2px 6px; transition: transform .15s; }
.grp.closed .tog { transform: rotate(-90deg); }
.grp.closed ul { display: none; }
.grp-h .add { font-size: 13px; padding: 5px 10px; background: var(--brand); color: #fff; }
.grp ul.items, #catList { border-top: 0; max-height: none; overflow: visible; }
.grp ul.items li { padding: 7px 10px; }
.grp ul.items li:last-child { border-bottom: 0; }
.drag { cursor: grab; color: #b5a89b; font-size: 18px; padding: 0 2px; user-select: none; touch-action: none; }
button.price { border: 0; cursor: pointer; font-size: 15px; }
button.price.none { background: #ece3d7; color: var(--muted); font-size: 12px; }
.price-in { width: 90px; padding: 4px 6px; }
.sortable-ghost { opacity: .45; background: #fff6d6; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Seletores visuais */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.theme { padding: 0; background: none; border: 2px solid transparent; border-radius: 10px; overflow: hidden; text-align: center; font-size: 12px; }
.theme.on, .opt.on, .tpl.on { border-color: var(--ink); }
.theme .sw { height: 46px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.theme .sw i { display: block; width: 70%; height: 10px; border-radius: 3px; }
.theme .sw i + i { width: 40%; height: 7px; }
.theme span { display: block; padding: 4px 2px; background: #f4efe8; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.opt { padding: 6px; background: #faf7f2; border: 2px solid var(--line); border-radius: 10px; font-size: 12px; color: var(--muted); }
.opt canvas { display: block; width: 100%; height: auto; }
.fonts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fonts .opt { font-size: 22px; color: var(--ink); padding: 10px 4px; line-height: 1.1; }
.fonts .opt small { display: block; font: 11px "Roboto Condensed", sans-serif; color: var(--muted); margin-top: 4px; }
.logo-box { display: flex; align-items: center; gap: 12px; }
.logo-box img { max-height: 64px; max-width: 140px; border: 1px dashed var(--line); border-radius: 6px; padding: 4px; background: #faf7f2; }
.tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl { padding: 6px; text-align: left; background: #faf7f2; border: 2px solid var(--line); border-radius: 10px; }
.tpl .th { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; border-radius: 6px; background: #e9e1d6; }
.tpl b { display: block; margin-top: 6px; }
.tpl small { color: var(--muted); }

.preview { position: sticky; top: 12px; text-align: center; }
.preview canvas { width: 100%; max-width: 620px; max-height: 82vh; object-fit: contain; height: auto; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.18); background: #ddd; }
.tools { display: flex; align-items: flex-end; gap: 10px; }
.tools label { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .4px; text-transform: uppercase; color: rgba(255,255,255,.78); }
.tools select { width: auto; max-width: 280px; padding: 7px 8px; font-size: 14px; }
.tools .gen { white-space: nowrap; }
.acct { display: flex; align-items: center; gap: 8px; position: relative; padding-left: 14px; margin-left: 2px; border-left: 1px solid rgba(255,255,255,.25); align-self: stretch; }
.save-btn { background: #fff; color: var(--brand); border: 0; font-weight: 700; font-size: 14px; padding: 8px 14px; white-space: nowrap; }
.save-btn.dirty { background: var(--accent); color: #3a1a0a; }
.save-btn.ok { background: #dcfce7; color: #166534; }
.acct-btn { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); font-size: 14px; padding: 8px 16px; font-weight: 500; }
.acct-btn.ghost { background: transparent; }
.acct-on { position: relative; }
.avatar { position: relative; width: 42px; height: 42px; border-radius: 50%; padding: 0; background: #fff; color: var(--brand); font: 700 18px Oswald, sans-serif; border: 2px solid rgba(255,255,255,.6); }
.avatar i { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: #9ca3af; }
.avatar i.ok { background: #22c55e; }
.avatar i.warn { background: #f59e0b; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.22); padding: 12px; min-width: 240px; display: flex; flex-direction: column; gap: 2px; }
.acct-menu b { font-weight: 700; word-break: break-all; }
.acct-menu small { color: var(--muted); font-size: 13px; }
.acct-menu hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; width: 100%; }
.acct-menu button { text-align: left; background: transparent; padding: 8px 6px; font-size: 14px; }
.acct-menu button:hover { background: #f4efe8; }
.auth-box { background: #fff; color: var(--ink); border-radius: 14px; padding: 22px; width: min(400px, 100%); position: relative; text-align: left; }
.auth-box h2 { margin: 0 0 4px; color: var(--brand); font-size: 22px; }
.auth-box .x { position: absolute; top: 10px; right: 10px; background: transparent; font-size: 20px; padding: 4px 10px; }
.auth-box .link { background: none; padding: 6px 0; color: var(--brand); font-size: 14px; text-decoration: underline; }
.auth-box .err { color: #b42318; font-size: 14px; min-height: 18px; margin-top: 8px; }
.auth-box .actions button[type=submit] { flex: 1; }
details.custom { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #faf7f2; }
details.custom summary { cursor: pointer; font-weight: 700; color: var(--brand); }
details.custom summary small { font-weight: 400; color: var(--muted); }
.ogrp { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin: 10px 0; }
.ogrp .gh { display: grid; grid-template-columns: 1fr 70px 70px auto; gap: 6px; align-items: end; }
.ogrp .gh label { margin: 0 0 3px; font-size: 12px; }
.ogrp .orow { display: grid; grid-template-columns: 1fr 90px auto; gap: 6px; margin-top: 6px; }
.ogrp .ib { align-self: center; }
.ogrp .addopt { margin-top: 8px; font-size: 13px; padding: 6px 10px; }
.linkbox { display: flex; gap: 6px; align-items: stretch; }
.linkbox .pre { display: flex; align-items: center; padding: 0 8px; background: #f4efe8; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; direction: rtl; }
.pub-url { display: block; word-break: break-all; font-weight: 500; color: var(--brand); margin: 6px 0; }
.qr-wrap { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.qr-wrap img { width: 150px; height: 150px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }
.status-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #ece3d7; color: var(--muted); vertical-align: middle; }
.status-pill.on { background: #dcfce7; color: #166534; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wa-float .bubble { width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .15s; }
.wa-float .bubble svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover .bubble { transform: scale(1.06); }
.wa-float .tip { background: #fff; color: var(--ink); font-size: 13px; line-height: 1.3; padding: 8px 12px; border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.15); max-width: 230px; opacity: 0; transform: translateX(8px); transition: .2s; pointer-events: none; }
.wa-float .tip b { display: block; color: var(--brand); }
.wa-float:hover .tip, .wa-float.peek .tip { opacity: 1; transform: none; }
.custom-note { font-size: 13px; color: var(--muted); text-align: center; margin: 4px 0 8px; }
.custom-note a { color: var(--brand); font-weight: 500; text-decoration: none; border-bottom: 1px dotted currentColor; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #2a1a14; color: #fff; padding: 10px 16px; border-radius: 8px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; }
.mnav { display: none; }
.mres { display: none; }
.tapzoom { display: none; }
.modal { position: fixed; inset: 0; background: rgba(20,10,5,.85); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; z-index: 50; }
.modal.show { display: flex; }
.modal .imgs { display: flex; gap: 12px; overflow-x: auto; max-width: 100%; scroll-snap-type: x mandatory; }
.modal img { max-width: 100%; max-height: calc(100vh - 170px); border-radius: 6px; box-shadow: 0 6px 30px rgba(0,0,0,.5); scroll-snap-align: center; flex-shrink: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; font-weight: 700; }
.pager button { padding: 6px 14px; }
.pages-note { background: #fff6d6; border: 1px solid #f1d98a; border-radius: 8px; padding: 6px 10px; display: inline-block; }
.modal .actions { justify-content: center; margin: 0; }
.modal p { color: #f3e7da; margin: 0; font-size: 14px; text-align: center; }

@media (max-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 90px; gap: 0; }
  header { padding: 10px 14px; gap: 8px; }
  .brand { gap: 10px; }
  .brand img { width: 44px; height: 44px; border-radius: 11px; padding: 3px; }
  .brand-name { font-size: 22px; }
  .brand-tag { font-size: 12px; }
  header .tools { display: none; }
  input, select, textarea { font-size: 16px; padding: 10px 12px; }
  button { padding: 11px 14px; }
  .card { padding: 14px; margin-bottom: 12px; }
  .etabs { gap: 2px; padding: 3px; }
  .etabs button { font-size: 12.5px; padding: 10px 0; min-width: 0; }
  body:not(.view-menu) .preview { display: none; }
  body.view-menu .wrap > div:first-child { display: none; }
  .preview { position: static; }
  .preview canvas { max-width: 100%; max-height: none; }
  ul.items { max-height: none; overflow: visible; }
  #groups { max-height: none; overflow: visible; }
  .tabs button { padding: 8px 11px; font-size: 14px; }
  .ib { min-width: 40px; min-height: 40px; font-size: 16px; }
  .mnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
  .mnav button { flex: 1; font-size: 15px; padding: 12px 6px; }
  .mnav button.on { background: var(--brand); color: #fff; }
  .mnav .gen { flex: 1.2; font-size: 16px; padding: 12px 6px; }
  .mres { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; margin-top: 10px; }
  .tapzoom { display: inline; }
  .toast { bottom: 84px; width: max-content; max-width: 90vw; }
  .wa-float { right: 14px; bottom: 82px; }
  .acct { border-left: 0; padding-left: 0; }
  .acct-btn { padding: 6px 12px; font-size: 13px; }
  .save-btn { padding: 6px 10px; font-size: 13px; }
  .avatar { width: 38px; height: 38px; font-size: 16px; }
  .wa-float .bubble { width: 50px; height: 50px; }
  .wa-float .bubble svg { width: 27px; height: 27px; }
  .wa-float .tip { max-width: 190px; font-size: 12px; }
}
@media (max-width: 520px) {
  ul.items li { gap: 6px; }
  .it-name b { font-size: 15px; }
  .ib { min-width: 34px; min-height: 36px; padding: 4px; }
  .row2 { grid-template-columns: 1fr 100px; }
  .themes { grid-template-columns: repeat(3, 1fr); }
  .fonts { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Visual do sistema ===== */
:root { --bg: #f4f5f7; --card: #fff; --ink: #1f2430; --muted: #6b7280; --line: #e5e7eb; --brand: #a3241a; --brand-dark: #7f1c14; --accent: #f4b81c; --soft: #f8f9fb; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
header { background: #fff; color: var(--ink); padding: 10px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.04); position: sticky; top: 0; z-index: 20; }
.brand { color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 11px; padding: 2px; box-shadow: 0 1px 3px rgba(16,24,40,.15); }
.brand-name { font-size: 24px; color: var(--ink); }
.brand-name span { color: var(--brand); }
.brand-tag { color: var(--muted); font-size: 13px; margin-top: 2px; }
.acct { border-left: 1px solid var(--line); }
.acct-btn { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.acct-btn:hover { background: var(--soft); filter: none; }
.save-btn { background: var(--brand); color: #fff; border-radius: 8px; padding: 9px 16px; }
.save-btn.dirty { background: var(--accent); color: #3a2a05; }
.save-btn.ok { background: #ecfdf3; color: #067647; box-shadow: inset 0 0 0 1px #abefc6; }
.avatar { background: var(--brand); color: #fff; border: 0; }
.avatar i { border-color: #fff; }

.wrap { grid-template-columns: minmax(0, 1fr) minmax(380px, 44%); gap: 28px; padding: 24px; max-width: 1480px; margin: 0 auto; }
.card { border-radius: 12px; border-color: var(--line); padding: 20px; box-shadow: 0 1px 2px rgba(16,24,40,.05); margin-bottom: 18px; }
.card h2 { font-size: 16px; font-weight: 700; color: var(--ink); text-transform: none; letter-spacing: 0; margin-bottom: 14px; }
.card h3 { color: var(--ink); font-weight: 600; }
label { color: #4b5563; font-weight: 500; }
input, select, textarea { border-color: #d0d5dd; border-radius: 8px; padding: 9px 12px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(163,36,26,.14); border-color: var(--brand); }
button { border-radius: 8px; background: #f2f4f7; font-weight: 500; }
button.primary { background: var(--brand); }
button.primary:hover { background: var(--brand-dark); filter: none; }
button.gen { background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; padding: 10px 18px; }
.hint { color: var(--muted); }
ul.items li, .grp { border-color: #eef0f3; }
.grp-h { background: var(--soft); }
.grp-h .n { background: #eaecf0; }
.price { background: var(--brand); border-radius: 6px; }

/* Abas: horizontais no PC */
.etabs { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 5px; gap: 4px; margin-bottom: 18px; top: 72px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.etabs button { display: flex; align-items: center; justify-content: center; gap: 8px; color: #475467; font-weight: 600; padding: 10px 8px; border-radius: 8px; }
.etabs button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.etabs button:hover { background: var(--soft); filter: none; }
.etabs button.on { background: #fdf1f0; color: var(--brand); box-shadow: inset 0 0 0 1px #f6cfcb; }
.tab-toggle { display: none; }
.etabs button span { white-space: nowrap; }
header { flex-wrap: nowrap; }
.brand { flex: 1 1 auto; overflow: hidden; }

/* Prévia: à direita */
.preview { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.ptool { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); text-align: left; }
.ptool label { flex: 1 1 140px; margin: 0; font-size: 12px; }
.ptool label select { margin-top: 4px; }
.ptool .gen { flex: 0 0 auto; }
.stage { background: repeating-conic-gradient(#f2f4f7 0% 25%, #fff 0% 50%) 50% / 22px 22px; border-radius: 10px; padding: 14px; }
.preview canvas { max-width: 100%; max-height: calc(100vh - 290px); box-shadow: 0 10px 30px rgba(16,24,40,.18); }
.pager button { background: #f2f4f7; }

.btype { display: flex; align-items: center; gap: 8px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; font-size: 14px; }
.btype b { color: var(--brand); }
.btype small { margin-left: auto; color: var(--muted); }
.zones { display: grid; gap: 6px; margin: 10px 0; }
.zrow { display: grid; grid-template-columns: 1fr 110px auto; gap: 6px; }

.onb { position: fixed; inset: 0; z-index: 60; background: rgba(16,24,40,.6); display: flex; align-items: flex-start; justify-content: center; overflow: auto; padding: 24px 14px; }
.onb-box { background: #fff; border-radius: 16px; width: min(940px, 100%); padding: 26px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.onb-logo { width: 64px; height: 64px; border-radius: 14px; }
.onb-box h2 { margin: 10px 0 6px; font-size: 24px; }
.onb-box p { color: #475467; margin: 0 0 8px; }
.onb-warn { display: inline-block; background: #fffaeb; border: 1px solid #fedf89; color: #93370d !important; border-radius: 8px; padding: 6px 12px; font-size: 14px; }
.onb .tpls { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 16px; text-align: left; }
.tpl { background: #fff; border: 1px solid var(--line); transition: box-shadow .15s, border-color .15s; }
.tpl:hover { border-color: var(--brand); box-shadow: 0 6px 16px rgba(16,24,40,.12); filter: none; }

@media (max-width: 900px) {
  header { padding: 8px 12px; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 19px; }
  .brand-tag { display: none; }
  .acct { gap: 6px; }
  .save-btn span { display: none; }
  .save-btn { padding: 8px 10px; }
  .brand-name { white-space: nowrap; }
  .wrap { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 90px; }
  .card { padding: 16px; }
  /* Abas: lista vertical no celular, aberta pelo botão */
  .tab-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 700; color: var(--brand); margin-bottom: 8px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
  .tab-toggle span { display: flex; align-items: center; gap: 10px; }
  .tab-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tab-toggle i { font-style: normal; transition: transform .2s; color: var(--muted); }
  .tab-toggle[aria-expanded=true] i { transform: rotate(180deg); }
  .etabs { display: none; position: static; flex-direction: column; padding: 6px; }
  .etabs.open { display: flex; }
  .etabs button { justify-content: flex-start; font-size: 15px !important; padding: 12px 12px !important; }
  .preview { position: static; padding: 12px; }
  .preview canvas { max-height: none; }
  .ptool label { flex-basis: 45%; }
  .ptool .gen { width: 100%; }
  .onb-box { padding: 18px; }
  .onb .tpls { grid-template-columns: 1fr 1fr; }
}

/* ===== Delivery ===== */
.etabs button { position: relative; }
@media (min-width: 901px) { .etabs { flex-wrap: wrap; } .etabs button { flex: 1 0 auto; padding: 10px 12px; gap: 6px; font-size: 14px; } .etabs button svg { width: 17px; height: 17px; } }
.badge { position: absolute; top: 2px; right: 6px; min-width: 20px; height: 20px; border-radius: 999px; background: #d92d20; color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 6px; }
@keyframes blinkTab { 0%, 100% { background: #fff; color: #475467; } 50% { background: #d92d20; color: #fff; } }
.etabs button.blink, .tab-toggle.blink { animation: blinkTab 1s infinite; }
.tab-toggle { position: relative; }
.ord-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; }
.ord-filters { display: flex; gap: 6px; flex: 1; }
.chip { border-radius: 999px; padding: 7px 14px; font-size: 14px; background: #f2f4f7; }
.chip.on { background: var(--ink); color: #fff; }
.ord-period { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; width: 100%; padding-top: 12px; border-top: 1px solid var(--line); }
.ord-period label { margin: 0; font-size: 12px; display: flex; flex-direction: column; }
.ord-period input { width: 160px; margin-top: 3px; }
.ord-sum { display: flex; gap: 12px; flex-wrap: wrap; margin: -6px 0 14px; }
.ord-sum div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 150px; }
.ord-sum small { display: block; color: var(--muted); font-size: 12px; }
.ord-sum b { font-size: 20px; }
.ord-paper { display: flex; align-items: center; gap: 8px; margin: 0; }
.ord-paper select { width: auto; }
.ord { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(16,24,40,.05); overflow: hidden; }
.ord.new { border-color: #fda29b; box-shadow: 0 0 0 3px #fee4e2; }
.ord-h { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; flex-wrap: wrap; }
.ord-n { font: 700 22px Oswald, sans-serif; color: var(--brand); min-width: 64px; }
.ord-who { flex: 1; min-width: 160px; }
.ord-who b { display: block; }
.ord-who small { color: var(--muted); }
.ord-tot { font-weight: 700; font-size: 17px; }
.st { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.st-novo { background: #fee4e2; color: #b42318; } .st-preparo { background: #fef0c7; color: #93370d; }
.st-entrega { background: #d1e9ff; color: #175cd3; } .st-concluido { background: #dcfae6; color: #067647; } .st-cancelado { background: #f2f4f7; color: #667085; text-decoration: line-through; }
.ord-b { border-top: 1px solid var(--line); padding: 14px 16px; display: none; }
.ord.open .ord-b { display: block; }
.ord-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.ord-items div { padding: 4px 0; border-bottom: 1px dashed #eaecf0; }
.ord-items small { display: block; color: var(--muted); padding-left: 18px; }
.ord-info p { margin: 0 0 6px; }
.ord-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.ord-act select { width: auto; }
.ord-empty { text-align: center; color: var(--muted); padding: 40px 10px; background: #fff; border: 1px dashed var(--line); border-radius: 12px; }
body.wide .wrap { grid-template-columns: minmax(0, 1fr); max-width: 1100px; }
body.wide .preview { display: none; }
@media (max-width: 900px) { .ord-cols { grid-template-columns: 1fr; } .ord-paper { width: 100%; } }

/* ===== Abas fixas no cabeçalho ===== */
header { gap: 18px; }
header .brand { flex: 0 0 auto; }
header .etabs { position: static; margin: 0 auto; background: #f4f5f7; border: 0; box-shadow: none; padding: 4px; flex-wrap: nowrap; }
header .etabs button { flex: 0 0 auto; padding: 8px 12px; font-size: 14px; }
header .etabs button.on { background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.12), inset 0 0 0 1px #f6cfcb; }
header .acct { margin-left: 0; }
.preview { top: 90px; }
@media (max-width: 1250px) and (min-width: 901px) { .brand-tag { display: none; } .brand-name { font-size: 20px; } header .etabs button { padding: 8px 9px; gap: 5px; } }
@media (max-width: 1080px) and (min-width: 901px) { header .etabs button span { display: none; } header .etabs button { padding: 9px 12px; } }
@media (max-width: 900px) {
  header { flex-wrap: wrap; gap: 8px; }
  header .brand { flex: 1 1 auto; }
  header .tab-toggle { order: 3; width: 100%; margin: 0; padding: 9px 12px; }
  header .etabs { position: absolute; left: 12px; right: 12px; top: 100%; margin-top: 4px; z-index: 40; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(16,24,40,.18); flex-direction: column; }
}

/* ===== Tela de entrada ===== */
.gate { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; overflow: auto; }
.gate-side { background: radial-gradient(120% 80% at 0% 0%, #c0392b 0%, #8e2318 45%, #4a0f0a 100%); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; gap: 22px; position: relative; overflow: hidden; }
.gate-brand { display: flex; align-items: center; gap: 12px; font: 700 24px Oswald, sans-serif; letter-spacing: .5px; text-transform: uppercase; }
.gate-brand img { width: 46px; height: 46px; border-radius: 12px; background: #fff; padding: 2px; }
.gate-brand b { color: var(--accent); font-weight: 700; }
.gate-side h1 { font: 700 44px/1.1 Inter, sans-serif; margin: 6px 0 0; letter-spacing: -.5px; max-width: 560px; }
.gate-side h1 em { font-style: normal; color: var(--accent); }
.gate-lead { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.85); max-width: 560px; margin: 0; }
.gate-feats { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; max-width: 640px; position: relative; z-index: 1; }
.gate-feats li { display: flex; gap: 12px; align-items: flex-start; }
.gate-feats b { display: block; font-size: 15px; }
.gate-feats small { display: block; color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.gi { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.gi svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gate-mock { position: absolute; right: -40px; bottom: -60px; width: 330px; height: 330px; pointer-events: none; opacity: .95; }
.gate-mock img { position: absolute; width: 210px; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.gate-mock img:first-child { right: 120px; bottom: 40px; transform: rotate(-8deg); }
.gate-mock img:last-child { right: 10px; bottom: 80px; transform: rotate(6deg); }
.gate-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #f8f9fb; }
.gate-card { width: min(400px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: 0 12px 40px rgba(16,24,40,.08); }
.gate-card h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.3px; }
.gate-card .hint { margin: 0 0 14px; }
.gate-card label { margin-top: 12px; }
.pw { position: relative; }
.pw input { padding-right: 44px; }
.pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: transparent; padding: 6px 8px; }
.gate-btn { width: 100%; margin-top: 16px; padding: 12px; font-size: 16px; font-weight: 600; }
.gate-card .link { background: none; padding: 10px 0 0; color: var(--brand); font-size: 14px; }
.gate-card .err { color: #b42318; font-size: 14px; min-height: 18px; margin-top: 8px; }
.gate-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 18px 0 14px; }
.gate-or::before, .gate-or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.gate-cta { display: block; text-align: center; text-decoration: none; border: 1px solid #d0d5dd; color: var(--ink); font-weight: 600; border-radius: 8px; padding: 11px; }
.gate-cta:hover { background: var(--soft); }
.gate-demo { width: 100%; margin-top: 8px; background: transparent; color: #475467; font-size: 14px; }
.gate-foot { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.gate-foot a { color: var(--brand); }
.only-m { display: none; }
body.gated { overflow: hidden; }
body.gated .wa-float { display: none; }
@media (max-width: 980px) {
  .gate { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .gate-main { order: -1; padding: 22px 14px; }
  .gate-side { padding: 28px 20px 34px; }
  .gate-side > .gate-brand { display: none; }
  .only-m { display: flex; color: var(--ink); font-size: 20px; margin-bottom: 16px; }
  .only-m b { color: var(--brand); }
  .gate-side h1 { font-size: 28px; }
  .gate-lead { font-size: 15px; }
  .gate-feats { grid-template-columns: 1fr; }
  .gate-mock { display: none; }
  .gate-card { padding: 22px; }
}

/* ===== Recursos SaaS ===== */
.photo-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.photo-pick img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photo-pick img.wide { width: 160px; height: 70px; }
.li-ph { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
ul.items li.soldout .it-name b { text-decoration: line-through; color: var(--muted); }
.it-name em { font-style: normal; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: middle; }
.it-name em.so { background: #fee4e2; color: #b42318; }
.it-name em.bd { background: #fef0c7; color: #93370d; }
label.check.big { font-weight: 600; background: #fffaeb; border: 1px solid #fedf89; border-radius: 10px; padding: 10px 12px; }
.hours { display: grid; gap: 6px; margin: 6px 0 10px; }
.hrow { display: grid; grid-template-columns: 130px 1fr auto 1fr; gap: 8px; align-items: center; }
.hrow label.check { margin: 0; }
.hrow input[type=time] { padding: 6px 8px; }
.pause-btn { background: #fffaeb; color: #93370d; box-shadow: inset 0 0 0 1px #fedf89; }
.pause-btn.paused { background: #ecfdf3; color: #067647; box-shadow: inset 0 0 0 1px #abefc6; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.kpi small { display: block; color: var(--muted); font-size: 12px; }
.kpi b { font-size: 24px; letter-spacing: -.3px; }
.card.hello h2 { font-size: 22px; margin-bottom: 4px; }
.top { margin: 0; padding-left: 20px; }
.top li { padding: 6px 0; border-bottom: 1px dashed #eaecf0; }
.top li span { display: inline-block; max-width: 80%; } .top li b { float: right; }
.shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shortcuts button { text-align: left; padding: 12px; }
.trial-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 46; display: flex; align-items: center; gap: 12px; background: #1f2430; color: #fff; border-radius: 12px; padding: 10px 12px 10px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 14px; max-width: calc(100vw - 24px); }
.trial-bar.over { background: #b42318; }
.trial-bar a { background: var(--accent); color: #3a2a05; text-decoration: none; font-weight: 700; border-radius: 8px; padding: 7px 12px; white-space: nowrap; }
.gate-trial { margin-bottom: 8px; background: #ecfdf3 !important; border-color: #abefc6 !important; color: #067647 !important; width: 100%; font: inherit; font-weight: 600; cursor: pointer; }
.edit-items { display: grid; gap: 6px; }
.edit-items .zrow { grid-template-columns: 1fr 70px 90px; align-items: center; }
.modal .x { position: absolute; top: 10px; right: 10px; background: transparent; font-size: 20px; padding: 4px 10px; }
@media (max-width: 900px) {
  .trial-bar { bottom: 78px; }
  .hrow { grid-template-columns: 1fr 1fr auto 1fr; }
  .home2 { grid-template-columns: 1fr; }
}

/* Minha conta */
.acc-plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 6px 0 4px; }
.acc-plan small { display: block; color: var(--muted); font-size: 12px; }
.acc-plan b { font-size: 14px; } .acc-plan em { font-style: normal; color: var(--muted); font-weight: 400; }
#accModal details.custom { margin-top: 16px; }
@media (max-width: 520px) { .acc-plan { grid-template-columns: 1fr 1fr; } }

.ord-info .paid { color: #067647; } .ord-info .unpaid { color: #b54708; }
button.sm { padding: 5px 10px; font-size: 13px; margin-left: 6px; }
#accModal #accSub { color: #475467 !important; opacity: 1; }

/* Motoboys */
.moto-ic { font-size: 20px; }
#courierList { margin-bottom: 6px; }
#courierForm h3 { margin-top: 12px; }
.ord-act select[data-courier] { max-width: 230px; }
.moto-sum { flex: 1 1 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.moto-sum > small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.moto-sum div { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-top: 1px dashed #eaecf0; flex-wrap: wrap; }
.moto-sum div span { flex: 1; min-width: 140px; } .moto-sum em { font-style: normal; color: var(--muted); font-size: 13px; }

/* Aviso do administrador para o lojista */
.notice-bar { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 47; width: min(640px, calc(100vw - 24px)); display: flex; align-items: flex-start; gap: 10px; background: #fffaeb; border: 1px solid #fedf89; color: #4e1d09; border-radius: 12px; padding: 12px 12px 12px 14px; box-shadow: 0 10px 28px rgba(0,0,0,.18); font-size: 15px; }
.notice-bar p { margin: 0; flex: 1; white-space: pre-line; line-height: 1.4; }
.notice-bar button { background: #f79009; color: #fff; font-weight: 700; padding: 7px 12px; white-space: nowrap; }

/* Troca do tipo de negócio */
.acc-link { display: block; font-size: 12px; margin-top: 2px; color: var(--brand); }
.btype small a { color: var(--brand); font-weight: 600; }
.type-fee { display: grid; gap: 4px; background: #fffaeb; border: 1px solid #fedf89; border-radius: 10px; padding: 10px 12px; margin-top: 12px; font-size: 14px; color: #4e1d09; }
.type-fee b { font-size: 15px; }
.type-req { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.type-req p { margin: 6px 0 0; }
.type-cur { font-size: 15px; margin: 4px 0 6px; } .type-cur b { color: var(--brand); }
