/* ============================================================
   TriFood — Design System
   ============================================================ */
:root {
  --brand: #ff5a1f;
  --brand-2: #ff8a00;
  --brand-ink: #c2410c;
  --brand-soft: #fff1ea;
  --grad: linear-gradient(135deg, #ff5a1f 0%, #ff8a00 100%);

  --bg: #f7f7f9;
  --surface: #ffffff;
  --surface-2: #f2f3f6;
  --ink: #0f1222;
  --ink-2: #4a5068;
  --muted: #8a8fa3;
  --line: #e6e8ee;

  --ok: #16a34a; --ok-soft: #e8f8ee;
  --warn: #d97706; --warn-soft: #fff6e6;
  --err: #dc2626; --err-soft: #fdecec;
  --info: #2563eb; --info-soft: #eaf1ff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,18,34,.06), 0 1px 3px rgba(15,18,34,.04);
  --shadow: 0 10px 30px -12px rgba(15,18,34,.18), 0 2px 6px rgba(15,18,34,.04);
  --shadow-lg: 0 30px 60px -20px rgba(15,18,34,.30);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Plus Jakarta Sans', var(--font);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d16; --surface: #131625; --surface-2: #1a1e31; --ink: #f2f3f8; --ink-2: #b6bacb; --muted: #7d8299; --line: #262a40;
    --brand-soft: #2a1a12; --ok-soft: #10261a; --warn-soft: #2b2010; --err-soft: #2e1414; --info-soft: #121d36;
    --shadow: 0 10px 30px -12px rgba(0,0,0,.6); --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  position: relative; isolation: isolate;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease, filter .18s ease, opacity .18s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.btn:focus-visible, .icon-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 62%, white); outline-offset: 3px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; filter: grayscale(.12); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(255,90,31,.7); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 14px 30px -9px rgba(255,90,31,.78); filter: saturate(1.08) brightness(1.04); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover:not(:disabled) { box-shadow: var(--shadow); filter: brightness(1.12); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); }
.btn-soft { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--err-soft); color: var(--err); }
.btn-danger:hover:not(:disabled) { box-shadow: 0 8px 22px -12px var(--err); filter: saturate(1.12); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-whats { background: #25d366; color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn { transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.icon-btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.icon-btn:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) { .btn, .icon-btn { transition: none; } .btn:hover, .icon-btn:hover { transform: none; } }

/* ---------- Formulários ---------- */
.field { display: block; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255,90,31,.15); }
.input.invalid { border-color: var(--err); box-shadow: 0 0 0 4px rgba(220,38,38,.12); }
.field-error { color: var(--err); font-size: 12.5px; margin-top: 6px; }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.input-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255,90,31,.15); }
.input-group .prefix { display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); color: var(--muted); font-size: 14px; white-space: nowrap; }
.input-group .input { border: 0; box-shadow: none; border-radius: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line); cursor: pointer; transition: .2s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: .2s; }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(20px); }

/* ---------- Cartões / badges ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-err { background: var(--err-soft); color: var(--err); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-brand { background: var(--brand-soft); color: var(--brand-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.alert { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; border: 1px solid; }
.alert-warn { background: var(--warn-soft); border-color: rgba(217,119,6,.25); }
.alert-err { background: var(--err-soft); border-color: rgba(220,38,38,.25); }
.alert-ok { background: var(--ok-soft); border-color: rgba(22,163,74,.25); }
.pix-auto { flex-wrap: wrap; }
.stat-link { text-align: left; cursor: pointer; font: inherit; color: inherit; transition: transform .15s, box-shadow .15s; }
.stat-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.row-link { cursor: pointer; }
.row-link:hover td { background: var(--surface-2); }
.link { cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); }
.notif-list { display: grid; gap: 8px; }
.notif { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; }
.notif.unread { background: var(--brand-soft); }
.notif b { display: block; font-size: 14px; }
.renew-modal .plan-pick { margin: 14px 0; }
.card-highlight { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 0 0 4px rgba(255,90,31,.08); }
.pix-qr { width: 168px; height: 168px; padding: 8px; border-radius: 14px; background: #fff; flex: none; box-shadow: var(--shadow-sm); }
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .mode-pick { grid-template-columns: 1fr; } }
.mode-pick label { cursor: pointer; position: relative; }
.mode-pick input { position: absolute; opacity: 0; }
.mode-pick .opt { display: block; height: 100%; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); transition: .15s; }
.mode-pick .opt b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.mode-pick .opt span { font-size: 13px; color: var(--ink-2); }
.mode-pick input:checked + .opt { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px rgba(255,90,31,.12); }
.mode-pick input:disabled + .opt { opacity: .55; cursor: not-allowed; }

/* ---------- Navegação pública ---------- */
.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(180%) blur(14px); background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 18px; height: 68px; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 21px; text-decoration: none; letter-spacing: -.03em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 17px; box-shadow: 0 6px 16px -6px rgba(255,90,31,.8); }
.nav-links { display: flex; gap: 24px; margin-left: 20px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- Landing ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 90px; }
.hero::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,138,0,.22), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 48px 0 60px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.eyebrow b { background: var(--grad); color: #fff; padding: 2px 8px; border-radius: 99px; font-size: 11px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; margin: 20px 0 18px; }
.hero p.lead { font-size: 18.5px; color: var(--ink-2); max-width: 560px; }
.link-pill { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 28px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--brand); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; }
.link-pill .slug { color: var(--brand); font-weight: 700; }
.hero-trust { display: flex; gap: 22px; margin-top: 28px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.hero-trust span::before { content: '✓ '; color: var(--ok); font-weight: 700; }

.mock { position: relative; justify-self: center; width: 330px; max-width: 100%; border-radius: 38px; padding: 12px; background: #0f1222; box-shadow: var(--shadow-lg); transform: rotate(2deg); }
.mock-screen { border-radius: 28px; overflow: hidden; background: #fff; color: #0f1222; }
.mock-head { padding: 22px 18px 18px; background: linear-gradient(135deg, #dc2626, #f97316); color: #fff; }
.mock-head .t { font-family: var(--display); font-weight: 800; font-size: 20px; }
.mock-head .s { font-size: 12px; opacity: .9; }
.mock-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #eef0f4; font-size: 13px; }
.mock-item b { display: block; font-size: 13.5px; }
.mock-item .p { font-weight: 700; color: #16a34a; white-space: nowrap; }
.mock-cart { margin: 14px; padding: 12px; border-radius: 14px; background: #0f1222; color: #fff; display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; }
.float-card { position: absolute; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; transform: rotate(-2deg); }
.float-card.a { left: -70px; top: 90px; }
.float-card.b { right: -50px; bottom: 80px; }
@media (max-width: 520px) { .float-card { display: none; } }

.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.section-head p { color: var(--ink-2); font-size: 17px; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 26px; }
.feature .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; }
.feature h3 { font-size: 17.5px; }
.feature p { color: var(--ink-2); margin: 0; font-size: 14.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; right: 22px; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--surface-2); }
.step h3 { font-size: 17.5px; }
.step p { color: var(--ink-2); margin: 0; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 440px; } }
.plan { position: relative; padding: 30px 28px; display: flex; flex-direction: column; border-radius: 22px; transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { background: #0f1222; color: #fff; border-color: #0f1222; box-shadow: var(--shadow-lg); }
.plan.featured .muted, .plan.featured li { color: #b6bacb; }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.plan h3 { font-size: 19px; margin-bottom: 4px; }
.plan .price { font-family: var(--display); font-size: 46px; font-weight: 800; letter-spacing: -.03em; margin: 18px 0 2px; }
.plan .price small { font-size: 18px; font-weight: 600; opacity: .7; }
.plan .per { font-size: 13.5px; margin-bottom: 20px; }
.plan .save { display: inline-block; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.plan li::before { content: '✓'; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 10px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 11px; font-weight: 800; }
.plan .btn { margin-top: auto; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* ---------- Catálogo público de restaurantes e contas de clientes ---------- */
.marketplace-main { min-height: calc(100vh - 190px); padding-top: 46px; padding-bottom: 70px; }
.marketplace-intro { margin: 8px 0 26px; }
.marketplace-intro h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin: 5px 0 8px; }
.marketplace-intro p { color: var(--ink-2); margin: 0; font-size: 17px; }
.market-search { display: flex; align-items: center; gap: 12px; max-width: 800px; padding: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-sm); }
.market-search > span { color: var(--muted); font-size: 26px; margin-left: 10px; }
.market-search input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; font-size: 15px; }
.market-filters { display: flex; flex-wrap: wrap; gap: 9px; padding: 22px 0; }
.market-filters .chip { min-height: 40px; padding-inline: 16px; }
.restaurant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.restaurant-card { overflow: hidden; padding: 0; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.restaurant-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(0,0,0,.26); border-color: color-mix(in srgb, var(--brand) 38%, var(--line)); }
.restaurant-card-link { display: block; color: inherit; text-decoration: none; }
.restaurant-brand { position: relative; isolation: isolate; min-height: clamp(148px, 17vw, 196px); padding: 16px; display: flex; align-items: flex-end; color: #fff; background: var(--restaurant-color); background: linear-gradient(135deg, color-mix(in srgb, var(--restaurant-color) 85%, #111), color-mix(in srgb, var(--restaurant-color) 72%, #fff)); }
.restaurant-brand-img, .restaurant-banner-img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.restaurant-brand.has-banner { background: var(--restaurant-color); }
.restaurant-brand-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(8,10,18,.12) 0%, rgba(8,10,18,.08) 42%, rgba(8,10,18,.67) 100%); }
.restaurant-brand-top { position: absolute; top: 14px; right: 14px; left: 14px; display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.restaurant-brand-logo { position: relative; width: 78px; height: 78px; display: grid; place-items: center; overflow: hidden; border: 3px solid rgba(255,255,255,.92); border-radius: 23px; background: color-mix(in srgb, var(--restaurant-color) 72%, #fff); box-shadow: 0 8px 24px rgba(0,0,0,.24); }
.restaurant-logo-img { width: 100%; height: 100%; object-fit: cover; }
.restaurant-logo-emoji { display: grid; place-items: center; width: 100%; height: 100%; background: rgba(255,255,255,.16); font-size: 39px; }
.restaurant-brand .favorite-toggle { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #ffffff60; border-radius: 50%; background: #121626b8; color: #fff; font-size: 22px; cursor: pointer; transition: transform .18s, background .18s, color .18s; }
.restaurant-brand .favorite-toggle:hover { transform: scale(1.08); background: #fff; color: #ef476f; }
.restaurant-brand .favorite-toggle.is-favorite { background: #fff; color: #ef476f; }
.restaurant-brand .favorite-toggle:disabled { opacity: .6; cursor: wait; }
.restaurant-state { font-size: 12px; font-style: normal; font-weight: 700; border-radius: 99px; padding: 7px 10px; background: rgba(15,18,34,.5); }
.restaurant-state.is-open { background: #fff; color: #15803d; }
.restaurant-info { padding: 16px; }
.restaurant-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.restaurant-title h2 { margin: 0; font-size: 18px; }
.restaurant-title .badge { white-space: nowrap; }
.restaurant-info > p { margin: 7px 0 14px; color: var(--ink-2); font-size: 13.5px; min-height: 21px; }
.restaurant-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--muted); font-size: 12px; }
.restaurant-cta { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; justify-content: space-between; color: var(--brand-ink); font-weight: 700; font-size: 13px; }
.restaurant-closed .restaurant-brand-shade { background: linear-gradient(180deg, rgba(8,10,18,.34), rgba(8,10,18,.72)); }
.restaurant-closed .restaurant-banner-img { filter: saturate(.62); }
.market-empty { max-width: 680px; margin: 22px auto; padding: 38px 24px; text-align: center; }
.market-empty h2 { font-size: 21px; margin: 6px 0; }
.market-empty p { max-width: 450px; margin: 8px auto 18px; }
.empty-icon { font-size: 36px; margin-bottom: 6px; }
.customer-main { min-height: calc(100vh - 190px); padding-top: 48px; padding-bottom: 70px; }
.customer-auth { max-width: 480px; margin: 10px auto; padding: 32px; }
.customer-auth-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--brand-soft); font-size: 25px; margin-bottom: 18px; }
.customer-auth h1 { font-size: 28px; margin: 5px 0 9px; }
.customer-auth > p { margin-bottom: 20px; }
.customer-auth .field { display: grid; gap: 7px; font-weight: 600; font-size: 13px; }
.customer-auth .field small { color: var(--muted); font-weight: 400; }
.customer-auth .field input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); padding: 0 13px; }
.customer-auth .field input:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); border-color: var(--brand); }
.google-area { position: relative; display: grid; gap: 14px; margin: 0 0 20px; padding: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line)); border-radius: 20px; background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--brand) 13%, transparent), transparent 45%), linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, #fff), var(--surface)); box-shadow: 0 16px 38px rgba(0,0,0,.17), inset 0 1px 0 rgba(255,255,255,.04); }
.google-area-head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.google-area-mark { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--brand) 13%, transparent); color: var(--brand-ink); font-size: 19px; }
.google-area-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.google-area-copy strong { color: var(--ink); font-size: 13px; line-height: 1.2; }
.google-area-copy small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.google-area-tag { flex: 0 0 auto; padding: 5px 7px; border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand-ink); font-size: 9px; font-weight: 800; letter-spacing: .07em; }
.google-button-shell { padding: 0; border: 0; border-radius: 12px; background: transparent; }
.google-area #google-button { display: flex; justify-content: center; width: 100%; min-height: 40px; }
.google-area #google-button iframe { max-width: 100%; }
.owner-google { display: grid; gap: 13px; margin: 2px 0 0; padding: 16px; border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line)); border-radius: 17px; background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--brand) 11%, transparent), transparent 48%), color-mix(in srgb, var(--surface) 92%, #fff); box-shadow: 0 12px 28px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.035); }
.owner-google[hidden], .auth-divider[hidden] { display: none !important; }
.owner-google-head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.owner-google-head > div { display: grid; gap: 3px; min-width: 0; flex: 1; }
.owner-google-head strong { color: var(--ink); font-size: 13px; line-height: 1.25; }
.owner-google-head small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.owner-google-mark { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent); border-radius: 11px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-ink); font-size: 18px; }
.owner-google-tag { flex: 0 0 auto; padding: 5px 7px; border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand-ink); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.owner-google #google-signup-button, .owner-google #google-login-button { display: flex; justify-content: center; width: 100%; min-height: 42px; }
.owner-google #google-signup-button iframe, .owner-google #google-login-button iframe { max-width: 100%; }
.owner-google + .auth-divider { margin: 0; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.customer-switch { text-align: center; margin: 18px 0 0 !important; font-size: 13px; }
.link-button { border: 0; background: none; padding: 0; color: var(--brand-ink); font-weight: 700; cursor: pointer; }
.customer-auth-foot { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; font-size: 13px; }
.customer-auth-foot a { color: var(--ink-2); text-decoration: none; }
.customer-auth .form-error { color: var(--err); background: var(--err-soft); padding: 10px 12px; border-radius: 10px; font-size: 13px; margin: 0; }
.customer-account { max-width: 940px; margin: 0 auto; }
.customer-welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.customer-welcome h1 { font-size: clamp(28px, 4vw, 38px); margin: 5px 0; }
.customer-welcome p { margin: 0; }
.customer-orders-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 30px 0 18px; }
.customer-orders-head h2 { margin: 0 0 4px; }
.customer-orders-head p { margin: 0; font-size: 13px; }
.customer-order-list { display: grid; gap: 12px; }
.customer-order { padding: 16px; }
.customer-order-brand { display: flex; align-items: center; gap: 12px; }
.customer-order-brand > span:first-child { font-size: 26px; }
.customer-order-brand > div { flex: 1; min-width: 0; }
.customer-order-brand a { text-decoration: none; }
.customer-order-brand small { display: block; color: var(--muted); margin-top: 3px; }
.customer-order-items { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 13px 0; margin: 12px 0 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.customer-order-total { display: block; text-align: right; }
.customer-account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.customer-order-track { margin: 14px 0 0; }
.customer-order-track i { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.customer-order-track i.on { background: linear-gradient(100deg, #ff493b, #ff8137); }
.customer-order-update { margin: 10px 0 0; color: var(--brand-ink); font-size: 13px; }
.customer-order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.customer-section { margin-top: 34px; }
.customer-section h2 { margin: 0 0 5px; font-size: 21px; }
.customer-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.customer-section-heading p { margin: 0; font-size: 13px; }
.customer-favorite-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.customer-favorite { overflow: hidden; padding: 0; }
.customer-favorite-brand { min-height: 100px; padding: 16px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, color-mix(in srgb, var(--restaurant-color) 92%, #111), var(--restaurant-color)); color: #fff; }
.customer-favorite-brand > span { font-size: 36px; }
.favorite-remove { width: 36px; height: 36px; border: 1px solid #ffffff70; border-radius: 50%; background: #fff; color: #ef476f; font-size: 18px; cursor: pointer; }
.customer-favorite-info { display: grid; gap: 8px; padding: 14px; }
.customer-favorite-info small { color: var(--muted); }
.customer-favorite-info .btn { justify-self: start; margin-top: 4px; }
.customer-empty-favorites { display: flex; align-items: center; gap: 15px; padding: 20px; }
.customer-empty-favorites > span { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); font-size: 24px; }
.customer-empty-favorites p { margin: 4px 0 10px; font-size: 13px; }
.customer-preferences { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.customer-preferences p { margin: 0; font-size: 13px; }
.customer-preference-toggle { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 14px; cursor: pointer; }
.customer-preference-toggle input { width: 18px; height: 18px; accent-color: var(--brand); }
.customer-preferences > small { color: var(--muted); }
@media (max-width: 900px) { .restaurant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .marketplace-main { padding-top: 30px; }
  .market-search { gap: 6px; }
  .market-search .btn { padding-inline: 13px; }
  .restaurant-grid { grid-template-columns: 1fr; }
  .restaurant-brand { height: 136px; min-height: 136px; padding: 12px; }
  .restaurant-brand-logo { width: 66px; height: 66px; border-radius: 19px; }
  .restaurant-brand-top { top: 11px; right: 11px; left: 11px; }
  .customer-main { padding-top: 28px; }
  .customer-auth { padding: 24px 20px; }
  .google-area { gap: 12px; padding: 15px; border-radius: 17px; }
  .google-area-head { gap: 9px; }
  .google-area-mark { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; }
  .google-area-tag { padding: 4px 6px; font-size: 8px; }
  .google-area-copy small { font-size: 10px; }
  .google-button-shell { padding: 0; }
  .owner-google { gap: 11px; padding: 14px; border-radius: 15px; }
  .owner-google-head { gap: 9px; }
  .owner-google-mark { width: 33px; height: 33px; flex-basis: 33px; border-radius: 10px; }
  .owner-google-head small { font-size: 10px; }
  .owner-google-tag { padding: 4px 6px; font-size: 8px; }
  .customer-orders-head { align-items: flex-start; flex-direction: column; }
  .customer-account-actions { width: 100%; }
  .customer-account-actions > * { flex: 1; }
  .customer-order-brand { flex-wrap: wrap; }
  .customer-order-brand .badge { margin-left: 38px; }
  .customer-order-actions > * { flex: 1 1 45%; text-align: center; }
  .customer-favorite-grid { grid-template-columns: 1fr; }
  .customer-section-heading { align-items: flex-start; }
  .store-body .s-nav .container > a[href="/explorar"] { display: none; }
  .store-body .s-nav .container > a[href="/cliente"] { padding-inline: 9px; font-size: 11px; }
}

/* Prévia premium da loja demonstrativa — desenhada em HTML, sem fotos externas */
.hero-store-preview { --preview-brand: #f0442e; position: relative; justify-self: end; width: min(100%, 590px); min-height: 510px; margin: 0; display: grid; place-items: center; isolation: isolate; perspective: 1100px; }
.preview-glow { position: absolute; z-index: -1; inset: 9% 10%; border-radius: 50%; background: radial-gradient(ellipse, color-mix(in srgb, var(--brand) 25%, transparent), transparent 70%); filter: blur(26px); }
.preview-phone { display: block; width: min(310px, 64%); padding: 9px; border: 1px solid rgba(255,255,255,.24); border-radius: 38px; color: inherit; text-decoration: none; background: linear-gradient(145deg, #303345, #0d101b 55%, #272a3a); box-shadow: 0 40px 90px -34px rgba(0,0,0,.78), inset 0 1px 0 rgba(255,255,255,.3); transform: rotateY(-9deg) rotateZ(-2.5deg); transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .55s ease; animation: preview-phone-enter .85s cubic-bezier(.2,.8,.2,1) both; }
.preview-phone:focus-visible { outline: 3px solid var(--brand); outline-offset: 5px; }
.hero-store-preview:hover .preview-phone { transform: rotateY(0) rotateZ(0) translateY(-5px); box-shadow: 0 48px 100px -36px rgba(0,0,0,.82), inset 0 1px 0 rgba(255,255,255,.34); }
.preview-screen { position: relative; min-height: 397px; overflow: hidden; border-radius: 30px; background: #fff; color: #151827; }
.preview-island { position: absolute; z-index: 2; top: 8px; left: 50%; width: 68px; height: 17px; border-radius: 99px; background: #11131b; transform: translateX(-50%); }
.preview-store-head { min-height: 111px; padding: 38px 15px 17px; display: flex; align-items: end; justify-content: space-between; gap: 8px; color: white; background: linear-gradient(125deg, #e52e31 0%, #f34820 62%, #ff8a13 100%); }
.preview-store-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.preview-store-icon { width: 35px; height: 35px; flex: none; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 12px; background: rgba(255,255,255,.16); font-size: 19px; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.preview-store-brand > span:last-child { display: grid; gap: 4px; min-width: 0; }
.preview-store-brand b { font: 800 16px/1.1 var(--display); color: #fff; text-shadow: 0 1px 8px rgba(112,20,15,.22); white-space: nowrap; }
.preview-store-brand small { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.84); font-size: 9px; white-space: nowrap; }
.preview-store-brand small i { width: 6px; height: 6px; border-radius: 50%; background: #41e38d; box-shadow: 0 0 0 3px rgba(65,227,141,.16); }
.preview-cart { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: rgba(120,25,20,.2); font-size: 10px; }
.preview-cart b { width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; color: #e84426; background: #fff; font-size: 9px; }
.preview-store-body { padding: 16px 12px 12px; }
.preview-section-title { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 8px; font: 800 11px var(--display); }
.preview-section-title small { color: #85899a; font: 600 8px var(--font); }
.preview-section-title small b { color: var(--brand); }
.preview-menu-row { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 66px; border-top: 1px solid #eceef2; transition: background .2s ease, transform .2s ease; }
.preview-menu-row:hover { position: relative; z-index: 1; background: #fff8f4; transform: translateX(3px); }
.preview-food-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #fff2e9; font-size: 17px; }
.preview-item-copy { display: grid; gap: 4px; min-width: 0; }
.preview-item-copy b { overflow: hidden; color: #242738; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.preview-item-copy small { overflow: hidden; color: #85899a; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.preview-menu-row strong { color: #14965b; font: 800 9px var(--display); white-space: nowrap; }
.preview-menu-row-muted { opacity: .76; }
.preview-checkout { margin-top: 10px; padding: 10px; display: grid; gap: 9px; border-radius: 13px; color: #fff; background: #171a27; box-shadow: 0 8px 18px rgba(17,20,32,.12); }
.preview-checkout > span { color: #b9bdca; font-size: 8px; }
.preview-checkout > b { display: flex; align-items: center; gap: 5px; font-size: 9px; }
.preview-checkout > b span { margin-left: auto; color: #ff9b2f; }
.preview-checkout > b i { font-style: normal; color: #ff9b2f; font-size: 13px; }
.preview-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--line) 76%, #fff 24%); border-radius: 16px; color: var(--ink); background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 20px 46px -20px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.12); backdrop-filter: blur(16px); transition: transform .3s ease, border-color .3s ease; }
.preview-float:hover { transform: translateY(-4px) scale(1.025); border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.preview-order { top: 46%; left: 0; animation: preview-float-in .75s .12s both, preview-order-float 4.6s 1s ease-in-out infinite; }
.preview-order-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 11px; color: #ffbd70; background: rgba(255,138,0,.13); font-size: 16px; }
.preview-float > span:nth-child(2) { display: grid; gap: 3px; }
.preview-float small { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .09em; }
.preview-float b { font-size: 10px; }
.preview-order-dot { width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: #18c778; box-shadow: 0 0 0 4px rgba(24,199,120,.14); animation: preview-pulse 1.8s ease-out infinite; }
.preview-sales { right: -1%; bottom: 19%; animation: preview-float-in .75s .25s both, preview-sales-float 5.2s 1.2s ease-in-out infinite; }
.preview-sales-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: #31d18a; background: rgba(49,209,138,.12); font-size: 18px; }
.preview-sales-bars { display: flex; align-items: end; gap: 2px; height: 17px; margin-left: 6px; }
.preview-sales-bars i { width: 3px; border-radius: 4px; background: linear-gradient(#ff9d3d,#ff5a1f); animation: preview-bar .9s ease-in-out infinite alternate; }
.preview-sales-bars i:nth-child(1) { height: 7px; animation-delay: -.4s; }.preview-sales-bars i:nth-child(2) { height: 12px; animation-delay: -.15s; }.preview-sales-bars i:nth-child(3) { height: 9px; animation-delay: -.6s; }.preview-sales-bars i:nth-child(4) { height: 16px; animation-delay: -.3s; }
.preview-caption { position: absolute; bottom: 2%; left: 50%; display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; padding: 9px 13px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--shadow-sm); font-size: 10px; transform: translateX(-50%); }
.preview-live { width: 7px; height: 7px; border-radius: 50%; background: #19c777; box-shadow: 0 0 0 4px rgba(25,199,119,.12); }
@keyframes preview-phone-enter { from { opacity: 0; transform: translateY(16px) rotateY(-9deg) rotateZ(-2.5deg) scale(.97); } to { opacity: 1; transform: rotateY(-9deg) rotateZ(-2.5deg); } }
@keyframes preview-float-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes preview-order-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes preview-sales-float { 0%,100% { translate: 0 0; } 50% { translate: 0 6px; } }
@keyframes preview-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(24,199,120,.14); } 50% { box-shadow: 0 0 0 7px rgba(24,199,120,.04); } }
@keyframes preview-bar { to { height: 5px; opacity: .55; } }
@media (max-width: 960px) { .hero-store-preview { justify-self: center; width: min(100%, 590px); min-height: 490px; } }
@media (max-width: 600px) {
  .hero-store-preview { min-height: clamp(390px, 108vw, 470px); width: 100%; margin-top: 8px; }
  .preview-phone { width: min(290px, 72%); padding: 7px; border-radius: 32px; transform: rotateZ(-1.2deg); }
  .hero-store-preview:hover .preview-phone { transform: translateY(-3px) rotateZ(0); }
  .preview-screen { min-height: 365px; border-radius: 25px; }
  .preview-store-head { min-height: 103px; padding: 35px 11px 14px; }
  .preview-store-brand b { font-size: 13px; }
  .preview-store-brand small { font-size: 8px; }
  .preview-store-body { padding: 13px 10px 10px; }
  .preview-menu-row { min-height: 61px; grid-template-columns: 31px minmax(0,1fr) auto; gap: 6px; }
  .preview-food-icon { width: 29px; height: 29px; }
  .preview-order { top: 44%; left: 0; padding: 9px 10px; gap: 7px; }
  .preview-order-icon { width: 27px; height: 27px; }
  .preview-float b { font-size: 9px; }
  .preview-float small { font-size: 7px; }
  .preview-sales { right: -1%; bottom: 17%; padding: 9px 10px; gap: 7px; }
  .preview-sales-bars { margin-left: 1px; }
  .preview-caption { bottom: 1%; padding: 8px 10px; font-size: 9px; }
}
@media (max-width: 380px) {
  .hero-store-preview { min-height: 370px; }
  .preview-phone { width: 74%; }
  .preview-order { left: -2%; }
  .preview-sales { right: -2%; }
  .preview-sales-bars { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .preview-phone, .preview-order, .preview-sales, .preview-order-dot, .preview-sales-bars i { animation: none !important; transition: none !important; }
  .preview-phone { transform: rotateZ(-1deg); }
}

.cta-band { border-radius: 28px; padding: 56px 40px; background: #0f1222; color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: auto -20% -60% auto; width: 600px; height: 600px; background: radial-gradient(closest-side, rgba(255,90,31,.45), transparent); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 40px); }
.cta-band p { color: #b6bacb; }
.footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.footer .container { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; align-items: center; }

/* ---------- Autenticação ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 960px) { .auth { grid-template-columns: 1fr; } .auth-aside { display: none !important; } }
.auth-aside { background: #0f1222; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::before { content: ''; position: absolute; width: 700px; height: 700px; right: -260px; top: -200px; background: radial-gradient(closest-side, rgba(255,90,31,.45), transparent); }
.auth-aside > * { position: relative; }
.auth-aside h2 { font-size: 38px; font-weight: 800; }
.auth-aside p { color: #b6bacb; font-size: 16.5px; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 480px; }
.auth-card h1 { font-size: 30px; font-weight: 800; }
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-pick label { position: relative; cursor: pointer; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick .opt { display: block; padding: 14px 10px; border: 1.5px solid var(--line); border-radius: 14px; text-align: center; background: var(--surface); transition: .15s; }
.plan-pick .opt b { display: block; font-family: var(--display); font-size: 19px; }
.plan-pick .opt span { font-size: 12px; color: var(--muted); }
.plan-pick input:checked + .opt { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px rgba(255,90,31,.12); }
.plan-pick input:focus-visible + .opt { outline: 2px solid var(--brand); }
.slug-status { font-size: 12.5px; margin-top: 6px; }
.slug-status.ok { color: var(--ok); }
.slug-status.bad { color: var(--err); }

/* ---------- Painel ---------- */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 22px; }
.side-nav { display: grid; gap: 4px; }
.side-nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 12px; border: 0; background: transparent; color: var(--ink-2); font-weight: 600; text-align: left; cursor: pointer; }
.side-nav button:hover { background: var(--surface-2); color: var(--ink); }
.side-nav button.active { background: var(--brand-soft); color: var(--brand-ink); }
.side-nav .count { margin-left: auto; background: var(--brand); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 99px; }
.side-store { padding: 14px; border-radius: 14px; background: var(--surface-2); font-size: 13px; }
.side-store b { display: block; font-size: 14.5px; }
.main { padding: 28px 32px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.topbar h1 { font-size: 26px; margin: 0; font-weight: 800; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: sticky; z-index: 30; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); gap: 10px; }
  .sidebar .logo span:last-child, .side-store, .side-foot { display: none; }
  .side-nav { display: flex; gap: 4px; }
  .side-nav button { padding: 8px 12px; white-space: nowrap; }
  .main { padding: 20px 16px 60px; }
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 1100px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { padding: 20px; }
.stat .k { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .v { font-family: var(--display); font-size: 28px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.panel-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 1100px) { .panel-grid { grid-template-columns: 1fr; } }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-title h2 { font-size: 18px; margin: 0; }
.store-link-box { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--surface-2); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; overflow: hidden; }
.store-link-box span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* ---------- Atendimento ---------- */
.support-layout { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); gap: 16px; min-height: 62vh; }
.support-list { overflow: hidden; }
.support-list-head { padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.support-threads { max-height: 70vh; overflow-y: auto; }
.support-thread { width: 100%; display: block; border: 0; border-bottom: 1px solid var(--line); text-align: left; padding: 14px 16px; background: transparent; color: inherit; cursor: pointer; }
.support-thread:hover, .support-thread.active { background: var(--surface-2); }
.support-thread.active { box-shadow: inset 3px 0 var(--brand); }
.support-thread-top { display: flex; align-items: center; gap: 8px; }
.support-thread-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-thread-preview { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 5px; }
.support-detail { display: flex; min-height: 62vh; flex-direction: column; overflow: hidden; }
.support-detail-head { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.support-messages { flex: 1; min-height: 280px; max-height: 58vh; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.support-message { max-width: min(80%, 680px); padding: 11px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.support-message.mine { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--brand-soft); }
.support-message-meta { font-size: 11px; color: var(--muted); margin-top: 5px; }
.support-compose { display: flex; align-items: flex-end; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.support-compose textarea { resize: vertical; min-height: 44px; max-height: 140px; }
@media (max-width: 760px) { .support-layout { grid-template-columns: 1fr; } .support-threads { max-height: 220px; } .support-detail { min-height: 55vh; } .support-messages { max-height: 45vh; } .support-message { max-width: 92%; } }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.tabs button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.order { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.order-head { display: flex; align-items: center; gap: 10px; }
.order-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; }
.order-items { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); list-style: none; font-size: 13.5px; display: grid; gap: 4px; }
.order-items li { display: flex; justify-content: space-between; gap: 10px; }
.order-meta { font-size: 13.5px; color: var(--ink-2); display: grid; gap: 3px; }
.order-review-summary { margin-top: 7px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--brand-soft) 72%, var(--surface)); color: var(--ink-2); font-size: 12.5px; }
.order-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; }
.print-paper-setting { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.print-paper-setting select { min-height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; }
.print-help { margin: -8px 0 14px; }
@media (max-width: 560px) { .print-paper-setting { font-size: 11px; } .print-paper-setting select { min-height: 32px; } }

.product-list { display: grid; gap: 10px; }
.p-row { display: flex; gap: 14px; align-items: center; padding: 12px 14px; }
.p-thumb { width: 54px; height: 54px; flex: none; border-radius: 12px; background: var(--surface-2) center/cover no-repeat; display: grid; place-items: center; font-size: 24px; }
.p-info { flex: 1; min-width: 0; }
.p-info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-info small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 12.5px; margin-right: 6px; font-weight: 500; }
.price { font-weight: 700; white-space: nowrap; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty .e { font-size: 40px; margin-bottom: 8px; }

/* ---------- Modal / drawer / toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(8,10,20,.55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .15s ease; }
.modal { width: 100%; max-width: 540px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 0; }
.modal-head h3 { margin: 0; font-size: 19px; flex: 1; }
.modal-body { padding: 20px 22px 22px; }
.drawer-wrap { position: fixed; inset: 0; z-index: 70; background: rgba(8,10,20,.5); animation: fade .15s ease; }
.drawer { position: absolute; right: 0; top: 0; bottom: 0; width: 100%; max-width: 440px; background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide .22s ease; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; flex: 1; font-size: 19px; }
.drawer-body { flex: 1; overflow: auto; padding: 18px 20px; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { padding: 12px 18px; border-radius: 12px; background: #0f1222; color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); animation: pop .2s ease; }
.toast.err { background: var(--err); }
.toast.ok { background: var(--ok); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px); } }
@keyframes slide { from { transform: translateX(100%); } }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .7s linear infinite; }
.loading { display: grid; place-items: center; padding: 80px 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Loja pública ---------- */
.store-body { --store: #e11d48; }
.s-nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.s-nav .container { display: flex; align-items: center; gap: 12px; height: 64px; max-width: 1000px; }
.s-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.s-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--store); display: grid; place-items: center; font-size: 22px; flex: none; }
.s-logo img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.s-brand b { font-family: var(--display); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cart-btn { position: relative; background: var(--store); color: #fff; }
.cart-btn .n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 11px; display: grid; place-items: center; }
.s-main { max-width: 1000px; }
.s-hero { margin: 22px 0; border-radius: 24px; padding: 34px 30px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--store), color-mix(in srgb, var(--store) 55%, #000)); box-shadow: var(--shadow); }
.s-banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-hero::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(10,12,20,.78), rgba(10,12,20,.48) 58%, rgba(10,12,20,.12)); pointer-events: none; }
.s-hero-content { position: relative; z-index: 1; max-width: min(720px, 82%); }
.s-hero-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.s-hero-title h1 { min-width: 0; overflow-wrap: anywhere; }
.s-hero-logo { width: clamp(48px, 8vw, 76px); height: clamp(48px, 8vw, 76px); flex: none; object-fit: cover; border: 2px solid rgba(255,255,255,.75); border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.s-whatsapp { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 15px; border-radius: 12px; font-weight: 750; box-shadow: 0 8px 22px rgba(0,0,0,.16); transition: transform .18s ease, filter .18s ease; }
.s-whatsapp:hover { transform: translateY(-2px); filter: brightness(1.06); }
.s-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; margin-bottom: 6px; }
.s-hero .tag { font-weight: 700; display: inline-block; background: rgba(255,255,255,.18); padding: 6px 12px; border-radius: 99px; font-size: 13px; margin: 8px 0 14px; }
.s-hero .addr { opacity: .9; font-size: 14px; margin: 0; }
.s-hero .big { position: absolute; right: 24px; bottom: -14px; font-size: 120px; opacity: .95; line-height: 1; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }
@media (max-width: 600px) {
  .s-hero { padding: 25px 20px; }
  .s-hero-content { max-width: 100%; }
  .s-hero-title { gap: 10px; }
  .s-hero-title h1 { font-size: clamp(25px, 8vw, 36px); }
  .s-hero-logo { width: 52px; height: 52px; border-radius: 14px; }
  .s-hero .big { font-size: 80px; right: 10px; opacity: .25; }
}
.s-info { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.s-info .badge { background: rgba(255,255,255,.18); color: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; position: sticky; top: 64px; z-index: 30; background: var(--bg); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; }
.chip.active { background: var(--store); border-color: var(--store); color: #fff; }
.cat-title { font-size: 20px; margin: 26px 0 14px; }
.menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 14px; }
.item { display: flex; gap: 14px; padding: 16px; cursor: pointer; transition: transform .15s, box-shadow .15s; position: relative; }
.item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.item.off { opacity: .55; cursor: not-allowed; }
.item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item h4 { margin: 0 0 4px; font-size: 15.5px; }
.item p { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.item .pr { font-weight: 800; color: var(--ok); }
.item .img { width: 92px; height: 92px; flex: none; border-radius: 14px; background: var(--surface-2) center/cover no-repeat; display: grid; place-items: center; font-size: 34px; }
.item .img img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.item .add { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--store); color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; }
.item .ribbon { position: absolute; top: 10px; left: 10px; }
.closed-banner { margin-top: 18px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 32px; height: 32px; border: 0; background: var(--surface-2); cursor: pointer; font-weight: 700; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; font-size: 14px; }
.cart-line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line .nm { flex: 1; min-width: 0; }
.cart-line .nm b { display: block; font-size: 14.5px; }
.totals { display: grid; gap: 6px; font-size: 14.5px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 800; font-size: 18px; padding-top: 6px; border-top: 1px dashed var(--line); margin-top: 4px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 9px 6px; border-radius: 9px; font-weight: 600; font-size: 13.5px; }
.seg input:checked + span { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--store, var(--brand)); }
.track { display: flex; gap: 6px; margin-top: 10px; }
.track i { flex: 1; height: 6px; border-radius: 99px; background: var(--line); transition: background .3s, box-shadow .3s, transform .3s; }
.track i.on { background: var(--ok); box-shadow: 0 0 9px color-mix(in srgb, var(--ok) 55%, transparent); animation: orderTrackBlink 1.35s ease-in-out infinite; }
.track i.on:nth-child(2) { animation-delay: .12s; }
.track i.on:nth-child(3) { animation-delay: .24s; }
.track i.on:nth-child(4) { animation-delay: .36s; }
.track i.on:nth-child(5) { animation-delay: .48s; }
.track i.current { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ok) 35%, white), 0 0 14px color-mix(in srgb, var(--ok) 72%, transparent); animation-duration: .9s; }
@keyframes orderTrackBlink { 0%, 100% { opacity: 1; } 50% { opacity: .48; } }
@media (prefers-reduced-motion: reduce) { .track i { transition: none; } .track i.on { animation: none; } }
.powered { text-align: center; padding: 40px 0; font-size: 13px; color: var(--muted); }
.powered a { font-weight: 700; color: var(--brand); text-decoration: none; }
.unavailable { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 20px; }

/* Uploads de identidade visual e fotos do cardápio */
.store-editor { box-sizing: border-box; width: 100%; max-width: 1120px; padding: clamp(18px, 2.4vw, 30px); gap: 18px; container-type: inline-size; }
.store-editor > .grid-2 { gap: 16px; }
.store-editor .field > span { margin-bottom: 8px; }
.store-media-section { padding-top: 8px; gap: 14px; }
.store-media-section h3 { margin: 0 0 6px; font-size: 19px; }
.store-media-section p { margin: 0; max-width: 720px; line-height: 1.6; }
.media-upload-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); gap: 16px; }
.media-upload-card { min-width: 0; display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 78%, transparent), color-mix(in srgb, var(--surface) 96%, transparent)); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.media-upload-card:hover { border-color: color-mix(in srgb, var(--brand) 38%, var(--line)); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.media-upload-card.compact { align-items: flex-start; }
.media-preview { flex: none; display: grid; place-items: center; overflow: hidden; color: var(--muted); background-color: var(--surface); background-position: center; background-size: cover; border: 1px dashed color-mix(in srgb, var(--line) 72%, var(--brand)); font-size: 24px; text-align: center; transition: border-color .2s ease, background-color .2s ease; }
.media-upload-card:hover .media-preview { border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); }
.logo-preview, .product-preview { width: 100px; height: 100px; border-radius: 16px; }
.banner-preview { width: min(52%, 340px); min-width: 180px; aspect-ratio: 3 / 1; min-height: 80px; border-radius: 13px; font-size: 14px; }
.media-upload-controls { min-width: 0; flex: 1; align-items: flex-start; }
.media-upload-controls > div { display: grid; gap: 4px; }
.media-upload-controls small { line-height: 1.45; }
.media-upload-controls .btn { width: fit-content; }
.product-preview { width: 120px; height: 90px; background-position: center; background-size: cover; }
@container (max-width: 820px) {
  .media-upload-grid { grid-template-columns: 1fr; }
}
@container (max-width: 560px) {
  .store-editor > .grid-2 { grid-template-columns: 1fr; }
  .media-upload-card { align-items: flex-start; padding: 14px; gap: 14px; }
  .banner-preview { width: min(48%, 260px); min-width: 140px; min-height: 72px; }
}
@media (max-width: 680px) {
  .store-editor { padding: 16px; gap: 16px; border-radius: 18px; }
  .store-editor > .grid-2 { gap: 14px; }
  .store-media-section { gap: 12px; }
  .media-upload-card { align-items: flex-start; padding: 14px; gap: 14px; }
  .banner-preview { width: min(48%, 260px); min-width: 140px; min-height: 72px; }
  .media-upload-controls { flex: 1; }
  .product-preview { width: 92px; height: 76px; }
}
@media (max-width: 420px) {
  .store-editor { padding: 13px; }
  .media-upload-card { flex-direction: column; }
  .media-upload-card .media-preview { width: 100%; max-width: 100%; }
  .media-upload-card .logo-preview { width: 92px; height: 92px; }
  .media-upload-card .banner-preview { min-width: 0; width: 100%; aspect-ratio: 3 / 1; }
  .media-upload-controls { width: 100%; }
  .media-upload-controls .btn { width: 100%; }
  .store-link-box { align-items: stretch; }
  .store-link-box .btn { flex: none; }
  #store-form > .row:last-child { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 5; margin: 0 -2px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
  #store-form > .row:last-child .btn { width: 100%; }
}

/* ---------- Instalação do app e ajustes para celulares ---------- */
.install-banner { position: fixed; z-index: 90; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(620px, calc(100vw - 28px)); display: flex; align-items: center; gap: 12px; padding: 14px 48px 14px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 55px rgba(15,18,34,.22); }
.install-banner-icon, .install-dialog-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px; background: var(--brand-soft); font-size: 23px; }
.install-banner-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.install-banner-copy strong { font-size: 14px; }
.install-banner-copy small { color: var(--ink-2); font-size: 12px; line-height: 1.35; }
.install-banner-action { flex: 0 0 auto; padding: 9px 14px; }
.install-banner-close, .install-dialog-close { position: absolute; top: 7px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.install-banner-close:hover, .install-dialog-close:hover { background: var(--surface-2); color: var(--ink); }
.install-dialog-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(15,18,34,.52); }
.install-dialog { position: relative; width: min(410px, 100%); padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); text-align: center; box-shadow: var(--shadow-lg); }
.install-dialog-icon { margin: 0 auto 16px; width: 56px; height: 56px; font-size: 28px; }
.install-dialog h2 { margin: 0 0 8px; font-size: 21px; }
.install-dialog p { margin: 0 0 20px; color: var(--ink-2); line-height: 1.6; }
.install-dialog-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.install-dialog-actions .btn { min-width: 112px; }
html { scroll-padding-top: 76px; }
body { overflow-x: clip; }
img, video, iframe { max-width: 100%; }
input, select, textarea, button { max-width: 100%; }
table { width: 100%; }
.table-wrap, .table-responsive { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  .nav .container { height: auto; min-height: 60px; flex-wrap: wrap; gap: 9px; padding-block: 10px; }
  .nav .container > .logo { flex: 1 0 100%; }
  .nav .nav-links, .nav .spacer { display: none; }
  .nav-actions { display: grid; width: 100%; grid-template-columns: minmax(0, 1.15fr) minmax(0, .7fr) minmax(0, 1.2fr); gap: 7px; margin: 0; }
  .nav-actions .btn.btn-sm { width: 100%; min-width: 0; min-height: 40px; height: auto; padding: 7px 4px; font-size: clamp(10px, 2.1vw, 12px); line-height: 1.15; text-align: center; white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1160px); }
  .logo { gap: 7px; font-size: 18px; }
  .logo-mark { width: 30px; height: 30px; }
  .hero { padding: 38px 0 46px; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); line-height: 1.08; }
  .hero p.lead { font-size: 16px; }
  .hero .row { gap: 10px; }
  .hero .btn-lg { padding: 13px 15px; font-size: 14px; }
  .link-pill { max-width: 100%; overflow-wrap: anywhere; font-size: 12px; padding: 10px 12px; }
  .mock { width: min(330px, calc(100vw - 42px)); }
  .section { padding: 58px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head p { font-size: 15px; }
  .feature, .step { padding: 20px; }
  .cta-band { border-radius: 20px; padding: 36px 20px; }
  .footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .auth-main { padding: 28px 16px calc(100px + env(safe-area-inset-bottom)); }
  .auth-card h1 { font-size: 26px; }
  .plan-pick { grid-template-columns: 1fr; }
  .plan-pick .opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
  .plan-pick .opt b { font-size: 17px; }
  .main { padding: 16px 12px calc(100px + env(safe-area-inset-bottom)); }
  .sidebar { padding: 8px; gap: 5px; }
  .side-nav { overflow-x: auto; min-width: 0; scrollbar-width: thin; }
  .side-nav button { gap: 6px; padding: 9px 10px; font-size: 12px; }
  .topbar { align-items: flex-start; gap: 9px; margin-bottom: 18px; }
  .topbar h1 { font-size: 22px; }
  .stats { gap: 9px; }
  .stat { padding: 14px; min-width: 0; }
  .stat .v { font-size: clamp(20px, 6vw, 26px); overflow-wrap: anywhere; }
  .support-layout { min-height: auto; }
  .support-detail { min-height: 52vh; }
  .support-messages { min-height: 220px; padding: 12px; }
  .support-compose { padding: 10px; }
  .install-banner { gap: 9px; padding: 11px 42px 11px 11px; border-radius: 15px; }
  .install-banner-icon { flex-basis: 38px; width: 38px; height: 38px; font-size: 20px; }
  .install-banner-copy strong { font-size: 12.5px; }
  .install-banner-copy small { font-size: 10.5px; }
  .install-banner-action { padding: 8px 10px; font-size: 12px; }
}
@media (max-width: 380px) {
  .nav .container { gap: 6px; }
  .nav-actions { gap: 5px; }
  .nav-actions .btn.btn-sm { padding: 7px 2px; font-size: 10px; }
  .logo { font-size: 16px; }
  .logo-mark { width: 27px; height: 27px; }
  .stats { grid-template-columns: 1fr; }
  .install-banner-copy small { display: none; }
}
.check-row{display:flex;align-items:flex-start;gap:10px;color:var(--muted);font-size:13px;line-height:1.45}.check-row input{margin:3px 0 0;accent-color:var(--brand);flex:none}

/* ---------- WhatsApp da loja ---------- */
.wa-setup, .wa-inbox-card { margin-bottom: 18px; }
.wa-setup .section-title { align-items: flex-start; }
.wa-setup h2, .wa-inbox-card h2 { margin: 0; font-size: 19px; }
.wa-warning { margin: 14px 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--line)); border-radius: 12px; background: var(--warn-soft); color: var(--ink-2); font-size: 13px; }
.wa-warning b { color: var(--ink); }
.wa-credentials { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.wa-credentials .row { grid-column: 1 / -1; }
.wa-webhook { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.wa-webhook span { display: grid; gap: 4px; min-width: 0; }
.wa-webhook code { overflow-wrap: anywhere; color: var(--brand); font-size: 12px; }
.wa-webhook small, .wa-bot-toggle small { color: var(--muted); }
.wa-bot-toggle { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:14px; padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--surface-2); }
.wa-bot-toggle > span { display:grid; gap:4px; }
.wa-help { margin-top: 14px; color: var(--ink-2); font-size: 13px; }
.wa-help summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.wa-help ol { padding-left: 22px; line-height: 1.8; }
.wa-qr:not([hidden]) { display:grid; place-items:center; margin-top:14px; padding:18px; border:1px solid var(--line); border-radius:14px; background:var(--surface-2); text-align:center; }
.wa-qr img { width:min(280px, 100%); height:auto; margin:12px auto; border-radius:12px; background:#fff; }
.wa-qr small { display:block; color:var(--muted); }
.wa-chat-layout { display:grid; grid-template-columns:minmax(240px, .82fr) minmax(0, 1.5fr); min-height:440px; overflow:hidden; border:1px solid var(--line); border-radius:16px; }
.wa-chat-list { overflow:auto; max-height:620px; border-right:1px solid var(--line); }
.wa-chat-row { width:100%; display:flex; align-items:center; gap:10px; padding:13px; border:0; border-bottom:1px solid var(--line); background:transparent; text-align:left; cursor:pointer; }
.wa-chat-row:hover, .wa-chat-row.active { background:var(--surface-2); }
.wa-avatar { display:grid; place-items:center; flex:none; width:38px; height:38px; border-radius:50%; background:var(--brand-soft); color:var(--brand); font-weight:800; }
.wa-chat-summary { display:grid; gap:3px; min-width:0; flex:1; }
.wa-chat-summary b, .wa-chat-summary small { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.wa-chat-summary small { color:var(--muted); font-size:12px; }
.wa-chat-meta { display:grid; justify-items:end; gap:5px; }
.wa-chat-meta small { color:var(--muted); font-size:10px; }
.wa-chat-meta .badge { font-size:10px; padding:3px 6px; }
.wa-thread { display:flex; flex-direction:column; min-width:0; }
.wa-thread-head { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:13px 15px; border-bottom:1px solid var(--line); }
.wa-thread-head > div { display:grid; gap:3px; min-width:0; }
.wa-thread-head small { color:var(--muted); }
.wa-chat-messages { display:flex; flex:1; flex-direction:column; gap:10px; min-height:250px; max-height:470px; overflow:auto; padding:16px; background:color-mix(in srgb, var(--surface-2) 45%, transparent); }
.wa-message { max-width:min(82%, 540px); align-self:flex-start; padding:10px 12px; border:1px solid var(--line); border-radius:14px 14px 14px 4px; background:var(--surface); white-space:pre-wrap; overflow-wrap:anywhere; }
.wa-message.out { align-self:flex-end; border-color:color-mix(in srgb, var(--ok) 28%, var(--line)); border-radius:14px 14px 4px 14px; background:var(--ok-soft); }
.wa-message small { display:block; margin-top:5px; color:var(--muted); font-size:10px; }
.wa-thread .support-compose { border-top:1px solid var(--line); }
@media (max-width: 760px) {
  .wa-credentials { grid-template-columns:1fr; }
  .wa-credentials .row { grid-column:auto; }
  .wa-chat-layout { grid-template-columns:1fr; }
  .wa-chat-list { display:flex; max-height:180px; overflow:auto; border-right:0; border-bottom:1px solid var(--line); }
  .wa-chat-row { min-width:230px; }
  .wa-chat-messages { max-height:48vh; }
  .wa-thread-head { align-items:flex-start; }
  .wa-thread-head .btn { white-space:normal; height:auto; min-height:34px; }
  .wa-webhook { align-items:flex-start; }
}
/* TriFood — identidade neon vermelho */
:root {
 --brand:#f51b2b; --brand-2:#ff4238; --brand-ink:#ff6269; --brand-soft:#301217;
 --grad:linear-gradient(135deg,#e50919,#ff302e);
 --bg:#09090d; --surface:#141419; --surface-2:#1e1e25;
 --ink:#f8f7fa; --ink-2:#c0bec8; --muted:#92909f; --line:#303039;
 --ok-soft:#10291b; --warn-soft:#30240f; --err-soft:#341216; --info-soft:#14213a;
 --shadow:0 14px 38px -18px #000; --shadow-lg:0 30px 70px -25px #000;
 color-scheme:dark;
}
body { background:radial-gradient(ellipse at 85% 0,rgba(205,5,24,.09),transparent 42%),var(--bg); }
.btn-primary { box-shadow:0 6px 22px -8px #f51b2b; border:1px solid #ff555c; }
.btn-primary:hover:not(:disabled) { box-shadow:0 9px 28px -8px #f51b2b; }
.nav { background:rgba(9,9,13,.94); border-bottom:1px solid #392027; backdrop-filter:blur(18px); }
.sidebar { background:linear-gradient(180deg,#141419,#0e0e13); }
.sidebar a.active { background:linear-gradient(100deg,#421019,#231318); color:#ff666e; }
.card { border-color:var(--line); box-shadow:0 12px 32px -22px #000; }
input:focus,textarea:focus,select:focus { border-color:var(--brand); box-shadow:0 0 0 3px #f51b2b20; }
.btn,.card { -webkit-tap-highlight-color:transparent; }
@media(max-width:760px) {
 .nav .container { height:auto; flex-wrap:wrap; gap:12px; padding-block:12px; }
 .nav .container>.logo { flex:1 0 100%; }
 .nav-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; gap:8px; }
 .nav-actions .btn { min-width:0; width:100%; white-space:normal; height:auto; min-height:42px; padding:8px; font-size:12px; }
 .row { min-width:0; } .container { padding-inline:16px; }
}
@media(max-width:380px) { .nav-actions { grid-template-columns:1fr 1fr; } .nav-actions>.btn:first-child { grid-column:1/-1; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; } }
/* Composição da vitrine TriFood */
.trifood-home .hero { position:relative; overflow:hidden; padding-block:80px 64px; background:radial-gradient(ellipse at 85% 35%,#69091766,transparent 55%),linear-gradient(135deg,#17090d,#09090d 65%); border-bottom:1px solid #a5132540; }
.trifood-home .hero::after { content:""; position:absolute; bottom:-50px; left:-10%; width:120%; height:85px; border-top:2px solid #ed1525; border-radius:50%; box-shadow:0 -8px 30px #ed152530; pointer-events:none; }
.trifood-home .hero h1 { font-weight:800; letter-spacing:-.055em; }
.trifood-home .eyebrow { border-color:#ff354238; background:#ffffff08; }
.trifood-home .preview-phone { border-color:#ed1525; box-shadow:0 0 0 5px #ed152515,0 35px 80px #0009; }
.trifood-home .preview-store-head { background:linear-gradient(120deg,#d90722,#ff3638); }
.food-discovery { padding-block:44px 32px; }
.food-discovery-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.food-discovery-heading h2 { margin:8px 0 0; }
.food-category-grid { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:12px; }
.food-category-grid a { display:flex; min-width:0; align-items:center; flex-direction:column; gap:12px; padding:24px 8px 18px; color:var(--ink); text-decoration:none; background:linear-gradient(155deg,#34151b,#141419 70%); border:1px solid #62313b; border-radius:18px; transition:transform .2s,border-color .2s,box-shadow .2s; }
.food-category-grid a span { font-size:38px; line-height:1.2; filter:drop-shadow(0 6px 8px #0008); }
.food-category-grid a:hover { transform:translateY(-5px); border-color:#ff3746; box-shadow:0 12px 28px #ed152520; }
.food-category-grid a:focus-visible { outline:3px solid #ff6570; outline-offset:3px; }
@media(max-width:1000px) { .food-category-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:600px) { .trifood-home .hero { padding-block:38px 40px; } .food-discovery-heading { align-items:flex-start; flex-direction:column; } .food-category-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; } .food-category-grid a { padding:16px 4px; font-size:11px; border-radius:13px; } .food-category-grid a span { font-size:29px; } }
/* Painéis — acabamento neon */
.app .main { background:radial-gradient(ellipse at 100% 0,#7b091818,transparent 48%),#0b0b10; }
.app .topbar { padding-bottom:20px; border-bottom:1px solid #39232a; }
.app .topbar h1 { letter-spacing:-.035em; }
.app .sidebar { border-color:#35232a; }
.side-nav button { transition:background .18s,color .18s,box-shadow .18s; }
.side-nav button.active { background:linear-gradient(105deg,#bd091e,#73101d); color:#fff; box-shadow:0 5px 18px #e5091926,inset 0 1px #ffffff18; }
.side-nav button:focus-visible { outline:2px solid #ff6570; outline-offset:2px; }
.app .card { border:1px solid #343039; background:linear-gradient(145deg,#202025,#141419 80%); border-radius:18px; }
.app .stat { position:relative; overflow:hidden; min-width:0; }
.app .stat::before { content:""; position:absolute; left:20px; top:0; width:38px; height:3px; background:var(--grad); border-radius:0 0 4px 4px; }
.app .stat .k { color:#b9b4bf; }
.app .stat .v { font-size:clamp(23px,2.4vw,32px); letter-spacing:-.045em; overflow-wrap:anywhere; }
.app .side-store { background:linear-gradient(120deg,#28141b,#19191f); border:1px solid #49303a; }
.app .table-wrap { border:1px solid #302c35; border-radius:14px; }
.app table { width:100%; }
.app th { background:#202027; color:#bfb9c7; }
.app td { border-color:#302c35; }
.app tbody tr:hover { background:#e5091908; }
.app .store-link-box { background:#202027; border:1px solid #39303a; }
.app input,.app textarea,.app select { background-color:#111116; border-color:#39343f; }
@media(max-width:900px) {
 .app .sidebar { background:#111116f5; backdrop-filter:blur(16px); scrollbar-width:thin; scrollbar-color:#a81c2c #18181e; }
 .app .sidebar .logo { flex-shrink:0; }
 .app .side-nav { flex-shrink:0; padding:3px; }
 .app .main { padding:22px 14px 40px; }
 .app .topbar { gap:10px; margin-bottom:20px; }
 .app .topbar h1 { font-size:23px; }
}
@media(max-width:480px) {
 .app .stat { padding:17px 14px; }
 .app .card { border-radius:14px; }
 .app .topbar .btn { max-width:100%; white-space:normal; height:auto; min-height:36px; }
}
/* Vitrine de restaurantes */
.marketplace-intro { padding:28px; border:1px solid #6b263640; border-radius:24px; background:radial-gradient(ellipse at 100% 0,#a30c2430,transparent 65%),#111116; }
.restaurant-grid { align-items:stretch; gap:22px; }
.restaurant-card { border:1px solid #42303a; border-radius:22px; background:linear-gradient(145deg,#1e1b23,#121217); }
.restaurant-brand { min-height:190px; }
.restaurant-brand-logo { width:82px; height:82px; border-radius:22px; background:#fff; }
.restaurant-logo-img { object-fit:contain; background:#fff; }
.restaurant-info { padding:22px; }
.restaurant-title { flex-wrap:wrap; }
.restaurant-title h2 { font-size:20px; overflow-wrap:anywhere; }
.restaurant-meta { line-height:1.7; color:#a9a3b2; }
.restaurant-cta { padding:13px 15px; border:1px solid #8a2033; background:#42131f; border-radius:12px; color:#ff7781; margin-top:20px; }
.restaurant-card:hover .restaurant-cta { background:var(--grad); color:#fff; }
.restaurant-card:focus-within { outline:2px solid #ff6570; outline-offset:3px; }
.restaurant-state.is-open { background:#102c1c; color:#83eba7; border:1px solid #3d9d5f; }
@media(max-width:600px) { .marketplace-intro { padding:22px 18px; } .restaurant-brand { min-height:175px; height:175px; } .restaurant-info { padding:18px; } }
/* Cardápio público — acabamento da loja */
.store-body .s-hero { border:1px solid color-mix(in srgb,var(--store) 55%,#444); min-height:230px; display:flex; align-items:center; }
.store-body .s-hero-logo { background:#fff; object-fit:contain; }
.store-body .s-logo img { object-fit:contain; background:#fff; }
.store-body .s-hero h1 { letter-spacing:-.045em; }
.store-body .s-hero .tag { backdrop-filter:blur(8px); }
.store-body .chips { gap:9px; padding-block:12px; border-bottom:1px solid var(--line); }
.store-body .chip { min-height:42px; transition:background .18s,box-shadow .18s; }
.store-body .chip.active { box-shadow:0 4px 18px color-mix(in srgb,var(--store) 25%,transparent); }
.store-body .cat-title { display:flex; align-items:center; gap:10px; margin-top:32px; }
.store-body .cat-title::after { content:''; flex:1; height:1px; background:var(--line); }
.store-body .item { border-radius:18px; padding:18px; border:1px solid #35313c; background:linear-gradient(140deg,#1c1a22,#131318); }
.store-body .item:hover:not(.off) { border-color:color-mix(in srgb,var(--store) 65%,#444); }
.store-body .item h4 { line-height:1.4; overflow-wrap:anywhere; }
.store-body .item .img { width:104px; height:104px; border-radius:15px; overflow:hidden; }
.store-body .item .add { width:42px; height:42px; border-radius:12px; flex-shrink:0; }
.store-body .qty button { width:42px; height:42px; }
.store-body .cart-line { gap:12px; padding-block:16px; }
.store-body .cart-line .nm b { overflow-wrap:anywhere; }
.store-body .totals { gap:10px; }
.store-body .totals .grand { padding-top:14px; }
@media(max-width:600px) { .store-body .s-hero { min-height:210px; margin-top:16px; border-radius:20px; } .store-body .item { padding:15px; gap:12px; } .store-body .item .img { width:88px; height:88px; } .store-body .s-hero-title { align-items:flex-start; } }
@media(max-width:360px) { .store-body .item .img { width:70px; height:78px; } .store-body .item { gap:9px; padding:12px; } }
/* Acesso e cadastro TriFood */
.auth { background:#0b0b10; }
.auth-aside { background:radial-gradient(ellipse at 15% 30%,#9b0c2a60,transparent 70%),linear-gradient(145deg,#240c16,#0b0b10); border-right:1px solid #532032; }
.auth-aside::before { background:radial-gradient(closest-side,#f51b2b30,transparent); }
.auth-aside h2 { font-size:clamp(32px,3.8vw,52px); letter-spacing:-.05em; max-width:560px; }
.auth-aside p { max-width:480px; line-height:1.7; }
.auth-main { background:radial-gradient(ellipse at 100% 0,#6d0b211c,transparent 65%),#0b0b10; }
.auth-card { max-width:500px; padding:32px; border:1px solid #40303b; border-radius:24px; background:linear-gradient(145deg,#1c1720,#121217); box-shadow:0 24px 80px #0004; }
.auth-card h1 { letter-spacing:-.045em; }
.auth-card .input { min-height:48px; background:#101015; border-color:#3f3542; }
.auth-card .field>span { color:#cbc3d2; }
.auth-card .btn-primary { min-height:50px; }
.owner-google { border-color:#633042; background:linear-gradient(120deg,#35141f,#1b1720); }
.owner-google-head { gap:10px; flex-wrap:wrap; }
.google-button-shell { max-width:100%; overflow:hidden; }
@media(max-width:600px) { .auth-main { padding:24px 12px calc(90px + env(safe-area-inset-bottom)); } .auth-card { padding:24px 18px; border-radius:20px; } .auth-card h1 { font-size:28px; } }
@media(max-width:360px) { .auth-card { padding:20px 14px; } .owner-google-tag { display:none; } }
/* Ajustes gerais para diferentes tamanhos de tela */
.field,.input-group,.panel-grid>* { min-width:0; }
.input,select.input,textarea.input { max-width:100%; }
.modal { max-height:calc(100dvh - 32px); overscroll-behavior:contain; scrollbar-width:thin; }
.modal-head { align-items:flex-start; }
.modal-head h3 { min-width:0; overflow-wrap:anywhere; line-height:1.4; }
.modal-head .icon-btn { flex-shrink:0; }
.modal-body { overflow-wrap:anywhere; }
.modal .row.wrap>.btn { max-width:100%; white-space:normal; height:auto; min-height:44px; padding-block:10px; }
.table-wrap { overscroll-behavior-x:contain; }
:where(a,button,input,select,textarea):focus-visible { outline:2px solid #ff7788; outline-offset:3px; }
@media(max-width:600px) {
 .input,select.input,textarea.input,.customer-auth .field input { font-size:16px; }
 .modal { max-height:calc(100dvh - 20px); border-radius:18px; }
 .modal-head { padding:18px 16px 0; }
 .modal-body { padding:16px; }
 .modal .btn-block { white-space:normal; height:auto; min-height:46px; padding-block:12px; }
 .store-link-box { flex-wrap:wrap; overflow-wrap:anywhere; }
 .store-link-box .btn { flex-shrink:0; }
}
@media(prefers-reduced-motion:reduce) { .food-category-grid a,.side-nav button { transition:none; } .food-category-grid a:hover { transform:none; } }
.food-hero-photo { margin:0; width:100%; overflow:hidden; border-radius:28px; box-shadow:0 25px 70px #0005; }
.food-hero-photo img { width:100%; height:auto; object-fit:cover; aspect-ratio:3/2; }
.demo-showcase { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; padding-block:55px; }
.demo-showcase h2 { font-size:clamp(28px,3vw,40px); margin-top:12px; }
@media(max-width:960px) { .demo-showcase { grid-template-columns:1fr; gap:20px; } .food-hero-photo { max-width:650px; margin-inline:auto; } }
@media(max-width:600px) { .demo-showcase { padding-block:30px; } .food-hero-photo { border-radius:20px; } }
