:root {
  color-scheme: light;
  --bg: #F6F5FB; --surface: #ffffff; --surface-2: #F0EEF8; --border: #E4E1F0; --text: #14112B; --muted: #6B6785;
  --brand: #5B3DF5; --brand-2: #7C63FF; --brand-soft: #ECE8FF; --side: #14112B; --side-text: #E6E3F7; --side-muted: #9A95BD;
  --ok: #2f7d4f; --ok-soft: #e3f3e8; --warn: #a86b00; --warn-soft: #fbf0d9; --err: #b3372f; --err-soft: #fbe5e2; --info: #2c5f8a; --info-soft: #e3eef8;
  --mint: #3EE0A8; --mint-ink: #0E8F66;
  --radius: 12px; --shadow: 0 1px 2px rgba(20, 17, 43,.06), 0 4px 16px rgba(20, 17, 43,.05);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  color: var(--text); font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--brand); }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; }
p { margin: 0 0 10px; line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
code, .mono { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; word-break: break-all; }

.layout { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 18px; font-weight: 700; font-size: 15px; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; display: block; flex: none; }
.wordmark { font-weight: 800; letter-spacing: -.02em; font-size: 16px; line-height: 1.1; }
.wordmark b { color: #3EE0A8; font-weight: 800; }
.wordmark small { display: block; font-weight: 500; font-size: 11px; letter-spacing: .02em; color: var(--side-muted); }
.side .group { margin: 14px 8px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--side-muted); }
.side a.item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--side-text); text-decoration: none; margin: 1px 0; }
.side a.item:hover { background: rgba(255,255,255,.06); }
.side a.item.active { background: rgba(124,99,255,.24); color: #fff; }
.side .badge { margin-left: auto; background: var(--brand-2); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 11px; }
.side .status-mini { margin: 18px 8px 0; font-size: 12px; color: var(--side-muted); line-height: 1.8; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #999; margin-right: 6px; }
.dot.ok { background: #49b06f; } .dot.err { background: #e05a4f; } .dot.warn { background: #e0a43a; }

main { padding: 26px 32px 60px; max-width: 1280px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; } .side { position: static; height: auto; } .g2, .g3, .g4 { grid-template-columns: 1fr; } main { padding: 18px 16px; } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat .n { font-size: 26px; font-weight: 700; margin-top: 4px; }
.stat .l { color: var(--muted); font-size: 12px; }

button, .btn { font: inherit; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 7px 13px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
button:hover, .btn:hover { border-color: var(--brand-2); }
button.primary, .btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
button.primary:hover { background: #3F25C9; }
button.danger { color: var(--err); }
button.ghost { background: transparent; border-color: transparent; }
button:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }

label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
label .hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=password], input[type=url], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--text);
}
textarea { min-height: 80px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand-2); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 6px 0; }
.check input { width: 16px; height: 16px; }
.field { margin-bottom: 14px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); }
td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.click:hover td { background: var(--surface-2); cursor: pointer; }
.table-wrap { overflow-x: auto; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.err { background: var(--err-soft); color: var(--err); } .pill.info { background: var(--info-soft); color: var(--info); }
.pill.brand { background: var(--brand-soft); color: var(--brand); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); font-size: 12px; margin: 2px; }
.chip button { border: 0; background: none; padding: 0 2px; color: inherit; }

.alert { border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.alert.erro { background: var(--err-soft); color: #7c241e; } .alert.aviso { background: var(--warn-soft); color: #6d4600; } .alert.info { background: var(--info-soft); color: #1e4466; } .alert.ok { background: var(--ok-soft); color: #1f5536; }

.toast-wrap { position: fixed; bottom: 18px; right: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--text); color: #fff; padding: 10px 14px; border-radius: 10px; max-width: 420px; box-shadow: var(--shadow); }
.toast.err { background: var(--err); } .toast.ok { background: var(--ok); }

.empty { text-align: center; padding: 30px; color: var(--muted); }
.steps { counter-reset: step; }
.step { position: relative; padding-left: 44px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center; }
.step.done::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }
ol.inst { padding-left: 20px; margin: 6px 0 10px; } ol.inst li { margin: 5px 0; line-height: 1.5; }
.copy { display: flex; gap: 6px; align-items: center; } .copy code { flex: 1; padding: 6px 8px; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 420px; overflow-y: auto; padding: 2px; }
.media { border: 2px solid var(--border); border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface-2); font-size: 11px; position: relative; }
.media.sel { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.media img { width: 100%; aspect-ratio: 9/14; object-fit: cover; display: block; background: #ddd; }
.media .cap { padding: 5px 6px; height: 34px; overflow: hidden; color: var(--muted); }
.media .tick { position: absolute; top: 6px; right: 6px; background: var(--brand); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: none; place-items: center; }
.media.sel .tick { display: grid; }

/* caixa de entrada */
.inbox { display: grid; grid-template-columns: 330px 1fr; height: calc(100vh - 140px); min-height: 480px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.inbox .list { border-right: 1px solid var(--border); overflow-y: auto; }
.inbox .filters { padding: 10px; border-bottom: 1px solid var(--border); display: grid; gap: 6px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.conv { padding: 11px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.conv:hover { background: var(--surface-2); } .conv.active { background: var(--brand-soft); }
.conv .who { font-weight: 600; display: flex; justify-content: space-between; gap: 6px; }
.conv .prev { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.thread { display: flex; flex-direction: column; min-width: 0; }
.thread .head { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.thread .msgs { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg); }
.bubble { max-width: 70%; padding: 8px 12px; border-radius: 14px; margin: 4px 0; white-space: pre-wrap; word-wrap: break-word; line-height: 1.4; }
.bubble.in { background: #fff; border: 1px solid var(--border); }
.bubble.out { background: var(--brand); color: #fff; margin-left: auto; }
.bubble.out.fail { background: var(--err-soft); color: #7c241e; border: 1px dashed var(--err); }
.bubble.out.sim { background: #E4E1F0; color: var(--text); border: 1px dashed var(--muted); }
.bubble .meta { font-size: 10.5px; opacity: .75; margin-top: 4px; }
.bubble .btns { margin-top: 6px; display: grid; gap: 4px; }
.bubble .btns span { display: block; text-align: center; background: rgba(255,255,255,.18); border-radius: 8px; padding: 4px; font-size: 12px; }
.bubble.in .btns span { background: var(--surface-2); }
.composer { border-top: 1px solid var(--border); padding: 10px; display: grid; gap: 6px; }
.composer textarea { min-height: 60px; }
@media (max-width: 900px) { .inbox { grid-template-columns: 1fr; height: auto; } .inbox .list { max-height: 300px; } }

/* editor de fluxos */
.editor { display: grid; grid-template-columns: 1fr 340px; height: calc(100vh - 150px); min-height: 520px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.canvas { position: relative; overflow: hidden; background-color: #FAF9FE; background-image: radial-gradient(#D5D0EA 1px, transparent 1px); background-size: 22px 22px; cursor: grab; user-select: none; }
.canvas.panning { cursor: grabbing; }
.canvas-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.canvas svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.canvas svg path.edge { fill: none; stroke: #9A95BD; stroke-width: 2.2; pointer-events: stroke; cursor: pointer; }
.canvas svg path.edge.sel { stroke: var(--err); stroke-width: 3; }
.canvas svg path.hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
.canvas svg path.temp { fill: none; stroke: var(--brand-2); stroke-width: 2; stroke-dasharray: 5 4; }
.node { position: absolute; width: 230px; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); cursor: default; }
.node.sel { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.node.bad { border-color: var(--err); }
.node .nh { padding: 8px 10px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 12.5px; display: flex; gap: 6px; align-items: center; cursor: move; border-radius: 12px 12px 0 0; }
.node .nh .t { color: var(--muted); font-weight: 500; font-size: 11px; margin-left: auto; }
.node .nb { padding: 8px 10px; font-size: 12px; color: var(--text); white-space: pre-wrap; max-height: 110px; overflow: hidden; line-height: 1.4; }
.node .ports { border-top: 1px solid var(--border); }
.node .port { position: relative; padding: 5px 22px 5px 10px; font-size: 11.5px; color: var(--muted); text-align: right; }
.node .port .h { position: absolute; right: -7px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2.5px solid var(--brand-2); cursor: crosshair; }
.node .port .h.on { background: var(--brand-2); }
.node .in { position: absolute; left: -7px; top: 15px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2.5px solid #9A95BD; }
.node.t-inicio .nh { background: #E6E0FF; } .node.t-mensagem .nh { background: #e7f0fa; } .node.t-condicao .nh { background: #EFEBFF; }
.node.t-espera .nh { background: #efeaf7; } .node.t-etiqueta .nh, .node.t-campo .nh { background: #e7f4ec; } .node.t-atendimento .nh { background: #fbe9e4; } .node.t-fim .nh { background: #ececec; }
.node .mini-btn { display: block; margin-top: 4px; background: var(--surface-2); border-radius: 7px; padding: 3px 6px; text-align: center; font-size: 11px; }
.toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; align-items: center; }
.inspector { border-left: 1px solid var(--border); overflow-y: auto; padding: 14px; background: var(--surface); }
.inspector .list-item { border: 1px solid var(--border); border-radius: 9px; padding: 8px; margin-bottom: 8px; background: var(--surface-2); }
.zoom { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 4px; z-index: 5; }
@media (max-width: 900px) { .editor { grid-template-columns: 1fr; height: auto; } .canvas { height: 520px; } }

.modal-back { position: fixed; inset: 0; background: rgba(14,12,32,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--surface); border-radius: 16px; padding: 20px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.phone { width: 340px; max-width: 100%; margin: 0 auto; border: 10px solid #120F26; border-radius: 34px; background: #fff; overflow: hidden; }
.phone .ph { background: #fff; border-bottom: 1px solid var(--border); padding: 10px 14px; font-weight: 600; text-align: center; }
.phone .pb { height: 460px; overflow-y: auto; padding: 12px; background: #fff; }
.phone .bubble.out { background: #efefef; color: #111; margin-left: 0; margin-right: auto; }
.phone .bubble.in { background: #3d6af2; color: #fff; margin-left: auto; border: 0; }
.phone .note { text-align: center; font-size: 11px; color: var(--muted); margin: 8px 0; }
.phone .tap { display: block; width: 100%; margin-top: 4px; background: #fff; border: 1px solid #ddd; color: #3d6af2; font-weight: 600; justify-content: center; }
.qr { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin: 6px 0; }
.qr button { border-radius: 16px; border-color: #3d6af2; color: #3d6af2; font-size: 12px; padding: 4px 10px; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: min(380px, 100%); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 12px; font-size: 13px; }
.kv div:nth-child(odd) { color: var(--muted); }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } }
details summary { cursor: pointer; font-weight: 600; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 8px 12px; }
.tabs button.on { border-bottom-color: var(--brand); color: var(--brand); font-weight: 600; }

/* assistente de conexão */
.wiz-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.wiz-dot { flex-direction: column; gap: 6px; padding: 12px 8px; text-align: center; white-space: normal; justify-content: center; color: var(--muted); }
.wiz-dot span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; color: var(--muted); }
.wiz-dot.on { border-color: var(--brand); color: var(--text); font-weight: 600; box-shadow: 0 0 0 3px var(--brand-soft); }
.wiz-dot.on span { background: var(--brand); color: #fff; }
.wiz-dot.done span { background: var(--ok-soft); color: var(--ok); }
.wiz { padding: 26px 28px; font-size: 15px; }
.wiz h2 { font-size: 20px; }
.wiz .inst li { margin: 8px 0; }
.btn.big, button.big { padding: 12px 20px; font-size: 15px; border-radius: 11px; }
.howto { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.sub { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.sub.done { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
@media (max-width: 700px) { .wiz-steps { grid-template-columns: repeat(2, 1fr); } .wiz { padding: 18px; } }

/* ---------- painel inicial ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-head h1 { font-size: 26px; }
.health { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; text-decoration: none; padding: 10px 16px; border-radius: 999px; font-weight: 600; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.health.good { background: var(--ok-soft); border-color: #cfe9d8; color: var(--ok); }
.health.bad { background: var(--err-soft); border-color: #f2c9c4; color: var(--err); }
.health-sub { font-weight: 400; font-size: 12px; opacity: .75; margin-left: 6px; }
.quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.qa { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font: inherit; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer; box-shadow: var(--shadow); transition: transform .08s, border-color .15s; position: relative; }
.qa:hover { border-color: var(--brand-2); transform: translateY(-1px); }
.qa span { font-size: 18px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); flex: none; }
.qa.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.qa.primary span { background: rgba(255,255,255,.18); color: #fff; }
.qa-badge { margin-left: auto; background: var(--brand-2); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.kpi-l { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi-n { font-size: 34px; font-weight: 750; line-height: 1.1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.kpi-d { font-size: 12px; color: var(--muted); }
.kpi-d.up { color: var(--ok); } .kpi-d.down { color: var(--err); }
.kpi-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi-bad { border-color: #f2c9c4; background: #fffafa; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.chart-wrap { position: relative; margin-top: 10px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { stroke: var(--border); stroke-width: 1; }
.chart .b { fill: #C9BFFF; } .chart .b-hoje { fill: var(--brand); } .chart .b0 { stroke: var(--border); stroke-width: 2; }
.chart .bar:hover .b { fill: var(--brand-2); }
.chart .bv { font-size: 13px; font-weight: 700; fill: var(--text); }
.chart .bl { font-size: 12px; fill: var(--muted); } .chart .bl-hoje { fill: var(--text); font-weight: 700; }
.tip { position: absolute; pointer-events: none; background: var(--text); color: #fff; font-size: 12px; padding: 5px 9px; border-radius: 8px; white-space: nowrap; z-index: 2; }
.rank td { padding: 9px 8px; vertical-align: middle; }
.rank .pos { width: 26px; color: var(--muted); font-weight: 700; }
.rank .num { text-align: right; white-space: nowrap; }
.meter { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.meter div { height: 100%; background: var(--brand-2); border-radius: 99px; }
.feed { padding: 10px 0; border-bottom: 1px solid var(--border); }
.feed:last-child { border-bottom: 0; }
.feed-top { display: flex; justify-content: space-between; gap: 8px; }
.feed-st { margin-top: 5px; display: flex; gap: 6px; }
.gchips { display: flex; flex-wrap: wrap; gap: 8px; }
.gchip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.gchip span { font-size: 11px; color: var(--muted); }
.gchip:hover { border-color: var(--brand-2); }
.health-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 13px; }
@media (max-width: 1100px) { .quick, .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .quick, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Mapa de calor dos horários */
.heat-wrap { overflow-x: auto; }
.heat { display: grid; grid-template-columns: 38px repeat(24, minmax(18px, 1fr)); gap: 2px; min-width: 560px; }
.heat-h { font-size: 11px; color: var(--muted); text-align: left; }
.heat-d { font-size: 12px; color: var(--muted); display: flex; align-items: center; }
.heat-c { height: 22px; border-radius: 4px; background: var(--surface-2); position: relative; overflow: hidden; }
.heat-c::after { content: ''; position: absolute; inset: 0; background: var(--brand); opacity: var(--a); }

/* Reels sem automação */
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.reel { display: flex; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 8px; background: var(--surface-2); }
.reel img, .reel-ph { width: 64px; height: 88px; object-fit: cover; border-radius: 8px; flex: none; background: var(--border); display: flex; align-items: center; justify-content: center; }
.reel-info { min-width: 0; flex: 1; }
.reel-cap { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nova-versao { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--side); color: var(--side-text); padding: 10px 14px; border-radius: 12px; display: flex; gap: 12px; align-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 60; }

/* ===== Painel inicial (estilo SaaS) ===== */
.hero { position: relative; overflow: hidden; border-radius: 20px; padding: 22px 24px 20px; margin-bottom: 14px; color: #EEECFB;
  background: radial-gradient(1200px 300px at 85% -40%, rgba(124, 99, 255, .45), transparent 60%), radial-gradient(600px 200px at 0% 120%, rgba(62, 224, 168, .14), transparent 60%), linear-gradient(135deg, #14112B 0%, #1E1847 55%, #2A1F6B 100%);
  box-shadow: 0 14px 40px rgba(20, 17, 43, .22); }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero > * { position: relative; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero h1 { font-size: 28px; color: #fff; margin: 4px 0 0; letter-spacing: -.01em; }
.hero-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #B9B2E8; display: flex; align-items: center; gap: 8px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #3EE0A8; box-shadow: 0 0 0 0 rgba(62, 224, 168, .6); animation: pulse 2s infinite; display: inline-block; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 224, 168, .55); } 70% { box-shadow: 0 0 0 9px rgba(62, 224, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 224, 168, 0); } }
@media (prefers-reduced-motion: reduce) { .live { animation: none; } }
.hero-status { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 13px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #eafff2; backdrop-filter: blur(6px); }
.hero-status.bad { color: #ffd9d4; border-color: rgba(255, 140, 120, .45); background: rgba(179, 55, 47, .25); }
.hero-acc { font-weight: 400; opacity: .7; margin-left: 4px; }
.hero-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.hk { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11); border-radius: 14px; padding: 13px 14px; backdrop-filter: blur(6px); min-width: 0; }
.hk-l { font-size: 12px; color: #B9B2E8; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin: 6px 0 4px; }
.hk-n { font-size: 32px; font-weight: 750; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.hk-s { font-size: 12px; color: #A9A3D6; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.hk-s .kpi-d { color: #A9A3D6; } .hk-s .kpi-d.up { color: #7ee2a8; } .hk-s .kpi-d.down { color: #ff9d90; }
.spark { width: 84px; height: 30px; flex: none; }
.spark-l { fill: none; stroke: #3EE0A8; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-a { fill: rgba(62, 224, 168, .16); }
.spark-d { fill: #fff; stroke: #3EE0A8; stroke-width: 1.5; }
.hero-alert { display: inline-block; margin-top: 12px; font-size: 13px; color: #ffd9d4; background: rgba(179, 55, 47, .3); border: 1px solid rgba(255, 140, 120, .4); padding: 6px 12px; border-radius: 999px; text-decoration: none; }

.cmdbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cmd { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgba(20, 17, 43,.05); transition: transform .12s, border-color .12s, box-shadow .12s; }
.cmd:hover { transform: translateY(-1px); border-color: var(--brand-2); box-shadow: 0 6px 16px rgba(20, 17, 43,.08); }
.cmd.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.cmd-badge { background: var(--brand-2); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.cmd.primary .cmd-badge { background: #fff; color: var(--brand); }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(20, 17, 43,.04); min-width: 0; display: flex; flex-direction: column; }
.span-8 { grid-column: span 8; } .span-4 { grid-column: span 4; }
.tile-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.tile-h h2 { margin: 0; font-size: 16px; }
.tile-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tile-foot { font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 10px; }
.tile .scroll { max-height: 300px; overflow-y: auto; margin-right: -8px; padding-right: 8px; }
.tile-feed .scroll { max-height: 262px; }
.tile .feed:first-child { padding-top: 0; }
.feed-txt { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.trend.up { background: var(--ok-soft); color: var(--ok); } .trend.down { background: var(--err-soft); color: var(--err); }
.chip-n { font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.slots { display: grid; gap: 8px; }
.slot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.slot.top { background: var(--brand-soft); border-color: #D6CCFF; }
.slot-rank { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface); color: var(--brand); flex: none; }
.slot.top .slot-rank { background: var(--brand); color: #fff; }
.tile .reel { margin-bottom: 8px; }
.empty-ok { padding: 18px; text-align: center; color: var(--ok); background: var(--ok-soft); border-radius: 12px; font-weight: 600; font-size: 13px; }
.gchip span { display: flex; align-items: center; gap: 5px; }
.gchip .dot { width: 6px; height: 6px; }
.statusbar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; }
.statusbar span { display: inline-flex; align-items: center; gap: 6px; }
.statusbar a { margin-left: auto; }
@media (max-width: 1200px) { .hero-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .span-8, .span-4 { grid-column: span 12; } }
@media (max-width: 1200px) and (min-width: 761px) { .bento > .span-4:nth-last-child(-n+3) { grid-column: span 6; } }
@media (max-width: 640px) { .hero-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero h1 { font-size: 22px; } .statusbar a { margin-left: 0; } }

/* ===== Entrar / Criar conta ===== */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); background: var(--bg); }
.auth-hero { position: relative; overflow: hidden; color: #fff; padding: 36px 48px 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  background: radial-gradient(800px 420px at 100% -10%, rgba(124, 99, 255, .6), transparent 60%), radial-gradient(640px 360px at -10% 105%, rgba(62, 224, 168, .25), transparent 60%), linear-gradient(155deg, #0E0B22 0%, #191442 55%, #241B66 100%); }
.auth-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 40% 45%, #000 10%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 40% 45%, #000 10%, transparent 72%); }
.auth-hero::after { content: ''; position: absolute; width: 420px; height: 420px; right: -140px; top: 30%; border-radius: 50%; background: radial-gradient(circle, rgba(62,224,168,.22), transparent 65%); filter: blur(10px); animation: brilho 7s ease-in-out infinite alternate; pointer-events: none; }
@keyframes brilho { from { transform: translateY(-30px) scale(.9); opacity: .6; } to { transform: translateY(40px) scale(1.1); opacity: 1; } }
.auth-hero > * { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand img { width: 40px; height: 40px; }
.auth-brand .wordmark { font-size: 20px; color: var(--text); }
.auth-brand .wordmark b { color: var(--mint-ink); }
.auth-brand .wordmark.claro { color: #fff; } .auth-brand .wordmark.claro b { color: var(--mint); }
.auth-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #CFC9F5; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.auth-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(62,224,168,.7); animation: pulso 1.8s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 9px rgba(62,224,168,0); } 100% { box-shadow: 0 0 0 0 rgba(62,224,168,0); } }
.auth-pitch h1 { font-size: clamp(40px, 4.6vw, 58px); line-height: .98; letter-spacing: -.045em; margin: 0 0 16px; color: #fff; font-weight: 850; }
.auth-pitch h1 span { background: linear-gradient(90deg, #3EE0A8, #8FF0CF 45%, #A797FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-pitch > p { font-size: 17px; color: #D3CEF5; max-width: 440px; margin: 0 0 26px; line-height: 1.55; }
.auth-stage { position: relative; display: grid; grid-template-columns: 210px 46px minmax(0, 250px); align-items: center; max-width: 560px; padding: 18px 0 30px; }
.st-phone { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 22px; padding: 12px; backdrop-filter: blur(10px); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.st-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 10px; } .st-top span { font-size: 10px; color: #0B2A20; background: var(--mint); border-radius: 999px; padding: 2px 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.st-feed { display: grid; gap: 8px; }
.st-c { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: #E6E3F7; background: rgba(255,255,255,.06); border-radius: 12px; padding: 7px 8px; opacity: 0; animation: entra .5s ease forwards; }
.st-c:nth-child(1) { animation-delay: .2s; } .st-c:nth-child(2) { animation-delay: 1.1s; } .st-c:nth-child(3) { animation-delay: 2s; }
.st-c i { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; }
.st-c b { display: block; font-size: 11px; color: #fff; }
.st-flow { height: 2px; margin: 0 4px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; border-radius: 2px; }
.st-flow span { position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--mint), transparent); animation: corre 1.6s linear infinite; }
@keyframes corre { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.st-dm { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; opacity: 0; animation: entra .6s 1.4s ease forwards; }
.st-bubble { background: #fff; color: var(--text); border-radius: 18px 18px 4px 18px; padding: 12px 14px; font-size: 13.5px; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.st-btn { margin-top: 8px; text-align: center; font-weight: 750; font-size: 12.5px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-radius: 10px; padding: 8px; }
.st-ok { font-size: 11px; color: var(--mint); font-weight: 700; }
.st-chip { position: absolute; font-size: 12px; color: #E6E3F7; background: rgba(20,17,43,.75); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 8px 12px; backdrop-filter: blur(8px); box-shadow: 0 12px 30px rgba(0,0,0,.3); opacity: 0; animation: entra .6s ease forwards, flutua 5s ease-in-out infinite alternate; }
.st-chip b { display: block; font-size: 17px; color: #fff; letter-spacing: -.02em; }
.st-chip.c1 { left: 150px; bottom: -14px; animation-delay: 2.4s, 2.4s; } .st-chip.c2 { right: -6px; top: -10px; animation-delay: 3s, 3s; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes flutua { to { translate: 0 -6px; } }
.auth-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: #A9A3D2; }
@media (prefers-reduced-motion: reduce) { .auth-hero::after, .auth-kicker i, .st-c, .st-dm, .st-chip, .st-flow span { animation: none !important; opacity: 1; } }
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: radial-gradient(600px 300px at 80% 0%, rgba(91,61,245,.07), transparent 70%), var(--bg); }
.auth-card { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 30px 30px 24px; box-shadow: 0 1px 2px rgba(20,17,43,.04), 0 24px 60px rgba(20,17,43,.08); }
.auth-mobile-brand { display: none; margin-bottom: 22px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 4px; margin-bottom: 24px; }
.auth-tabs button { border: 0; background: transparent; border-radius: 10px; padding: 10px; font-weight: 700; color: var(--muted); justify-content: center; cursor: pointer; }
.auth-tabs button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(20,17,43,.12); }
.auth-card h2 { font-size: 26px; letter-spacing: -.025em; margin: 0 0 6px; }
.auth-sub { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.auth-field { display: block; margin-bottom: 14px; }
.auth-field > span { display: block; font-size: 13px; font-weight: 650; margin-bottom: 6px; }
.auth-field input { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.auth-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 61, 245, .14); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-pass { position: relative; } .auth-pass input { padding-right: 46px; }
.auth-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; padding: 6px 8px; opacity: .55; cursor: pointer; }
.auth-eye:hover { opacity: 1; }
.auth-meter { height: 4px; background: var(--surface-2); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.auth-meter i { display: block; height: 100%; width: 0; background: var(--err); transition: width .2s, background .2s; }
.auth-meter i[data-f="2"] { background: var(--warn); } .auth-meter i[data-f="3"], .auth-meter i[data-f="4"] { background: var(--mint-ink); }
.auth-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 18px; }
.auth-check input { margin-top: 3px; accent-color: var(--brand); }
.auth-btn { width: 100%; justify-content: center; border: 0; border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 750; color: #fff; text-decoration: none; display: flex; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 22px rgba(91, 61, 245, .28); transition: transform .15s, box-shadow .15s; margin-top: 8px; }
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(91, 61, 245, .34); }
.auth-btn:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.auth-btn:disabled { opacity: .7; transform: none; }
.auth-btn-ghost { background: var(--surface-2); color: var(--text); box-shadow: none; }
.auth-err { color: var(--err); font-size: 13px; min-height: 18px; margin: 10px 0 0; }
.auth-small { font-size: 13px; color: var(--muted); margin-top: 16px; text-align: center; }
.auth-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.auth-done { text-align: center; } .auth-done-ico { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 16px; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #0B2A20; background: var(--mint); }
.auth-planos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.auth-plano { position: relative; text-align: left; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; white-space: normal; min-width: 0; gap: 2px; padding: 12px 10px 10px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font: inherit; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.auth-plano:hover { transform: translateY(-1px); border-color: var(--brand-2); }
.auth-plano.on { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91,61,245,.12); background: linear-gradient(180deg, var(--brand-soft), var(--surface) 70%); }
.auth-plano b { font-size: 13px; } .auth-plano strong { font-size: 17px; letter-spacing: -.02em; } .auth-plano strong small { font-size: 11px; color: var(--muted); font-weight: 600; }
.auth-plano span { font-size: 11px; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.auth-plano em { position: absolute; top: -9px; right: 8px; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #0B2A20; background: var(--mint); padding: 2px 7px; border-radius: 999px; }
.auth-plano:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.auth-plano-nota { font-size: 12.5px; color: var(--muted); margin: 0 0 16px; min-height: 18px; }
@media (max-width: 1100px) { .auth-stage { grid-template-columns: 190px 30px minmax(0, 220px); } .st-chip.c2 { display: none; } }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-hero { display: none; } .auth-mobile-brand { display: block; } .auth-main { align-items: start; padding: 28px 16px; } .auth-card { padding: 24px 20px; border-radius: 20px; } }
@media (max-width: 420px) { .auth-row { grid-template-columns: 1fr; } .auth-planos { grid-template-columns: 1fr; } .auth-plano { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; } }

/* ===== Painel ADM ===== */
.adm { min-height: 100vh; background: var(--bg); }
.adm-top { display: flex; align-items: center; gap: 12px; padding: 14px 24px; color: #fff; background: linear-gradient(135deg, #14112B, #241C5C); }
.adm-top .auth-brand img { width: 32px; height: 32px; } .adm-top .wordmark { font-size: 17px; }
.adm-badge { font-size: 11px; font-weight: 800; letter-spacing: .1em; background: var(--mint); color: #0B2A20; padding: 3px 9px; border-radius: 999px; }
.adm-user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #D9D5F7; }
.adm-user button { color: #fff; }
.adm-wrap { max-width: 1240px; margin: 0 auto; padding: 24px; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.adm-head h1 { font-size: 26px; }
.adm-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.adm-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.adm-kpi span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; } .adm-kpi b { font-size: 28px; font-variant-numeric: tabular-nums; }
.adm-kpi.warn { border-color: #f1d79c; background: var(--warn-soft); }
.adm-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.adm-bar input { max-width: 300px; }
@media (max-width: 1000px) { .adm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adm-head { flex-direction: column; } }

/* Conexão (clientes) */
.conn-hero { text-align: center; padding: 34px 24px; }
.conn-hero h2 { font-size: 22px; margin: 10px 0 6px; } .conn-hero p { max-width: 520px; margin: 0 auto 18px; }
.conn-ico { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto; display: grid; place-items: center; font-size: 30px; background: var(--brand-soft); }
.conn-ok { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.conn-ok img, .conn-av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 26px; background: var(--surface-2); }
.btn.big { padding: 12px 22px; font-size: 15px; }

/* Guia de primeiros passos */
.guia { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(20,17,43,.04); }
.guia-h { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; } .guia-h h2 { margin: 0; font-size: 17px; } .guia-h > div:first-child { flex: 1; }
.guia-bar { width: 160px; height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; } .guia-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--mint)); border-radius: 8px; }
.guia-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.guia-list li { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.guia-list li > div { flex: 1; } .guia-list li .btn { align-self: flex-start; }
.guia-list li.agora { border-color: var(--brand-2); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(124,99,255,.12); }
.guia-list li.ok { opacity: .7; }
.guia-n { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface); color: var(--brand); border: 1px solid var(--border); }
.guia-list li.ok .guia-n { background: var(--mint); color: #0B2A20; border-color: var(--mint); }
.guia-list li.agora .guia-n { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 1000px) { .guia-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .guia-list { grid-template-columns: 1fr; } .guia-bar { display: none; } }

/* Botão de suporte */
.wa-suporte { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 11px 16px 11px 13px; border-radius: 999px; background: #25D366; color: #06331b; font-weight: 750; text-decoration: none; box-shadow: 0 10px 26px rgba(0,0,0,.18); transition: transform .12s; }
.wa-suporte:hover { transform: translateY(-2px); }
@media (max-width: 560px) { .wa-suporte span { display: none; } .wa-suporte { padding: 13px; } }

/* ADM v2 */
.adm-tabs { display: flex; gap: 4px; margin-left: 18px; flex-wrap: wrap; }
.adm-tabs button { background: transparent; border: 0; color: #C8C2F0; font-weight: 650; padding: 8px 12px; border-radius: 10px; }
.adm-tabs button:hover { background: rgba(255,255,255,.07); color: #fff; }
.adm-tabs button.on { background: rgba(124,99,255,.32); color: #fff; }
.adm-hero { border-radius: 18px; padding: 18px; margin-bottom: 14px; color: #fff; background: radial-gradient(800px 260px at 90% -30%, rgba(124,99,255,.5), transparent 60%), linear-gradient(135deg, #14112B, #241C5C); }
.adm-hero-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.adm-hero-kpis > div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px; }
.adm-hero-kpis span { display: block; font-size: 12px; color: #C8C2F0; font-weight: 600; }
.adm-hero-kpis b { display: block; font-size: 28px; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.adm-hero-kpis em { font-style: normal; font-size: 12px; color: #A9A3D6; } .adm-hero-kpis em a { color: var(--mint); }
.adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; } .adm-grid > .card { margin: 0; }
.adm-chart { width: 100%; height: auto; }
.funil { display: grid; grid-template-columns: 150px 1fr 36px 42px; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.funil b { text-align: right; } .funil em { font-style: normal; color: var(--muted); font-size: 12px; }
.adm-table td { vertical-align: top; }
.ficha-back { position: fixed; inset: 0; background: rgba(14,12,32,.45); z-index: 80; display: flex; justify-content: flex-end; }
.ficha { width: min(520px, 100%); height: 100%; overflow-y: auto; background: var(--bg); padding: 22px; box-shadow: -10px 0 40px rgba(0,0,0,.2); animation: entrar .18s ease; }
@keyframes entrar { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.ficha-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; } .ficha-h h2 { margin: 0; font-size: 22px; }
.ficha-sec { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; } .ficha-sec h3 { margin: 0 0 10px; }
.ficha-kv { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: 13px; } .ficha-kv:last-child { border: 0; } .ficha-kv span { color: var(--muted); }
.ficha-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; text-align: center; } .ficha-nums b { display: block; font-size: 20px; } .ficha-nums span { font-size: 11px; color: var(--muted); }
.ficha textarea { width: 100%; }
@media (max-width: 1100px) { .adm-hero-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .adm-grid { grid-template-columns: 1fr; } .adm-tabs { order: 3; width: 100%; margin: 8px 0 0; } .adm-top { flex-wrap: wrap; } }
@media (max-width: 600px) { .adm-hero-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .funil { grid-template-columns: 110px 1fr 30px; } .funil em { display: none; } }

/* Configurações com menu lateral */
.cfg { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.cfg-nav { position: sticky; top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 10px; }
.cfg-grupo { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 12px 8px 4px; }
.cfg-grupo:first-child { margin-top: 4px; }
.cfg-nav a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14px; }
.cfg-nav a:hover { background: var(--surface-2); }
.cfg-nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.cfg-nav a span { width: 20px; text-align: center; }
.cfg-h { margin-bottom: 12px; } .cfg-h h2 { font-size: 22px; margin: 0 0 6px; }
.cfg-oque { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--info-soft); color: #1e4466; font-size: 14px; }
.cfg-body .card h3 { margin: 0 0 10px; }
.cfg-body .hint { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 400; }
.cfg-passos { margin: 0 0 12px; padding-left: 20px; line-height: 1.8; font-size: 14px; }
.cfg-acao { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cfg-acao:last-child { border: 0; }
.ass-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, var(--brand-soft), var(--surface)); }
.ass-preco b { font-size: 30px; } .ass-preco span { color: var(--muted); }
.ass-tab td { vertical-align: top; } .ass-tab td:nth-child(2), .ass-tab td:nth-child(3) { width: 22%; font-weight: 700; }
.ass-planos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ass-plano { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--surface-2); }
.ass-plano.atual { border-color: var(--brand-2); background: var(--brand-soft); }
.ass-p { font-size: 24px; font-weight: 800; margin: 6px 0 2px; } .ass-p span { font-size: 13px; color: var(--muted); font-weight: 500; }
.rp { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; align-items: start; margin-bottom: 8px; }
.rp-a { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); padding-left: 10px; }
.rp-a span { color: var(--brand); font-weight: 800; } .rp-a input { border: 0; background: transparent; }
@media (max-width: 860px) { .cfg { grid-template-columns: 1fr; } .cfg-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; } .cfg-grupo { width: 100%; } .rp { grid-template-columns: 1fr; } }
.rp-wrap { position: relative; }
.rp-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(20,17,43,.15); max-height: 260px; overflow-y: auto; z-index: 5; padding: 6px; }
.rp-menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; text-align: left; white-space: normal; }
.rp-menu button:hover { background: var(--brand-soft); } .rp-menu b { color: var(--brand); } .rp-menu span { font-size: 12px; color: var(--muted); }
