:root {
  color-scheme: dark;
  --bg: #050505;
  --surface-1: #141416;
  --surface-2: #1b1b1f;
  --surface-3: #232328;
  --border: #2a2a30;
  --border-strong: #3a3a42;
  --text-primary: #f5f3ee;
  --text-secondary: #b9b5ab;
  --text-muted: #85827a;
  --accent: #f2b705;
  --accent-strong: #ffc62e;
  --accent-soft: rgba(242, 183, 5, 0.12);
  --grid: #26262b;

  /* Status (fixo; sempre acompanhado de ícone + texto) */
  --good: #0ca30c;
  --good-text: #56d364;
  --good-soft: rgba(12, 163, 12, 0.14);
  --warning: #fab219;
  --warning-soft: rgba(250, 178, 25, 0.12);
  --critical: #d03b3b;
  --critical-text: #f27d7d;
  --critical-soft: rgba(208, 59, 59, 0.14);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px -18px rgba(0, 0, 0, 0.8);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Oswald', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1200px 500px at 50% -200px, rgba(242, 183, 5, 0.06), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner, .filters__inner, .page { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 52px; height: 40px; object-fit: contain; flex: none; mix-blend-mode: lighten; }
.brand__name { font-family: var(--font-brand); font-weight: 700; letter-spacing: 0.14em; font-size: 20px; line-height: 1; }
.brand__sub { color: var(--text-muted); font-size: 12px; letter-spacing: 0.04em; margin-top: 4px; }
.sync { display: flex; align-items: center; gap: 14px; }
.sync__text { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 13px; flex-wrap: wrap; justify-content: flex-end; }
.sync__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); flex: none; }
.sync__dot.is-live { background: var(--good); box-shadow: 0 0 0 4px var(--good-soft); }
.sync__dot.is-stale { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-soft); }
.sync__dot.is-error { background: var(--critical); box-shadow: 0 0 0 4px var(--critical-soft); }
.sync__next { color: var(--text-muted); }
#lastUpdate { color: var(--text-primary); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2);
  padding: 9px 16px; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #151209; }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { background: transparent; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.is-loading svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Filtros ---------- */
.filters { border-bottom: 1px solid var(--border); background: rgba(11, 11, 12, 0.6); }
.filters__inner { padding-top: 12px; padding-bottom: 12px; display: grid; gap: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -4px; padding-left: 4px; padding-right: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--border); background: var(--surface-1); color: var(--text-secondary);
  border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: all 0.15s;
}
.chip:hover { color: var(--text-primary); border-color: var(--border-strong); }
.chip[aria-checked='true'] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); font-weight: 600; }
.filters__row { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.custom-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.custom-range label { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 14px; }
.custom-range input { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 8px; padding: 6px 8px; color-scheme: dark; }
.range-text { color: var(--text-muted); font-size: 13px; margin-left: auto; }

.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; transition: background 0.15s; flex: none; }
.switch__thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-secondary); transition: transform 0.15s, background 0.15s; }
.switch input:checked + .switch__track { background: var(--accent-soft); border-color: var(--accent); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(16px); background: var(--accent); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Página ---------- */
.page { padding-top: 24px; padding-bottom: 64px; }
.section { margin-top: 40px; }
.section:first-child { margin-top: 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section__title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.section__desc { color: var(--text-secondary); margin: 4px 0 0; font-size: 14px; max-width: 720px; }
.eyebrow { font-family: var(--font-brand); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-size: 12px; font-weight: 600; margin-bottom: 6px; }

.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.card--accent { border-color: rgba(242, 183, 5, 0.35); background: linear-gradient(180deg, rgba(242, 183, 5, 0.06), rgba(242, 183, 5, 0) 60%), var(--surface-1); }

.grid { display: grid; gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Banner ---------- */
.banner { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 20px; font-size: 14px; border: 1px solid; }
.banner--warning { background: var(--warning-soft); border-color: rgba(250, 178, 25, 0.35); }
.banner--error { background: var(--critical-soft); border-color: rgba(208, 59, 59, 0.45); }
.banner strong { display: block; }
.banner .icon { flex: none; margin-top: 2px; }

/* ---------- Resumo ---------- */
.summary { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.summary__text p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; color: var(--text-secondary); }
.summary__text p:first-of-type { color: var(--text-primary); font-size: 18px; font-weight: 500; }
.summary__text p:last-child { margin-bottom: 0; }
.alerts { display: grid; gap: 10px; align-content: start; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.45; border: 1px solid var(--border); background: var(--surface-2); }
.alert__icon { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.alert--warning { border-color: rgba(250, 178, 25, 0.35); }
.alert--warning .alert__icon { background: var(--warning); color: #1a1200; }
.alert--good { border-color: rgba(12, 163, 12, 0.4); }
.alert--good .alert__icon { background: var(--good); color: #fff; }
.alert--info .alert__icon { background: var(--surface-3); color: var(--text-secondary); }
.alert__label { font-weight: 700; margin-right: 4px; }
.alerts__empty { color: var(--text-muted); font-size: 14px; padding: 12px 0; }

/* ---------- KPI ---------- */
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi__label { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.kpi__value { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.kpi__value small { font-size: 16px; font-weight: 500; color: var(--text-secondary); margin-left: 4px; letter-spacing: 0; }
.kpi__desc { color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.kpi--hero .kpi__value { font-size: 56px; }

.delta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 9px 3px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-secondary); width: fit-content; }
.delta svg { width: 12px; height: 12px; }
.delta--good { background: var(--good-soft); color: var(--good-text); }
.delta--bad { background: var(--critical-soft); color: var(--critical-text); }
.delta__vs { font-weight: 400; color: var(--text-muted); }
.delta-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.delta-line .muted { color: var(--text-muted); }

.freq { display: flex; gap: 5px; margin-top: 4px; align-items: center; }
.freq__eye { width: 20px; height: 20px; color: var(--accent); }
.freq__eye--partial { opacity: 0.4; }

/* ---------- Info tooltip ---------- */
.info { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; color: var(--text-muted); font-size: 11px; font-weight: 700; font-style: normal; padding: 0; flex: none; line-height: 1; }
.info:hover, .info[aria-expanded='true'] { color: var(--accent); border-color: var(--accent); }
.tooltip { position: fixed; z-index: 100; max-width: 280px; background: #f5f3ee; color: #141416; font-size: 13px; line-height: 1.45; padding: 10px 12px; border-radius: 10px; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.7); pointer-events: none; }
.tooltip strong { display: block; margin-bottom: 2px; }

/* ---------- WhatsApp ---------- */
.wa { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 16px; }
.wa__hero { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.wa__badge { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 13px; }
.wa__badge svg { width: 18px; height: 18px; color: #25d366; }
.wa__cpc { border-top: 1px solid var(--border); padding-top: 16px; }
.wa__cpc .kpi__value { font-size: 40px; color: var(--accent-strong); }
.hint { font-size: 13px; color: var(--text-secondary); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.note { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

/* ---------- Funil ---------- */
.funnel { display: grid; gap: 14px; }
.funnel__row { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) 90px; align-items: center; gap: 4px 16px; }
.funnel__label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-secondary); }
.funnel__track { height: 38px; background: var(--surface-2); border-radius: 8px; position: relative; overflow: hidden; }
.funnel__bar { height: 100%; width: 0; background: var(--accent); border-radius: 4px 8px 8px 4px; min-width: 4px; transition: width 0.4s ease; }
.funnel__value { text-align: right; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.funnel__step { grid-column: 2 / 4; font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.funnel__step svg { width: 12px; height: 12px; }
.funnel__insights { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 8px; list-style: none; }
.funnel__insights li { display: flex; gap: 10px; font-size: 15px; color: var(--text-primary); }
.funnel__insights li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 9px; }
.unavailable { margin-top: 14px; display: grid; gap: 6px; }
.unavailable div { font-size: 13px; color: var(--text-muted); }
.unavailable strong { color: var(--text-secondary); font-weight: 600; }

/* ---------- Saúde ---------- */
.health__value { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.health__ref { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.health__ref-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-muted); }
.health__ref-top b { color: var(--text-secondary); font-weight: 600; white-space: nowrap; }
.health__result { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.health__result .dot { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; margin-top: 1px; }
.dot--good { background: var(--good); color: #fff; }
.dot--bad { background: var(--critical); color: #fff; }
.dot--neutral { background: var(--surface-3); color: var(--text-secondary); }
.dot--muted { background: transparent; border: 1px dashed var(--border-strong); color: var(--text-muted); }
.health__result--muted { color: var(--text-muted); }

/* ---------- Evolução ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 1px solid var(--border); background: transparent; color: var(--text-secondary); border-radius: 8px; padding: 7px 12px; font-size: 14px; white-space: nowrap; }
.tab[aria-selected='true'] { background: var(--surface-3); color: var(--text-primary); border-color: var(--border-strong); font-weight: 600; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-head__title { font-size: 15px; font-weight: 600; }
.chart-head__desc { font-size: 13px; color: var(--text-muted); max-width: 640px; }
.chart-head__stat { text-align: right; font-size: 13px; color: var(--text-muted); }
.chart-head__stat b { display: block; font-size: 22px; color: var(--text-primary); }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text { fill: var(--text-muted); font-size: 11px; font-family: var(--font); }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--border-strong); stroke-width: 1; }
.chart .avgline { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 4 4; }
.chart .avglabel { fill: var(--text-primary); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: var(--surface-1); stroke-width: 4px; stroke-linejoin: round; }
.chart .bar { fill: var(--accent); }
.chart .bar.is-dim { opacity: 0.55; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#areaFill); }
.chart .point { fill: var(--accent); stroke: var(--surface-1); stroke-width: 2; }
.chart .crosshair { stroke: var(--text-muted); stroke-width: 1; }
.chart-tip { position: absolute; pointer-events: none; background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; font-size: 13px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); box-shadow: 0 10px 24px -10px rgba(0,0,0,0.8); }
.chart-tip b { display: block; font-size: 15px; }
.chart-tip span { color: var(--text-muted); }
.chart-empty { padding: 48px 16px; text-align: center; color: var(--text-muted); }
details.table-view { margin-top: 12px; }
details.table-view summary { cursor: pointer; color: var(--text-secondary); font-size: 13px; }

/* ---------- Anúncios ---------- */
.toolbar { display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; }
.select { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 10px; font-size: 14px; color-scheme: dark; }
.ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ad { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ad__media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.ad__media img { width: 100%; height: 100%; object-fit: cover; }
.ad__media--empty { display: grid; place-items: center; color: var(--text-muted); font-size: 13px; }
.ad__rank { position: absolute; top: 10px; left: 10px; background: rgba(11,11,12,0.85); border: 1px solid var(--border-strong); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 3px 9px; }
.ad__format { position: absolute; top: 10px; right: 10px; background: rgba(11,11,12,0.85); border-radius: 999px; font-size: 11px; padding: 3px 8px; color: var(--text-secondary); }
.ad__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ad__name { font-weight: 700; font-size: 16px; line-height: 1.3; margin: 0; }
.ad__meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ad__main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 12px; }
.ad__main .lbl { font-size: 12px; color: var(--text-muted); display: flex; gap: 4px; align-items: center; }
.ad__main .val { font-size: 19px; font-weight: 700; white-space: nowrap; }
.ad__share { display: grid; gap: 4px; font-size: 12px; color: var(--text-muted); }
.ad__share-bar { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.ad__share-bar span { display: block; width: 0; height: 100%; background: var(--accent); border-radius: 999px; }
.ad__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
.ad__stats div { min-width: 0; }
.ad__stats .lbl { font-size: 11px; color: var(--text-muted); display: flex; gap: 4px; align-items: center; }
.ad__stats .val { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ad__reading { border-left: 3px solid var(--border-strong); padding: 2px 0 2px 12px; font-size: 13.5px; color: var(--text-secondary); display: grid; gap: 4px; margin-top: auto; }
.ad__reading--good { border-color: var(--good); }
.ad__reading--bad { border-color: var(--critical); }
.ad__reading p { margin: 0; }
.more { display: flex; justify-content: center; margin-top: 16px; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); }
.status--active::before { background: var(--good); }
.status--issue::before { background: var(--warning); }

/* ---------- Campanhas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-1); }
table.tree { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 980px; }
.tree th { text-align: right; font-weight: 600; font-size: 12px; color: var(--text-muted); padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-1); }
.tree th:first-child, .tree td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface-1); z-index: 1; }
.tree th .th-inner { display: inline-flex; align-items: center; gap: 4px; }
.tree td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tree tr:last-child td { border-bottom: 0; }
.tree td.name { max-width: 340px; white-space: normal; min-width: 240px; }
.tree tr.lvl-1 td { background: var(--surface-2); }
.tree tr.lvl-2 td { background: #18181b; font-size: 13px; }
.tree tr.lvl-1 td:first-child { background: var(--surface-2); }
.tree tr.lvl-2 td:first-child { background: #18181b; }
.tree .name-cell { display: flex; align-items: center; gap: 8px; }
.tree .lvl-1 .name-cell { padding-left: 22px; }
.tree .lvl-2 .name-cell { padding-left: 50px; }
.expander { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface-2); display: grid; place-items: center; padding: 0; color: var(--text-secondary); }
.expander svg { width: 12px; height: 12px; transition: transform 0.15s; }
.expander[aria-expanded='true'] svg { transform: rotate(90deg); }
.expander-spacer { width: 24px; flex: none; }
.tree .sub { display: block; font-size: 12px; color: var(--text-muted); }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-secondary); margin-left: 6px; vertical-align: 1px; }
.tag--wa { background: rgba(37, 211, 102, 0.12); color: #58d68d; }
.thumb-sm { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex: none; background: var(--surface-3); }

/* ---------- Como ler ---------- */
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 24px; }
.glossary dt { font-weight: 600; font-size: 14px; }
.glossary dd { margin: 2px 0 0; color: var(--text-secondary); font-size: 13.5px; }
.limits { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.limits li { font-size: 14px; color: var(--text-secondary); padding-left: 18px; position: relative; }
.limits li::before { content: '—'; position: absolute; left: 0; color: var(--text-muted); }
.limits b { color: var(--text-primary); font-weight: 600; }
.footer { color: var(--text-muted); font-size: 12px; text-align: center; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); display: grid; justify-items: center; gap: 8px; }
.footer__logo { width: 150px; height: auto; mix-blend-mode: lighten; }
.footer__audit { font-size: 14px; color: var(--text-secondary); }
.footer__audit strong { color: var(--accent); font-weight: 700; }

/* ---------- Skeleton ---------- */
.skeleton-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.skeleton { height: 140px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-1), var(--surface-2), var(--surface-1)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton--wide { grid-column: 1 / -1; }
.skeleton--tall { height: 320px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.fatal { text-align: center; padding: 56px 20px; }
.fatal h2 { margin: 0 0 8px; }
.fatal p { color: var(--text-secondary); max-width: 520px; margin: 0 auto 20px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wa { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  .topbar__inner, .filters__inner, .page { padding-left: 16px; padding-right: 16px; }
  .topbar__inner { flex-wrap: wrap; }
  .brand__name { font-size: 17px; }
  .sync { width: 100%; justify-content: space-between; }
  .sync__text { justify-content: flex-start; }
  .sync__next { display: none; }
  .btn--primary span { display: none; }
  .btn--primary { padding: 9px 12px; }
  .range-text { margin-left: 0; width: 100%; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 16px; }
  .kpi__value { font-size: 24px; }
  .kpi--hero .kpi__value { font-size: 44px; }
  .wa__cpc .kpi__value { font-size: 32px; }
  .section { margin-top: 32px; }
  .section__title { font-size: 19px; }
  .summary__text p:first-of-type { font-size: 16px; }
  .funnel__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .funnel__track { grid-column: 1 / -1; grid-row: 2; height: 28px; }
  .funnel__step { grid-column: 1 / -1; grid-row: 3; }
  .health-grid { grid-template-columns: 1fr !important; }
  .ads { grid-template-columns: 1fr; }
  .skeleton-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .kpi__value { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.left { text-align: left !important; }
.card__title { margin-top: 0; }
.table-wrap--mini { margin-top: 8px; max-height: 360px; overflow: auto; }
table.tree--mini { min-width: 0; }

/* ---------- Abertura com a marca ---------- */
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 28px; padding: 8px 0 28px; border-bottom: 1px solid var(--border); }
.hero__logo { width: 230px; height: auto; mix-blend-mode: lighten; }
.hero__title { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
.hero__desc { color: var(--text-secondary); margin: 0 0 16px; max-width: 620px; }
.audit { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border: 1px solid rgba(242, 183, 5, 0.4); border-radius: 999px; background: var(--accent-soft); }
.audit__seal { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #111; display: grid; place-items: center; flex: none; }
.audit__seal svg { width: 20px; height: 20px; }
.audit__label { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); line-height: 1.2; }
.audit strong { display: block; font-size: 15px; line-height: 1.3; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; padding-bottom: 20px; }
  .hero__logo { width: 190px; }
  .hero__title { font-size: 22px; }
  .hero__desc { font-size: 14px; }
  .brand__mark { width: 44px; height: 34px; }
  .brand__sub { font-size: 11px; }
}
