@import url('fonts/fonts.css');

/* Tokens do site remoteeditorsacademy.com (tema escuro) */
:root {
  --bg: #0f0f0f;
  --sidebar: #141414;
  --card: #1a1a1a;
  --card-2: #212121;
  --line: #2e2e2e;
  --line-soft: #242424;
  --fg: #ffffff;
  --fg-2: #d4d4d4;
  --muted: #a3a3a3;
  --faint: #6b6b6b;
  --primary: #ccff00;
  --primary-dim: rgba(204, 255, 0, .12);
  --on-primary: #0f0f0f;
  --up: #ccff00;
  --up-bg: rgba(204, 255, 0, .1);
  --down: #ff6b5e;
  --down-bg: rgba(255, 107, 94, .12);
  --radius: 12px;
  --radius-sm: 8px;
  --font-h: 'Sora', system-ui, sans-serif;
  --font-b: 'Public Sans', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 14px/1.5 var(--font-b); -webkit-font-smoothing: antialiased; min-height: 100vh; }
h1, h2, h3 { font-family: var(--font-h); margin: 0; font-weight: 600; letter-spacing: -.01em; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--sidebar); border-right: 1px solid var(--line-soft); padding: 18px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; }
.brand img { height: 22px; width: auto; }
.brand span { font: 600 11px var(--font-h); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; border-left: 1px solid var(--line); padding-left: 10px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--fg-2); text-decoration: none; font-weight: 500;
}
.nav a:hover { background: var(--card-2); color: var(--fg); }
.nav a.on { background: var(--card-2); color: var(--fg); }
.nav a.on svg { color: var(--primary); }
.side-foot { margin-top: auto; border-top: 1px solid var(--line-soft); padding: 14px 10px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font: 700 12px var(--font-h); flex: none; }
.who { min-width: 0; flex: 1; }
.who b { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--faint); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar { display: none; }

.main { min-width: 0; padding: 36px clamp(16px, 4vw, 56px) 64px; }
.page { max-width: 1320px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- Filtros ---------- */
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.filters .cmp { color: var(--muted); font-size: 13px; }
.select {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500;
}
.select:hover { border-color: #3d3d3d; }
.select select { appearance: none; background: transparent; border: 0; outline: 0; padding-right: 18px; cursor: pointer; font-weight: 500; max-width: 230px; text-overflow: ellipsis; }
.select select option { background: var(--card); }
.select svg { color: var(--muted); flex: none; }
.select .caret { position: absolute; right: 10px; pointer-events: none; }
.select .pill { background: var(--card-2); border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.range-pop {
  position: absolute; top: 44px; left: 0; z-index: 30; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; min-width: 260px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.range-pop button.opt { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; }
.range-pop button.opt:hover, .range-pop button.opt.on { background: var(--card-2); }
.range-pop .custom { border-top: 1px solid var(--line-soft); margin-top: 6px; padding: 10px 4px 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-pop .custom .btn { grid-column: 1 / -1; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 16px; align-content: start; }
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card.tight { padding: 16px 18px; }
.card h2 { font-size: 15px; font-weight: 600; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head .sub { color: var(--muted); font-size: 12px; }
.section { margin-top: 16px; }

.metric .label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.metric .value { font: 600 30px/1.15 var(--font-h); letter-spacing: -.02em; margin: 6px 0 8px; white-space: nowrap; }
.metric .value.xl { font-size: 38px; }
.metric .value.sm { font-size: 24px; }
.metric .vs { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12px; flex-wrap: wrap; }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.delta.up { color: var(--up); background: var(--up-bg); }
.delta.down { color: var(--down); background: var(--down-bg); }
.delta.flat { color: var(--muted); background: var(--card-2); }

.tip { display: inline-flex; color: var(--faint); cursor: help; position: relative; }
.tip svg { width: 14px; height: 14px; }
.tip:hover::after, .tip:focus::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 40;
  width: max-content; max-width: 260px; background: #2a2a2a; color: var(--fg); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 12px; line-height: 1.4; font-weight: 400; white-space: normal; text-transform: none; letter-spacing: 0;
}

/* ---------- Gráfico ---------- */
.chart { position: relative; }
.chart svg { display: block; overflow: visible; }
.chart .grid line { stroke: var(--line-soft); stroke-width: 1; }
.chart .line-a { fill: none; stroke-width: 2; }
.chart .line-b { fill: none; stroke: #4a4a4a; stroke-width: 1.5; }
.chart .cursor { stroke: #555; stroke-dasharray: 3 3; }
.chart .xl text { fill: var(--faint); font-size: 11px; font-family: var(--font-b); }
.chart .tooltip {
  position: absolute; top: -8px; transform: translate(-50%, -100%); pointer-events: none; z-index: 5;
  background: #262626; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.chart .tooltip b { display: block; margin-bottom: 4px; font-weight: 600; }
.chart .tooltip div { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.chart .tooltip span { color: var(--fg); margin-left: auto; padding-left: 12px; font-weight: 600; }
.k { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.k.a { background: var(--primary); }
.k.b { background: #4a4a4a; }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; margin: 0 -20px -20px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 14px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
th { color: var(--faint); font-weight: 500; font-size: 12px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: var(--card); }
td { border-bottom: 1px solid var(--line-soft); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #1e1e1e; }
td.l, th.l { text-align: left; }
td.strong { font-weight: 600; }
td .muted, .muted { color: var(--muted); }
.faint { color: var(--faint); }
tr.total td { font-weight: 600; background: #1d1d1d; }
.cell-title { max-width: 360px; overflow: hidden; text-overflow: ellipsis; display: block; }
.empty { color: var(--muted); padding: 28px 20px; text-align: center; }

.chip { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; background: #777; }
.dot[data-c="instagram"] { background: #ff5f8f; }
.dot[data-c="tiktok"] { background: #3ee8e0; }
.dot[data-c="youtube"] { background: #ff4d4d; }
.dot[data-c="x"] { background: #e8e8e8; }
.dot[data-c="custom"] { background: #ccff00; }
.dot[data-c="paid"] { background: #8fa8ff; }
.dot[data-c="hubla"] { background: #c39bff; }
.dot[data-c="search"] { background: #ffb547; }
.dot[data-c="other"] { background: #9a9a9a; }
.dot[data-c="direct"] { background: #5c5c5c; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--card-2); color: var(--fg-2); }
.tag.sck { background: var(--primary-dim); color: var(--primary); }
.tag.ip { background: rgba(255, 181, 71, .12); color: #ffb547; }
.tag.none { color: var(--faint); }
.tag.refunded { background: var(--down-bg); color: var(--down); }

/* Barra de precisão */
.bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--card-2); margin: 14px 0 16px; }
.bar svg { display: block; width: 100%; height: 10px; }
.prec-list { display: grid; gap: 10px; }
.prec-list div { display: flex; align-items: center; gap: 10px; }
.prec-list .n { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.prec-list .p { color: var(--faint); width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sw.sck { background: var(--primary); }
.sw.utm { background: #7fa000; }
.sw.ip { background: #ffb547; }
.sw.none { background: #4a4a4a; }

.rank { display: grid; gap: 2px; }
.rank .row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.rank .row:last-child { border-bottom: 0; }
.rank .slug { font-weight: 600; }
.rank .meta { color: var(--faint); font-size: 12px; }

/* ---------- Botões e formulários ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: #444; background: var(--card-2); }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--fg); background: var(--card-2); }
.btn.danger { color: var(--down); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--card-2); color: var(--fg); }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--fg-2); font-weight: 500; }
.field small { color: var(--faint); font-size: 12px; }
.input, .field select {
  width: 100%; height: 42px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); outline: 0;
}
.input:focus, .field select:focus { border-color: var(--primary); }
.prefix { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); overflow: hidden; }
.prefix span { display: flex; align-items: center; padding: 0 10px; color: var(--faint); border-right: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
.prefix input { border: 0; height: 42px; flex: 1; min-width: 0; background: transparent; padding: 0 12px; outline: 0; }
.prefix:focus-within { border-color: var(--primary); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: var(--down); font-size: 13px; min-height: 20px; margin: 4px 0 8px; }
.note { background: var(--card-2); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--fg-2); font-size: 13px; }
.note b { color: var(--fg); }
.copybox { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 8px 8px 12px; }
.copybox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--primary); }

.tabs { display: inline-flex; gap: 4px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 10px; padding: 4px; }
.tabs button { border: 0; background: transparent; padding: 6px 14px; border-radius: 7px; cursor: pointer; color: var(--muted); font-weight: 500; }
.tabs button.on { background: var(--card-2); color: var(--fg); }

/* ---------- Modal / toast ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(0, 0, 0, .65); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.modal h2 { font-size: 18px; margin-bottom: 6px; }
.modal > p { color: var(--muted); margin: 0 0 18px; }
.modal-x { position: absolute; top: 14px; right: 14px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .25s; z-index: 200;
  background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--down); color: #fff; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(400px, 100%); }
.auth-card .logo { display: block; height: 30px; margin: 0 auto 28px; }
.auth-card .card { padding: 28px; }
.auth-card h1 { font-size: 20px; margin-bottom: 6px; }
.auth-card p.lead { color: var(--muted); margin: 0 0 20px; }
.auth-card .btn { width: 100%; height: 44px; }
.code-input { text-align: center; letter-spacing: .5em; font: 600 24px var(--font-h); height: 56px; }
.qr { background: #fff; border-radius: 12px; padding: 10px; width: 200px; margin: 4px auto 14px; }
.qr svg { display: block; width: 100%; height: auto; }
.secret { text-align: center; font: 13px ui-monospace, monospace; color: var(--muted); margin-bottom: 18px; word-break: break-all; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { height: 3px; flex: 1; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--primary); }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--faint); font-size: 12px; margin-top: 16px; }

.skeleton { background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.sk-h { height: 120px; }

.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--card-2); display: block; flex: none; }
.post { display: flex; align-items: center; gap: 12px; min-width: 0; }
.post a { text-decoration: none; }
.post a:hover { text-decoration: underline; }

.status-line { display: flex; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 12px; margin-top: 28px; }
.status-line span { display: inline-flex; align-items: center; gap: 6px; }
.status-line i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); display: inline-block; }
.status-line i.ok { background: var(--primary); }
.status-line i.bad { background: var(--down); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-main { grid-template-columns: 1fr; }
  .g-main > .stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .shell.menu-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6); }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: var(--bg); z-index: 50; }
  .topbar img { height: 20px; }
  .main { padding-top: 20px; }
  .g-2, .g-4 { grid-template-columns: 1fr; }
  .g-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main > .stack { grid-template-columns: 1fr; }
  .metric .value.xl { font-size: 30px; }
  .page-head h1 { font-size: 24px; }
  .row2 { grid-template-columns: 1fr; }
}

/* ---------- Abas por rede (Início) ---------- */
.net-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); margin: -4px 0 20px; overflow-x: auto; scrollbar-width: none; }
.net-tabs::-webkit-scrollbar { display: none; }
.net-tabs button {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.net-tabs button:hover { color: var(--fg); }
.net-tabs button.on { color: var(--fg); border-bottom-color: var(--primary); }
tr.clickable { cursor: pointer; }

/* Funil da rede */
.funnel { display: grid; gap: 12px; }
.f-row { display: grid; grid-template-columns: 120px 1fr 64px 56px; align-items: center; gap: 12px; }
.f-label { color: var(--fg-2); font-size: 13px; }
.f-bar svg { display: block; width: 100%; height: 12px; }
.f-bar rect { fill: var(--primary); }
.f-bar { background: var(--card-2); border-radius: 3px; overflow: hidden; }
.f-n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.f-p { text-align: right; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .f-row { grid-template-columns: 96px 1fr 56px 48px; gap: 8px; } }

/* Menu próprio dos filtros (substitui o <select> nativo) */
.select.dd { padding-right: 10px; }
.dd-label { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.dd-pop { max-height: 340px; overflow-y: auto; min-width: 240px; }
.dd-pop .opt { display: flex !important; align-items: center; gap: 8px; }

/* Botões de escolha (modal de criar link) */
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choice {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg-2); font-weight: 500;
}
.choice:hover { border-color: #444; color: var(--fg); }
.choice.on { border-color: var(--primary); color: var(--fg); background: var(--primary-dim); }
td.actions-cell { white-space: nowrap; }
td.actions-cell .btn { margin-right: 4px; }

/* Quadradinhos: dias com post (quadrados de verdade, quebram linha em períodos longos) */
.post-strip { display: grid; grid-template-columns: repeat(auto-fill, 13px); gap: 4px; margin-top: 12px; }
.post-strip i { width: 13px; height: 13px; border-radius: 3px; background: var(--card-2); display: block; }
.post-strip i.on { background: var(--primary); cursor: default; outline: none; }
.post-strip i.on:hover, .post-strip i.on:focus { box-shadow: 0 0 0 2px var(--fg); }
.post-strip i.on[data-c="instagram"] { background: #ff5f8f; }
.post-strip i.on[data-c="tiktok"] { background: #3ee8e0; }
.post-strip i.on[data-c="youtube"] { background: #ff4d4d; }
.post-strip i.on[data-c="x"] { background: #e8e8e8; }
.float-tip {
  position: fixed; z-index: 300; pointer-events: none; background: #262626; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; font-size: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); max-width: 260px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
}
.float-tip b { font-weight: 600; }
.float-tip .ft-n { color: var(--muted); }
.float-tip .ft-logos { display: inline-flex; gap: 6px; }
.float-tip .ft-detail { flex-basis: 100%; color: var(--fg-2); white-space: pre-line; line-height: 1.4; }

/* Logos das redes */
.logo { flex: none; display: inline-block; vertical-align: -3px; }
.logo[data-c="instagram"] { color: #ff5f8f; }
.logo[data-c="tiktok"] { color: #3ee8e0; }
.logo[data-c="youtube"] { color: #ff4d4d; }
.logo[data-c="x"] { color: #e8e8e8; }
.logo[data-c="paid"] { color: #8fa8ff; }
.post-kind { display: inline-flex; align-items: center; gap: 5px; }
.card.clickable { cursor: pointer; }
.card.clickable:hover { border-color: #3a3a3a; }
.net-tabs .logo { width: 16px; height: 16px; }

/* Funil estilo UTMify */
.uf { position: relative; height: 230px; }
.uf-svg { position: absolute; left: 0; right: 0; top: 42px; width: 100%; height: calc(100% - 84px); display: block; }
.uf-cols { position: relative; display: grid; height: 100%; }
.uf-cols.n3 { grid-template-columns: repeat(3, 1fr); }
.uf-cols.n4 { grid-template-columns: repeat(4, 1fr); }
.uf-cols.n5 { grid-template-columns: repeat(5, 1fr); }
.uf-col { display: grid; grid-template-rows: 42px 1fr 42px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .14); min-width: 0; }
.uf-col:first-child { border-left: 0; }
.uf-label { align-self: center; font-weight: 600; font-size: 13px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.uf-pct { align-self: center; }
.uf-pct span { display: inline-block; background: rgba(15, 15, 15, .78); color: var(--fg); padding: 3px 9px; border-radius: 7px; font: 600 16px var(--font-h); }
.uf-n { align-self: center; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .uf { height: 200px; }
  .uf-label { font-size: 11px; }
  .uf-pct span { font-size: 12px; padding: 2px 6px; }
}

/* Gráfico: hoje (incompleto) tracejado e quadradinhos de dia com post dentro do gráfico */
.chart .line-a.partial { stroke-dasharray: 4 4; opacity: .7; }
.chart .mk { fill: var(--card-2); }
.chart .mk.on { fill: var(--primary); cursor: default; outline: none; }
.chart .mk.on:hover, .chart .mk.on:focus { stroke: var(--fg); stroke-width: 1.5; }
.chart .mk.on[data-c="instagram"] { fill: #ff5f8f; }
.chart .mk.on[data-c="tiktok"] { fill: #3ee8e0; }
.chart .mk.on[data-c="youtube"] { fill: #ff4d4d; }
.chart .mk.on[data-c="x"] { fill: #e8e8e8; }
h1 .count { font: 500 15px var(--font-b); color: var(--muted); background: var(--card-2); border-radius: 999px; padding: 3px 10px; vertical-align: middle; margin-left: 6px; }

/* Busca e tabela de vendas compacta */
.search { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); flex: 1; max-width: 340px; min-width: 200px; }
.search:focus-within { border-color: var(--primary); }
.search svg { color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; height: 100%; }
.search input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
.sub-line { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.sales .tag.refunded { display: table; margin-top: 4px; margin-left: auto; }
table.sales .prod { max-width: 240px; }
table.sales .cell-title { max-width: 240px; }
table.sales td { vertical-align: top; }
table.sales .chip { white-space: nowrap; }

/* Login: mostrar senha e manter conectado */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-wrap .icon-btn { position: absolute; right: 6px; top: 6px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: 13px; margin: 2px 0 6px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.help-link { display: block; text-align: center; color: var(--faint); font-size: 12px; margin-top: 14px; background: none; border: 0; cursor: pointer; width: 100%; }
.help-link:hover { color: var(--fg-2); }

table.sales th, table.sales td { padding-left: 11px; padding-right: 11px; }
table.sales th:first-child, table.sales td:first-child { padding-left: 20px; }
table.sales .sub-line { max-width: 220px; }

/* Funil: etapas clicáveis (a escolhida vira a base das porcentagens) */
button.uf-col { background: none; border: 0; border-left: 1px solid rgba(255, 255, 255, .14); color: inherit; font: inherit; padding: 0; cursor: pointer; }
button.uf-col:first-child { border-left: 0; }
button.uf-col:hover .uf-label { color: var(--fg); }
button.uf-col.base .uf-label { color: var(--primary); }
button.uf-col.base .uf-label::after { content: ''; display: block; width: 28px; height: 2px; margin: 4px auto 0; background: var(--primary); border-radius: 2px; }
button.uf-col.before .uf-n, button.uf-col.before .uf-label { opacity: .45; }
button.uf-col:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
