/* ============================================================================
   Central RR — sistema visual baseado no MANUAL BASE · REDE RONALDO
   Cores oficiais: azul #2226FF · amarelo #FDD306 · branco #FFFFFF · laranja #FF4700 · preto
   Fontes oficiais: Champion HTF-Bantamweight (marca e vitrine do login) · Rajdhani (texto e números)
   v1.5: números em Rajdhani Medium (o número manda), títulos rebaixados — tracked, sem peso;
   Champion fica onde é marca: "CENTRAL RR" na barra lateral e o painel do login.
   Elementos-base: faixas diagonais, pontilhado, tipografia vazada (outline)
   ============================================================================ */
@font-face { font-family: "Champion"; font-weight: 400; src: url("/static/fonts/Champion-HTF-Bantamweight.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Champion Fly"; font-weight: 400; src: url("/static/fonts/Champion-HTF-Flyweight.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Rajdhani"; font-weight: 300; src: url("/static/fonts/Rajdhani-Light.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Rajdhani"; font-weight: 400; src: url("/static/fonts/Rajdhani-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Rajdhani"; font-weight: 500; src: url("/static/fonts/Rajdhani-Medium.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Rajdhani"; font-weight: 600; src: url("/static/fonts/Rajdhani-SemiBold.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Rajdhani"; font-weight: 700; src: url("/static/fonts/Rajdhani-Bold.ttf") format("truetype"); font-display: swap; }

:root {
  --blue: #2226FF; --blue-deep: #1418C4; --blue-ink: #0C0E7A; --blue-soft: #E8E9FF; --blue-tint: #F3F4FF;
  --yellow: #FDD306; --yellow-deep: #D9B300; --yellow-soft: #FFF6C2;
  --orange: #FF4700; --orange-soft: #FFE4D9;
  --ink: #0B0B0F; --ink-2: #33343D; --muted: #6E7080;
  --paper: #F4F5FA; --card: #FFFFFF; --line: #E3E4EC; --line-2: #CDCFDD; --paper-2: #FFFFFF; --paper-3: #ECEDF5;
  --ig: #FF4700; --yt: #2226FF; --tt: #0B0B0F; --tw: #D9B300;
  --radius: 6px;
  --shadow: none;
  --display: "Champion", "Rajdhani", "Arial Narrow", sans-serif;
  --font: "Rajdhani", "Segoe UI", Roboto, Arial, sans-serif;
  --dots: radial-gradient(rgba(34,38,255,.13) 1px, transparent 1.2px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 16px; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
/* número: Rajdhani Medium, um pouco fechado, algarismos tabulares — a mesma escala do Modo TV */
.numeral, .kpi .value, .mini .v, .plat .val, .crow .stat b, .kv b, .guide .step .n, .drawer .kv b { font-family: var(--font); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
/* título de página/seção: rebaixado, tracked, sem peso — o número tem que ter mais destaque que o título */
.titulo { font-family: var(--font); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }

/* faixas diagonais (elemento-base do manual) */
.stripes { display: inline-block; height: 10px; width: 150px; background: repeating-linear-gradient(-60deg, var(--yellow) 0 12px, transparent 12px 22px); }
.stripes.blue { background: repeating-linear-gradient(-60deg, var(--blue) 0 12px, transparent 12px 22px); }
.stripes.white { background: repeating-linear-gradient(-60deg, #fff 0 12px, transparent 12px 22px); }
.slash { display: inline-block; width: 26px; height: 10px; background: var(--yellow); transform: skewX(-30deg); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.sidebar { background: var(--blue); color: #fff; padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.2px); background-size: 14px 14px; }
.sidebar .brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 18px; border-bottom: 1px solid rgba(255,255,255,.22); margin-bottom: 12px; }
.sidebar .brand img { height: 46px; }
.sidebar .brand .name { font-family: var(--display); font-size: 26px; letter-spacing: .04em; line-height: 1; text-transform: uppercase; }
.sidebar .brand .sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); margin-top: 4px; font-weight: 700; }
.sidebar .stripes { margin: 2px 6px 10px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 4px; font-weight: 600; font-size: 15px; letter-spacing: .02em; color: rgba(255,255,255,.86); transition: background .15s, color .15s, transform .15s; }
.nav a .k { font-size: 11px; letter-spacing: .14em; opacity: .6; width: 22px; font-weight: 700; }
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav a.active { background: var(--yellow); color: var(--ink); }
.nav a.active .k { opacity: .7; }
.nav a .badge { margin-left: auto; background: var(--orange); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 700; }
.nav a.active .badge { background: var(--ink); color: var(--yellow); }
.sidebar .foot { margin-top: auto; font-size: 12px; color: rgba(255,255,255,.8); display: flex; flex-direction: column; gap: 8px; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); display: inline-block; }
.live-dot.on i { background: var(--yellow); box-shadow: 0 0 0 4px rgba(253,211,6,.22); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(253,211,6,.22);} 50% { box-shadow: 0 0 0 7px rgba(253,211,6,.06);} }
.demo-pill { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 700; letter-spacing: .14em; font-size: 11px; padding: 3px 9px; border-radius: 3px; }
.user-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.user-line button { background: none; border: 1px solid rgba(255,255,255,.4); color: inherit; border-radius: 4px; padding: 3px 8px; font-size: 12px; }

.main { padding: 22px 36px 60px; min-width: 0; position: relative; }
.main::before { content: ""; display: block; height: 10px; width: 180px; margin: 0 0 18px; background: repeating-linear-gradient(-60deg, var(--yellow) 0 12px, transparent 12px 22px); }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.topbar h1 { font-family: var(--font); font-weight: 600; font-size: 22px; margin: 0; letter-spacing: .18em; line-height: 1.1; text-transform: uppercase; color: var(--ink); }
.topbar .eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: 8px; }
.topbar .lead { color: var(--ink-2); font-size: 15px; margin-top: 10px; max-width: 760px; line-height: 1.4; }
.topbar .right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sources { display: flex; gap: 6px; flex-wrap: wrap; }
.src { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 4px 10px 4px 7px; font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }
.src i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.src.stale i { background: var(--orange); }
.src.demo { border-style: dashed; border-color: var(--line-2); }
.src.manual { border-color: var(--yellow-deep); } .src.manual i { background: var(--yellow-deep); }
.src small { color: var(--muted); font-weight: 500; }

/* ---------- period selector ---------- */
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line-2); border-radius: 4px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 3px; font-weight: 700; font-size: 13px; color: var(--ink-2); letter-spacing: .02em; }
.seg button.active { background: var(--blue); color: #fff; }
.custom-range { display: inline-flex; gap: 6px; align-items: center; }
.custom-range input { border: 1px solid var(--line-2); border-radius: 4px; padding: 5px 8px; background: #fff; font-size: 13px; }

/* ---------- grid & cards ---------- */
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g23 { grid-template-columns: 2fr 1fr; }
.g32 { grid-template-columns: 3fr 2fr; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; position: relative; min-width: 0; }
.card.fill.blue { background: var(--blue); color: #fff; border-color: var(--blue); background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.2px); background-size: 14px 14px; }
.card.fill.blue .label { color: var(--yellow); }
.card.fill.blue .muted { color: rgba(255,255,255,.75); }
.card.fill.yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.card.fill.yellow .label { color: rgba(11,11,15,.6); }
.card.flat { background: transparent; }
.card.accent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: var(--radius) 0 0 var(--radius); background: var(--blue); }
.card.accent.blue::before { background: var(--yellow); }
.card.accent.yellow::before { background: var(--yellow); }
.card.accent.orange::before { background: var(--orange); }
.label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
/* Título do card ≠ rótulo de linha. O primeiro .label de um card é o título: um pouco maior, com o
   traço amarelo da marca e uma linha embaixo; os rótulos internos ficam menores e mais apagados.
   Sem isso "DESTAQUES DE HOJE" e "CRESCE MAIS RÁPIDO" eram a mesma coisa na tela. */
.card > .label:first-child { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .16em; color: var(--ink); padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.card > .label:first-child::before { content: ""; display: inline-block; width: 14px; height: 7px; background: var(--yellow); transform: skewX(-30deg); flex: 0 0 auto; }
.card.fill.blue > .label:first-child { color: var(--yellow); border-bottom-color: rgba(255,255,255,.18); }
.card.fill.blue > .label:first-child::before { background: var(--yellow); }
.card.fill.yellow > .label:first-child { color: var(--ink); border-bottom-color: rgba(11,11,15,.18); }
.card.fill.yellow > .label:first-child::before { background: var(--ink); }
.card.kpi > .label:first-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.card.kpi > .label:first-child::before { display: none; }
.card .label:not(:first-child), .mini .label, .hl .label, .kv span { font-size: 10px; letter-spacing: .16em; font-weight: 600; }
.card.fill.blue .label:not(:first-child) { color: rgba(255,255,255,.62); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 12px; gap: 12px; }
.section-title h2 { font-family: var(--font); font-weight: 600; font-size: 17px; margin: 0; text-transform: uppercase; letter-spacing: .16em; line-height: 1; color: var(--ink-2); }
.section-title h2::before { content: ""; display: inline-block; width: 18px; height: 8px; background: var(--yellow); transform: skewX(-30deg); margin-right: 10px; vertical-align: 2px; }
.section-title .hint { color: var(--blue); font-size: 13px; font-weight: 700; }

/* KPI */
.kpi .value { font-size: 52px; line-height: .95; margin: 10px 0 8px; color: var(--blue); white-space: nowrap; }
/* o card É o .kpi (a classe fica no mesmo elemento): o seletor antigo ".card.fill.blue .kpi .value"
   esperava um .kpi dentro do card e nunca casava — o total de seguidores saía azul sobre azul,
   invisível. Foi o "a soma tá errada" da tela: o número não estava errado, estava escondido. */
.card.kpi.fill.blue .value, .card.fill.blue .kpi .value { color: #fff; }
.kpi .value.xl { font-size: 64px; }
.kpi .value .unit { font-family: var(--font); font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 8px; text-transform: none; letter-spacing: 0; }
.card.fill.blue .kpi .value .unit { color: rgba(255,255,255,.8); }
.kpi .cap { color: var(--muted); font-size: 13px; }
.kpi .cap .capt { display: block; margin-top: 7px; line-height: 1.3; }
.card.fill.blue .kpi .cap .capt { color: rgba(255,255,255,.8); }
.delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 3px; background: var(--paper-3); color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.delta.up { background: var(--yellow); color: var(--ink); }
.delta.down { background: var(--orange); color: #fff; }
.delta.flat { background: var(--paper-3); }
.card.fill.blue .delta { background: rgba(255,255,255,.16); color: #fff; }
.card.fill.blue .delta.up { background: var(--yellow); color: var(--ink); }
.card.fill.blue .delta.down { background: var(--orange); color: #fff; }
.num { font-variant-numeric: tabular-nums; }
.tick { transition: color .3s; }
.tick.bump { color: var(--ink); }
.card.fill.blue .tick.bump { color: var(--yellow); }

/* "em 30 dias" — o cartão que abre a Visão Geral */
.month { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 16px; }
.month .k .label { color: var(--yellow); }
.month .k .value { font-size: 44px; color: #fff; margin: 6px 0 4px; white-space: nowrap; }
.month .k .cap { color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.3; }
.month .bars { display: flex; align-items: flex-end; gap: 3px; height: 54px; margin-top: 10px; }
.month .bars i { flex: 1; display: block; background: rgba(255,255,255,.3); border-radius: 2px 2px 0 0; min-height: 2px; }
.month .bars i.top { background: var(--yellow); }
.month .axis { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.7); margin-top: 4px; font-weight: 600; letter-spacing: .04em; }
.month .plist { display: grid; gap: 6px; margin-top: 8px; }
.month .plist div { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.month .plist .pmark { width: 18px; height: 18px; }
.month .plist b { color: var(--yellow); font-weight: 500; font-size: 17px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.month .tops { display: grid; gap: 8px; margin-top: 8px; }
.month .tops a { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; color: #fff; }
.month .tops .cover { width: 64px; }
.month .tops .t { font-size: 13px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.month .tops .v { font-size: 12px; color: rgba(255,255,255,.75); }
.month .tops .v b { color: var(--yellow); font-weight: 600; }

/* destaques de hoje (card azul): número em evidência, plataforma como quem, contagens como chips */
.hl { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); }
.hl:first-child { border-top: 0; padding-top: 12px; }
.card.fill.blue .hl .label, .card.fill.blue .mini .label { color: rgba(255,255,255,.62); font-size: 10px; letter-spacing: .16em; font-weight: 600; }
.hl .who { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; margin-top: 6px; color: rgba(255,255,255,.92); }
.hl .who .pmark { width: 22px; height: 22px; }
.hl .n { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.hl .n .numeral { font-size: 34px; line-height: 1; color: var(--yellow); }
.hl .n .m { font-size: 13px; color: rgba(255,255,255,.78); }
.hl.counts .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cnt { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px; border-radius: 4px; background: rgba(255,255,255,.12); color: #fff; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.cnt b { font-size: 22px; line-height: 1; letter-spacing: -.02em; }
.cnt.viralizando { background: var(--yellow); color: var(--ink); }
.cnt.em_alta { background: #fff; color: var(--blue); }
.cnt.recuperando { background: transparent; border: 1px solid rgba(255,255,255,.55); }
.cnt.abaixo { background: rgba(255,71,0,.9); color: #fff; }

/* mini KPIs (engajamento) */
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 10px; }
.mini .v { font-size: 30px; line-height: 1; margin: 4px 0 6px; }

/* platform rows */
.plat { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.plat:first-of-type { border-top: 0; }
.plat:hover .name { color: var(--blue); }
/* Marca da plataforma: o logo oficial, sem caixa nenhuma. O painel tem fundo claro, que é o
   fundo para o qual as quatro marcas foram desenhadas — aqui vale a versão colorida original.
   O tamanho sai um pouco menor no Instagram porque um ícone cheio pesa mais na vista que um
   símbolo vazado do mesmo tamanho, como são os do TikTok e da Twitch. */
.pmark { width: 34px; height: 34px; background: center / contain no-repeat; }
.pmark.instagram { background-image: url(/static/brand/p-instagram.png); background-size: 90%; }
.pmark.youtube { background-image: url(/static/brand/p-youtube.png); }
.pmark.tiktok { background-image: url(/static/brand/p-tiktok.png); }
.pmark.twitch { background-image: url(/static/brand/p-twitch.png); }

/* Parceiros, no pé da barra lateral. Fundo azul aqui, então entram as versões claras. */
.sidebar .partners { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; opacity: .6; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); }
.sidebar .partners .rot { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; width: 100%; color: rgba(255,255,255,.75); font-weight: 700; }
.sidebar .partners .r9 { height: 30px; } .sidebar .partners .ff { height: 16px; }
.plat .name { font-weight: 700; font-size: 17px; }
.plat .meta { font-size: 12px; color: var(--muted); }
.plat .val { font-size: 30px; text-align: right; line-height: 1; }
.plat .val small { display: block; font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 5px; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.badge.viralizando { background: var(--yellow); color: var(--ink); }
.badge.em_alta { background: var(--blue); color: #fff; }
.badge.normal { background: var(--paper-3); color: var(--ink-2); }
.badge.abaixo { background: var(--orange-soft); color: #B33100; }
.badge.recuperando { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.badge.live { background: var(--orange); color: #fff; }
.badge.demo { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.badge.manual { background: var(--yellow); color: var(--ink); }
.badge.sev-critico { background: var(--orange); color: #fff; }
.badge.sev-atencao { background: var(--yellow); color: var(--ink); }
.badge.sev-info { background: var(--blue-soft); color: var(--blue); }
.badge.sev-recorde { background: var(--blue); color: #fff; }

/* content list */
.clist { display: flex; flex-direction: column; gap: 10px; }
.crow { display: grid; grid-template-columns: 112px 1fr 150px 150px 150px 96px; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; transition: border-color .15s, transform .15s; cursor: pointer; }
.crow:hover { border-color: var(--blue); }
.crow.viralizando { border-color: var(--yellow); box-shadow: inset 5px 0 0 var(--yellow); }
.crow.em_alta { box-shadow: inset 5px 0 0 var(--blue); }
.crow.recuperando { box-shadow: inset 5px 0 0 var(--blue); border-style: dashed; }
.crow.abaixo { box-shadow: inset 5px 0 0 var(--orange); }
.crow .thumb { width: 112px; height: 63px; border-radius: 4px; object-fit: cover; background: var(--paper-3); display: block; }
/* capa: a imagem real quando existe e ainda abre; quando não (a CDN do Instagram e do TikTok expira
   o link em horas), a capa da casa — cor da plataforma, faixa da marca, logo */
.cover { position: relative; width: 112px; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--paper-3); flex: 0 0 auto; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cover .ph::before { content: ""; position: absolute; left: 0; top: 0; width: 38%; height: 3px; background: var(--yellow); opacity: .9; }
.cover .ph::after { content: ""; position: absolute; left: -20%; right: -20%; bottom: -4px; height: 8px; background: repeating-linear-gradient(-60deg, rgba(255,255,255,.5) 0 8px, transparent 8px 15px); opacity: .4; }
.cover .ph .pmark { width: 46%; height: 46%; }
.cover .ph .pname { position: absolute; left: 6px; bottom: 4px; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.92); }
.cover.big .ph .pname { font-size: 13px; left: 12px; bottom: 10px; }
.cover.w150 .ph .pname { font-size: 9px; }
.cover.instagram .ph { background: linear-gradient(135deg, #FF4700 0%, #E1306C 55%, #7B2CBF 100%); }
.cover.youtube .ph { background: linear-gradient(135deg, #FF0000 0%, #7A0000 100%); }
.cover.tiktok .ph { background: linear-gradient(135deg, #0B0B0F 0%, #101826 55%, #00A9B8 100%); }
.cover.twitch .ph { background: linear-gradient(135deg, #9146FF 0%, #3A1A7A 100%); }
.cover.tiktok .ph .pmark { background-image: url(/static/brand/p-tiktok-w.png); } .cover.twitch .ph .pmark { background-image: url(/static/brand/p-twitch-w.png); }
.cover.big { width: 100%; border-radius: 8px; }
.cover.big .ph .pmark { width: 30%; height: 30%; }
.crow .title { font-weight: 700; font-size: 16px; line-height: 1.2; }
.crow .sub { color: var(--muted); font-size: 12px; margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crow .stats { display: contents; }
.crow .stat { text-align: right; }
.crow .stat b { display: block; font-size: 27px; line-height: 1; }
.crow .stat span { font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.crow .stat .d { color: var(--blue); }
.crow .spark svg { width: 96px; height: 34px; display: block; }
.clist-head { display: grid; grid-template-columns: 112px 1fr 150px 150px 150px 96px; gap: 16px; padding: 0 16px 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.clist-head span:nth-child(n+3) { text-align: right; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.chip { border: 1px solid var(--line-2); background: #fff; border-radius: 3px; padding: 5px 12px; font-weight: 700; font-size: 13px; color: var(--ink-2); letter-spacing: .02em; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.search { border: 1px solid var(--line-2); border-radius: 3px; padding: 6px 10px; font-size: 14px; min-width: 240px; background: #fff; }
.search:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }

/* charts */
.chart { width: 100%; position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis text { font-family: var(--font); font-size: 11px; fill: var(--muted); font-weight: 600; }
.chart .grid line { stroke: var(--line); stroke-dasharray: 2 4; }
.tooltip { position: fixed; pointer-events: none; background: var(--ink); color: #fff; padding: 8px 10px; border-radius: 4px; font-size: 12px; z-index: 50; box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; transition: opacity .1s; white-space: nowrap; }
.tooltip b { color: var(--yellow); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.share-bar { display: flex; height: 14px; border-radius: 2px; overflow: hidden; background: var(--paper-3); margin: 10px 0 6px; }
.share-bar div { height: 100%; }

/* insights */
.qa { border-top: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: 300px 1fr; gap: 18px; }
.qa:first-child { border-top: 0; }
.qa .q { font-weight: 700; font-size: 17px; color: var(--blue); }
.qa .a { font-size: 17px; line-height: 1.35; }
.qa .ev { margin-top: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.quote { font-family: var(--font); font-weight: 600; font-size: 18px; line-height: 1.35; color: var(--ink-2); border-left: 4px solid var(--yellow); padding-left: 12px; }

/* alerts */
.alert { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.alert.ack { opacity: .55; }
.alert .t { font-weight: 700; font-size: 16px; }
.alert .b { color: var(--ink-2); margin-top: 3px; line-height: 1.35; }
.alert .m { font-size: 12px; color: var(--muted); margin-top: 6px; }
.btn { background: var(--blue); color: #fff; border: 0; border-radius: 3px; padding: 9px 14px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.btn:hover { background: var(--blue-deep); }
.btn.ghost { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn.ghost:hover { background: var(--blue-soft); }
.btn.yellow { background: var(--yellow); color: var(--ink); }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: default; }

/* tables & forms (admin) */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--ink); }
table.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl td.num, table.tbl th.num { text-align: right; }
table.tbl tr:hover td { background: var(--blue-tint); }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.form input, .form select { border: 1px solid var(--line-2); border-radius: 3px; padding: 8px 10px; background: #fff; font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.form input:focus, .form select:focus { outline: 2px solid var(--blue); outline-offset: 0; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 4px solid transparent; margin-bottom: -2px; letter-spacing: .02em; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--yellow); }
.ok-dot { color: var(--blue); font-weight: 700; } .bad-dot { color: var(--orange); font-weight: 700; }
.note { background: var(--yellow-soft); border-left: 5px solid var(--yellow); padding: 10px 14px; border-radius: 3px; font-size: 14px; }
.note.blue { background: var(--blue-soft); border-left-color: var(--blue); }
.note.orange { background: var(--orange-soft); border-left-color: var(--orange); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.empty { padding: 30px; text-align: center; color: var(--muted); font-size: 15px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.toast-wrap { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 380px; font-size: 14px; border-left: 5px solid var(--yellow); animation: slidein .25s ease-out; }
.toast b { display: block; font-size: 15px; margin-bottom: 2px; color: var(--yellow); }
@keyframes slidein { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* detail drawer */
.drawer { position: fixed; top: 0; right: 0; width: min(580px, 100%); height: 100vh; background: #fff; border-left: 6px solid var(--blue); box-shadow: -20px 0 60px rgba(11,11,15,.18); padding: 26px 28px; overflow: auto; z-index: 40; transform: translateX(100%); transition: transform .2s ease-out; }
.drawer.open { transform: none; }
.drawer h3 { margin: 6px 0 4px; font-family: var(--font); font-weight: 700; font-size: 24px; line-height: 1.15; }
.drawer .close { position: absolute; top: 16px; right: 16px; background: none; border: 1px solid var(--line-2); border-radius: 3px; padding: 4px 10px; font-weight: 700; }
.kv { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 14px 0; }
.kv div { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 10px; }
.kv b { display: block; font-size: 27px; line-height: 1; }
.kv span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.why { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.4; }

/* guia (página de ajuda) */
.guide h2 { font-family: var(--font); font-weight: 600; font-size: 18px; text-transform: uppercase; margin: 26px 0 8px; letter-spacing: .16em; color: var(--ink-2); }
.guide p, .guide li { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.guide ol li, .guide ul li { margin: 4px 0; }
.guide .step { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.guide .step:first-of-type { border-top: 0; }
.guide .step .n { font-size: 40px; line-height: .9; color: var(--blue); }
.guide .step b { font-size: 17px; display: block; margin-bottom: 4px; color: var(--ink); }
.guide code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--paper-3); padding: 1px 6px; border-radius: 3px; }

/* login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.login-left { background: var(--blue); color: #fff; padding: 56px 60px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.2px); background-size: 16px 16px; }
.login-left::before { content: ""; position: absolute; top: 0; left: 0; width: 360px; height: 18px; background: repeating-linear-gradient(-60deg, var(--yellow) 0 22px, transparent 22px 40px); }
.login-left::after { content: ""; position: absolute; right: -80px; bottom: -40px; width: 420px; height: 110px; background: var(--yellow); transform: skewX(-30deg); opacity: .95; }
.login-left .ghost { position: absolute; right: -10px; top: 120px; font-family: var(--display); font-size: 200px; line-height: .85; text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.28); pointer-events: none; text-align: right; }
.login-left h1 { font-family: var(--display); font-weight: 400; font-size: 78px; line-height: .92; margin: 0; letter-spacing: .01em; text-transform: uppercase; position: relative; }
.login-left h1 em { font-style: normal; color: var(--yellow); }
.login-left .big { font-family: var(--display); font-size: 200px; line-height: .85; color: var(--yellow); letter-spacing: .01em; position: relative; }
.login-left .caption { font-size: 18px; color: rgba(255,255,255,.85); max-width: 520px; position: relative; }
.login-right { display: grid; place-items: center; padding: 40px; background: #fff; }
.login-box { width: 100%; max-width: 380px; }
.login-box h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 44px; text-transform: uppercase; line-height: 1; }
.login-box .err { color: var(--orange); font-weight: 700; margin-top: 8px; min-height: 20px; }

@media (max-width: 1200px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g23, .g32 { grid-template-columns: 1fr; }
  .crow, .clist-head { grid-template-columns: 90px 1fr 120px 120px; }
  .crow .stat:nth-of-type(5), .crow .spark, .clist-head span:nth-child(n+5) { display: none; }
  .login-left .ghost { display: none; }
}
/* ---------- celular (≤ 768 px): uma coluna, menu no alto, nada vaza para o lado ---------- */
.nav a .short { display: none; }
.mobile-foot { display: none; }
@media (max-width: 768px) {
  html { -webkit-text-size-adjust: 100%; }
  .shell { display: block; }
  .sidebar { position: sticky; top: 0; z-index: 30; height: auto; padding: 0; gap: 0; display: block; box-shadow: 0 2px 12px rgba(11,11,15,.18); }
  .sidebar .brand { display: flex; align-items: center; gap: 10px; border: 0; margin: 0; padding: 10px 16px 8px; }
  .sidebar .brand img { height: 34px; }
  .sidebar .brand .name { font-size: 20px; }
  .sidebar .brand .sub { display: none; }
  .sidebar .stripes { display: none; }
  /* status ao vivo entra na linha da marca, à direita */
  .sidebar .foot { position: absolute; right: 16px; top: 12px; margin: 0; flex-direction: row; align-items: center; gap: 10px; }
  .sidebar .foot .small, .sidebar .foot .user-line, .sidebar .foot .partners { display: none; }
  .sidebar .demo-pill { font-size: 10px; padding: 2px 7px; }
  /* abas roláveis, uma linha, sem quebrar */
  .nav { display: flex; gap: 4px; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; padding: 8px 12px; font-size: 14px; white-space: nowrap; }
  .nav a .k { display: none; }
  .nav a .full { display: none; } .nav a .short { display: inline; }
  .nav a .badge { margin-left: 6px; }
  .main { padding: 14px 16px 40px; }
  .main::before { width: 120px; margin-bottom: 12px; }
  .topbar { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 16px; }
  .topbar h1 { font-size: 17px; letter-spacing: .14em; }
  .topbar .lead { font-size: 14px; }
  .g4, .g3, .g2, .g23, .g32 { grid-template-columns: 1fr; }
  .month { grid-template-columns: 1fr 1fr; gap: 14px; }
  .month .k:first-child, .month .k:last-child { grid-column: 1 / -1; }
  .grid { gap: 12px; }
  .card { padding: 16px 16px; }
  .kpi .value { font-size: 40px; }
  .kpi .value.xl { font-size: 48px; }
  .month .k .value { font-size: 40px; }
  .section-title { margin: 22px 0 10px; flex-wrap: wrap; }
  .section-title h2 { font-size: 15px; }
  .clist-head { display: none; }
  /* linha de conteúdo: capa + título em cima, três números embaixo, sem gráfico */
  .crow { grid-template-columns: 96px 1fr; grid-template-areas: "thumb title" "stats stats"; gap: 10px 12px; padding: 12px; }
  .crow .cover, .crow .thumb { grid-area: thumb; width: 96px; }
  .crow > div:nth-child(2) { grid-area: title; min-width: 0; }
  .crow .title { font-size: 15px; }
  .crow .stats { grid-area: stats; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
  .crow .stat { text-align: left; }
  .crow .stat b { font-size: 22px; }
  .crow .spark { display: none; }
  .plat { grid-template-columns: 28px 1fr; }
  .plat .val { grid-column: 2; text-align: left; margin-top: 4px; font-size: 26px; }
  .pmark { width: 28px; height: 28px; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .qa { grid-template-columns: 1fr; gap: 6px; }
  .alert { grid-template-columns: 1fr; gap: 8px; }
  .alert > div:last-child { display: flex; gap: 6px; flex-wrap: wrap; }
  .filters { gap: 6px; }
  .search { min-width: 0; width: 100%; }
  .seg button { padding: 6px 9px; font-size: 12px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
  table.tbl { min-width: 640px; }
  .drawer { width: 100%; border-left: 0; border-top: 6px solid var(--blue); padding: 18px 16px; }
  .toast-wrap { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
  .guide .step { grid-template-columns: 40px 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-left { padding: 28px 22px; min-height: 0; }
  .login-left .big { font-size: 96px; }
  .login-left h1 { font-size: 44px; }
  .login-left .ghost { display: none; }
  .login-right { padding: 28px 22px; }
  /* rodapé do celular: quem está logado, parceiros, sair */
  .mobile-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 16px 30px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
  .mobile-foot .partners { display: flex; align-items: center; gap: 12px; opacity: .75; }
  .mobile-foot .partners img { height: 22px; } .mobile-foot .partners .ff { height: 14px; }
  .mobile-foot button { background: none; border: 1px solid var(--line-2); border-radius: 4px; padding: 4px 10px; font-size: 12px; color: var(--ink-2); }
}

/* plataforma não conectada (modo off): sem simulação, fora dos totais */
.badge.off { background: transparent; color: var(--muted); border: 1px dashed var(--muted); }
