
/* Layout: painel escuro no estilo Servex/Veltrix (referências do Rino): fundo quase preto com brilho azul GlobalNet,
   cards arredondados com ícone colorido, barra flutuante embaixo, tudo que cria/edita abre em janela por cima.
   Três visões: Admin, Revenda e Sub-revenda. Tema único escuro por escolha: todas as cores ficam aqui. */
:root {
  color-scheme: dark;
  --bg: #040507; --card: #0c0e13; --card-2: #12151c; --field: #11141b; --line: #1c212b; --line-2: #262c38;
  --text: #f1f4f9; --text-2: #a7b0c0; --text-3: #6f7a8c;
  --blue: #0b8ce9; --blue-2: #3db5ff; --blue-soft: rgba(27,168,255,.14);
  --green: #22c55e; --green-soft: rgba(34,197,94,.13);
  --amber: #f59e0b; --amber-soft: rgba(245,158,11,.13);
  --red: #f05252; --red-soft: rgba(240,82,82,.13);
  --violet: #a993ff; --violet-soft: rgba(139,108,255,.14);
  --wa: #25d366; --tg: #2aabee;
  --display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body { margin: 0; color: var(--text); font: 14px/1.5 var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh; }
body::after { content: ""; position: fixed; top: -220px; right: -160px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, rgba(27,168,255,.2), rgba(27,168,255,0)); pointer-events: none; z-index: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); } .dim { color: var(--text-3); }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }

/* ---------- topo ---------- */
.proto { background: #0a1630; border-bottom: 1px solid #1d3566; font-size: 12.5px; color: #b8cdf5; position: relative; z-index: 25; }
.proto .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; padding-block: 6px; }
.proto .as { display: inline-flex; gap: 3px; padding: 3px; border-radius: 9px; background: #06101f; border: 1px solid #1d3566; }
.proto .as button { border: 0; background: none; padding: 3px 10px; border-radius: 7px; color: #8fa9d8; font-weight: 500; font-size: 12.5px; }
.proto .as button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.proto .lnk { border: 0; background: none; color: #b8cdf5; text-decoration: underline; padding: 0; font-size: 12.5px; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(4,5,7,.84); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .02em; }
.logo .g { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(145deg, #22a8ff, #0a6fd0); display: grid; place-items: center; box-shadow: 0 0 22px rgba(27,168,255,.45); }
.logo .g svg { width: 19px; height: 19px; }
.logo-img { height: 40px; width: auto; display: block; filter: drop-shadow(0 0 14px rgba(27,168,255,.35)); }
.logo-img.big { height: 74px; margin: 0 auto; }
.logo i { font-style: normal; color: var(--blue-2); font-weight: 500; }
.top-right { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text-2); font-size: 13px; white-space: nowrap; }
.pill svg { width: 15px; height: 15px; }
.pill .ok { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.pill b { color: var(--text); font-weight: 600; }
.me { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 3px 12px 3px 3px; }
.me .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 13px; color: #fff; background: linear-gradient(145deg, #22a8ff, #8b6cff); }
.me b { font-size: 13px; font-weight: 600; display: block; line-height: 1.2; }
.me span { font-size: 11.5px; color: var(--text-3); display: block; line-height: 1.2; }

main { padding-block: 22px 130px; }
.title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.title h1 { font-size: 25px; }
.title p { color: var(--text-2); margin-top: 3px; }

/* ---------- blocos ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.card-h h3 { font-size: 15.5px; display: flex; align-items: center; gap: 9px; }
.card-h h3 svg { width: 18px; height: 18px; color: var(--blue-2); }
.card-b { padding: 14px 18px 18px; }
.grid { display: grid; gap: 14px; }
.grid > * { min-width: 0; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
.hero { position: relative; overflow: hidden; border-radius: 18px; padding: 22px 24px; background: linear-gradient(120deg, #0a6fd0 0%, #0b8ce9 45%, #3f7dff 100%); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255,255,255,.07); pointer-events: none; }
.hero h2 { font-size: 23px; color: #fff; }
.hero p { color: rgba(255,255,255,.86); margin-top: 3px; }
.hero .acts { position: relative; z-index: 1; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; justify-content: space-between; gap: 10px; position: relative; overflow: hidden; min-width: 0; }
.stat::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c, var(--blue)); }
.stat > div:first-child { min-width: 0; }
.stat span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); font-weight: 500; display: block; }
.stat b { display: block; font: 600 28px/1.2 var(--display); margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat small { color: var(--text-3); font-size: 12.5px; display: block; }
.stat small.good { color: var(--green); }
.badge-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--cs, var(--blue-soft)); color: var(--c, var(--blue-2)); flex: none; }
.badge-ic svg { width: 21px; height: 21px; }
.plan-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 16px 18px; border-radius: var(--r); border: 1px solid #1d3566; background: linear-gradient(120deg, rgba(27,168,255,.12), rgba(27,168,255,.03)); }
.plan-strip .big { font: 600 22px var(--display); }
.plan-strip .barbox { flex: 1 1 200px; min-width: 0; }

/* ---------- botões e etiquetas ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #39414f; background: #171b24; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 20px -6px rgba(27,168,255,.7); }
.btn.blue:hover { background: #24a0f5; }
.btn.white { background: #fff; border-color: #fff; color: #0a6fd0; font-weight: 600; }
.btn.glass { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); color: #fff; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #04210f; font-weight: 600; }
.btn.tg { background: var(--tg); border-color: var(--tg); color: #04182a; font-weight: 600; }
.btn.red { color: var(--red); border-color: rgba(240,82,82,.35); background: var(--red-soft); }
.btn.amber { color: var(--amber); border-color: rgba(245,158,11,.35); background: var(--amber-soft); }
.btn.red-solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.ok { background: var(--green-soft); color: var(--green); }
.tag.warn { background: var(--amber-soft); color: var(--amber); }
.tag.bad { background: var(--red-soft); color: var(--red); }
.tag.test { background: var(--violet-soft); color: var(--violet); }
.tag.off { background: #161a22; color: var(--text-3); }
.tag.on { background: var(--blue-soft); color: var(--blue-2); }
.tag.plain::before { display: none; }

/* ---------- listas ---------- */
.item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.item:first-child { border-top: 0; }
@media (max-width: 640px) { .rapido span { display: none } .rapido { padding: 0 10px } }
button.item { width: 100%; background: none; border-width: 1px 0 0; border-style: solid; border-color: var(--line); color: var(--text); font: inherit; border-radius: 0; }
button.item:not([disabled]):hover { background: rgba(240,82,82,.06); }
.item .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.item .ico svg { width: 18px; height: 18px; }
.item .grow { flex: 1; min-width: 0; }
.item .s { font-size: 12.5px; color: var(--text-3); }
.login { font-family: var(--mono); font-weight: 600; font-size: 13.5px; }
.meter { margin-top: 12px; }
.meter .l { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.meter .l span { color: var(--text-2); }
.bar { height: 7px; border-radius: 7px; background: #161a22; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, #0b8ce9, #3db5ff); }
.bar i.warn { background: linear-gradient(90deg, #d97706, #f59e0b); }
.bar i.bad { background: linear-gradient(90deg, #dc2626, #f05252); }
.hist { display: flex; flex-direction: column; }
.hist div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.hist div:first-child { border-top: 0; }
.hist time { color: var(--text-3); font-variant-numeric: tabular-nums; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #090b0f; border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: none; height: 32px; padding: 0 12px; border-radius: 9px; color: var(--text-2); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.seg button b { font-weight: 500; color: var(--text-3); }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: 0 4px 14px -4px rgba(27,168,255,.8); }
.seg button[aria-pressed="true"] b { color: rgba(255,255,255,.75); }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; border-radius: 11px; background: #090b0f; border: 1px solid var(--line); }
.search:focus-within { border-color: var(--blue); }
.search svg { width: 17px; height: 17px; color: var(--text-3); flex: none; }
.search input { border: 0; outline: 0; background: none; width: 100%; height: 100%; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl tbody tr { cursor: pointer; transition: background .12s; }
.tbl tbody tr:hover { background: #10131a; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who > div { min-width: 0; }
.ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 14px; background: var(--blue-soft); color: var(--blue-2); flex: none; text-transform: uppercase; }
.ava.rv { background: var(--violet-soft); color: var(--violet); border-radius: 11px; }
.sub { display: block; font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.tree { display: inline-block; width: 18px; color: var(--text-3); }
.rowacts { display: inline-flex; gap: 6px; }
.mini { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card-2); display: inline-grid; place-items: center; color: var(--text-2); flex: none; }
.mini:hover { color: #fff; border-color: #39414f; }
.mini svg { width: 16px; height: 16px; }
.mini.wa { color: var(--wa); } .mini.tg { color: var(--tg); }
.tblwrap { overflow-x: auto; }
.clist { display: none; }
.empty { text-align: center; padding: 36px 16px; color: var(--text-2); }

/* ---------- janelas ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.66); backdrop-filter: blur(3px); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { width: min(600px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: #0b0d12; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(27,168,255,.08); overflow: hidden; }
.modal.wide { width: min(780px, 100%); }
.m-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 12px; }
.m-h h3 { font-size: 19px; }
.m-h p { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.m-b { padding: 4px 22px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.m-f { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); background: #090b0f; flex-wrap: wrap; }
.m-f .info { margin-right: auto; font-size: 13px; color: var(--text-2); }
.m-f .info b { color: var(--text); }
.x { width: 34px; height: 34px; border-radius: 9px; border: 0; background: none; color: var(--text-3); display: grid; place-items: center; flex: none; }
.x:hover { background: var(--card-2); color: #fff; }
.x svg { width: 18px; height: 18px; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #13161e; border: 1px solid var(--line); }
.tabs button { border: 0; background: none; height: 38px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-family: var(--display); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.tabs button svg { width: 16px; height: 16px; }
.tabs button[aria-pressed="true"] { background: linear-gradient(145deg, #0b8ce9, #0a78d8); color: #fff; box-shadow: 0 6px 18px -6px rgba(27,168,255,.8); }
.sec-t { font: 600 12px var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-bottom: -6px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 600; }
.inp { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 6px 0 13px; border-radius: 11px; background: var(--field); border: 1px solid var(--line-2); min-width: 0; }
.inp:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,168,255,.18); }
.inp > svg { width: 17px; height: 17px; color: var(--text-3); flex: none; }
.inp input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; height: 100%; }
.inp.mono input { font-family: var(--mono); font-weight: 600; letter-spacing: .02em; }
.inp .gen { height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--blue-2); display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; flex: none; }
.inp .gen svg { width: 14px; height: 14px; }
.inp .pre { color: var(--text-3); font-size: 14px; }
.hint { font-size: 12.5px; color: var(--text-3); }
.hint.ok { color: var(--green); } .hint.bad { color: var(--red); } .hint.warn { color: var(--amber); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.opts.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { border: 1px solid var(--line-2); background: var(--field); border-radius: 12px; padding: 10px 8px; min-height: 62px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.opt b { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.2; }
.opt span { font-size: 12px; color: var(--text-3); line-height: 1.3; }
.opt[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.opt[aria-pressed="true"] b { color: var(--blue-2); }
.opt.big { min-height: 76px; text-align: left; align-items: flex-start; padding: 12px 14px; }
.stepper { display: inline-flex; align-items: center; height: 44px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--field); overflow: hidden; flex: none; }
.stepper button { width: 44px; height: 100%; border: 0; background: none; font-size: 20px; color: var(--text-2); }
.stepper button:hover { color: #fff; background: var(--card-2); }
.stepper output { min-width: 52px; text-align: center; font: 600 17px var(--display); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); }
.switch b { font-weight: 600; display: block; }
.switch span { font-size: 12.5px; color: var(--text-3); }
.sw { width: 42px; height: 24px; border-radius: 999px; border: 0; background: #2a303c; position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.sw[aria-checked="true"] { background: var(--blue); }
.sw[aria-checked="true"]::after { transform: translateX(18px); }
.sw[disabled] { opacity: .4; cursor: not-allowed; }
.resumo { border-radius: 12px; border: 1px dashed #2b3445; background: rgba(27,168,255,.05); padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13.5px; margin: 0; }
.resumo dt { color: var(--text-3); }
.resumo dd { margin: 0; text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.done { text-align: center; padding: 4px 0 0; }
.done .ok-ic { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); box-shadow: 0 0 30px rgba(34,197,94,.25); }
.done .ok-ic svg { width: 28px; height: 28px; }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cred { border-radius: 12px; background: var(--field); border: 1px solid var(--line-2); padding: 11px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; }
.cred > div { min-width: 0; }
.cred span { font-size: 12px; color: var(--text-3); display: block; }
.cred b { font: 600 18px var(--mono); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.send { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.send .btn { height: 48px; font-size: 15px; border-radius: 12px; }
.preview { border-radius: 12px; border: 1px solid var(--line-2); overflow: hidden; }
.preview .ph { display: flex; gap: 4px; padding: 4px; background: var(--field); border-bottom: 1px solid var(--line-2); }
.preview .ph button { flex: 1; border: 0; background: none; height: 32px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.preview .ph button svg { width: 15px; height: 15px; }
.preview .ph button[aria-pressed="true"] { background: var(--card-2); color: #fff; }
.chat { padding: 16px; }
.chat.zap { background: #0b141a; } .chat.tg { background: #0e1621; }
.bubble { max-width: 340px; padding: 9px 12px 7px; border-radius: 4px 12px 12px 12px; white-space: pre-wrap; line-height: 1.5; font-size: 14px; overflow-wrap: anywhere; }
.chat.zap .bubble { background: #202c33; color: #e9edef; }
.chat.tg .bubble { background: #182533; color: #f5f5f5; }
.bubble code { font-family: var(--mono); font-size: 13px; color: #8cc8ff; }
.bubble .tm { display: block; text-align: right; font-size: 11px; color: rgba(233,237,239,.5); margin-top: 2px; }
.dhead { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dhead .ava { width: 52px; height: 52px; font-size: 20px; }
.dhead h3 { font: 600 20px var(--mono); overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv > div { border-radius: 12px; background: var(--field); border: 1px solid var(--line-2); padding: 11px 13px; min-width: 0; }
.kv span { font-size: 12px; color: var(--text-3); display: block; }
.kv b { font-weight: 600; display: block; }
.confirm { border-radius: 12px; padding: 14px; border: 1px solid rgba(27,168,255,.4); background: var(--blue-soft); display: flex; flex-direction: column; gap: 10px; }
.confirm.bad { border-color: rgba(240,82,82,.45); background: var(--red-soft); }
.confirm.warn { border-color: rgba(245,158,11,.45); background: var(--amber-soft); }
.confirm.good { border-color: rgba(34,197,94,.45); background: var(--green-soft); }
.confirm ul { margin: 0; padding-left: 18px; color: var(--text-2); display: flex; flex-direction: column; gap: 3px; }
.confirm ul b { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.srv { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 500; background: #161a22; border: 1px solid var(--line-2); }
.srv svg { width: 14px; height: 14px; }
.srv.ok svg { color: var(--green); } .srv.wait svg { color: var(--amber); }
.note { border-radius: 12px; padding: 12px 14px; background: #0d1424; border: 1px solid #1d3566; color: #b8cdf5; font-size: 13px; display: flex; gap: 10px; }
.note svg { width: 18px; height: 18px; flex: none; color: var(--blue-2); margin-top: 1px; }

/* online / servidores */
.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ocard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; }
.ocard:hover { border-color: var(--line-2); }
.ocard.over { border-color: rgba(240,82,82,.5); }
.scard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.scard.add { border-style: dashed; align-items: center; justify-content: center; text-align: center; color: var(--text-2); min-height: 200px; cursor: pointer; background: transparent; }
.scard.add:hover { border-color: var(--blue); color: var(--blue-2); }
.scard.add svg { width: 26px; height: 26px; }
textarea { width: 100%; min-height: 210px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); padding: 12px 14px; font: 13px/1.6 var(--mono); resize: vertical; }
textarea:focus { outline: 0; border-color: var(--blue); }
.vars { display: flex; flex-wrap: wrap; gap: 6px; }
.vars button { font: 12px var(--mono); border-radius: 7px; border: 1px solid var(--line-2); background: var(--field); color: var(--blue-2); padding: 3px 8px; }
.keybox { display: flex; align-items: center; gap: 8px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); padding: 8px 8px 8px 14px; min-width: 0; }
.keybox code { flex: 1; min-width: 0; font: 500 13px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }

/* dock */
.dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; gap: 2px; padding: 6px; border-radius: 18px; background: rgba(10,12,17,.92); backdrop-filter: blur(14px); border: 1px solid #22314f; box-shadow: 0 18px 50px -10px rgba(0,0,0,.9), 0 0 24px -8px rgba(27,168,255,.35); }
.dock button { border: 0; background: none; width: 80px; padding: 7px 4px 6px; border-radius: 13px; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 500; }
.dock button svg { width: 21px; height: 21px; }
.dock button:hover { color: var(--text); }
.dock button[aria-current="page"] { color: #fff; background: var(--blue-soft); }
.dock button[aria-current="page"] svg { color: var(--blue-2); filter: drop-shadow(0 0 6px rgba(27,168,255,.7)); }
.dock .plus { width: 56px; justify-content: center; }
.dock .plus span { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(145deg, #22a8ff, #0a6fd0); color: #fff; box-shadow: 0 6px 18px -4px rgba(27,168,255,.8); }
.dock .only-sm { display: none; }
.menu-list { display: flex; flex-direction: column; gap: 6px; }
.menu-list button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); text-align: left; font-weight: 500; }
.menu-list button svg { width: 19px; height: 19px; color: var(--blue-2); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 12px; background: #0f1a12; border: 1px solid rgba(34,197,94,.45); color: #c9f7d8; font-weight: 500; box-shadow: 0 12px 40px -10px rgba(0,0,0,.9); max-width: calc(100vw - 32px); }
.toast svg { width: 17px; height: 17px; color: var(--green); flex: none; }

/* tela de login */
.login-screen { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.login-screen::before { content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; top: -300px; left: 50%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(27,168,255,.28), rgba(27,168,255,0)); pointer-events: none; }
.lbox { position: relative; width: min(400px, 100%); display: flex; flex-direction: column; gap: 16px; }
.lbox .logo { justify-content: center; font-size: 24px; margin-bottom: 4px; }
.lbox .logo .g { width: 42px; height: 42px; border-radius: 13px; }
.lcard { background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.lcard h2 { font-size: 20px; text-align: center; }
.lcard > p { text-align: center; color: var(--text-2); margin-top: -8px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); }
.check input { width: 17px; height: 17px; accent-color: var(--blue); }
.code6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code6 input { height: 52px; text-align: center; border-radius: 11px; border: 1px solid var(--line-2); background: var(--field); font: 600 22px var(--mono); }
.code6 input:focus { outline: 0; border-color: var(--blue); }

/* plano */
.phase { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 16px 22px; }
.phase + .phase { border-top: 1px solid var(--line); }
.phase .n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 700 15px var(--display); background: var(--blue-soft); color: var(--blue-2); }
.phase h3 { font-size: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.phase p { color: var(--text-2); margin-top: 3px; }
.phase ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }

/* ---------- celular ---------- */
@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .dock button { width: 70px; }
}
@media (max-width: 680px) {
  .top .wrap { height: 56px; }
  .hide-sm { display: none !important; }
  .me b, .me span { display: none; }
  .me { padding: 3px; }
  main { padding-block: 16px 120px; }
  .title h1 { font-size: 22px; }
  .hero { padding: 18px; }
  .hero h2 { font-size: 20px; }
  .stat { padding: 14px; }
  .stat b { font-size: 22px; }
  .badge-ic { width: 36px; height: 36px; }
  .badge-ic svg { width: 18px; height: 18px; }
  .g3 { grid-template-columns: 1fr; }
  .tblwrap { display: none; }
  .clist { display: flex; flex-direction: column; }
  .citem { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); cursor: pointer; }
  .citem:first-child { border-top: 0; }
  .citem .grow { flex: 1; min-width: 0; }
  .pair, .creds, .send, .kv { grid-template-columns: 1fr; }
  .opts, .opts.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opts.c3 .opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .scrim { padding: 0; place-items: end stretch; }
  .modal, .modal.wide { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 20px 20px 0 0; }
  .m-h { padding: 18px 16px 10px; }
  .m-b { padding: 4px 16px 16px; }
  .m-f { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .m-f .info { flex-basis: 100%; }
  .m-f .btn { flex: 1; }
  .dock { left: 0; right: 0; transform: none; bottom: 0; border-radius: 18px 18px 0 0; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); padding-left: max(4px, env(safe-area-inset-left, 0px)); padding-right: max(4px, env(safe-area-inset-right, 0px)); }
  .dock button { width: auto; flex: 1; font-size: 10.5px; min-width: 0; }
  .dock .only-sm { display: flex; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .phase { grid-template-columns: 1fr; padding: 14px 16px; }
  .proto .wrap { justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .modal { animation: up .2s ease-out; }
  @keyframes up { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
}
/* ===== v5: mais arredondado, brilho leve e animações (sobrescreve o que está acima) ===== */
:root { --r: 20px; --ease: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.34,1.56,.64,1); }
body::after { display: none; }
.aurora { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.aurora i { position: absolute; width: 640px; height: 640px; border-radius: 50%; filter: blur(50px); }
.aurora i:nth-child(1) { background: radial-gradient(closest-side, rgba(27,168,255,.30), transparent); top: -260px; right: -180px; }
.aurora i:nth-child(2) { background: radial-gradient(closest-side, rgba(110,90,255,.18), transparent); bottom: -320px; left: -240px; }
.card, .stat, .ocard, .scard { border-radius: var(--r); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--card); border-color: rgba(255,255,255,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 30px -18px rgba(0,0,0,.8); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.scard.add { background: transparent; box-shadow: none; }
.stat:hover, .ocard:hover, .scard:hover { transform: translateY(-3px); border-color: rgba(27,168,255,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 40px -20px rgba(27,168,255,.35); }
.stat::before { top: 18px; bottom: 18px; box-shadow: 0 0 12px var(--c); }
.badge-ic { border-radius: 16px; background: linear-gradient(145deg, var(--cs), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 22px -6px var(--c); }
.hero { border-radius: 26px; box-shadow: 0 24px 60px -24px rgba(11,140,233,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 20% -20%, rgba(255,255,255,.22), transparent 60%); pointer-events: none; }
.plan-strip { border-radius: var(--r); }
.btn { border-radius: 14px; transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.btn:active:not([disabled]) { transform: scale(.96); }
.btn.blue { background: linear-gradient(135deg, #22a8ff, #0a78d8); box-shadow: 0 10px 24px -10px rgba(11,140,233,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.sm { border-radius: 12px; }
.mini { border-radius: 12px; transition: transform .15s var(--ease), color .2s, border-color .2s; }
.mini:active { transform: scale(.9); }
.inp, .stepper, .switch, .resumo, .cred, .kv > div, .opt, .search, .keybox, .confirm, .note, .preview, textarea, .menu-list button { border-radius: 16px; }
.opt { transition: transform .25s var(--spring), border-color .2s, background .2s, box-shadow .2s; }
.opt:hover { transform: translateY(-2px); }
.opt[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--blue), 0 8px 22px -12px rgba(27,168,255,.8); }
.modal { border-radius: 28px; background: linear-gradient(180deg, #0e1118, #0a0c11); }
.scrim { backdrop-filter: blur(8px); }
.m-b > * { flex-shrink: 0; }
.toast[hidden], .drawer[hidden], [hidden] { display: none !important; }
.stat.kpi.link { cursor: pointer; }
.stat.kpi.link::after { content: "›"; position: absolute; right: 14px; bottom: 10px; font: 600 18px var(--display); color: var(--c); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s var(--ease); }
.stat.kpi.link:hover::after, .stat.kpi.link:focus-visible::after { opacity: .9; transform: none; }
.stat.kpi.link:active { transform: scale(.98); }
/* ---------- plano da revenda / PIX / aviso ---------- */
.plan-strip .pl-acts { flex-basis: 100%; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: var(--field); transition: transform .25s var(--spring), border-color .2s; }
.pcard:hover { transform: translateY(-2px); }
.pcard.pop { border-color: rgba(27,168,255,.45); box-shadow: 0 14px 34px -20px rgba(27,168,255,.7); }
.pcard.atual { border-color: rgba(34,197,94,.5); }
.pcard.off { opacity: .6; }
.pc-top { display: flex; gap: 6px; flex-wrap: wrap; min-height: 24px; }
.pc-q { font: 600 26px var(--display); letter-spacing: -.02em; }
.pc-q span { font-size: 14px; font-weight: 500; color: var(--text-2); }
.pc-p { color: var(--blue-2); font: 600 16px var(--display); }
.pc-p small { color: var(--text-3); font: 400 12px var(--body); }
.pcard .btn { margin-top: auto; }
.m-b { overflow-x: hidden; }
.pix { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: center; }
.pix > svg { width: 170px; height: 170px; border-radius: 14px; }
.pix-dir { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.aviso-top { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; background: linear-gradient(135deg, rgba(245,158,11,.28), rgba(245,158,11,.08)); border-bottom: 1px solid rgba(245,158,11,.35); }
.aviso-top.bad { background: linear-gradient(135deg, rgba(240,82,82,.3), rgba(240,82,82,.08)); border-color: rgba(240,82,82,.4); }
.aviso-top > svg { width: 28px; height: 28px; color: var(--amber); flex: none; margin-top: 2px; }
.aviso-top.bad > svg { color: var(--red); }
.aviso-top h3 { font-size: 19px; }
.aviso-top p { color: var(--text-2); margin-top: 2px; }
.aviso-top .x { margin-left: auto; }
.btn.ghost-l { border-color: transparent; background: none; color: var(--text-3); margin-right: auto; }
.btn.ghost-l:hover { color: var(--text); background: rgba(255,255,255,.04); }
@media (max-width: 680px) { .pix { grid-template-columns: 1fr; justify-items: center; } .m-f .btn.ghost-l { flex-basis: 100%; order: 3; } }
/* ---------- seleção em massa, financeiro, avisos, checkuser ---------- */
.sel-td { width: 40px; padding-right: 0 !important; }
.sel-td input, .sel-m { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; flex: none; }
.tbl tbody tr.marcado, .citem.marcado { background: rgba(27,168,255,.08); }
.massa { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 35; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 18px; background: rgba(12,15,22,.96); border: 1px solid rgba(27,168,255,.4); box-shadow: 0 18px 50px -12px rgba(0,0,0,.9); backdrop-filter: blur(12px); max-width: calc(100vw - 24px); }
.massa > b { padding: 0 6px; }
.fin-graf { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; height: 200px; align-items: end; }
.fin-col { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.fin-pilha { width: 100%; max-width: 26px; flex: 1; display: flex; flex-direction: column-reverse; justify-content: flex-start; }
.fin-pilha i { display: block; width: 100%; border-radius: 4px; margin-top: 2px; min-height: 0; }
.fin-v { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.fin-d { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.leg { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; }
.aviso-rev { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-color: var(--c) !important; background: radial-gradient(400px 100px at 0% 0%, var(--cs), transparent 70%), var(--card) !important; }
.aviso-rev .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.aviso-rev p { color: var(--text-2); font-size: 13.5px; }
.check-res { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.app-prev { border-radius: 16px; padding: 14px; background: linear-gradient(160deg, #13243f, #0b111c); border: 1px solid rgba(27,168,255,.3); display: flex; flex-direction: column; gap: 4px; }
pre.json { margin: 0; border-radius: 16px; padding: 14px; background: #07090d; border: 1px solid rgba(255,255,255,.08); font: 12.5px/1.6 var(--mono); color: #8cc8ff; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 680px) {
  .massa { left: 8px; right: 8px; transform: none; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); justify-content: center; }
  .fin-graf { gap: 3px; height: 170px; }
  .fin-v { display: none; }
  .fin-d { font-size: 9px; writing-mode: vertical-rl; transform: rotate(180deg); }
  .check-res { grid-template-columns: 1fr; }
  .aviso-rev { flex-wrap: wrap; }
}
/* ---------- meus planos ---------- */
.planos-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.plano-it { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: var(--field); }
.plano-it .grow { flex: 1; min-width: 0; }
.plano-it b { display: block; font-weight: 600; }
.estrela { border: 0; background: none; font-size: 18px; width: 30px; height: 30px; border-radius: 9px; color: var(--amber); }
.estrela:hover { background: rgba(255,255,255,.05); }
/* ---------- de quem são os clientes ---------- */
.escopo { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.escopo .swipe { flex: 1 1 420px; max-width: 560px; }
.escopo .swipe button { font-size: 13.5px; }
.escopo .escolhe { flex: 1 1 220px; max-width: 320px; height: 52px; }
.escopo select, .inp select { flex: 1; min-width: 0; border: 0; outline: 0; background: none; height: 100%; color: var(--text); cursor: pointer; }
.escopo select option, .inp select option { background: #11141b; }
@media (max-width: 680px) { .escopo .swipe button { font-size: 12px; gap: 5px; } .escopo .swipe button svg { display: none; } .escopo .escolhe { max-width: none; } }
/* ---------- avatares e perfil ---------- */
.me .av.av-pic { position: relative; background: none; overflow: visible; padding: 0; }
.av-pic svg, .av-pic img, .ava.pic svg, .ava.pic img, .perfil-av svg, .perfil-av img, .av-op svg { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.on-dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid #0b0d12; box-shadow: 0 0 8px rgba(34,197,94,.7); }
.ava.pic { padding: 0; overflow: hidden; background: none; }
.ava.rv.pic svg, .ava.rv.pic img { border-radius: inherit; }
.perfil-top { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.perfil-av { position: relative; width: 96px; height: 96px; flex: none; border-radius: 50%; box-shadow: 0 0 0 3px rgba(27,168,255,.25), 0 14px 30px -12px rgba(11,140,233,.6); }
.perfil-av .on-dot { width: 18px; height: 18px; right: 2px; bottom: 2px; border-width: 3px; }
.perfil-acts { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.perfil-acts > b { font: 600 18px var(--display); }
.av-grade { display: flex; flex-wrap: wrap; gap: 10px; }
.av-op { width: 54px; height: 54px; border-radius: 50%; border: 0; padding: 0; background: none; transition: transform .25s var(--spring), box-shadow .2s; }
.av-op:hover { transform: translateY(-2px) scale(1.04); }
.av-op[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--blue-2), 0 0 18px rgba(27,168,255,.6); }

/* ---------- cards de número (identidade: sinal + globo) ---------- */
.stat.kpi { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 14px; justify-content: flex-start;
  background: radial-gradient(260px 120px at 100% 0%, var(--cs), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008)), #0b0d12; }
.stat.kpi::before { top: 0; bottom: auto; left: 18px; right: 18px; width: auto; height: 1px; border-radius: 0; background: linear-gradient(90deg, transparent, var(--c), transparent); box-shadow: 0 0 14px var(--c); opacity: .9; }
.stat.kpi .kpi-globo { position: absolute; right: -30px; top: -30px; width: 128px; height: 128px; color: var(--c); opacity: .09; pointer-events: none; }
.stat.kpi .kpi-top { display: flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); font-weight: 600; position: relative; }
.stat.kpi .kpi-top svg { width: 16px; height: 16px; color: var(--c); flex: none; }
.stat.kpi .kpi-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; position: relative; }
.stat.kpi .kpi-num { font: 600 32px/1.05 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat.kpi .kpi-bars { display: flex !important; align-items: flex-end; gap: 3px; height: 30px; flex: none; }
.stat.kpi .kpi-bars i { width: 5px; border-radius: 2px; background: var(--c); opacity: .26; transform-origin: bottom; }
.stat.kpi .kpi-bars i:last-child { opacity: 1; box-shadow: 0 0 10px var(--c); }
.stat.kpi .kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; position: relative; }
.stat.kpi .kpi-sub { font-size: 12.5px; color: var(--text-3); }
.stat.kpi .kpi-sub.good { color: var(--green); }
.stat.kpi .kpi-delta { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.05); color: var(--text-3); white-space: nowrap; }
.stat.kpi .kpi-delta.up { color: var(--green); background: var(--green-soft); }
.stat.kpi .kpi-delta.down { color: var(--red); background: var(--red-soft); }
.stat.kpi .kpi-delta { text-transform: none; letter-spacing: 0; display: inline-block; }
.stat.kpi .kpi-num { margin-top: 0; display: block; }
.stat.kpi .kpi-top span { font-size: inherit; letter-spacing: inherit; color: inherit; display: inline; }
.stat.kpi .kpi-globo { opacity: .06; }
@media (prefers-reduced-motion: no-preference) {
  .entrar .stat.kpi .kpi-bars i { animation: sinal .6s var(--spring) both; animation-delay: calc(var(--k) * 45ms + .15s); }
  @keyframes sinal { from { transform: scaleY(.05); } to { transform: none; } }
}
@media (max-width: 680px) {
  .stat.kpi { padding: 14px 14px 12px; gap: 6px; }
  .stat.kpi .kpi-num { font-size: 24px; }
  .stat.kpi .kpi-bars { height: 22px; gap: 2px; }
  .stat.kpi .kpi-bars i { width: 4px; }
  .stat.kpi .kpi-globo { width: 96px; height: 96px; right: -26px; top: -26px; }
  .stat.kpi .kpi-delta { display: none; }
}

.alerta-acts { margin-left: auto; }
@media (max-width: 680px) { .alerta-acts { margin-left: 48px; flex-basis: 100%; } }
/* ---------- tutorial: central de ajuda (cards) + guia um passo por vez ---------- */
.tut-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.tut-top .search { flex: 1 1 300px; max-width: 440px; }
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tcard { text-align: left; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.07); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--card); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.tcard:hover { transform: translateY(-3px); border-color: rgba(27,168,255,.3); box-shadow: 0 18px 40px -20px rgba(27,168,255,.35); }
.tcard .badge-ic { width: 44px; height: 44px; }
.tcard > div > b { display: block; font: 600 15.5px var(--display); }
.tcard > div > span { display: block; color: var(--text-2); font-size: 13px; margin-top: 2px; line-height: 1.45; }
.tcard small { display: inline-flex; align-items: center; gap: 4px; color: var(--blue-2); font-size: 12.5px; margin-top: 8px; font-weight: 600; }
.tcard small svg { width: 14px; height: 14px; }
.tut-sec { margin-top: 28px; }
.tut-sec > h2 { font-size: 17px; margin-bottom: 12px; display: flex; gap: 9px; align-items: center; }
.tut-sec > h2 svg { width: 19px; height: 19px; color: var(--amber); }
.guia { max-width: 720px; margin: 0 auto; }
.voltar { border: 0; background: none; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; padding: 6px 0; font-weight: 500; }
.voltar svg { width: 17px; height: 17px; transform: rotate(180deg); }
.voltar:hover { color: #fff; }
.guia-h { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.guia-h .badge-ic { width: 48px; height: 48px; }
.guia-h h1 { font-size: 22px; }
.guia-h p { color: var(--text-2); font-size: 13.5px; margin-top: 2px; line-height: 1.5; }
.prog { display: flex; gap: 6px; align-items: center; margin-top: 16px; }
.prog i { width: 8px; height: 8px; border-radius: 99px; background: #232a36; transition: width .35s var(--ease), background .35s; }
.prog i.feito { background: rgba(27,168,255,.45); }
.prog i.on { width: 24px; background: var(--blue-2); }
.prog span { margin-left: 8px; font-size: 12.5px; color: var(--text-3); }
.etapa { margin-top: 12px; overflow: hidden; }
.etapa .tela { padding: 26px 22px; background: radial-gradient(520px 220px at 50% 0%, rgba(27,168,255,.12), transparent 70%), #080a0e; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; justify-content: center; pointer-events: none; user-select: none; position: relative; }
.etapa .tela .vis { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 10px; }
.etapa .tela::after { content: "exemplo da tela"; position: absolute; top: 9px; right: 14px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.etapa .txt { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.etapa .txt .n { font: 600 12px var(--body); color: var(--blue-2); letter-spacing: .07em; text-transform: uppercase; }
.etapa .txt h2 { font-size: 20px; }
.etapa .txt p { color: var(--text-2); line-height: 1.7; font-size: 15px; }
.etapa .txt p b { color: var(--text); font-weight: 600; }
.guia-nav { display: flex; gap: 10px; margin-top: 14px; }
.guia-nav .btn { height: 50px; flex: 1; font-size: 15px; border-radius: 16px; font-family: var(--display); font-weight: 600; }
.guia-nav .btn svg { width: 18px; height: 18px; }
.guia-nav .btn.volta svg { transform: rotate(180deg); }
.guia-mais { display: flex; justify-content: center; margin-top: 10px; }
.hl { box-shadow: 0 0 0 3px rgba(27,168,255,.7), 0 0 22px rgba(27,168,255,.45) !important; border-radius: 14px; }
.dica { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.55; }
.dica svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.dica.boa { background: var(--green-soft); color: #bff3d2; } .dica.boa svg { color: var(--green); }
.dica.olho { background: var(--amber-soft); color: #fde3b5; } .dica.olho svg { color: var(--amber); }
.dica b { color: #fff; }
.faq details { border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: #0d1016; }
.faq details + details { margin-top: 8px; }
.faq summary { cursor: pointer; padding: 15px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue-2); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 16px 15px; color: var(--text-2); line-height: 1.65; }
.faq details > div b { color: var(--text); }
.ajuda { border: 0; background: none; color: var(--blue-2); font-size: 13px; padding: 0; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .hl { animation: realce 1.8s ease-in-out infinite; }
  @keyframes realce { 50% { box-shadow: 0 0 0 5px rgba(27,168,255,.35), 0 0 30px rgba(27,168,255,.55); } }
  .etapa { animation: entraPasso .38s var(--ease) both; }
  @keyframes entraPasso { from { opacity: .01; transform: translateX(var(--dx, 18px)); } to { opacity: 1; transform: none; } }
}
@media (max-width: 680px) {
  .tcards { grid-template-columns: 1fr; gap: 10px; }
  .tcard { padding: 14px; }
  .etapa .tela { padding: 22px 14px; }
  .etapa .txt { padding: 16px; }
  .etapa .txt h2 { font-size: 18px; }
  .guia-h h1 { font-size: 19px; }
  .guia-nav .btn { height: 52px; }
}

.btn.confirmar { height: 46px; padding: 0 22px; font-size: 15px; font-family: var(--display); font-weight: 600; }
@media (max-width: 680px) { .m-f .btn.confirmar { flex: 2; } }   /* nada é espremido dentro da janela: o que não couber rola */
.dock { border-radius: 24px; }
.dock button { border-radius: 16px; transition: color .2s, background .25s var(--ease); }
.seg { border-radius: 16px; } .seg button { border-radius: 12px; transition: background .25s var(--ease), color .2s; }
.ava { box-shadow: 0 0 0 2px rgba(27,168,255,.16); }
.sw::after { transition: transform .35s var(--spring); }
/* interruptor deslizante (Cliente/Teste, Android/iPhone) */
.swipe { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 5px; border-radius: 18px; background: #0f121a; border: 1px solid rgba(255,255,255,.07); isolation: isolate; }
.swipe .thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / var(--n)); border-radius: 14px; background: linear-gradient(135deg, #22a8ff, #0a78d8); box-shadow: 0 8px 20px -8px rgba(11,140,233,.9), inset 0 1px 0 rgba(255,255,255,.3); transform: translateX(calc(var(--i) * 100%)); transition: transform .5s var(--spring); z-index: -1; }
.swipe button { border: 0; background: none; height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-2); font: 600 14px var(--display); transition: color .3s; }
.swipe button svg { width: 17px; height: 17px; }
.swipe button[aria-pressed="true"] { color: #fff; }
.swipe.plat .thumb { background: linear-gradient(135deg, #2b3140, #1b1f29); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 18px -8px rgba(0,0,0,.9); }
.swipe.plat button[aria-pressed="true"] svg { color: var(--blue-2); }
/* deslize para confirmar */
.slide { position: relative; height: 56px; border-radius: 999px; background: #0f121a; border: 1px solid rgba(255,255,255,.08); overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; flex: 1 1 240px; min-width: 220px; }
.slide .fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * (100% - 56px) + 56px); background: linear-gradient(90deg, rgba(27,168,255,.18), rgba(27,168,255,.5)); border-radius: 999px; }
.slide .txt { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 44px; font: 600 14px var(--display); color: var(--text-2); }
.slide .knob { position: absolute; top: 3px; left: 3px; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #22a8ff, #0a78d8); box-shadow: 0 6px 16px -4px rgba(11,140,233,.9), inset 0 1px 0 rgba(255,255,255,.3); transform: translateX(var(--x, 0px)); cursor: grab; touch-action: none; }
.slide .knob:active { cursor: grabbing; }
.slide .knob svg { width: 22px; height: 22px; }
.slide.solto .knob { transition: transform .5s var(--spring); }
.slide.solto .fill { transition: width .5s var(--spring); }
.slide.amber .knob { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 6px 16px -4px rgba(217,119,6,.9); }
.slide.amber .fill { background: linear-gradient(90deg, rgba(245,158,11,.15), rgba(245,158,11,.45)); }
.slide.ok .knob { background: linear-gradient(135deg, #34d399, #16a34a); }
.slide[aria-disabled="true"] { opacity: .45; }
.slide[aria-disabled="true"] .knob { cursor: not-allowed; box-shadow: none; }
.plat-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--text-3); vertical-align: -3px; margin-left: 5px; }
.plat-ic svg { width: 14px; height: 14px; }
.links-npv { display: grid; gap: 8px; }
.links-npv button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: #11141b; text-align: left; transition: transform .2s var(--spring), border-color .2s; }
.links-npv button:hover { transform: translateY(-2px); border-color: rgba(27,168,255,.35); }
.links-npv button b { font-weight: 600; display: block; }
.links-npv button span { font-size: 12.5px; color: var(--text-3); display: block; }
.links-npv button svg { width: 18px; height: 18px; color: var(--blue-2); flex: none; }
.links-npv button .go { margin-left: auto; color: var(--text-3); }
@keyframes tin { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: no-preference) {
  .aurora i:nth-child(1) { animation: drift1 22s ease-in-out infinite alternate; }
  .aurora i:nth-child(2) { animation: drift2 26s ease-in-out infinite alternate; }
  @keyframes drift1 { to { transform: translate(-140px, 100px) scale(1.12); } }
  @keyframes drift2 { to { transform: translate(160px, -90px) scale(1.15); } }
  .entrar > *, .entrar > .grid > * { animation: subir .55s var(--ease) both; }
  .entrar > *:nth-child(2), .entrar > .grid > *:nth-child(2) { animation-delay: .06s; }
  .entrar > *:nth-child(3), .entrar > .grid > *:nth-child(3) { animation-delay: .12s; }
  .entrar > *:nth-child(4), .entrar > .grid > *:nth-child(4) { animation-delay: .18s; }
  @keyframes subir { from { opacity: .01; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .modal { animation: abrir .45s var(--spring) both; }
  @keyframes abrir { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
  .done .ok-ic { animation: estoura .6s var(--spring) both; }
  @keyframes estoura { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
  .done .ok-ic svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: risco .5s .25s ease-out forwards; }
  @keyframes risco { to { stroke-dashoffset: 0; } }
  .pill .ok { animation: pulso 2s ease-in-out infinite; }
  @keyframes pulso { 50% { box-shadow: 0 0 0 5px rgba(34,197,94,.14), 0 0 8px var(--green); } }
  .toast { animation: tin .4s var(--spring) both; }
  .slide .txt { background: linear-gradient(90deg, var(--text-3) 20%, #fff 50%, var(--text-3) 80%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: brilho 2.6s linear infinite; }
  @keyframes brilho { from { background-position: 120% 0; } to { background-position: -120% 0; } }
}

/* ---------- painel real ---------- */
[hidden] { display: none !important; }
.erro-login { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--red-soft); color: #ffb4b4; font-size: 13.5px; text-align: center; }
.lcard form, form.lcard { margin: 0; }
.toast.erro { background: #1f0f12; border-color: rgba(240,82,82,.5); color: #ffd0d0; }
.toast.erro svg { color: var(--red); }
.btn.carregando { position: relative; color: transparent !important; pointer-events: none; }
.btn.carregando::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
/* caixinhas do código: cabem sempre dentro do cartão (o input tinha largura mínima própria e estourava) */
.code6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.code6 input { width: 100%; min-width: 0; padding: 0; box-sizing: border-box; color: var(--text); }
.lbox { margin-inline: auto; }

/* rodapé */
.rodape { text-align: center; color: var(--text-3); font-size: 12.5px; padding-top: 28px; }
.rodape b { color: var(--blue-2); font-weight: 600; }

/* carregar mais ao descer */
.carrega-mais { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 18px; color: var(--text-3); font-size: 13px; }
.carrega-mais .roda { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--blue-2); animation: girar .7s linear infinite; }

/* avisos (sino) */
.sino { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--text-2); display: grid; place-items: center; cursor: pointer; flex: none; }
.sino:hover { color: var(--text); border-color: var(--blue); }
.sino svg { width: 18px; height: 18px; }
.sino-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg, #07090d); }
.aviso { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; display: grid; gap: 6px; background: var(--card); }
.aviso.novo { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue-soft) inset; }
.aviso-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aviso-txt { white-space: pre-line; word-break: break-word; color: var(--text); line-height: 1.55; }
.aviso .s { font-size: 12px; color: var(--text-3); }
.aviso .btn { justify-self: start; }
.av-area { width: 100%; resize: vertical; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); color: var(--text); padding: 12px; font: inherit; }
.av-area:focus { outline: none; border-color: var(--blue); }
.m-h h3 svg { width: 20px; height: 20px; vertical-align: -3px; color: var(--blue-2); margin-right: 2px; }
.aviso-btn { justify-self: start; text-decoration: none; }
.m-f a.btn { text-decoration: none; }

/* entrega do iPhone em etapas (1/3 mensagem, 2/3 link…) */
.etapa-env { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 10px; display: grid; gap: 8px; }
.etapa-env .etq { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--blue-2); }

/* filtro por revenda (Clientes) */
.dono-btn { cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.dono-btn .dono-nome { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.dono-btn .dono-nome b { color: var(--text-3); font-weight: 500; margin-left: 4px; }
.dono-btn > svg:last-child { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.dono-lista { display: grid; gap: 4px; }
.dono-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.dono-item:hover { background: var(--card); border-color: var(--line); }
.dono-item.on { background: var(--blue-soft); border-color: var(--blue); }
.dono-item.sub { padding-left: 34px; }
.dono-item .ava { width: 32px; height: 32px; flex: none; }
.dono-item .ava svg { width: 16px; height: 16px; }
.dono-item .grow { min-width: 0; display: grid; }
.dono-item .grow b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dono-item .grow span { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dono-item .tag { flex: none; }
.dono-busca { flex: none; height: 46px; margin-bottom: 10px; }
.dono-item .grow { flex: 1; }

/* PIX real (QR do Mercado Pago) + resumo */
.cap { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.pix img { width: 190px; height: 190px; border-radius: 14px; background: #fff; padding: 6px; }
.pix-dir .tag { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; }
.pix-dir .tag svg { width: 14px; height: 14px; }
.pix-cod { font-size: 11.5px; color: var(--text-3); word-break: break-all; }
.pix-resumo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.pix-resumo span { color: var(--text-3); flex: 1; }
.pix-resumo .num { font-size: 18px; color: var(--green); }
.pc-top { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-top:empty { display: none; }
@media (max-width: 680px) { .pix-dir { width: 100%; } .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* catálogo de planos de revenda (admin) */
.cat-lista { display: grid; gap: 8px; }
.cat-it { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; align-items: end; }
.cat-it .field label { font-size: 11.5px; }
.cat-it .mini { margin-bottom: 6px; }
