﻿/* =========================================================================
   Vitrio · Painel do comerciante, administração central, autenticação e site
   ========================================================================= */

/* -------------------------------------------------------------- carregamento inicial (circuito Blazor) */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 1; }
.boot .boot-mark { display: flex; flex-direction: column; align-items: center; gap: 1rem; color: var(--muted); font-size: .86rem; }
.boot .boot-mark svg { width: 44px; height: 44px; }
body:has(.app) .boot { display: none; }

/* -------------------------------------------------------------- estrutura */
.app { min-height: 100dvh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); padding: 1rem .75rem; gap: .25rem; overflow-y: auto; }
.side-brand { display: flex; align-items: center; gap: .65rem; padding: .35rem .6rem 1rem; }
.side-brand .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.side-brand .mark svg { width: 20px; height: 20px; }
.side-brand .nm { font-weight: 800; letter-spacing: -0.02em; font-size: 1.08rem; line-height: 1.1; }
.side-brand .sub { font-size: .74rem; color: var(--muted); }
.side-store { display: flex; align-items: center; gap: .6rem; padding: .6rem; margin: 0 0 .6rem; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); }
.side-store img, .side-store .avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.side-store .nm { font-weight: 650; font-size: .88rem; line-height: 1.2; }
.side-store a { font-size: .76rem; color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: .2rem; }
.side-group { font-size: .7rem; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; padding: .9rem .7rem .35rem; }
.side-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: var(--r-sm); font-size: .9rem; font-weight: 550; color: var(--ink-2); transition: background .12s, color .12s; }
.side-link .i { color: var(--muted); width: 18px; height: 18px; }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 650; }
.side-link.active .i { color: var(--brand); }
.side-link .count { margin-left: auto; font-size: .72rem; font-weight: 700; background: var(--brand); color: #fff; border-radius: 999px; padding: 0 .45rem; height: 18px; display: inline-grid; place-items: center; }
.side-foot { margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: .6rem; padding-left: .4rem; }
.side-foot .who { min-width: 0; flex: 1; }
.side-foot .who .nm { font-size: .86rem; font-weight: 650; }
.side-foot .who .role { font-size: .74rem; color: var(--muted); }
.side-foot form { margin: 0; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 60px; display: none; align-items: center; gap: .75rem; padding: 0 1rem; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .nm { font-weight: 750; font-size: 1rem; letter-spacing: -0.01em; }
.content { width: 100%; max-width: 1280px; margin: 0 auto; padding: 1.75rem 2rem 3rem; }
.content.narrow { max-width: 920px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h1 { font-size: 1.5rem; }
.page-head p { color: var(--muted); margin-top: .25rem; font-size: .92rem; }
.page-head .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .86rem; font-weight: 550; margin-bottom: .6rem; }
.back:hover { color: var(--ink); }

/* barra inferior (mobile) */
.tabbar { display: none; }
@media (max-width: 960px) {
    .app { grid-template-columns: minmax(0, 1fr); }
    .side { display: none; }
    .topbar { display: flex; }
    .content { padding: 1.15rem 1rem calc(88px + env(safe-area-inset-bottom)); }
    .page-head { margin-bottom: 1.1rem; }
    .page-head h1 { font-size: 1.3rem; }
    .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); }
    .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .68rem; font-weight: 600; color: var(--muted); padding: .35rem 0; border: 0; background: transparent; border-radius: var(--r-sm); }
    .tabbar .i { width: 22px; height: 22px; }
    .tabbar .active { color: var(--brand); }
    .side.open { display: flex; position: fixed; inset: 0 auto 0 0; z-index: 70; width: min(300px, 86vw); box-shadow: var(--shadow-lg); animation: slide-in .22s var(--ease); }
    .side-scrim { position: fixed; inset: 0; z-index: 65; background: rgba(15, 22, 19, .4); animation: fade .15s; }
}
@keyframes slide-in { from { transform: translateX(-30px); opacity: .5; } }

/* administração central: identidade escura na lateral */
.app.admin .side { background: #10201A; border-right-color: #10201A; color: #DDE6E1; }
.app.admin .side-brand .mark { background: #fff; color: #10201A; }
.app.admin .side-brand .sub, .app.admin .side-group { color: #7F948A; }
.app.admin .side-link { color: #C3D0C9; }
.app.admin .side-link .i { color: #7F948A; }
.app.admin .side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.app.admin .side-link.active { background: rgba(255, 255, 255, .1); color: #fff; }
.app.admin .side-link.active .i { color: #7BE0AE; }
.app.admin .side-foot { border-top-color: rgba(255, 255, 255, .08); }
.app.admin .side-foot .who .role { color: #7F948A; }
.app.admin .side-foot .btn.ghost { color: #C3D0C9; }
.app.admin .side-foot .btn.ghost:hover { background: rgba(255, 255, 255, .08); }

/* -------------------------------------------------------------- indicadores */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.stat .lbl { font-size: .8rem; color: var(--muted); font-weight: 550; display: flex; align-items: center; gap: .45rem; }
.stat .lbl .i { color: var(--brand); width: 16px; height: 16px; }
.stat .val { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.stat .val.sm { font-size: 1.2rem; }
.stat .foot { font-size: .78rem; color: var(--muted); }
a.stat:hover { border-color: var(--brand-line); box-shadow: var(--shadow-sm); }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .stats { gap: .65rem; } .stat { padding: .9rem; } .stat .val { font-size: 1.35rem; } }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding: 0 .25rem; }
.chart .bar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; justify-content: flex-end; }
.chart .bar .track { flex: 1; width: 100%; min-height: 0; display: flex; align-items: flex-end; justify-content: center; }
.chart .bar span { width: 100%; max-width: 28px; border-radius: 5px 5px 0 0; background: var(--brand); opacity: .85; transition: opacity .15s; }
.chart .bar:hover span { opacity: 1; }
.chart .bar small { height: .9rem; line-height: .9rem; font-size: .66rem; color: var(--faint); white-space: nowrap; }
.list-rows { display: flex; flex-direction: column; }
.list-rows > * { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem; border-bottom: 1px solid var(--line-2); min-width: 0; }
.list-rows > *:last-child { border-bottom: 0; }
@media (max-width: 720px) { .list-rows > * { flex-wrap: wrap; } .list-rows .select { width: 100%; } }
.list-rows img, .list-rows .ph { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.step-ic { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.step-ic.done { background: var(--brand); border-color: var(--brand); color: #fff; }
a.stat { color: inherit; transition: border-color .15s, box-shadow .15s; }
a.stat:hover { border-color: var(--brand-line); box-shadow: var(--shadow-sm); }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.quick a { display: flex; flex-direction: column; gap: .55rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); font-weight: 600; font-size: .9rem; transition: border-color .15s, box-shadow .15s; }
.quick a:hover { border-color: var(--brand-line); box-shadow: var(--shadow-sm); }
.quick a .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.quick a small { font-weight: 500; color: var(--muted); font-size: .78rem; }
@media (max-width: 860px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.share-box { display: flex; align-items: center; gap: .5rem; padding: .45rem .45rem .45rem .9rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); font-size: .88rem; }
.share-box code { font-family: inherit; font-weight: 600; color: var(--ink-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* -------------------------------------------------------------- barra de ferramentas e listas */
.toolbar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line-2); }
.content > .toolbar { padding: 0 0 .9rem; border-bottom: 0; }
.toolbar .input-wrap { flex: 1 1 260px; }
.toolbar .select { width: auto; min-width: 160px; }
@media (max-width: 640px) { .toolbar .select { flex: 1 1 140px; min-width: 0; } }
.selection-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .65rem 1.1rem; background: var(--ink); color: #fff; font-size: .88rem; font-weight: 600; }
.selection-bar .btn { --btn-bg: rgba(255,255,255,.1); --btn-ink: #fff; --btn-line: transparent; }
.selection-bar .btn:hover { background: rgba(255,255,255,.18); }
@media (max-width: 960px) { .selection-bar { top: 60px; } }

/* linhas de produto no mobile (substituem a tabela) */
.prow { display: grid; grid-template-columns: auto 52px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--line-2); }
.prow:last-child { border-bottom: 0; }
.prow img, .prow .ph { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; }
.prow .nm { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.prow .sub { font-size: .78rem; color: var(--muted); }
.prow .pr { text-align: right; font-weight: 750; white-space: nowrap; font-size: .95rem; }
.prow .pr small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }
.price-cell { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.price-cell strong { font-weight: 750; }
.price-cell small { font-size: .72rem; }
.deal-text { color: var(--deal); }
.badges { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.link-plain { color: var(--ink); }
.link-plain:hover { color: var(--brand); }
.mt-xs { margin-top: .3rem; }
.only-mobile { display: none; }
@media (max-width: 860px) { .only-desktop { display: none !important; } .only-mobile { display: block; } }

/* -------------------------------------------------------------- formulário de produto */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.form-layout .aside { position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 1100px) { .form-layout { grid-template-columns: minmax(0, 1fr); } .form-layout .aside { position: static; } }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.photo { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .main-tag { position: absolute; left: .35rem; top: .35rem; }
.photo .acts { position: absolute; right: .3rem; bottom: .3rem; display: flex; gap: .25rem; }
.photo .acts button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(255,255,255,.94); display: grid; place-items: center; color: var(--ink-2); box-shadow: var(--shadow-xs); }
.photo .acts button:hover { color: var(--danger); }
.upload { aspect-ratio: 1; border-radius: var(--r); border: 1.5px dashed #CCD2C9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; color: var(--muted); font-size: .76rem; font-weight: 600; text-align: center; cursor: pointer; position: relative; transition: border-color .15s, background .15s; }
.upload:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-softer); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.price-preview { padding: 1rem; border-radius: var(--r); background: var(--surface-2); }
.suggest { display: flex; gap: .75rem; align-items: center; padding: .75rem; border: 1px solid var(--brand-line); background: var(--brand-softer); border-radius: var(--r); }
.suggest img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; }
.catalog-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.catalog-pick button { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); overflow: hidden; padding: 0; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.catalog-pick button:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.catalog-pick img, .catalog-pick .ph { width: 100%; aspect-ratio: 1; object-fit: cover; }
.catalog-pick span { padding: .5rem .6rem; font-size: .82rem; font-weight: 600; line-height: 1.3; }
.catalog-pick small { padding: 0 .6rem .55rem; font-size: .72rem; color: var(--muted); }

/* leitor de código de barras */
.scanner { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; left: 12%; right: 12%; top: 32%; bottom: 32%; border: 2px solid rgba(255,255,255,.9); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.scanner .frame::after { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: #7BE0AE; box-shadow: 0 0 12px #7BE0AE; animation: scanline 1.6s ease-in-out infinite alternate; }
@keyframes scanline { from { transform: translateY(-28px); } to { transform: translateY(28px); } }

/* -------------------------------------------------------------- preços em lote */
.bulk-table td.new-price { width: 170px; }
.adjust-bar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .75rem 1.1rem; background: var(--brand-softer); border-bottom: 1px solid var(--brand-line); font-size: .88rem; }
.adjust-bar .select.sm-select { width: auto; min-width: 0; min-height: 36px; padding-top: .3rem; padding-bottom: .3rem; }
.adjust-bar .adj-amount { width: 110px; }
.adjust-bar .adj-amount .input { min-height: 36px; }
@media (max-width: 640px) { .adjust-bar .adj-amount { flex: 1 1 90px; } }
.bulk-table .input.money { min-height: 36px; padding: .3rem .6rem; }
.bulk-table tr.changed td { background: color-mix(in srgb, var(--accent) 9%, white); }
.delta { font-size: .78rem; font-weight: 700; }
.delta.up { color: var(--danger); }
.delta.down { color: var(--ok); }
.bulk-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line-2); align-items: center; }
.bulk-card.changed { background: color-mix(in srgb, var(--accent) 9%, white); }
.bulk-card img, .bulk-card .ph { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: cover; }
.bulk-card .edit { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem; }
.bulk-card .edit .input-wrap { flex: 1; }
.sticky-actions { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20,32,27,.06); flex-wrap: wrap; }
@media (max-width: 960px) { .sticky-actions { bottom: calc(64px + env(safe-area-inset-bottom)); } }
@media (min-width: 1101px) { .form-layout .aside .sticky-actions { position: static; padding: 0; background: none; border: 0; box-shadow: none; } }
@media (max-width: 1100px) { .form-layout .aside .sticky-actions { margin: 0 -1rem; border-radius: 0; } }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; border-color: color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; }
/* minha loja */
.brand-preview { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .9rem 1rem; border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface-2); }
.brand-preview .bp-head { font-weight: 750; color: var(--p); letter-spacing: -0.01em; margin-right: auto; }
.brand-preview .bp-btn { background: var(--p); color: #fff; border-radius: 999px; padding: .4rem .9rem; font-size: .82rem; font-weight: 650; }
.brand-preview .bp-tag { background: var(--a); color: #1B1B18; border-radius: 6px; padding: .2rem .5rem; font-size: .78rem; font-weight: 800; }
.brand-img { display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.brand-img.logo { width: 120px; height: 120px; }
.brand-img.logo img, .brand-img.logo .ph { width: 100%; height: 100%; object-fit: contain; }
.brand-img.banner { aspect-ratio: 16 / 5; width: 100%; }
.brand-img.banner img, .brand-img.banner .ph { width: 100%; height: 100%; object-fit: cover; }

.mb-lg { margin-bottom: 1.75rem; }

/* equipe */
.team-row { display: flex; align-items: center; gap: .8rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.team-row:last-child { border-bottom: 0; }
.team-row.off .avatar { background: var(--surface-2); color: var(--faint); }
.team-row .avatar { width: 38px; height: 38px; }
.team-row .strong .badge { margin-left: .4rem; vertical-align: 1px; }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.roles-grid p { margin-top: .25rem; line-height: 1.45; }
@media (max-width: 560px) { .team-row .select { flex: 1; } }

/* assinatura */
.sub-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line-2); }
.sub-plan { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; margin: .1rem 0 .2rem; }
.sub-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.sub-facts > div { display: flex; flex-direction: column; gap: .15rem; }
.meter { display: flex; flex-direction: column; gap: .4rem; }
.meter .bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.meter .bar i.hot { background: var(--warn); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .55rem 1rem; font-size: .9rem; }
.feature-list li { display: flex; align-items: center; gap: .5rem; }
.feature-list li .i { color: var(--brand); }
.feature-list li.off { color: var(--faint); }
.feature-list li.off .i { color: var(--faint); }

/* administração */
.table tr.clickable { cursor: pointer; }
.list-rows > .list-btn { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line-2); font: inherit; color: inherit; cursor: pointer; text-align: left; }
.list-rows > .list-btn:hover, .list-rows > a:hover { background: var(--brand-softer); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .5rem 1rem; font-size: .88rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 1.25rem; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; overflow: hidden; }
.plan-card.off { opacity: .72; }
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.3rem 0; }
.plan-top h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.plan-card .plan-price { padding: .45rem 1.3rem 0; font-size: 2rem; line-height: 1.1; }
.plan-card .plan-year { display: block; padding: .2rem 1.3rem 0; }
.plan-limits { list-style: none; margin: 1rem 1.3rem; padding: .9rem 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; background: var(--surface-2); border-radius: var(--r); }
.plan-limits li { display: flex; align-items: flex-start; gap: .45rem; font-size: .9rem; }
.plan-features { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1.3rem 1rem; }
.plan-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding: .85rem 1.3rem; border-top: 1px solid var(--line-2); }
.plan-price { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--brand-strong); }
@media (max-width: 560px) { .plan-limits { grid-template-columns: 1fr; } .plan-card .plan-price { font-size: 1.6rem; } }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .55rem 1rem; }
.catalog-photo { display: flex; gap: 1rem; align-items: flex-start; }
.row.end { justify-content: flex-end; }
@media (max-width: 560px) { .catalog-photo { flex-direction: column; } }

.warn-text { color: var(--warn, #9A6700); }
.conflicts { margin: .4rem 0 0 1rem; font-size: .86rem; display: flex; flex-direction: column; gap: .2rem; list-style: disc; }

/* menu de ações */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg, 0 12px 32px rgba(20,32,27,.14)); padding: .3rem; display: flex; flex-direction: column; }
.menu-list button, .menu-list a { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border: 0; background: none; border-radius: 7px; font-size: .88rem; font-weight: 550; color: var(--ink-2); text-align: left; cursor: pointer; }
.menu-list button:hover, .menu-list a:hover { background: var(--surface-2); }
.menu-list .danger { color: var(--danger); }

/* categorias */
.content.narrow { max-width: 920px; }
.cat-row { border-bottom: 1px solid var(--line-2); padding-bottom: .4rem; }
.cat-row:last-child { border-bottom: 0; }
.cat-line { display: flex; align-items: center; gap: .85rem; padding: .7rem 1.1rem; min-width: 0; }
.cat-line.child { padding-left: 5.2rem; padding-top: .45rem; padding-bottom: .45rem; }
.cat-line.off .strong { color: var(--muted); }
.cat-img { position: relative; width: 56px; height: 56px; border-radius: var(--r); overflow: hidden; flex: none; display: grid; place-items: center; background: var(--surface-2); cursor: pointer; }
.cat-img img, .cat-img .ph { width: 100%; height: 100%; object-fit: cover; }
.cat-img input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cat-acts { display: flex; gap: 2px; flex: none; }
.cat-children { border-left: 2px solid var(--line-2); margin-left: 2.9rem; }
.cat-children .cat-line.child { padding-left: 1.2rem; }
.add-sub { margin: 0 0 .2rem 5.2rem; }
@media (max-width: 640px) {
    .cat-line { flex-wrap: wrap; padding: .7rem .9rem; }
    .cat-acts { width: 100%; justify-content: flex-end; }
    .cat-children { margin-left: 1rem; }
    .add-sub { margin-left: 1rem; }
}
.back-link { display: inline-flex; align-items: center; gap: .25rem; font-size: .86rem; font-weight: 600; color: var(--muted); margin-bottom: .6rem; }
.back-link:hover { color: var(--brand); }

/* -------------------------------------------------------------- promoções */
.promo-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line-2); align-items: center; }
.promo-card:last-child { border-bottom: 0; }
.promo-card .nm { font-weight: 650; font-size: .98rem; }
.promo-card .meta { display: flex; gap: .5rem 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: .3rem; align-items: center; }
.promo-card .meta span { display: inline-flex; align-items: center; gap: .3rem; }
.promo-card .thumbs { display: flex; margin-top: .55rem; }
.promo-card .thumbs img, .promo-card .thumbs .ph { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); object-fit: cover; margin-left: -6px; }
.promo-card .thumbs > :first-child { margin-left: 0; }
.promo-card .thumbs .more { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); background: var(--surface-2); font-size: .68rem; font-weight: 700; display: grid; place-items: center; margin-left: -6px; color: var(--muted); }
@media (max-width: 640px) { .promo-card { grid-template-columns: minmax(0, 1fr); gap: .6rem; } }
.item-row { display: grid; grid-template-columns: 28px 44px minmax(0, 1fr) 168px 140px 120px 36px; gap: .75rem; align-items: center; padding: .65rem 1.1rem; border-bottom: 1px solid var(--line-2); }
.item-row input[type="checkbox"] { accent-color: var(--brand); width: 18px; height: 18px; }
.promo-prices { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .2rem; }
.promo-prices strong { display: block; font-size: .92rem; }
.item-row img, .item-row .ph { width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: cover; }
.item-row .result { text-align: right; font-weight: 750; white-space: nowrap; }
.item-row .result small { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; }
.item-row.err { background: var(--danger-bg); }
@media (max-width: 860px) {
    .item-row { grid-template-columns: 28px 44px minmax(0, 1fr) 36px; }
    .item-row .ctrl { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; align-items: center; }
}
@media (min-width: 861px) { .item-row .ctrl { display: contents; } }
.picker-list { max-height: 50dvh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); }
.picker-list label { display: grid; grid-template-columns: 20px 40px minmax(0, 1fr) auto; gap: .65rem; align-items: center; padding: .55rem .8rem; border-bottom: 1px solid var(--line-2); cursor: pointer; font-size: .88rem; }
.picker-list label:hover { background: var(--brand-softer); }
.picker-list label:last-child { border-bottom: 0; }
.picker-list img, .picker-list .ph { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; }
.picker-list input { accent-color: var(--brand); width: 18px; height: 18px; }

/* -------------------------------------------------------------- Central de Divulgação */
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.kinds button { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1rem; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); font-weight: 650; font-size: .9rem; transition: border-color .15s, box-shadow .15s, transform .1s; }
.kinds button:hover { border-color: var(--brand-line); box-shadow: var(--shadow-sm); }
.kinds button:active { transform: translateY(1px); }
.kinds .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.kinds small { font-weight: 500; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.flyer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.flyer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.flyer-card:hover { box-shadow: var(--shadow); border-color: #DDE0D9; }
.flyer-card .thumb { background: var(--surface-2); aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; padding: .9rem; }
.flyer-card .thumb img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(20,32,27,.12)); }
.flyer-card .body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .25rem; }
.flyer-card .nm { font-weight: 650; font-size: .94rem; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 1.25rem; align-items: start; }
.editor .preview-col { position: sticky; top: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.preview { position: relative; background: repeating-conic-gradient(#F1F2EE 0% 25%, #F7F8F5 0% 50%) 50% / 20px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem; display: grid; place-items: center; min-height: 360px; }
.preview img { max-height: 70dvh; width: auto; max-width: 100%; border-radius: 6px; box-shadow: var(--shadow); transition: opacity .2s; }
.preview.loading img { opacity: .55; }
.preview .spinner { position: absolute; top: 1rem; right: 1rem; }
.pages { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .86rem; color: var(--muted); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; }
.tpl { border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); padding: .6rem; text-align: left; display: flex; flex-direction: column; gap: .45rem; transition: border-color .15s; }
.tpl:hover { border-color: #CBD1C8; }
.tpl.on { border-color: var(--brand); box-shadow: var(--focus); }
.tpl .sw { height: 48px; border-radius: 7px; display: flex; overflow: hidden; }
.tpl .sw i { flex: 1; }
.tpl b { font-size: .84rem; font-weight: 650; }
.tpl small { font-size: .72rem; color: var(--muted); line-height: 1.3; }
.fmt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.fmt { border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); padding: .6rem .5rem; display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 600; color: var(--ink-2); }
.fmt .shape { background: var(--surface-2); border: 1.5px solid #CBD1C8; border-radius: 4px; }
.fmt.on { border-color: var(--brand); box-shadow: var(--focus); }
.fmt.on .shape { background: var(--brand-soft); border-color: var(--brand); }
.fl-items { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fl-item { display: grid; grid-template-columns: 22px 40px minmax(0, 1fr) auto auto; gap: .6rem; align-items: center; padding: .5rem .7rem; border-bottom: 1px solid var(--line-2); background: var(--surface); font-size: .88rem; }
.fl-item:last-child { border-bottom: 0; }
.fl-item img, .fl-item .ph { width: 40px; height: 40px; border-radius: 7px; object-fit: cover; }
.fl-item .pos { font-size: .74rem; color: var(--faint); font-weight: 700; text-align: center; }
.fl-item .pr { font-weight: 700; white-space: nowrap; font-size: .86rem; }
.fl-item .pr.deal { color: var(--brand-strong); }
.fl-item .mv { display: flex; gap: 2px; }
.fl-item .page-break { grid-column: 1 / -1; }
.page-sep { padding: .3rem .7rem; font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.message-box { white-space: pre-wrap; font-size: .88rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: .85rem 1rem; line-height: 1.55; max-height: 240px; overflow: auto; }
@media (max-width: 1100px) {
    .editor { grid-template-columns: minmax(0, 1fr); }
    .editor .preview-col { position: static; order: -1; }
    .preview { min-height: 260px; }
    .preview img { max-height: 56dvh; }
}

/* -------------------------------------------------------------- abas e etapas */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; padding: .7rem .95rem; border: 0; background: none; font-weight: 600; font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: .45rem; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs .on { color: var(--brand-strong); border-bottom-color: var(--brand); }
.tabs .count { font-size: .72rem; background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 0 .45rem; font-weight: 700; }
.tabs .on .count { background: var(--brand-soft); color: var(--brand-strong); }

/* -------------------------------------------------------------- autenticação */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--surface); }
.auth-form { display: flex; flex-direction: column; padding: 2rem clamp(1.25rem, 5vw, 4.5rem); }
.auth-form .inner { width: 100%; max-width: 400px; margin: auto; padding: 2rem 0; }
.auth-form h1 { font-size: 1.65rem; }
.auth-form .lead { color: var(--muted); margin-top: .4rem; margin-bottom: 1.75rem; }
.auth-form .foot { font-size: .8rem; color: var(--faint); }
.auth-art { position: relative; background: #0C3B2D; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 3rem; overflow: hidden; isolation: isolate; }
.auth-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(1200px 600px at 110% -10%, rgba(123,224,174,.22), transparent 60%), radial-gradient(800px 500px at -10% 110%, rgba(242,179,61,.16), transparent 60%); }
.auth-art .grid-bg { position: absolute; inset: 0; z-index: -1; opacity: .07; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.auth-art blockquote { margin: 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; max-width: 20ch; }
.auth-art p { margin-top: 1rem; color: #B7CCC2; max-width: 44ch; }
.auth-art .pills { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.auth-art .pills span { font-size: .8rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.logo-row { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo-row .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.logo-row .mark svg { width: 21px; height: 21px; }
.demo-box { margin-top: 1.5rem; padding: .9rem 1rem; border-radius: var(--r); border: 1px dashed var(--brand-line); background: var(--brand-softer); font-size: .82rem; }
.demo-box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { display: none; } }

/* -------------------------------------------------------------- site institucional */
.site-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.site-head .bar { display: flex; align-items: center; gap: 1rem; height: 68px; width: min(1180px, 100%); margin: 0 auto; padding: 0 1.25rem; }
.site-head nav { display: flex; gap: 1.5rem; margin-left: 2rem; font-size: .92rem; font-weight: 550; color: var(--ink-2); }
.site-head nav a:hover { color: var(--ink); }
.site-head .acts { margin-left: auto; display: flex; gap: .5rem; }
@media (max-width: 760px) { .site-head nav { display: none; } .site-head .acts .btn.ghost { display: none; } }
.site { width: min(1180px, 100%); margin: 0 auto; padding: 0 1.25rem; }
.hero { padding: 4.5rem 0 3rem; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 650; color: var(--brand-strong); background: var(--brand-soft); padding: .35rem .75rem; border-radius: 999px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; margin-top: 1.1rem; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 1.1rem; color: var(--ink-2); margin-top: 1.1rem; max-width: 52ch; text-wrap: pretty; }
.hero .cta { display: flex; gap: .65rem; margin-top: 1.75rem; flex-wrap: wrap; }
.hero .proof { display: flex; gap: 1.5rem; margin-top: 2rem; font-size: .86rem; color: var(--muted); flex-wrap: wrap; }
.hero .proof span { display: inline-flex; align-items: center; gap: .4rem; }
.hero .proof .i { color: var(--brand); }
.hero-art { position: relative; }
.hero-art .phone { width: min(320px, 78%); margin-left: auto; border-radius: 34px; border: 8px solid #13211B; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; aspect-ratio: 9 / 18.5; }
.hero-art .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-art .float { position: absolute; left: 0; bottom: 12%; width: min(300px, 62%); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.hero-art .float img { width: 100%; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); padding: 2.5rem 0 2rem; gap: 2rem; } .hero-art .phone { margin: 0 auto; } }
.mini-phone { width: min(360px, 100%); margin-left: auto; border-radius: 36px; border: 9px solid #13211B; background: var(--bg); box-shadow: var(--shadow-lg); padding: 1rem .9rem 1.2rem; }
.mini-head { display: flex; align-items: center; gap: .6rem; padding: .25rem .2rem .9rem; border-bottom: 1px solid var(--line); margin-bottom: .9rem; }
.mini-head img { width: 36px; height: 36px; border-radius: 50%; }
.mini-head b { display: block; font-size: .92rem; }
.mini-head small { font-size: .74rem; color: var(--muted); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.mini-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .78rem; padding-bottom: .6rem; }
.mini-card .mi { position: relative; aspect-ratio: 1; background: var(--surface-2); margin-bottom: .45rem; }
.mini-card .mi img { width: 100%; height: 100%; object-fit: cover; }
.mini-card .mi span { position: absolute; top: .4rem; left: .4rem; background: var(--accent); color: #2A1E00; font-weight: 800; font-size: .7rem; padding: .1rem .35rem; border-radius: 5px; }
.mini-card p { padding: 0 .6rem; font-weight: 600; line-height: 1.25; height: 2.5em; overflow: hidden; }
.mini-card s { display: block; padding: 0 .6rem; color: var(--faint); font-size: .7rem; margin-top: .2rem; }
.mini-card strong { display: block; padding: 0 .6rem; font-size: 1rem; font-weight: 800; color: var(--brand-strong); letter-spacing: -0.02em; }
.mini-card strong small { font-size: .66rem; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) { .mini-phone { margin: 0 auto; } }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 4rem; }
.feature { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 1rem; }
.feature h3 { font-size: 1.02rem; }
.feature p { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
@media (max-width: 900px) { .features { grid-template-columns: minmax(0, 1fr); } }
.band { background: #0C3B2D; color: #fff; border-radius: var(--r-xl); padding: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 4rem; }
.band h2 { font-size: 1.6rem; letter-spacing: -0.02em; }
.band p { color: #B7CCC2; margin-top: .4rem; }
.band .btn { --btn-bg: #fff; --btn-ink: #0C3B2D; --btn-line: #fff; }
.site-foot { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: .85rem; color: var(--muted); }
.site-foot .site { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 1.25rem; }
.legal-doc { max-width: 760px; margin: 2.5rem auto 4rem; }
.legal-doc h1 { font-size: 2rem; margin-bottom: .5rem; }
.legal-doc h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
.legal-doc p, .legal-doc li { color: var(--ink-2); line-height: 1.7; }
.legal-doc ul { padding-left: 1.2rem; }
.status-page { min-height: 80dvh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.status-page .code { font-size: 4.5rem; font-weight: 800; letter-spacing: -0.05em; color: var(--brand); line-height: 1; }
.status-page h1 { margin-top: .75rem; }
.status-page p { color: var(--muted); margin: .5rem auto 1.5rem; max-width: 44ch; }
