/* DMPulso — design system do painel (Manual de Marca v1.0) */
:root {
  /* Cores da marca */
  --pulse-purple: #7A00FF; --pulse-magenta: #FF00A8; --pulse-orange: #FF7A00;
  --pulse-navy: #0B0F2B; --pulse-violet: #4B00BB; --pulse-lavender: #E9D5FF;
  --pulse-grad: linear-gradient(110deg, #7A00FF 0%, #FF00A8 55%, #FF7A00 100%);

  --accent: #7A00FF;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, white);
  --accent-line: color-mix(in srgb, var(--accent) 28%, white);

  --bg: #F5F6FA;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --line: #e7e9ee;
  --line-strong: #d5d9e1;
  --ink: #111827;
  --ink-2: #374151;  /* Cinza Escuro */
  --muted: #6b7280;
  --faint: #9aa1ad;

  --ok: #12805c;   --ok-bg: #e8f6f0;
  --warn: #9a5b00; --warn-bg: #fdf3e2;
  --bad: #c2362f;  --bad-bg: #fdecea;
  --info: #4B00BB; --info-bg: #f3eaff;

  --r-sm: 6px; --r: 10px; --r-lg: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 1px rgba(16, 24, 40, .03);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .10), 0 2px 6px rgba(16, 24, 40, .06);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sidebar: 236px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font);
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 16px; font-weight: 620; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
code { font: 12.5px var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.truncate { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: var(--ink); font-weight: 650; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.brand-mark svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 500;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav a .count { margin-left: auto; font-size: 11.5px; font-weight: 600; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.account { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.account .who { min-width: 0; }
.account .who strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--ok); }
.status-dot.warn { background: #e0a100; } .status-dot.bad { background: var(--bad); }

.main { min-width: 0; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 28px 32px 20px; flex-wrap: wrap; }
.topbar .sub { color: var(--muted); margin-top: 4px; }
.topbar .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.content { padding: 0 32px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-body { padding: 20px; }
.card-body.tight { padding: 0; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 18px 20px; }
.kpi .label { color: var(--muted); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 12px; font-weight: 600; margin-top: 2px; }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); } .delta.flat { color: var(--faint); }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: 500 13.5px var(--font); cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); border-color: #f2c4c0; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 32px; padding: 0; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 550; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface);
  font: 14px var(--font); color: var(--ink); padding: 8px 11px; transition: border-color .12s, box-shadow .12s;
}
.textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.section-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 2px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 34px; height: 20px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--accent-soft); }

.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px; }
.segmented a { padding: 4px 12px; border-radius: 5px; color: var(--ink-2); font-weight: 500; font-size: 13px; }
.segmented a:hover { text-decoration: none; color: var(--ink); }
.segmented a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- badges, tags, avatar ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 550; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.badge.info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.tag { display: inline-block; white-space: nowrap; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); margin: 0 4px 4px 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--ink-2); background: #eceef2; flex: none; text-transform: uppercase; }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fbfcfd; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-title { font-weight: 550; color: var(--ink); }
.cell-title:hover { color: var(--accent); }

/* ---------- empty / flash ---------- */
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty .empty-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 12px; color: var(--faint); }
.empty h3 { color: var(--ink); margin-bottom: 4px; }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.toast.ok { border-color: #bfe5d4; background: var(--ok-bg); color: #0b5c42; }
.toast.erro, .toast.bad { border-color: #f2c4c0; background: var(--bad-bg); color: #8d241f; }
.toast.aviso, .toast.warn { border-color: #f1d8a8; background: var(--warn-bg); color: #6f4200; }
.toast ul { margin: 0; padding-left: 18px; }

/* ---------- charts & funnel ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.chart .bar-a { fill: var(--accent); }
.chart .bar-b { fill: var(--accent-line); }
.chart .dot { fill: var(--ok); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.funnel { display: grid; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 150px 1fr 90px; gap: 12px; align-items: center; font-size: 13px; }
.funnel-bar { height: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.funnel-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.funnel-row .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.funnel-row .n b { color: var(--ink); }
.meter { height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--ok); }
.meter.warn > span { background: #e0a100; } .meter.bad > span { background: var(--bad); }

/* ---------- inbox ---------- */
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr) 300px; height: calc(100vh - 0px); border-left: 0; }
.inbox-list { border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.inbox-list .head { padding: 20px 16px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.inbox-items { overflow-y: auto; flex: 1; }
.conv { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.conv:hover { background: var(--surface-2); text-decoration: none; }
.conv[aria-current="page"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.conv .meta { min-width: 0; flex: 1; }
.conv .top { display: flex; justify-content: space-between; gap: 8px; }
.conv .meta, .conv .preview, .conv .name { display: block; }
.conv .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.conv .time { color: var(--faint); font-size: 12px; white-space: nowrap; }
.conv .preview { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-items { overflow-x: hidden; }
.segmented a { white-space: nowrap; }
.inbox-list .segmented { display: flex; }
.inbox-list .segmented a { flex: 1; text-align: center; padding: 4px 6px; font-size: 12.5px; }
.thread { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.thread-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.messages { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.day-sep { align-self: center; font-size: 11.5px; color: var(--faint); background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; margin: 10px 0; }
.bubble { max-width: min(520px, 75%); padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.bubble.in { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.bubble.out.manual { background: #1f2937; }
.bubble.comment { background: #fff8e6; border-color: #f3e2b4; }
.bubble-meta { font-size: 11px; color: var(--faint); margin: -2px 6px 6px; }
.bubble-meta.out { align-self: flex-end; }
.bubble-buttons { display: grid; gap: 4px; margin-top: 8px; }
.bubble-buttons span { display: block; text-align: center; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.16); font-weight: 550; font-size: 13px; }
.composer { background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px; display: grid; gap: 8px; }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer .textarea { min-height: 42px; max-height: 160px; }
.composer .note { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.details { border-left: 1px solid var(--line); background: var(--surface); overflow-y: auto; }
.details section { padding: 18px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--ink); word-break: break-word; }

/* ---------- builder & phone preview ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.steps { display: grid; gap: 0; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.step + .step { margin-top: 28px; }
.step + .step::before { content: ""; position: absolute; left: 34px; top: -29px; height: 28px; border-left: 2px dashed var(--line-strong); }
.step-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.step-num { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 650; font-size: 13px; flex: none; }
.step-num.send { background: var(--info-bg); color: var(--info); }
.step-num.ask { background: #f1ecfe; color: #6941c6; }
.step-num.follow { background: var(--ok-bg); color: var(--ok); }
.step-num.trigger { background: #fff4e5; color: #b54708; }
.step-body { padding: 0 18px 16px 62px; color: var(--ink-2); }
.step-body .btn-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; margin: 6px 6px 0 0; background: var(--surface-2); }
.step details > summary { list-style: none; cursor: pointer; }
.step details > summary::-webkit-details-marker { display: none; }
.step details[open] .step-edit { border-top: 1px solid var(--line); padding: 18px; display: grid; gap: 14px; background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }

.phone { position: sticky; top: 20px; background: #0f1115; border-radius: 34px; padding: 12px; box-shadow: var(--shadow-lg); }
.phone-screen { background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; height: 560px; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; border-bottom: 1px solid #eee; }
.phone-top .avatar { width: 30px; height: 30px; font-size: 11px; }
.phone-top strong { font-size: 13px; }
.phone-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.pm { max-width: 82%; font-size: 13px; line-height: 1.4; padding: 8px 12px; border-radius: 18px; white-space: pre-wrap; word-break: break-word; }
.pm.biz { align-self: flex-start; background: #efefef; color: #111; }
.pm.user { align-self: flex-end; background: #3797f0; color: #fff; }
.pm.note { align-self: center; background: transparent; color: #8e8e8e; font-size: 11px; padding: 2px; }
.pm-card { align-self: flex-start; max-width: 82%; border: 1px solid #e3e3e3; border-radius: 18px; overflow: hidden; font-size: 13px; }
.pm-card .t { padding: 9px 12px; white-space: pre-wrap; }
.pm-card .b { border-top: 1px solid #e3e3e3; padding: 8px 12px; text-align: center; color: #0a66d8; font-weight: 600; }
.qr { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.qr span { border: 1px solid #3797f0; color: #3797f0; border-radius: 999px; padding: 4px 10px; font-size: 12px; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: radial-gradient(120% 70% at 110% 105%, rgba(255, 0, 168, .45) 0%, rgba(122, 0, 255, .35) 35%, transparent 65%),
  radial-gradient(90% 60% at -10% 110%, rgba(255, 122, 0, .35) 0%, transparent 55%), var(--pulse-navy); color: #e5e7eb; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side h2 { color: #fff; font-size: 26px; line-height: 1.25; max-width: 420px; font-weight: 600; }
.auth-side p { color: #94a3b8; max-width: 420px; margin-top: 12px; }
.auth-side .brand { color: #fff; padding: 0; }
.auth-points { display: grid; gap: 12px; margin-top: 28px; }
.auth-points div { display: flex; gap: 10px; align-items: center; color: #cbd5e1; }
.auth-form { display: grid; place-items: center; padding: 32px; background: var(--surface); }
.auth-form form { width: 100%; max-width: 360px; display: grid; gap: 16px; }

/* ---------- misc ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.callout .i { color: var(--muted); margin-top: 2px; }
details.raw summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
details.raw pre { font: 12px/1.5 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; }
.mobile-bar { display: none; }
.mobile-only { display: none; }

@media (max-width: 1180px) {
  .inbox { grid-template-columns: 280px minmax(0, 1fr); }
  .details { display: none; }
  .builder { grid-template-columns: 1fr; }
  .phone { position: static; max-width: 360px; }
}
@media (max-width: 960px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .value { font-size: 24px; }
  .topbar .actions { width: 100%; }
  .sidebar { display: none; }
  .topbar { padding: 20px 16px 14px; }
  .content { padding: 0 16px 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; height: auto; }
  .inbox.has-thread .inbox-list { display: none; }
  .inbox:not(.has-thread) .thread { display: none; }
  .messages { max-height: 60vh; }
  .mobile-only { display: inline-flex; }
  .thread-head { flex-wrap: wrap; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .funnel-row { grid-template-columns: 110px 1fr 70px; }
  .table th, .table td { padding: 10px 14px; }
}

/* ---------- contas: conexão, cadastro, suporte ---------- */
.center-text { text-align: center; }
.grow { flex: 1; min-width: 0; }
.btn-lg { height: 44px; padding: 0 18px; font-size: 14.5px; }
.connected-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.checklist p { margin: 2px 0 0; }
.onboarding { max-width: 720px; }
.pick-list { display: grid; gap: 10px; }
.pick { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.pick:hover { border-color: var(--accent); background: var(--surface-2); }
.pick .meta { flex: 1; display: grid; gap: 2px; }
img.avatar { object-fit: cover; }
.support-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 24px; background: #fff7e6; border-bottom: 1px solid #f5d9a6; color: #7a4b00; font-size: 13px; }
.connect-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.account .who { min-width: 0; }
.account .who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; line-height: 1.65; }
.legal h1 { font-size: 28px; letter-spacing: -0.02em; margin: 24px 0 4px; }
.legal h2 { font-size: 17px; margin: 28px 0 6px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }

/* ---------- marca DMPulso ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--pulse-navy); text-decoration: none; }
.logo:hover { text-decoration: none; }
.dmp-symbol { width: 34px; height: 31px; flex: none; }
.logo-text { display: grid; line-height: 1; }
.wordmark { font-weight: 800; font-style: italic; font-size: 21px; letter-spacing: -0.045em; padding-right: 2px; }
.wm-dm { color: var(--pulse-navy); }
.wm-pulso { background: var(--pulse-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 2px; }
.tagline { font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: 5px; letter-spacing: 0; }
.logo.on-dark .wm-dm { color: #fff; }
.logo.on-dark .tagline { color: rgba(255, 255, 255, .78); }
.logo.logo-lg .dmp-symbol { width: 52px; height: 47px; }
.logo.logo-lg .wordmark { font-size: 32px; }
.logo.logo-lg .tagline { font-size: 14px; margin-top: 8px; }
.sidebar-logo { padding: 2px 8px 20px; }
.mobile-logo { display: inline-flex; flex: none; }
.mobile-logo .dmp-symbol { width: 28px; height: 25px; }
.auth-form-logo { display: none; margin-bottom: 24px; }
.btn.primary { background: var(--pulse-purple); border-color: var(--pulse-purple); }
.btn.primary:hover { background: var(--pulse-violet); border-color: var(--pulse-violet); }
.nav a[aria-current="page"] { color: var(--pulse-violet); }
.auth-side h2 { font-weight: 700; }
.auth-points svg { color: #ff6fd0; }
@media (max-width: 960px) {
  .auth-form { place-items: start center; padding-top: 48px; }
  .auth-form-logo { display: block; }
}

/* ---------- login, cadastro e página inicial ---------- */
.grad-text { background: var(--pulse-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #f5d0fe;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: 5px 10px; border-radius: 999px; justify-self: start; }
.eyebrow svg { width: 14px; height: 14px; }
.auth { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-side { gap: 32px; }
.auth-side > * { position: relative; z-index: 1; }
.auth-glow { position: absolute !important; z-index: 0 !important; inset: auto -20% -35% -20%; height: 70%; pointer-events: none;
  background: radial-gradient(60% 60% at 70% 60%, rgba(255, 0, 168, .35), transparent 70%), radial-gradient(50% 50% at 20% 80%, rgba(255, 122, 0, .28), transparent 70%); filter: blur(10px); }
.auth-hero { display: grid; gap: 18px; max-width: 480px; }
.auth-side .auth-hero h2 { font-size: 34px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; max-width: 480px; }
.auth-side .auth-hero p { margin: 0; color: #c4c7dd; font-size: 15px; }
.auth-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 480px; }
.auth-stats div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.auth-stats strong { color: #fff; font-size: 16px; }
.auth-stats span { color: #a5a9c4; font-size: 12px; }
.chat-demo { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px); max-width: 420px; }
.cd-post { display: flex; gap: 10px; align-items: center; }
.cd-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--pulse-grad); flex: none; }
.cd-meta { font-size: 12px; color: #a5a9c4; }
.cd-meta strong { color: #fff; }
.cd-comment { color: #fff; font-weight: 600; }
.cd-arrow { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #f0abfc; padding-left: 44px; }
.cd-arrow span { width: 18px; height: 2px; background: var(--pulse-grad); border-radius: 2px; }
.cd-dm { margin-left: 44px; display: grid; gap: 6px; justify-items: start; }
.cd-bubble { background: linear-gradient(135deg, #7A00FF, #c400c4); color: #fff; padding: 9px 12px; border-radius: 16px 16px 16px 4px; font-size: 13px; max-width: 290px; }
.cd-btn { background: #fff; color: var(--pulse-violet); font-weight: 700; font-size: 12.5px; padding: 7px 14px; border-radius: 999px; }
.cd-done { display: flex; gap: 6px; align-items: center; font-size: 12px; color: #86efac; padding-left: 44px; }
.cd-done svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.6; }
.auth-form { align-content: center; gap: 18px; padding: 40px 32px; background: var(--surface); }
.auth-card, .auth-form > form, .auth-form > .stack { width: 100%; max-width: 420px; display: grid; gap: 16px; }
.auth-card h1, .auth-form h1 { font-size: 26px; font-weight: 750; letter-spacing: -0.02em; }
.auth-legal { text-align: center; }
.auth-legal a { color: var(--muted); }
.input-lg { height: 44px; font-size: 14.5px; }
.btn-xl { height: 46px; padding: 0 20px; font-size: 15px; font-weight: 600; justify-content: center; }
.pass-wrap { position: relative; display: block; }
.pass-wrap .input { width: 100%; padding-right: 76px; }
.pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--pulse-violet);
  font: 600 12.5px var(--font); padding: 6px 8px; cursor: pointer; border-radius: 6px; }
.pass-toggle:hover { background: var(--surface-2); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note.check { display: flex; gap: 8px; align-items: flex-start; }
.note.check input { margin-top: 3px; accent-color: var(--pulse-purple); }
.steps-mini { list-style: none; margin: 0 0 4px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.steps-mini li { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.steps-mini li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-weight: 700; font-size: 11px; color: var(--ink-2); }
.steps-mini li.on { color: var(--pulse-violet); border-color: var(--pulse-lavender); background: #faf5ff; font-weight: 600; }
.steps-mini li.on span { background: var(--pulse-grad); color: #fff; }

.lp { background: var(--surface); }
.lp-hero { position: relative; overflow: hidden; color: #e5e7eb; padding: 20px 24px 72px;
  background: radial-gradient(70% 80% at 100% 100%, rgba(255, 0, 168, .35), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgba(255, 122, 0, .25), transparent 60%),
  radial-gradient(60% 60% at 60% 0%, rgba(122, 0, 255, .45), transparent 60%), var(--pulse-navy); }
.lp-hero > * { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; }
.lp-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0 40px; }
.lp-link { color: #e5e7eb; font-weight: 600; padding: 0 10px; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.lp-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin: 18px 0 16px; }
.lp-lead { color: #c4c7dd; font-size: 17px; max-width: 560px; margin: 0 0 24px; }
.lp-note { color: #8f93b3; font-size: 13px; margin-top: 12px; }
.btn-ghost-light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); }
.lp-demo .chat-demo { max-width: 460px; margin-left: auto; padding: 22px; }
.lp-section { max-width: 1140px; margin: 0 auto; padding: 72px 24px; }
.lp-section h2, .lp-cta h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.025em; font-weight: 800; text-align: center; }
.lp-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 10px auto 0; font-size: 16px; }
.lp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.lp-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--surface); box-shadow: var(--shadow); }
.lp-card h3 { font-size: 16px; margin: 14px 0 6px; }
.lp-card p { margin: 0; color: var(--muted); }
.lp-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--pulse-grad); }
.lp-ic svg { width: 20px; height: 20px; }
.lp-alt { max-width: none; background: var(--bg); }
.lp-steps { list-style: none; padding: 0; margin: 40px auto 0; max-width: 1000px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.lp-steps span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--pulse-navy); color: #fff; font-weight: 700; }
.lp-steps h3 { margin: 14px 0 6px; font-size: 16px; }
.lp-steps p { margin: 0; color: var(--muted); }
.lp-faq { max-width: 760px; margin: 32px auto 0; display: grid; gap: 10px; }
.lp-faq details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--surface); }
.lp-faq summary { cursor: pointer; font-weight: 600; }
.lp-faq p { color: var(--muted); margin: 10px 0 0; }
.lp-cta { text-align: center; padding: 64px 24px; display: grid; gap: 22px; justify-items: center; color: #fff;
  background: radial-gradient(60% 120% at 50% 120%, rgba(255, 0, 168, .45), transparent 70%), var(--pulse-navy); }
.lp-cta h2 { color: #fff; max-width: 720px; }
.lp-footer { max-width: 1140px; margin: 0 auto; padding: 28px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.lp-footer nav { gap: 18px; }
.lp-footer nav a { color: var(--muted); }
@media (max-width: 960px) {
  .lp-hero-grid, .lp-features, .lp-steps { grid-template-columns: 1fr; }
  .lp-demo .chat-demo { margin: 0; }
  .lp-nav .lp-link { display: none; }
  .form-row-2 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-form { padding: 28px 20px; }
}

/* ---------- automação rápida (editor estilo ManyChat) ---------- */
.qb-top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.qb-top h1 { font-size: 19px; }
.qb { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.qb-steps { display: grid; gap: 14px; }
.qb-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow); }
.qb-step.highlight { border-color: var(--pulse-lavender); background: linear-gradient(180deg, #fbf7ff, var(--surface) 60%); }
.qb-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--pulse-grad); }
.qb-body { display: grid; gap: 10px; min-width: 0; }
.qb-body h2 { font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--pulse-purple); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pulse-purple) 14%, transparent); }
.choice input { margin-top: 3px; accent-color: var(--pulse-purple); }
.choice span { display: grid; gap: 2px; }
.choice small { color: var(--muted); font-size: 12px; }
.check-inline { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
.check-inline input { accent-color: var(--pulse-purple); }
.link-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 8px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; max-height: 360px; overflow-y: auto; padding: 2px; }
.post-tile { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--surface-2); }
.post-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.post-tile:hover img { transform: scale(1.04); }
.post-tile.on { border-color: var(--pulse-purple); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pulse-purple) 22%, transparent); }
.post-tile .post-kind { position: absolute; top: 6px; right: 6px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.post-tile .post-kind svg { width: 16px; height: 16px; }
.post-tile .post-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 11px; color: #fff; text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.post-tile .post-check { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; background: var(--pulse-purple); color: #fff; }
.post-tile .post-check svg { width: 14px; height: 14px; }
.post-tile.on .post-check { display: grid; }
.post-noimg { display: grid; place-items: center; height: 100%; color: var(--faint); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; cursor: default; }
@keyframes sk { to { background-position: -200% 0; } }

.qb-side { position: sticky; top: 92px; display: grid; gap: 12px; }
.qb-tabs, .qb-stage { justify-self: center; }
.phone.ig { position: static; width: 300px; justify-self: center; }
.phone.ig .phone-screen { height: 560px; }
.ig-bar { display: flex; justify-content: space-between; padding: 8px 16px 4px; font-size: 11px; font-weight: 600; }
.ig-post { display: flex; flex-direction: column; overflow: hidden; }
.ig-head { display: flex; gap: 8px; align-items: center; padding: 8px 12px; font-size: 12.5px; }
.ig-head .avatar, .ig-c .avatar { width: 28px; height: 28px; font-size: 10px; overflow: hidden; flex: none; }
.ig-head .avatar img { width: 100%; height: 100%; object-fit: cover; }
.ig-media { aspect-ratio: 4 / 5; background: #f1f1f4; display: grid; place-items: center; overflow: hidden; }
.ig-media img { width: 100%; height: 100%; object-fit: cover; }
.ig-any { display: grid; justify-items: center; gap: 6px; color: #8e8e8e; font-size: 12.5px; text-align: center; padding: 20px; }
.ig-actions { padding: 8px 12px 2px; font-size: 16px; }
.ig-caption { padding: 2px 12px 10px; font-size: 12px; line-height: 1.4; color: #111; }
.ig-comments { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 16px 12px; }
.ig-c { display: flex; gap: 8px; font-size: 12.5px; }
.ig-c.reply { margin-left: 34px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #0f7a4f;
  background: #e6f7ef; border-radius: 999px; padding: 3px 9px; }
.live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #14b86a; box-shadow: 0 0 0 0 rgba(20, 184, 106, .6); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(20,184,106,.55); } 70% { box-shadow: 0 0 0 7px rgba(20,184,106,0); } 100% { box-shadow: 0 0 0 0 rgba(20,184,106,0); } }
.ins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ins { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 2px; }
.ins.wide { grid-column: 1 / -1; }
.ins span { color: var(--muted); font-size: 12px; }
.ins b { font-size: 22px; letter-spacing: -0.02em; }
.feed { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; max-height: 420px; overflow-y: auto; }
.feed-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; font-size: 13px; animation: feedin .4s ease; }
.feed-item:hover { background: var(--surface-2); }
.feed-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.feed-ic svg { width: 14px; height: 14px; }
.k-follow .feed-ic { background: #f3eaff; color: var(--pulse-violet); }
.k-done .feed-ic { background: #e6f7ef; color: #0f7a4f; }
.k-click .feed-ic { background: #fff1e6; color: #c25a00; }
.k-error .feed-ic { background: var(--bad-bg); color: var(--bad); }
.feed-empty { display: flex; gap: 8px; align-items: center; padding: 14px; }
@keyframes feedin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* lista de automações em cards */
.tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tpl { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: inherit; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.tpl:hover { text-decoration: none; border-color: var(--pulse-purple); transform: translateY(-1px); }
.tpl .tpl-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--pulse-grad); }
.tpl .tpl-ic svg { width: 18px; height: 18px; }
.tpl strong { font-size: 14.5px; }
.tpl small { color: var(--muted); }
.auto-list { display: grid; gap: 10px; }
.auto-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.auto-thumb { width: 64px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--faint); }
.auto-thumb img { width: 100%; height: 100%; object-fit: cover; }
.auto-thumb.any { background: var(--pulse-grad); color: #fff; }
.auto-main { min-width: 0; display: grid; gap: 4px; }
.auto-main a.cell-title { font-size: 15px; }
.auto-stats { display: flex; gap: 22px; }
.auto-stats div { display: grid; text-align: right; }
.auto-stats b { font-size: 17px; }
.auto-stats span { font-size: 11.5px; color: var(--muted); }
@media (max-width: 1180px) { .qb { grid-template-columns: minmax(0, 1fr); } .qb-side { position: static; } }
@media (max-width: 820px) {
  .choice-row, .tpl-grid { grid-template-columns: 1fr; }
  .auto-card { grid-template-columns: 56px minmax(0, 1fr); }
  .auto-stats { grid-column: 1 / -1; justify-content: space-between; }
  .link-row { grid-template-columns: 1fr; }
  .qb-step { grid-template-columns: minmax(0, 1fr); }
  .qb-num { display: none; }
}

[hidden] { display: none !important; }

/* ajustes do editor rápido */
.qb-title { font-size: 19px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; max-width: 62vw; }
.qb-side-title { justify-self: center; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.qb-side-title svg, .qb-tabs svg { width: 14px; height: 14px; }
.qb-tabs a { display: inline-flex; gap: 6px; align-items: center; }
.qb-stage { width: 300px; display: grid; grid-template-columns: repeat(3, 1fr); }
.qb-stage a { text-align: center; }
.post-tile .post-meta { left: 6px; right: auto; bottom: 6px; padding: 2px 7px; display: inline-flex; gap: 8px; border-radius: 999px;
  background: rgba(0, 0, 0, .62); backdrop-filter: blur(4px); font-size: 10.5px; font-weight: 600; line-height: 1.6; }
.post-tile .post-kind { top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); filter: none; }
.post-tile .post-kind svg { width: 11px; height: 11px; }
.post-tile::after { content: ""; position: absolute; inset: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); pointer-events: none; }
.post-tile:not(.on):hover { border-color: var(--pulse-lavender); }
.ig-ring { padding: 2px; background: var(--pulse-grad); color: #fff; }
.ig-ring img { border-radius: 50%; border: 2px solid #fff; }
.ig-more { margin-left: auto; color: #555; letter-spacing: 1px; font-size: 10px; }
.ig-any { color: #9aa0ae; }
.ig-any b { color: #4b5160; font-size: 13px; }
.ig-any small { font-size: 11.5px; }

/* direct no estilo Instagram (prévia do editor) */
.phone.ig .phone-msgs { gap: 8px; padding: 0 10px 14px; background: #fff; }
.dm-head { position: sticky; top: 0; z-index: 1; display: flex; gap: 8px; align-items: center; padding: 10px 2px; margin: 0 -10px 4px; padding-left: 12px;
  background: #fff; border-bottom: 1px solid #efefef; }
.dm-head strong { display: block; font-size: 13px; color: #111; }
.dm-head small { font-size: 10.5px; color: #8e8e8e; }
.dm-av { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; font-size: 8px; font-weight: 700;
  color: #fff; background: var(--pulse-grad); align-self: flex-end; }
.dm-av.lg { width: 30px; height: 30px; font-size: 10px; align-self: center; }
.dm-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.dm-row { display: flex; gap: 6px; align-items: flex-end; max-width: 92%; }
.dm-stack { display: grid; gap: 4px; min-width: 0; }
.dm-text { background: #efefef; color: #111; border-radius: 18px 18px 18px 6px; padding: 8px 12px; font-size: 12.5px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.dm-btns { display: grid; gap: 4px; }
.dm-btn { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 6px 12px; border-radius: 12px;
  background: #fff; border: 1px solid #dbdbdb; color: #0095f6; font-weight: 600; font-size: 12.5px; text-align: center; }
.dm-me { align-self: flex-end; max-width: 75%; padding: 8px 12px; border-radius: 18px 18px 6px 18px; font-size: 12.5px; color: #fff;
  background: linear-gradient(135deg, #7A00FF, #a34bff 55%, #5b6cff); }
.dm-sys { align-self: center; font-size: 10.5px; color: #8e8e8e; padding: 2px 0; text-align: center; }

/* destaques do período, ranking e janelas */
.avatar { position: relative; overflow: hidden; }
.avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hl { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; text-align: left; font: inherit; color: inherit;
  border: 1px solid var(--line); cursor: default; min-height: 118px; }
button.hl { cursor: pointer; transition: border-color .15s, transform .15s; }
button.hl:hover { border-color: var(--pulse-purple); transform: translateY(-1px); }
.hl > div:first-child { display: grid; gap: 4px; min-width: 0; }
.hl-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.hl-title { font-size: 16px; }
.hl-value { font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; }
.hl-sub { font-size: 12px; color: var(--muted); }
.hl-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; background: var(--pulse-grad); }
.hl-ic svg { width: 20px; height: 20px; }
.av-stack { display: flex; flex: none; }
.av-stack .avatar { border: 3px solid var(--surface); margin-left: -14px; background: var(--pulse-grad); color: #fff; }
.av-stack .avatar:first-child { margin-left: 0; }
.dlg { width: min(560px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 48px)); padding: 0; border: 0; border-radius: 18px; box-shadow: var(--shadow-lg); }
.dlg::backdrop { background: rgba(11, 15, 43, .45); backdrop-filter: blur(2px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.dlg-head h2 { font-size: 17px; }
.dlg-body { padding: 8px 20px 20px; }
.dlg-tabs { display: flex; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dlg-tabs a { padding: 10px 0; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.dlg-tabs a:hover { text-decoration: none; color: var(--ink); }
.dlg-tabs a[aria-current="page"] { color: var(--pulse-violet); border-bottom-color: var(--pulse-purple); }
.rank { border-bottom: 1px solid var(--line); }
.rank summary, .rank-sum { display: grid; grid-template-columns: 28px 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; cursor: pointer; list-style: none; }
.rank.flat .rank-sum { grid-template-columns: 52px minmax(0, 1fr) auto; cursor: default; }
.rank summary::-webkit-details-marker { display: none; }
.rank-pos { font-weight: 700; color: var(--muted); text-align: center; }
.medal { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; }
.medal.m1 { background: linear-gradient(135deg, #f7c948, #e09b00); }
.medal.m2 { background: linear-gradient(135deg, #cfd6e0, #8e99a8); }
.medal.m3 { background: linear-gradient(135deg, #e6a26a, #b8682c); }
.rank .avatar.lg { background: var(--pulse-grad); color: #fff; }
.rank-who { display: grid; min-width: 0; }
.rank-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-score { font-size: 18px; font-weight: 700; }
.rank-detail { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 0 12px 92px; color: var(--ink-2); }
@media (max-width: 1180px) { .hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .hl-grid { grid-template-columns: 1fr; } .rank-detail { padding-left: 0; } }

/* ---------- canal TikTok (protótipo) ---------- */
.tk-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.tk-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #000; flex: none;
  box-shadow: -2px -2px 0 #25F4EE inset, 2px 2px 0 #FE2C55 inset; }
.tk-logo svg { width: 22px; height: 22px; fill: #fff; }
.tk-btn { background: #000; color: #fff; border-color: #000; }
.tk-btn:hover { background: #222; }
.tk-tabs { margin-top: -4px; }
.tk-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tk-steps > div { display: grid; gap: 4px; align-content: start; }
.tk-steps p { margin: 0; }
.tk-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; background: #000;
  box-shadow: -1.5px -1.5px 0 #25F4EE, 1.5px 1.5px 0 #FE2C55; margin-bottom: 4px; }
.tk-cover { color: #fff; font-size: 9.5px; font-weight: 700; line-height: 1.2; padding: 6px; align-items: end; text-align: left; place-items: end start; }
.tk-cover span { display: block; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.tk-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); max-height: none; }
.tk-tile { aspect-ratio: 9 / 16; display: flex; align-items: flex-start; padding: 10px; color: #fff; text-align: left; }
.tk-tile-title { font-size: 12.5px; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.tk-phone .phone-screen { background: #000; color: #fff; }
.tk-video { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.tk-video-bg { position: absolute; inset: 0; }
.tk-side { position: absolute; right: 10px; bottom: 120px; display: grid; gap: 16px; text-align: center; font-size: 20px; }
.tk-side b { display: block; font-size: 10px; font-weight: 600; }
.tk-cap { position: relative; padding: 14px 70px 22px 14px; font-size: 12.5px; text-shadow: 0 1px 2px rgba(0,0,0,.4); display: grid; gap: 4px; }
.tk-comments { flex: 1; background: #fff; color: #161823; border-radius: 14px 14px 0 0; margin-top: 120px; padding: 12px; display: flex; flex-direction: column; gap: 14px; }
.tk-sheet-h { text-align: center; font-weight: 700; font-size: 12.5px; padding-bottom: 6px; border-bottom: 1px solid #eee; }
.tk-c { display: flex; gap: 8px; font-size: 12.5px; }
.tk-c.reply { margin-left: 36px; }
.tk-c b { font-weight: 600; color: #8a8b91; font-size: 11.5px; }
.tk-c small { color: #8a8b91; font-size: 10.5px; }
.tk-av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; background: #5c5c66; }
.tk-av.biz { background: var(--pulse-grad); }
.tk-dm { flex: 1; display: flex; flex-direction: column; background: #fff; color: #161823; }
.tk-dm-h { display: flex; gap: 8px; align-items: center; padding: 12px; border-bottom: 1px solid #eee; }
.tk-dm-h small { display: block; color: #8a8b91; font-size: 10.5px; }
.tk-dm-body, .tk-thread-b { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px; overflow-y: auto; }
.tk-sys { align-self: center; font-size: 10.5px; color: #8a8b91; text-align: center; }
.tk-me, .tk-mine { align-self: flex-end; }
.tk-me { background: #FE2C55; color: #fff; padding: 8px 12px; border-radius: 16px 16px 4px 16px; font-size: 12.5px; }
.tk-them { align-self: flex-start; display: grid; gap: 4px; max-width: 85%; }
.tk-mine { display: grid; gap: 4px; max-width: 85%; justify-items: end; }
.tk-bub { background: #f1f1f2; padding: 8px 12px; border-radius: 16px 16px 16px 4px; font-size: 12.5px; white-space: pre-wrap; }
.tk-mine .tk-bub { background: #FE2C55; color: #fff; border-radius: 16px 16px 4px 16px; }
.tk-lnk { display: block; text-align: center; padding: 7px 12px; border-radius: 10px; border: 1px solid #e3e3e4; font-weight: 600; font-size: 12.5px; color: #161823; background: #fff; }
.tk-inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 520px; overflow: hidden; padding: 0; }
.tk-list { border-right: 1px solid var(--line); overflow-y: auto; }
.tk-conv { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: inherit; }
.tk-conv:hover { background: var(--surface-2); text-decoration: none; }
.tk-conv.on { background: #fff1f4; box-shadow: inset 3px 0 0 #FE2C55; }
.tk-thread { display: flex; flex-direction: column; min-width: 0; }
.tk-thread-h { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tk-compose { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.tk-compose .input { flex: 1; }
@media (max-width: 960px) { .tk-steps { grid-template-columns: 1fr 1fr; } .tk-inbox { grid-template-columns: 1fr; } .tk-list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- site público: barra, navegação, CTA e rodapé ---------- */
.site { background: var(--surface); }
.site-bar { background: var(--pulse-grad); text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px; }
.site-bar a { color: #fff; }
.site-bar a:hover { text-decoration: none; opacity: .92; }
.site-bar-new { display: inline-block; background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 1px 8px; margin-right: 6px; font-size: 11.5px; letter-spacing: .02em; text-transform: uppercase; }
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 43, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-nav-in { max-width: 1140px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.site-links { display: flex; gap: 4px; margin-left: 12px; }
.site-links a { color: #c4c7dd; font-weight: 500; font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.site-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-login { color: #fff; font-weight: 600; padding: 6px 12px; }
.site-cta { height: 38px; padding: 0 16px; font-weight: 600; }
.site-cta-band { position: relative; overflow: hidden; text-align: center; padding: 80px 24px; display: grid; gap: 16px; justify-items: center; color: #fff;
  background: radial-gradient(60% 120% at 50% 120%, rgba(255, 0, 168, .45), transparent 70%), radial-gradient(50% 80% at 0% 0%, rgba(122, 0, 255, .45), transparent 70%), var(--pulse-navy); }
.site-cta-band > * { position: relative; z-index: 1; }
.site-cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -0.03em; font-weight: 800; max-width: 760px; }
.site-cta-band > p { color: #c4c7dd; font-size: 16px; margin: 0 0 6px; }
.site-footer { background: #070a1f; color: #a5a9c4; }
.site-footer-in { max-width: 1140px; margin: 0 auto; padding: 56px 24px 32px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer-in > div { display: grid; gap: 10px; align-content: start; }
.site-footer-brand p { margin: 4px 0 8px; max-width: 340px; font-size: 14px; }
.site-footer-brand .btn { justify-self: start; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.site-footer a:not(.btn):not(.logo) { color: #a5a9c4; font-size: 14px; }
.site-footer a:not(.btn):not(.logo):hover { color: #fff; text-decoration: none; }
.site-footer-bottom { max-width: 1140px; margin: 0 auto; padding: 18px 24px 28px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.site-footer-bottom svg { width: 15px; height: 15px; }

/* ---------- páginas legais ---------- */
.legal-hero { position: relative; overflow: hidden; color: #e5e7eb; padding: 56px 24px 0;
  background: radial-gradient(60% 90% at 100% 0%, rgba(255, 0, 168, .30), transparent 60%), radial-gradient(60% 80% at 0% 0%, rgba(122, 0, 255, .45), transparent 60%), var(--pulse-navy); }
.legal-hero-in { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; display: grid; gap: 14px; }
.legal-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -0.035em; font-weight: 800; line-height: 1.05; }
.legal-hero p { color: #c4c7dd; font-size: 16.5px; max-width: 640px; margin: 0; }
.legal-tabs { display: flex; gap: 4px; margin-top: 22px; overflow-x: auto; }
.legal-tabs a { color: #c4c7dd; font-weight: 600; font-size: 14px; padding: 12px 16px; border-radius: 12px 12px 0 0; white-space: nowrap; }
.legal-tabs a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .06); }
.legal-tabs a[aria-current="page"] { background: var(--bg); color: var(--pulse-navy); }
body.site:has(.legal-hero) { background: var(--bg); }
.legal-wrap { max-width: 1140px; margin: 0 auto; padding: 32px 24px 80px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.legal-side { position: sticky; top: 84px; display: grid; gap: 16px; }
.legal-toc { display: grid; gap: 4px; }
.legal-toc strong { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.legal-toc nav { display: grid; gap: 2px; border-left: 2px solid var(--line); }
.legal-toc a { color: var(--ink-2); font-size: 14px; padding: 5px 12px; margin-left: -2px; border-left: 2px solid transparent; }
.legal-toc a:hover { color: var(--pulse-purple); text-decoration: none; }
.legal-toc a.on { color: var(--pulse-purple); border-left-color: var(--pulse-purple); font-weight: 600; }
.legal-help { display: grid; gap: 6px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.legal-help p { margin: 0; color: var(--muted); font-size: 13.5px; word-break: break-word; }
.legal-help .lp-ic { margin-bottom: 4px; }
.legal-doc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 36px 44px 40px; line-height: 1.7; font-size: 15px; }
.legal-doc h2 { font-size: 20px; letter-spacing: -0.015em; margin: 34px 0 8px; scroll-margin-top: 90px; padding-top: 4px; }
.legal-doc p, .legal-doc li { color: var(--ink-2); }
.legal-doc ul { padding-left: 20px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc li::marker { color: var(--pulse-magenta); }
.legal-updated { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin: 0 0 20px; }
.legal-updated svg { width: 14px; height: 14px; }
.legal-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.legal-summary > div { display: grid; gap: 4px; padding: 16px; border-radius: 14px; background: linear-gradient(180deg, #faf5ff, #fff); border: 1px solid #efe3ff; }
.legal-summary strong { color: var(--ink); font-size: 14.5px; margin-top: 6px; }
.legal-summary p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.legal-summary .lp-ic { width: 34px; height: 34px; border-radius: 10px; }
.legal-summary .lp-ic svg { width: 17px; height: 17px; }

/* ---------- página inicial (vendas) ---------- */
.lp-hero { padding-top: 64px; }
.lp-capture { display: flex; gap: 8px; max-width: 520px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.lp-capture .input { flex: 1; min-width: 0; height: 46px; border: 0; background: #fff; font-size: 15px; border-radius: 10px; }
.lp-capture .btn { flex: none; }
.lp-checks { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #c4c7dd; font-size: 13.5px; }
.lp-checks li { display: inline-flex; align-items: center; gap: 6px; }
.lp-checks svg { width: 15px; height: 15px; color: #86efac; }
.btn-xl svg { width: 17px; height: 17px; }
.lp-proof { background: var(--surface); border-bottom: 1px solid var(--line); }
.lp-proof-in { max-width: 1140px; margin: 0 auto; padding: 28px 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-proof-in div { display: grid; gap: 2px; text-align: center; }
.lp-proof-in b { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; background: var(--pulse-grad); -webkit-background-clip: text; background-clip: text; color: transparent; justify-self: center; }
.lp-proof-in span { color: var(--muted); font-size: 13.5px; }
.lp-kicker { display: block; text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pulse-magenta); margin-bottom: 10px; }
.lp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 64px; }
.lp-row.rev .lp-row-text { order: 2; }
.lp-row-text { display: grid; gap: 14px; justify-items: start; }
.lp-row-text h3 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.025em; font-weight: 800; line-height: 1.15; }
.lp-row-text p { margin: 0; color: var(--muted); font-size: 16px; }
.lp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lp-list li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.lp-list svg { width: 17px; height: 17px; color: var(--pulse-purple); flex: none; margin-top: 2px; }
.lp-row-text .btn, .lp-cmp .btn { height: 42px; padding: 0 16px; font-weight: 600; margin-top: 4px; }
.lp-row-text .btn svg, .lp-cmp .btn svg { width: 16px; height: 16px; }
.lp-row-visual { padding: 28px; border-radius: 24px; background: radial-gradient(70% 80% at 100% 100%, rgba(255, 0, 168, .18), transparent 60%), radial-gradient(70% 80% at 0% 0%, rgba(122, 0, 255, .18), transparent 60%), #f6f2ff; }
.lp-mock { display: grid; gap: 12px; padding: 22px; border-radius: 18px; background: var(--pulse-navy); color: #e5e7eb; box-shadow: var(--shadow-lg); max-width: 440px; margin: 0 auto; }
.lp-mock-c { display: flex; gap: 10px; align-items: flex-start; }
.lp-mock-c.reply { margin-left: 34px; }
.lp-mock-c b { font-size: 12px; color: #a5a9c4; font-weight: 600; }
.lp-mock-c p { margin: 2px 0 0; font-size: 14px; color: #fff; }
.lp-mock-c .cd-avatar { width: 30px; height: 30px; font-size: 11px; }
.lp-mock-dm { display: grid; gap: 8px; justify-items: start; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.lp-mock .cd-done { padding-left: 4px; }
.lp-mock-stat { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.lp-mock-stat b { font-size: 28px; font-weight: 800; color: #fff; }
.lp-mock-stat span { font-size: 13px; color: #a5a9c4; }
.lp-mock-note { margin: 0; font-size: 11px; color: #6f7397; text-align: right; }
.lp-bar { display: grid; grid-template-columns: 92px minmax(0, 1fr) 52px; gap: 10px; align-items: center; font-size: 13px; }
.lp-bar span { color: #c4c7dd; }
.lp-bar i { height: 10px; border-radius: 999px; background: var(--pulse-grad); }
.lp-bar b { color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.lp-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 32px auto 0; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; }
.lp-tabs button { border: 0; background: transparent; font: 600 14px var(--font); color: var(--ink-2); padding: 9px 16px; border-radius: 10px; cursor: pointer; }
.lp-tabs button[aria-selected="true"] { background: var(--pulse-navy); color: #fff; }
.lp-panel { max-width: 760px; margin: 24px auto 0; padding: 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-panel > div { display: grid; gap: 14px; justify-items: start; }
.lp-panel h3 { font-size: 24px; letter-spacing: -0.02em; font-weight: 800; }
.lp-panel p { margin: 0; color: var(--muted); font-size: 16px; }
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin: 40px auto 0; }
.lp-cmp { padding: 28px; border-radius: 20px; border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; justify-items: start; }
.lp-cmp h3 { font-size: 18px; }
.lp-cmp ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lp-cmp li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.lp-cmp li svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.lp-cmp.bad { background: var(--surface-2); }
.lp-cmp.bad li svg { color: var(--bad); }
.lp-cmp.good { background: linear-gradient(180deg, #faf5ff, #fff); border-color: #e4d0ff; box-shadow: 0 12px 32px rgba(122, 0, 255, .10); }
.lp-cmp.good li svg { color: var(--ok); }
.lp-center { display: flex; justify-content: center; margin-top: 32px; }
.lp-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 860px; margin: 40px auto 0; }
.lp-plan { position: relative; display: grid; gap: 16px; align-content: start; padding: 30px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.lp-plan.featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--pulse-grad) border-box; box-shadow: 0 16px 40px rgba(122, 0, 255, .14); }
.lp-plan-tag { position: absolute; top: -12px; left: 24px; font-size: 12px; font-weight: 700; color: #fff; background: var(--pulse-grad); padding: 3px 10px; border-radius: 999px; }
.lp-plan-tag.soft { background: var(--pulse-navy); }
.lp-plan h3 { font-size: 18px; }
.lp-price { display: grid; gap: 2px; }
.lp-price b { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.lp-price span { color: var(--muted); font-size: 13.5px; }
.lp-plan .btn { width: 100%; }
.lp-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--pulse-navy); color: #fff; box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .25s; }
.lp-sticky.on { transform: none; }
.lp-sticky span { display: grid; line-height: 1.25; }
.lp-sticky small { color: #a5a9c4; }
@media (max-width: 960px) {
  .site-links { display: none; }
  .site-nav-in { padding: 10px 16px; gap: 12px; }
  .site-footer-in { grid-template-columns: 1fr 1fr; }
  .site-footer-brand { grid-column: 1 / -1; }
  .legal-wrap { grid-template-columns: minmax(0, 1fr); padding: 20px 16px 56px; }
  .legal-side { position: static; order: 2; }
  .legal-doc { padding: 24px 20px 28px; border-radius: 16px; }
  .legal-summary { grid-template-columns: 1fr; }
  .legal-hero { padding: 36px 16px 0; }
  .lp-row, .lp-compare, .lp-plans { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lp-row { margin-top: 48px; }
  .lp-row.rev .lp-row-text { order: 0; }
  .lp-row-visual { padding: 16px; }
  .lp-proof-in { grid-template-columns: 1fr 1fr; }
  .lp-sticky { display: flex; }
  .lp-hero { padding-top: 40px; }
  .site-cta-band { padding: 56px 16px; }
}
@media (max-width: 520px) {
  .site-login { display: none; }
  .site-bar { font-size: 12px; }
  .lp-capture { flex-direction: column; }
  .lp-capture .btn { width: 100%; }
  .lp-tabs button { padding: 8px 12px; font-size: 13px; }
  .lp-panel { padding: 22px; }
  .site-cta-band .btn { width: 100%; }
}
@media (max-width: 960px) {
  .lp .site-footer-bottom { padding-bottom: 96px; }
  .legal-summary > div { grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .legal-summary > div .lp-ic { grid-row: span 2; }
  .legal-summary strong { margin-top: 0; }
}
.legal-tabs { scrollbar-width: none; } .legal-tabs::-webkit-scrollbar { display: none; }

/* ---------- painel no celular: cabeçalho, abas inferiores e menu lateral ---------- */
.m-head, .m-tabs, .m-backdrop, .m-close { display: none; }
@media (max-width: 820px) {
  .m-head { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; height: 56px; padding: 0 8px 0 14px;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .m-logo { display: grid; place-items: center; }
  .m-logo .dmp-symbol { width: 30px; height: 27px; }
  .m-title { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 700; color: var(--ink); }
  .m-menu-btn, .m-close { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
  .m-menu-btn:active, .m-close:active { background: var(--surface-2); }
  .m-menu-btn svg, .m-close svg { width: 22px; height: 22px; }
  .m-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .m-tabs a, .m-tabs button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none; font: 600 11px var(--font); color: var(--muted); cursor: pointer; border-radius: 12px; }
  .m-tabs a:hover { text-decoration: none; }
  .m-tabs svg { width: 22px; height: 22px; }
  .m-tabs a[aria-current="page"] { color: var(--pulse-purple); }
  .m-tabs a[aria-current="page"] svg { stroke-width: 2.2; }
  .m-dot { position: absolute; top: 4px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--pulse-magenta); border: 2px solid #fff; }
  .main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); min-width: 0; }
  /* menu lateral (gaveta) */
  .sidebar { display: flex !important; position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); height: 100dvh; z-index: 60;
    transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-lg); overflow-y: auto; }
  .menu-open .sidebar { transform: none; }
  .m-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(11, 15, 43, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .menu-open .m-backdrop { opacity: 1; pointer-events: auto; }
  .menu-open { overflow: hidden; }
  .sidebar-logo { display: flex; align-items: center; justify-content: space-between; }
  .m-close { display: grid; }
  .sidebar .nav a { padding: 11px 10px; font-size: 15px; }
  /* conteúdo */
  .topbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .topbar h1 { font-size: 22px; }
  .topbar .actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .topbar .actions .btn { flex: 1 1 auto; justify-content: center; height: 40px; }
  .card-head { flex-wrap: wrap; gap: 10px; }
  .toast, .callout { font-size: 13.5px; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
  .segmented { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .segmented::-webkit-scrollbar { display: none; }
  input.input, select.input, textarea.textarea, .input { font-size: 16px; }
}

/* ---------- site público: menu no celular ---------- */
.site-burger { display: none; }
.site-mmenu { display: none; }
@media (max-width: 960px) {
  .site-burger { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
  .site-burger svg { width: 22px; height: 22px; }
  .site-nav .site-cta { height: 40px; }
  .site-mmenu { display: grid; gap: 4px; position: absolute; left: 0; right: 0; top: 100%; padding: 12px 16px 18px; background: var(--pulse-navy); border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .35); transform-origin: top; transform: scaleY(.96); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
  .site-nav.open .site-mmenu { opacity: 1; transform: none; pointer-events: auto; }
  .site-mmenu a:not(.btn) { color: #e5e7eb; font-size: 16px; font-weight: 600; padding: 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .site-mmenu a:not(.btn):hover { text-decoration: none; color: #fff; }
  .site-mmenu .btn { margin-top: 10px; height: 46px; justify-content: center; font-size: 15px; font-weight: 600; }
}
@media (max-width: 520px) {
  .site-nav .site-cta { display: none; }
  .logo.on-dark .dmp-symbol { width: 34px; height: 31px; }
}

@media (max-width: 820px) {
  .m-brand { flex: 1; font-size: 19px; color: var(--pulse-navy); }
  .m-brand:hover { text-decoration: none; }
  .table { display: table; white-space: normal; }
  .table.tstack thead { display: none; }
  .table.tstack, .table.tstack tbody { display: block; }
  .table.tstack tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table.tstack tr:last-child { border-bottom: 0; }
  .table.tstack td { display: block; padding: 0; border: 0; text-align: left !important; min-width: 0; white-space: normal; }
  .table.tstack td:first-child { grid-column: 1 / -1; }
  .table.tstack td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); margin-bottom: 2px; }
  .table.tstack td[colspan] { grid-column: 1 / -1; }
  .table.tstack tbody tr:hover td { background: none; }
  .table-wrap { overflow: visible; }
}
@media (max-width: 820px) {
  .auto-card { gap: 12px; padding: 14px; }
  .auto-thumb { width: 56px; height: 70px; }
  .auto-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 10px 0 2px; border-top: 1px solid var(--line); }
  .auto-stats div { text-align: center; min-width: 0; }
  .auto-stats b { font-size: 16px; }
  .auto-stats span { font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 820px) {
  .tk-banner .grow { flex: 1 1 calc(100% - 60px); }
  .tk-banner form { width: 100%; }
  .tk-banner form .btn { width: 100%; justify-content: center; height: 42px; }
  .tk-tabs { width: 100%; }
  .tk-tabs a { flex: 1; text-align: center; }
}
@media (max-width: 820px) {
  .tpl-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .tpl-grid::-webkit-scrollbar { display: none; }
  .tpl { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ---------- redes (Instagram e TikTok no mesmo lugar) ---------- */
.net-ic { width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center; flex: none; color: #fff; }
.net-ic svg { width: 13px; height: 13px; }
.net-ic.ig { background: linear-gradient(135deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf 85%, #4f5bd5); }
.net-ic.tk { background: #000; box-shadow: -1.5px -1.5px 0 #25F4EE inset, 1.5px 1.5px 0 #FE2C55 inset; }
.net-ic.lg { width: 44px; height: 44px; border-radius: 13px; }
.net-ic.lg svg { width: 22px; height: 22px; }
.net-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.net-filter a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.net-filter a:hover { text-decoration: none; border-color: var(--line-strong); }
.net-filter a b { font-weight: 700; color: var(--muted); font-size: 12px; background: var(--surface-2); border-radius: 999px; padding: 1px 7px; }
.net-filter a[aria-current="page"] { background: var(--pulse-navy); border-color: var(--pulse-navy); color: #fff; }
.net-filter a[aria-current="page"] b { background: rgba(255, 255, 255, .16); color: #fff; }
.net-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px 2px 6px; border-radius: 999px; }
.net-chip svg { width: 12px; height: 12px; }
.net-chip.ig { background: #fdf0f6; color: #b0236b; }
.net-chip.tk { background: #111; color: #fff; }
.tpl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tpl .tpl-ic.tk { background: #000; box-shadow: -2px -2px 0 #25F4EE inset, 2px 2px 0 #FE2C55 inset; }
.tpl.disabled { opacity: .55; box-shadow: none; }
.tpl.disabled:hover { transform: none; border-color: var(--line); }
.auto-thumb { position: relative; }
.thumb-net { position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.thumb-net svg { width: 12px; height: 12px; }
.thumb-net.ig { background: linear-gradient(135deg, #fa7e1e, #d62976 55%, #4f5bd5); }
.thumb-net.tk { background: #000; }
.auto-thumb.tk-cover { display: block; padding: 6px; text-align: left; font-size: 9.5px; }
.tk-pending { align-items: center; margin-top: 12px; flex-wrap: wrap; }
.net-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.net-opt { display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px solid var(--line); border-radius: 16px; color: inherit; background: var(--surface); }
.net-opt:hover { text-decoration: none; border-color: var(--line-strong); }
.net-opt.on { border-color: var(--pulse-purple); background: #faf5ff; }
.net-opt strong { display: block; font-size: 15.5px; }
.net-opt small { color: var(--muted); }
.net-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: transparent; flex: none; }
.net-check svg { width: 14px; height: 14px; }
.net-opt.on .net-check { background: var(--pulse-purple); border-color: var(--pulse-purple); color: #fff; }
.net-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.net-tabs a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.net-tabs a:hover { text-decoration: none; }
.net-tabs a[aria-current="page"] { background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.content > .net-tabs { max-width: 360px; }
.nav .status-dot { margin-left: auto; }
@media (max-width: 820px) {
  .net-pick { grid-template-columns: 1fr; }
  .net-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .net-filter::-webkit-scrollbar { display: none; }
  .net-filter a { flex: none; }
  .content > .net-tabs { max-width: none; }
}

/* ---------- inbox: busca, filtros e não lidas ---------- */
.inbox-search { position: relative; display: flex; align-items: center; }
.inbox-search > svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.inbox-search .input { padding-left: 34px; }
.inbox-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fchip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.fchip:hover { text-decoration: none; border-color: var(--faint); }
.fchip svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.fchip select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; color: inherit; padding: 0 14px 0 0; cursor: pointer; outline: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 4px center, right 0 center; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; max-width: 150px; }
.fchip b { font-size: 11px; font-weight: 700; color: #fff; background: var(--pulse-purple); border-radius: 999px; padding: 1px 6px; }
.fchip.on { border-color: var(--pulse-purple); background: #faf5ff; color: var(--pulse-violet); }
.fchip.on svg { color: var(--pulse-purple); }
.fclear { font-size: 12.5px; color: var(--muted); padding: 0 4px; }
.conv .meta { min-width: 0; }
.conv .handle { display: block; font-size: 12px; color: var(--faint); margin-top: -1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv.unread .name { font-weight: 700; color: var(--ink); }
.conv.unread .preview { color: var(--ink); font-weight: 500; }
.conv .time { display: inline-flex; align-items: center; gap: 5px; }
.conv.unread .time { color: var(--pulse-purple); font-weight: 600; }
.udot { width: 8px; height: 8px; border-radius: 50%; background: var(--pulse-purple); display: inline-block; }
.conv .avatar { width: 44px; height: 44px; font-size: 14px; }
.avatar.xl { width: 72px; height: 72px; font-size: 24px; }
@media (max-width: 820px) {
  .inbox-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .inbox-filters::-webkit-scrollbar { display: none; }
  .fchip { flex: none; }
}

/* ---------- contatos (segmentos, filtros e ações em lote) ---------- */
.ct-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.ct-side { display: grid; gap: 22px; position: sticky; top: 16px; }
.ct-side h3 { font-size: 15px; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: baseline; }
.ct-side h3 .faint { font-size: 12px; font-weight: 500; font-style: italic; }
.ct-seg { display: grid; gap: 2px; }
.ct-seg a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; min-width: 0; }
.ct-seg a:hover { background: var(--surface); text-decoration: none; }
.ct-seg a[aria-current="page"] { background: var(--surface); color: var(--pulse-purple); font-weight: 600; box-shadow: var(--shadow); }
.ct-seg b { font-size: 12px; color: var(--muted); font-weight: 600; flex: none; }
.ct-main { display: grid; gap: 14px; min-width: 0; }
.ct-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ct-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ct-tools .fchip { height: 38px; font-size: 14px; }
.ct-search { position: relative; display: flex; align-items: center; }
.ct-search > svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.ct-search .input { padding-left: 34px; width: 300px; height: 38px; }
.ct-bulk { display: flex; align-items: center; gap: 10px; }
.ct-bulk b { color: var(--ink); }
.ct-menu { position: relative; }
.ct-menu > .btn { height: 38px; }
.ct-menu > .btn svg { width: 14px; height: 14px; }
.ct-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 240px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); display: grid; }
.ct-pop button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 8px; font: 500 14px var(--font); color: var(--ink); cursor: pointer; text-align: left; }
.ct-pop button:hover { background: var(--surface-2); }
.ct-pop button svg { width: 16px; height: 16px; color: var(--muted); }
.ct-pop button.danger, .ct-pop button.danger svg { color: var(--bad); }
.ct-pop hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.ct-card { padding: 0; overflow: hidden; }
.ct-table th.ct-check, .ct-table td.ct-check { width: 44px; padding-right: 0; }
.ct-table input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--pulse-purple); cursor: pointer; }
.ct-table tr.sel td { background: #faf5ff; }
.ct-table td { padding-top: 10px; padding-bottom: 10px; }
.ct-who { display: flex; align-items: center; gap: 12px; color: inherit; min-width: 0; }
.ct-who:hover { text-decoration: none; }
.ct-who:hover .cell-title { color: var(--pulse-purple); }
.ct-who > span:last-child { display: grid; min-width: 0; }
.ct-who .avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.ct-allbar { padding: 10px 16px; background: #faf5ff; border-bottom: 1px solid #efe3ff; font-size: 13.5px; color: var(--ink-2); }
.linklike { border: 0; background: none; color: var(--pulse-purple); font: 600 13.5px var(--font); cursor: pointer; padding: 0 4px; }
@media (max-width: 960px) {
  .ct-layout { grid-template-columns: minmax(0, 1fr); }
  .ct-side { position: static; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .ct-side::-webkit-scrollbar { display: none; }
  .ct-side section { flex: none; }
  .ct-side h3 { display: none; }
  .ct-seg { display: flex; gap: 6px; }
  .ct-seg a { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 999px; }
  .ct-search .input { width: 100%; }
  .ct-tools, .ct-search { flex: 1 1 100%; }
  .ct-bulk { width: 100%; justify-content: space-between; }
}
@media (max-width: 820px) {
  .ct-table.tstack tr { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr); }
  .ct-table.tstack td:first-child { grid-column: 1; grid-row: 1 / span 3; align-self: center; }
  .ct-table.tstack td:nth-child(2) { grid-column: 2 / -1; }
  .ct-table.tstack td:nth-child(n+3) { grid-column: auto; }
}
.ct-table { width: 100%; }

/* ---------- atividade: paginação ---------- */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); }
.pager .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.pager .btn svg { width: 14px; height: 14px; }
.act-who { display: inline-flex; align-items: center; gap: 8px; }
.act-who .avatar { width: 26px; height: 26px; font-size: 10px; }

/* ---------- ranking: medalha de posição sobre a foto ---------- */
.ravatar { position: relative; display: inline-flex; flex: none; }
.rmedal { position: absolute; left: -4px; top: -4px; z-index: 2; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff; border: 2px solid var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.rmedal.m1 { background: linear-gradient(135deg, #f7c948, #e09b00); }
.rmedal.m2 { background: linear-gradient(135deg, #cfd6e0, #8e99a8); }
.rmedal.m3 { background: linear-gradient(135deg, #e6a26a, #b8682c); }
.av-stack .ravatar + .ravatar { margin-left: -14px; }
.av-stack .ravatar .avatar { margin-left: 0 !important; }
.rank-pos { min-width: 26px; font-weight: 700; color: var(--muted); font-size: 13px; }
details.raw summary { white-space: nowrap; }

/* ---------- galeria de modelos ---------- */
.tg { display: grid; gap: 16px; }
.tg-head { display: flex; align-items: center; gap: 10px; }
.tg-head h2 { font-size: 20px; margin-right: auto; }
.tg-search { position: relative; display: flex; align-items: center; }
.tg-search > svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.tg-search .input { height: 44px; padding-left: 42px; font-size: 15px; }
.tg-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.tg-nav { display: grid; gap: 2px; position: sticky; top: 0; }
.tg-nav button { display: flex; align-items: center; gap: 8px; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 9px; font: 500 14px var(--font); color: var(--ink-2); cursor: pointer; }
.tg-nav button:hover { background: var(--surface-2); }
.tg-nav button.on { background: #efe6ff; color: var(--pulse-violet); font-weight: 600; }
.tg-label { font-size: 14px; font-weight: 700; color: var(--ink); padding: 16px 12px 6px; }
.tg-main { display: grid; gap: 28px; min-width: 0; }
.tg-main h3 { font-size: 18px; margin-bottom: 12px; }
.tg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tg-card { display: flex; flex-direction: column; gap: 8px; min-height: 196px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.tg-card:hover { text-decoration: none; border-color: var(--pulse-purple); box-shadow: 0 10px 28px rgba(122, 0, 255, .12); transform: translateY(-2px); }
.tg-card[hidden] { display: none; }
.tg-card strong { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.tg-desc { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tg-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; }
.tg-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.tg-kind > svg { width: 14px; height: 14px; }
.tg-kind .net-ic { width: 18px; height: 18px; border-radius: 6px; }
.tg-kind .net-ic svg { width: 11px; height: 11px; }
.tg-badges { display: inline-flex; gap: 4px; }
.tg-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; padding: 2px 6px; border-radius: 5px; }
.tg-badge.novo { background: #7c3aed; }
.tg-badge.popular { background: #c2410c; }
.tg-badge.soon { background: #6b7280; }
.tg-card.off { opacity: .6; }
.tg-dlg { width: min(1180px, 96vw); max-width: none; height: min(820px, 92vh); padding: 0; border: 0; border-radius: 18px; }
.tg-dlg > div { height: 100%; overflow-y: auto; padding: 22px 26px; }
.tg-dlg::backdrop { background: rgba(11, 15, 43, .55); }
.tg-page { padding-top: 24px; }
@media (max-width: 820px) {
  .tg-body { grid-template-columns: minmax(0, 1fr); }
  .tg-nav { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .tg-nav::-webkit-scrollbar { display: none; }
  .tg-nav button { flex: none; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; }
  .tg-label { display: none; }
  .tg-dlg { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  .tg-dlg > div { padding: 16px; }
  .tg-head h2 { font-size: 18px; }
}
.tg-dlg { max-height: 92vh; }

/* ---------- inbox: filtros numa barra no topo ---------- */
.inbox-shell { display: flex; flex-direction: column; height: 100vh; min-height: 0; }
.inbox-shell .inbox { flex: 1; height: auto; min-height: 0; }
.inbox-top { display: grid; gap: 10px; padding: 14px 20px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.inbox-top-row { display: flex; align-items: center; gap: 16px; }
.inbox-top h1 { font-size: 20px; margin: 0; flex: none; }
.inbox-top .inbox-search { flex: 1; max-width: 520px; margin: 0 auto; }
.inbox-top .inbox-search .input { height: 38px; }
.inbox-count { flex: none; }
.inbox-top .inbox-filters { flex-wrap: wrap; }
.inbox-top .fchip { height: 34px; }
.inbox-top .fchip .net-ic { width: 18px; height: 18px; border-radius: 6px; }
.inbox-top .fchip .net-ic svg { width: 11px; height: 11px; }
@media (max-width: 820px) {
  .inbox-shell { height: auto; }
  .inbox-top { padding: 12px 16px 10px; }
  .inbox-top-row { flex-wrap: wrap; gap: 8px; }
  .inbox-top .inbox-search { order: 3; flex: 1 1 100%; max-width: none; }
  .inbox-top .inbox-filters { flex-wrap: nowrap; }
  .inbox-top.has-thread { display: none; }
}
.inbox-top .fchip select { max-width: 220px; }

/* ---------- planos ---------- */
.pro-tag { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: #fff; background: linear-gradient(105deg, #7A00FF, #FF00A8); vertical-align: middle; text-decoration: none; }
.nav a .count.plan-pill { background: var(--line); color: var(--ink-2); }
.nav a .count.plan-pill.pro, .nav a .count.plan-pill.elite { background: linear-gradient(105deg, #7A00FF, #FF00A8); color: #fff; }
.plan-callout { margin-bottom: 18px; align-items: flex-start; border-color: color-mix(in srgb, var(--accent) 30%, white); background: var(--accent-soft); }
.plan-callout svg { color: var(--accent); flex: none; margin-top: 2px; }
.plan-callout p { margin: 4px 0 0; color: var(--ink-2); }
.plan-now { padding: 22px; margin-bottom: 22px; }
.plan-now-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.plan-now h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 4px; }
.plan-now p { margin: 0; }
.plan-usage { margin-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.plan-meter { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.plan-meter span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.plan-meter b { font-variant-numeric: tabular-nums; }
.plan-bar { margin-top: 10px; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.plan-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(105deg, #7A00FF, #FF00A8 70%, #FF7A00); }
.plan-meter.full { border-color: color-mix(in srgb, var(--bad) 35%, white); background: var(--bad-bg); }
.plan-meter.full p { margin: 8px 0 0; color: var(--bad); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 24px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan-card.featured { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(140deg, #7A00FF, #FF00A8 60%, #FF7A00) border-box; box-shadow: 0 18px 40px -24px rgba(122, 0, 255, .55); }
.plan-flag { position: absolute; top: -11px; left: 22px; padding: 3px 10px; border-radius: 999px; background: #0B0F2B; color: #fff; font-size: 11px; font-weight: 700; }
.plan-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.plan-desc { margin: 6px 0 16px; color: var(--muted); min-height: 42px; }
.plan-price { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.plan-price small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-btn { width: 100%; justify-content: center; height: 42px; }
.plan-card form { margin: 0; }
.plan-btn[aria-disabled="true"] { opacity: .65; cursor: default; }
.plan-channels { display: flex; align-items: center; gap: 6px; margin: 18px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.plan-channels svg { color: #E1306C; }
.plan-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan-feats li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.plan-feats li svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--ok); }
.plan-feats li.off { color: var(--muted); }
.plan-feats li.off svg { color: var(--faint); }
.plan-card.is-current { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.plan-foot { margin-top: 16px; }
@media (max-width: 900px) {
  .plan-usage, .plan-grid { grid-template-columns: 1fr; }
}

/* ---------- quadro do plano no menu lateral ---------- */
.pbox { margin: 0 0 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
.pbox-usage { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.pbox-usage small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.pbox-usage b { font-size: 14px; font-variant-numeric: tabular-nums; }
.pbox-ring { width: 34px; height: 34px; flex: none; transform: rotate(-90deg); }
.pbox-ring circle { fill: none; stroke-width: 4; }
.pbox-track { stroke: var(--line); }
.pbox-fill { stroke: var(--accent); stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.pbox-fill.warn { stroke: #FF7A00; }
.pbox-fill.full { stroke: var(--bad); }
.pbox-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #7A00FF, #FF00A8); color: #fff; flex: none; }
.pbox-ico svg { width: 17px; height: 17px; }
.pbox form { margin: 0; }
.pbox-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 36px; border: 0; border-radius: 9px; background: linear-gradient(105deg, #7A00FF, #FF00A8); color: #fff; font: 700 13px var(--font); cursor: pointer; text-decoration: none; transition: filter .2s, transform .2s; }
.pbox-btn:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.avatar-wrap { position: relative; display: inline-flex; flex: none; }
.avatar-plan { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 0 4px; border-radius: 4px; font: 800 8px/12px var(--font); font-style: normal; letter-spacing: .03em; background: #4b5563; color: #fff; white-space: nowrap; }
.avatar-plan.pro, .avatar-plan.elite { background: linear-gradient(105deg, #7A00FF, #FF00A8); }

/* ---------- administração ---------- */
.adm-tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.adm-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.adm-tabs a svg { width: 16px; height: 16px; }
.adm-tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.adm-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.adm-toolbar .input { max-width: 340px; }
.adm-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-filters .chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 12.5px var(--font); cursor: pointer; }
.adm-filters .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.plan-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--line); color: var(--ink-2); }
.plan-tag.pro, .plan-tag.elite { background: linear-gradient(105deg, #7A00FF, #FF00A8); color: #fff; }
.adm-menu { position: relative; display: inline-block; text-align: left; }
.adm-menu > summary { list-style: none; cursor: pointer; }
.adm-menu > summary::-webkit-details-marker { display: none; }
.adm-pop { position: fixed; z-index: 80; width: 300px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; gap: 10px; white-space: normal; }
.adm-pop form { margin: 0; }
.adm-pop .input.sm { width: 150px; }
.adm-pop-sep, .adm-sep { height: 1px; background: var(--line); margin: 4px 0; }
.adm-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.adm-card { padding: 22px; }
.adm-card h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.adm-card h3 { font-size: 14px; margin: 4px 0 0; }
.adm-card .field > span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adm-help ol { margin: 10px 0 16px; padding-left: 18px; display: grid; gap: 10px; color: var(--ink-2); line-height: 1.5; }
.adm-help code, .adm-card code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 900px) { .adm-grid, .adm-two { grid-template-columns: 1fr; } .adm-pop { width: 270px; } }

/* menu lateral: a lista rola sozinha e o rodapé (plano, conta, Sair) fica sempre visível */
.sidebar { overflow: hidden; }
.sidebar > .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin-right: -6px; padding-right: 6px; }
.sidebar-foot { flex: none; }
@media (max-height: 860px) {
  .sidebar { padding-top: 12px; padding-bottom: 10px; }
  .sidebar-logo { padding-bottom: 12px; }
  .nav a { padding-top: 6px; padding-bottom: 6px; }
  .nav-label { padding-top: 10px; padding-bottom: 4px; }
  .pbox { padding: 9px 10px; gap: 8px; margin-bottom: 8px; }
  .pbox-btn { height: 32px; }
  .sidebar-foot { padding-top: 8px; gap: 4px; }
}
