/* Estilos compartilhados: painel da loja + painel master */
:root {
  --bg: #f6f3ef;
  --surface: #ffffff;
  --surface-2: #faf8f5;
  --ink: #1b1613;
  --ink-2: #4a413b;
  --muted: #8a7f77;
  --line: #ebe5de;
  --line-2: #ddd5cc;
  --brand: #ff5a1f;
  --brand-2: #ff7a45;
  --brand-soft: #fff0e8;
  --brand-ink: #ffffff;
  --side: #17120f;
  --side-ink: #cfc6bf;
  --side-hover: #241d19;
  --ok: #16a34a; --ok-soft: #e8f7ee;
  --warn: #d97706; --warn-soft: #fff5e1;
  --bad: #dc2626; --bad-soft: #fdecec;
  --info: #2563eb; --info-soft: #eaf1ff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(27, 22, 19, .04), 0 4px 16px rgba(27, 22, 19, .05);
  --shadow-lg: 0 20px 60px rgba(27, 22, 19, .18);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body.master { --brand: #7c3aed; --brand-2: #9461f5; --brand-soft: #f2ebff; --side: #120f1c; --side-hover: #1e1a2c; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 14.5px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 14px; z-index: 40; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; text-decoration: none; }
.side-brand .logo { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; flex: none; overflow: hidden; }
.side-brand .logo img { width: 100%; height: 100%; object-fit: cover; }
.side-brand b { display: block; font-size: 15px; line-height: 1.15; }
.side-brand small { color: var(--side-ink); opacity: .7; font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .45; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 11px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--side-ink); transition: background .15s, color .15s; }
.nav a:hover { background: var(--side-hover); color: #fff; }
.nav a.active { background: var(--brand); color: #fff; }
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a .count { margin-left: auto; background: #fff; color: var(--brand); border-radius: 99px; font-size: 11.5px; font-weight: 800; padding: 1px 8px; min-width: 22px; text-align: center; }
.nav a:not(.active) .count { background: var(--brand); color: #fff; }
.side-foot { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.side-foot .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--side-hover); display: grid; place-items: center; font-weight: 700; color: #fff; }
.side-foot .who { flex: 1; min-width: 0; font-size: 13px; }
.side-foot .who b { display: block; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who span { opacity: .6; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.side-foot button { background: none; border: 0; color: var(--side-ink); cursor: pointer; padding: 6px; border-radius: 8px; }
.side-foot button:hover { background: var(--side-hover); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(246, 243, 239, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 12px 28px; min-height: 64px; }
.topbar h1 { font-size: 19px; font-weight: 800; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .actions { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.view { padding: 24px 28px 60px; max-width: 1280px; width: 100%; }
.banner-alert { margin: 16px 28px 0; padding: 14px 16px; border-radius: 14px; display: flex; gap: 12px; align-items: center; font-weight: 600; }
.banner-alert.bad { background: var(--bad-soft); color: #8f1d1d; }
.banner-alert.warn { background: var(--warn-soft); color: #7a4706; }
.banner-alert.info { background: var(--brand-soft); color: var(--ink); }
.banner-alert .btn { margin-left: auto; }

@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-100%); transition: transform .25s; }
  body.nav-open .side { transform: none; box-shadow: var(--shadow-lg); }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 35; }
  .menu-btn { display: block; }
  .topbar { padding: 10px 16px; }
  .view { padding: 18px 16px 80px; }
  .banner-alert { margin: 12px 16px 0; flex-wrap: wrap; }
  .topbar .actions .btn-label { display: none; }
}

/* ---------- componentes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15.5px; font-weight: 800; flex: 1; }
.card-body { padding: 20px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mt { margin-top: 16px; }
.section-title { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.section-title h2 { font-size: 17px; font-weight: 800; flex: 1; }

.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi .label { color: var(--muted); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi .value { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi .ico { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.kpi .ico svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .kpi { padding: 14px; } .kpi .value { font-size: 20px; } .kpi .ico { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--surface); padding: 9px 15px; border-radius: 11px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; transition: transform .08s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; line-height: 1.2; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #2f2723; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); background: var(--bad-soft); }
.btn-solid-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 13px 20px; font-size: 15.5px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-icon { padding: 7px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: #136c33; border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: #8a5300; border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: #a11c1c; border-color: transparent; }
.badge.info { background: var(--info-soft); color: #1e4fbf; border-color: transparent; }
.badge.brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* formulários */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-weight: 700; font-size: 13px; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 11px; padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; min-height: 42px; }
textarea.input { resize: vertical; min-height: 80px; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.input-group { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: 11px; overflow: hidden; background: var(--surface); }
.input-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.input-group .addon { background: var(--surface-2); padding: 0 12px; display: flex; align-items: center; color: var(--muted); font-weight: 600; border-right: 1px solid var(--line); white-space: nowrap; font-size: 13.5px; }
.input-group .input { border: 0; box-shadow: none !important; border-radius: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 9px; font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 11px 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--brand); }

/* tabelas */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .em { font-size: 40px; margin-bottom: 8px; }
.empty h3 { color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(23, 18, 15, .45); backdrop-filter: blur(3px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 20px; width: 100%; max-width: 560px; box-shadow: var(--shadow-lg); animation: pop .2s cubic-bezier(.2, .9, .3, 1.2); }
.modal.lg { max-width: 760px; }
.modal.sm { max-width: 420px; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 17px; font-weight: 800; flex: 1; }
.modal-head .x { background: var(--surface-2); border: 0; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 18px; }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (max-width: 640px) { .modal-back { padding: 0; align-items: flex-end; } .modal { border-radius: 20px 20px 0 0; max-height: 94vh; overflow-y: auto; } }

/* toast */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow-lg); animation: pop .2s; max-width: 380px; display: flex; gap: 10px; align-items: center; }
.toast.bad { background: var(--bad); }
.toast.ok::before { content: '✓'; background: var(--ok); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; flex: none; }
@media (max-width: 640px) { .toasts { left: 16px; right: 16px; bottom: 16px; align-items: stretch; } }

/* upload de imagem */
.uploader { border: 2px dashed var(--line-2); border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; cursor: pointer; position: relative; overflow: hidden; color: var(--muted); text-align: center; font-weight: 600; font-size: 13px; transition: border-color .15s; }
.uploader:hover { border-color: var(--brand); color: var(--brand); }
.uploader img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uploader .rm { position: absolute; top: 6px; right: 6px; z-index: 2; background: rgba(0, 0, 0, .6); color: #fff; border: 0; border-radius: 8px; width: 28px; height: 28px; cursor: pointer; }
.uploader input { display: none; }
.uploader svg { width: 30px; height: 30px; margin: 0 auto 6px; display: block; }
.uploader > div { padding: 8px; }

.thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--surface-2); flex: none; display: grid; place-items: center; color: var(--muted); font-size: 22px; }

.spinner { width: 22px; height: 22px; border: 3px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
.loading { display: grid; place-items: center; padding: 60px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* gráfico de barras simples */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars .bar .fill { width: 100%; max-width: 46px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); border-radius: 8px 8px 4px 4px; min-height: 3px; position: relative; transition: height .4s; }
.bars .bar .fill:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 4px 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; z-index: 2; }
.bars .bar small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.bars.dense { gap: 3px; }
.bars.dense .bar small { display: none; }

.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.progress > div { height: 100%; background: var(--brand); border-radius: 99px; }

.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }

.check-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; text-decoration: none; }
.check-item .ck { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; font-size: 13px; color: #fff; }
.check-item.done .ck { background: var(--ok); border-color: var(--ok); }
.check-item.done span { color: var(--muted); text-decoration: line-through; }

.upsell { text-align: center; padding: 48px 24px; }
.upsell .em { font-size: 44px; }
.upsell h3 { font-size: 19px; margin: 8px 0 6px; }
.upsell p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }

.lock { max-width: 520px; margin: 40px auto; text-align: center; }
.lock .em { font-size: 54px; }
.lock h2 { margin: 10px 0 8px; }
.lock p { color: var(--muted); }

/* =====================================================================
   Visual limpo (mesmo estilo do cardápio): branco, cinza claro, cantos de 8px,
   cor da marca só nos destaques. Este bloco sobrescreve o estilo anterior.
   ===================================================================== */
:root {
  --bg: #f7f7f7; --surface: #fff; --surface-2: #fafafa;
  --ink: #3e3e3e; --ink-2: #3e3e3e; --title: #1f1f1f; --muted: #717171;
  --line: #ececec; --line-2: #dcdcdc;
  --brand: #ea1d2c; --brand-2: #d41a28; --brand-soft: #fdecee; --brand-ink: #fff;
  --side: #fff; --side-ink: #717171; --side-hover: #f5f5f5;
  --ok: #50a773; --ok-soft: #eaf5ee; --warn: #c77700; --warn-soft: #fff6e5; --bad: #d92d20; --bad-soft: #fdecea; --info: #2f6fed; --info-soft: #ecf2fe;
  --radius: 8px;
  --shadow: none;
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .16);
}
body.master { --brand: #5b3df5; --brand-2: #4a2fe0; --brand-soft: #efecfe; --side: #fff; --side-hover: #f5f5f5; }
body { font-size: 14.5px; }
h1, h2, h3, h4 { color: var(--title); letter-spacing: -.01em; }
svg { flex: none; }

/* menu lateral claro */
.side { border-right: 1px solid var(--line); padding: 16px 12px; }
.side-brand { color: var(--title); padding: 4px 8px 16px; }
.side-brand .logo { border-radius: 50%; width: 40px; height: 40px; font-weight: 700; font-size: 16px; }
.side-brand b { font-weight: 600; color: var(--title); }
.side-brand small { color: var(--muted); opacity: 1; }
.nav-label { opacity: 1; color: #a6a6a6; font-weight: 600; padding: 16px 12px 6px; }
.nav a { font-weight: 500; border-radius: 8px; padding: 10px 12px; color: var(--ink); }
.nav a svg { color: var(--muted); stroke-width: 1.8; }
.nav a:hover { background: var(--side-hover); color: var(--title); }
.nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav a.active svg { color: var(--brand); }
.nav a .count, .nav a:not(.active) .count { background: var(--brand); color: #fff; font-weight: 700; }
.side-foot { border-top: 1px solid var(--line); }
.side-foot .avatar { background: var(--surface-2); color: var(--title); border: 1px solid var(--line); font-weight: 600; }
.side-foot .who b { color: var(--title); font-weight: 600; }
.side-foot .who span { opacity: 1; color: var(--muted); }
.side-foot button { color: var(--muted); }
.side-foot button:hover { background: var(--side-hover); color: var(--title); }

/* topo */
.topbar { background: rgba(255, 255, 255, .92); min-height: 60px; }
.topbar h1 { font-size: 18px; font-weight: 600; }
.menu-btn svg, .menu-btn { color: var(--title); }
.banner-alert { border-radius: 8px; font-weight: 500; font-size: 14px; padding: 12px 14px; }
.banner-alert svg { width: 18px; height: 18px; }
.support-bar { display: flex; align-items: center; gap: 8px; padding: 7px 28px; background: #1f1f1f; color: #e6e6e6; font-size: 13px; }
.support-bar svg { width: 15px; height: 15px; }
.support-bar span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.support-bar b { color: #fff; font-weight: 600; }
.support-bar button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #4a4a4a; background: none; color: #fff; border-radius: 6px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.support-bar button:hover { background: #333; }
@media (max-width: 920px) { .support-bar { padding: 7px 16px; } }

/* cartões e números */
.card { box-shadow: none; }
.card-head { padding: 14px 18px; }
.card-head h3 { font-size: 15px; font-weight: 600; }
.card-body, .card-pad { padding: 18px; }
.section-title h2 { font-size: 18px; font-weight: 600; }
.kpi { padding: 16px 18px; }
.kpi .label { font-weight: 500; font-size: 13px; }
.kpi .value { font-size: 24px; font-weight: 700; color: var(--title); letter-spacing: -.02em; }
.kpi .ico { border-radius: 8px; width: 34px; height: 34px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.kpi .ico svg { width: 17px; height: 17px; }

/* botões e campos */
.btn { border-radius: 8px; font-weight: 600; padding: 9px 14px; border-color: var(--line-2); color: var(--title); }
.btn:hover { border-color: #b5b5b5; background: var(--surface-2); }
.btn-primary { box-shadow: none; color: #fff; }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-dark { background: var(--title); border-color: var(--title); color: #fff; }
.btn-dark:hover { background: #333; border-color: #333; }
.btn-ok, .btn-solid-danger { color: #fff; }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { border-color: transparent; background: var(--side-hover); }
.btn-danger { color: var(--bad); }
.btn-sm { border-radius: 6px; }
.btn-lg { border-radius: 8px; font-size: 15px; padding: 12px 18px; }
.badge { border-radius: 4px; font-weight: 600; font-size: 11.5px; padding: 2px 7px; }
.field > label, .label { font-weight: 600; color: var(--title); }
.input, select.input, textarea.input { border-radius: 8px; border-width: 1px; }
.input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.input-group { border-radius: 8px; border-width: 1px; }
.input-group:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.switch { font-weight: 500; }
.seg { border-radius: 8px; background: #efefef; border-color: transparent; }
.seg button { border-radius: 6px; font-weight: 600; }
.seg button.on { box-shadow: 0 1px 2px rgba(0, 0, 0, .1); color: var(--title); }
.tabs button { font-weight: 500; padding: 12px 14px; }
.tabs button.on { color: var(--brand); font-weight: 600; border-bottom-width: 2px; }

/* tabelas, vazios, modais */
.table th { font-weight: 600; font-size: 11.5px; background: var(--surface-2); }
.table td b { font-weight: 600; color: var(--title); }
.empty .em, .upsell .em, .lock .em { font-size: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 12px; color: var(--muted); }
.empty .em svg, .upsell .em svg, .lock .em svg { width: 24px; height: 24px; stroke-width: 1.6; }
.empty h3, .upsell h3 { font-weight: 600; }
.modal { border-radius: 12px; }
.modal-head h3 { font-weight: 600; font-size: 16.5px; }
.modal-head .x { border-radius: 50%; background: var(--surface-2); }
@media (max-width: 640px) { .modal { border-radius: 16px 16px 0 0; } }
.toast { border-radius: 8px; font-weight: 500; background: var(--title); }
.uploader { border-radius: 8px; border-width: 1px; }
.thumb { border-radius: 8px; color: #c4c4c4; border: 1px solid var(--line); }
img.thumb { border: 0; }
.bars .bar .fill { background: var(--brand); border-radius: 4px 4px 0 0; }
.progress > div { background: var(--brand); }
.check-item .ck { width: 22px; height: 22px; }
.li-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; color: var(--muted); }
.li-ic.ok { color: var(--ok); }
.li-ic svg { width: 16px; height: 16px; }