/* M-Cash · identidade: AZUL ESCURO + VERMELHO + BRANCO */
:root {
  --azul: #17233b;
  --azul-2: #22314f;
  --azul-3: #0f1a2e;
  --azul-medio: #3f6db3;
  --azul-claro: #e9eef6;
  --marca: #e0252a;
  --marca-esc: #b81b20;
  --marca-clara: #fdecec;
  --bg: #eef2f7;
  --card: #ffffff;
  --texto: #1b2536;
  --suave: #6b7688;
  --borda: #e3e8f0;
  --ok: #16875d;
  --alerta: #c77700;
  --erro: #c23a3a;
  --sombra: 0 1px 2px rgba(23, 35, 59, .05), 0 6px 18px rgba(23, 35, 59, .07);
  --raio: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; background: var(--bg); color: var(--texto); font-size: 15px; line-height: 1.45; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 24px; }
h2 { font-size: 17px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--marca-esc); }
.ico { width: 19px; height: 19px; flex: none; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--azul); color: #c6d1e4; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; min-width: 0; }
.brand { padding: 24px 24px 16px; }
.brand img { display: block; width: 100%; max-width: 190px; height: auto; }
.side-user { display: flex; gap: 12px; align-items: center; padding: 14px 24px 18px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.side-user .nome { color: #fff; font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.side-user .sub { font-size: 12.5px; color: #8fa0bd; margin-top: 2px; }
.nav { display: flex; flex-direction: column; gap: 3px; padding: 14px 12px; }
.nav-link, .grp-h { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 10px; color: #c6d1e4; text-decoration: none; font-size: 14.5px; background: none; border: 0; cursor: pointer; text-align: left; }
.nav-link:hover, .grp-h:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-link.ativo, .nav-sub.ativo { background: var(--marca); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(224, 37, 42, .35); }
.grp-h .chev { margin-left: auto; width: 16px; height: 16px; transition: transform .15s; opacity: .7; }
.grp.aberto > .grp-h { color: #fff; }
.grp.aberto .chev { transform: rotate(90deg); }
.grp-b { display: none; flex-direction: column; gap: 2px; padding: 3px 0 7px 22px; }
.grp.aberto .grp-b { display: flex; }
.nav-sub { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #aebbd2; text-decoration: none; font-size: 14px; }
.nav-sub .ico { width: 17px; height: 17px; }
.nav-sub:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-foot { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255, 255, 255, .09); display: flex; flex-direction: column; gap: 2px; }
.side-foot .nav-link { font-size: 14px; padding: 9px 12px; }
main { padding: 26px 32px 60px; min-width: 0; max-width: 1400px; width: 100%; }
main > * + *, #lista-rot > * + * { margin-top: 18px; }
.topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.topo .sub { color: var(--suave); margin-top: 4px; }

/* ---------- avatar ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: var(--marca); flex: none; letter-spacing: .02em; }
.avatar.p { width: 34px; height: 34px; font-size: 12px; }
.av-0 { background: var(--marca); }
.av-1 { background: var(--azul); }
.av-2 { background: var(--azul-medio); }
.av-3 { background: #6b7a99; }
.av-4 { background: var(--marca-esc); }

/* ---------- componentes ---------- */
.card { background: var(--card); border-radius: var(--raio); box-shadow: var(--sombra); padding: 20px; min-width: 0; }
.card h2 { margin-bottom: 14px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-h h2 { margin: 0; }
.grade { display: grid; gap: 18px; }
.grade > * { min-width: 0; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.btn { background: var(--marca); color: #fff; border: 0; border-radius: 10px; padding: 9px 16px; cursor: pointer; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.btn:hover { background: var(--marca-esc); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.sec { background: var(--azul-claro); color: var(--azul); }
.btn.sec:hover { background: #d8e1ef; color: var(--azul); }
.btn.perigo { background: #fff; color: var(--erro); border: 1px solid #efc4c4; }
.btn.perigo:hover { background: #fdeaea; color: var(--erro); }
.btn.peq { padding: 5px 10px; font-size: 13px; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- indicadores (tiles) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tile { background: #fff; border: 1px solid var(--borda); border-radius: 14px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; box-shadow: var(--sombra); text-decoration: none; color: inherit; min-width: 0; }
a.tile:hover { border-color: #f1b5b7; }
button.tile { font: inherit; text-align: left; cursor: pointer; width: 100%; }
button.tile:hover { border-color: #f1b5b7; }
.tile-serv.on { border: 2px solid var(--marca); }
.tile-serv .val { font-size: 16px; }
.tile .circ { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.tile .circ .ico { width: 21px; height: 21px; }
.circ.azul { background: var(--azul); }
.circ.verm { background: var(--marca); }
.circ.medio { background: var(--azul-medio); }
.circ.ok { background: var(--ok); }
.circ.alerta { background: var(--alerta); }
.tile .txt { min-width: 0; }
.tile .rot { font-size: 12.5px; color: var(--suave); }
.tile .val { font-size: 18px; font-weight: 800; line-height: 1.25; white-space: nowrap; }
.tile .det { font-size: 12px; color: var(--suave); }

/* ---------- formulários ---------- */
label { display: block; font-size: 13px; font-weight: 600; color: var(--suave); margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--borda); border-radius: 9px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid #9db2d3; border-color: #9db2d3; }
input[type="file"] { padding: 7px; }
input[type="radio"], input[type="checkbox"] { width: auto; }
textarea { resize: vertical; min-height: 70px; }
.campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.campos .largo { grid-column: 1 / -1; }
.filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; align-items: end; }
.erro-msg { color: var(--erro); background: #fdeaea; border-radius: 9px; padding: 9px 12px; margin-top: 12px; font-size: 14px; }
.ajuda { color: var(--suave); font-size: 12.5px; margin-top: 3px; }
.opcoes { display: flex; gap: 18px; flex-wrap: wrap; }
.opcoes label { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--texto); font-weight: 500; margin: 0; cursor: pointer; }
.pesquisa { position: relative; width: 250px; max-width: 100%; }
.pesquisa input { padding-right: 38px; border-radius: 10px; }
.pesquisa .ico { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--suave); width: 17px; height: 17px; pointer-events: none; }

/* ---------- tabelas ---------- */
.tabela-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--suave); padding: 9px 10px; border-bottom: 1px solid var(--borda); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
tr.clicavel { cursor: pointer; }
tr.clicavel:hover td { background: #f6f8fc; }
td.num, th.num { text-align: right; white-space: nowrap; }
.vazio { text-align: center; color: var(--suave); padding: 30px 10px; }
.celula-nome { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.celula-nome .n { font-weight: 600; }
.celula-nome .s { font-size: 12.5px; color: var(--suave); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--azul-claro); color: var(--azul); white-space: nowrap; }
.pill.verm { background: var(--marca-clara); color: var(--marca-esc); }
.paginacao { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 13px; color: var(--suave); flex-wrap: wrap; gap: 10px; }
.pag-btns { display: flex; gap: 6px; align-items: center; }
.pag-btns button { border: 1px solid var(--borda); background: #fff; border-radius: 8px; padding: 5px 12px; cursor: pointer; color: var(--texto); min-width: 34px; }
.pag-btns button:hover:not(:disabled) { border-color: #f1b5b7; }
.pag-btns button.on { background: var(--marca); border-color: var(--marca); color: #fff; }
.pag-btns button:disabled { opacity: .45; cursor: default; }

/* ---------- status ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.s-digitada { background: #e6ebf3; color: #3a4a66; }
.s-analise { background: #dfeafb; color: #1d5fb0; }
.s-pendente { background: #fff1d6; color: #9a5b00; }
.s-aprovada { background: #e0f5ee; color: #0f7a55; }
.s-paga { background: #c9f0dc; color: #0b6a44; }
.s-recusada { background: #fbe0e0; color: #a12c2c; }
.s-cancelada { background: #ececec; color: #666; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.card-h .chips { margin: 0; }
.chip { border: 1px solid var(--borda); background: #fff; border-radius: 99px; padding: 5px 13px; cursor: pointer; font-size: 13.5px; }
.chip:hover { border-color: #f1b5b7; }
.chip.on { background: var(--azul); color: #fff; border-color: var(--azul); }
.chip small { opacity: .75; margin-left: 4px; }

/* ---------- barras e gráficos ---------- */
.barra { height: 9px; background: #e9edf4; border-radius: 99px; overflow: hidden; }
.barra > i { display: block; height: 100%; background: var(--marca); border-radius: 99px; transition: width .2s; }
.barra.verde > i { background: var(--azul); }
.grafico { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut-svg { width: 132px; height: 132px; flex: none; }
.donut-svg .num { font-size: 21px; font-weight: 800; fill: var(--texto); }
.donut-svg .leg { font-size: 7.5px; letter-spacing: .08em; fill: var(--suave); }
.legenda { flex: 1; min-width: 120px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; margin: 0; padding: 0; list-style: none; }
.legenda li { display: flex; align-items: center; gap: 9px; }
.leg-cor { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.legenda .v { margin-left: auto; color: var(--suave); white-space: nowrap; }
.lista-top .item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef1f6; }
.lista-top .item:last-child { border-bottom: 0; }
.lista-top .nome { font-weight: 600; }
.lista-top .sub { font-size: 12.5px; color: var(--suave); }
.lista-top .val { margin-left: auto; font-weight: 700; color: var(--azul); white-space: nowrap; }
.linha-barra { display: grid; grid-template-columns: 110px 1fr 90px; gap: 10px; align-items: center; margin: 9px 0; font-size: 14px; }
.linha-barra .n { text-align: right; color: var(--suave); }

/* ---------- ranking ---------- */
.campeao { background: linear-gradient(135deg, var(--azul-3), var(--azul-2)); color: #fff; border-radius: var(--raio); padding: 22px 26px; display: flex; gap: 20px; align-items: center; box-shadow: var(--sombra); flex-wrap: wrap; border-left: 6px solid var(--marca); }
.campeao .trofeu { font-size: 54px; line-height: 1; }
.campeao .tit { opacity: .8; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.campeao .nome { font-size: 28px; font-weight: 800; }
.campeao .num { opacity: .95; }
.podio { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; }
.pod { background: var(--card); border-radius: var(--raio); box-shadow: var(--sombra); padding: 18px 12px; text-align: center; }
.pod.p1 { padding-top: 26px; padding-bottom: 26px; border-top: 4px solid #e0a800; }
.pod.p2 { border-top: 4px solid #9aa7b5; }
.pod.p3 { border-top: 4px solid #b8783f; }
.pod .medalha { font-size: 34px; }
.pod .avatar { width: 54px; height: 54px; font-size: 18px; margin: 6px auto; background: var(--azul-claro); color: var(--azul); }
.pod .nome { font-weight: 700; }
.pod .valor { font-size: 18px; font-weight: 700; color: var(--marca-esc); margin-top: 4px; }
.pod .det { color: var(--suave); font-size: 13px; }
tr.eu td { background: #fff6dc; }
.pos { font-weight: 700; width: 46px; }

/* ---------- modal / toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 26, 46, .6); display: flex; justify-content: center; align-items: flex-start; padding: 40px 16px; overflow-y: auto; z-index: 50; }
.modal { background: #fff; border-radius: 16px; padding: 26px; width: 100%; max-width: 560px; position: relative; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal.larga { max-width: 860px; }
.modal .x { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--suave); line-height: 1; }
.modal h2 { margin-bottom: 16px; padding-right: 30px; font-size: 20px; }
#toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 99; }
.toast { background: var(--azul); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--sombra); animation: sobe .2s ease-out; border-left: 4px solid var(--marca); }
.toast.erro { background: var(--erro); border-left-color: #fff; }
.toast.ok { background: var(--ok); border-left-color: #fff; }
@keyframes sobe { from { transform: translateY(8px); opacity: 0; } }

/* ---------- detalhe da proposta ---------- */
.info { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 20px; margin-bottom: 16px; }
.info .k { font-size: 12px; text-transform: uppercase; color: var(--suave); letter-spacing: .04em; }
.info .v { font-weight: 600; word-break: break-word; }
.linha-tempo { border-left: 2px solid var(--borda); margin-left: 6px; padding-left: 16px; }
.evento { position: relative; padding-bottom: 14px; font-size: 14px; }
.evento::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--marca); }
.evento .quando { color: var(--suave); font-size: 12.5px; }
.caixa-status { background: #f6f8fc; border: 1px solid var(--borda); border-radius: 10px; padding: 14px; margin: 16px 0; }

/* ---------- academia ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.video-card { background: #fff; border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; cursor: pointer; border: 1px solid transparent; transition: transform .12s, border-color .12s; }
.video-card:hover { transform: translateY(-2px); border-color: #f1b5b7; }
.thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--azul-3), var(--azul-2)) center / cover; display: grid; place-items: center; position: relative; }
.thumb .play { width: 52px; height: 52px; border-radius: 50%; background: var(--marca); color: #fff; display: grid; place-items: center; font-size: 20px; padding-left: 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.thumb .visto-badge { position: absolute; top: 8px; right: 8px; background: var(--ok); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.video-card .corpo-card { padding: 12px 14px 14px; }
.video-card .titulo { font-weight: 700; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag { font-size: 12px; background: #eef1f6; color: #4b566b; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.tag.banco { background: var(--marca-clara); color: var(--marca-esc); font-weight: 600; }
.player { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #000; margin-bottom: 14px; }
.sem-video { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; background: #f2f5fa; border-radius: 10px; color: var(--suave); margin-bottom: 14px; padding: 16px; }
.upload-prog { margin-top: 12px; }
.upload-prog small { color: var(--suave); }

/* ---------- roteiros ---------- */
.roteiro-item { display: flex; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid #eef1f6; cursor: pointer; border-radius: 8px; }
.roteiro-item:last-child { border-bottom: 0; }
.roteiro-item:hover { background: #f6f8fc; }
.roteiro-item .prod { min-width: 190px; }
.roteiro-item .tit { flex: 1; font-weight: 600; }
.roteiro-item .meta { color: var(--suave); font-size: 13px; white-space: nowrap; }
.texto-rico h3 { margin: 20px 0 6px; font-size: 16px; color: var(--azul); }
.texto-rico h3:first-child { margin-top: 0; }
.texto-rico p { margin: 6px 0; }
.texto-rico ul, .texto-rico ol { margin: 6px 0; padding-left: 22px; }
.texto-rico li { margin: 3px 0; }
.anexo { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--azul-claro); border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.anexo .nome-arq { flex: 1; font-weight: 600; word-break: break-all; }
.editor { min-height: 300px; line-height: 1.5; }
.dica-roteiro a { font-weight: 600; }

/* ---------- artes ---------- */
.artes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.arte-card { background: #fff; border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; cursor: pointer; border: 1px solid transparent; transition: transform .12s, border-color .12s; }
.arte-card:hover { transform: translateY(-2px); border-color: #f1b5b7; }
.arte-card .corpo-card { padding: 10px 12px 12px; }
.arte-card .titulo { font-weight: 700; font-size: 14px; }
.arte-thumb { aspect-ratio: 1 / 1; background: #f2f5fa; position: relative; overflow: hidden; }
.arte-thumb img, .arte-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.arte-video { position: absolute; top: 8px; left: 8px; background: rgba(15, 26, 46, .8); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.arte-vazia { height: 100%; display: grid; place-items: center; color: var(--suave); font-size: 13px; }
.arte-grande { display: block; max-width: 100%; max-height: 62vh; margin: 0 auto 14px; border-radius: 10px; background: #000; }

/* ---------- indicações ---------- */
.link-ind { border-left: 5px solid var(--marca); }
.link-caixa { display: flex; gap: 8px; }
.link-caixa .btn { white-space: nowrap; flex: none; justify-content: center; }
.link-caixa input { font-weight: 600; color: var(--azul); background: var(--azul-claro); border-color: var(--azul-claro); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ind-tipo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.login-form-side .ind-tipo input { height: auto; width: auto; margin: 0; }
.login-form-side .ind-tipo label { margin: 0; border: 2px solid #d9e0ec; border-radius: 12px; padding: 12px; cursor: pointer; color: var(--texto); font-weight: 600; display: flex; gap: 8px; align-items: center; font-size: 14px; }
.login-form-side .ind-tipo label:has(input:checked) { border-color: var(--marca); background: var(--marca-clara); }
.aceite { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; color: var(--suave) !important; font-size: 13px !important; margin-top: 18px !important; cursor: pointer; }
.aceite input { height: auto !important; margin-top: 3px; }
.ind-ok { text-align: center; }
.ind-ok .grande { font-size: 56px; }

/* ---------- recuperação de crédito ---------- */
.aviso-card { background: #fff8e6; border-left: 5px solid var(--alerta); font-size: 14px; }
.ok-txt { color: var(--ok); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.erro-txt { color: var(--erro); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.alerta-txt { color: var(--alerta); font-weight: 600; font-size: 13.5px; }
.suave { color: var(--suave); font-size: 13px; }
.k-mini { font-size: 12px; text-transform: uppercase; color: var(--suave); letter-spacing: .04em; margin-right: 6px; }
.sucesso { background: #e3f6ec; border: 1px solid #b9e6cd; color: #0b5a3a; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; line-height: 1.9; }
.check { display: flex !important; gap: 8px; align-items: center; color: var(--texto) !important; font-size: 14px !important; cursor: pointer; }
.sec-tit { font-size: 15px; color: var(--azul); border-bottom: 1px solid var(--borda); padding-bottom: 6px; margin-top: 6px; }
.lista-int { margin: 4px 0 6px; padding-left: 4px; list-style: none; line-height: 1.9; }
.etapas { display: flex; gap: 6px; flex-wrap: wrap; }
.etapa { flex: 1; min-width: 110px; display: flex; align-items: center; gap: 8px; background: #f2f5fa; border-radius: 10px; padding: 8px 10px; font-size: 13px; color: var(--suave); font-weight: 600; }
.etapa span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #dde3ee; color: var(--suave); flex: none; font-size: 12px; }
.etapa.feita { color: var(--ok); background: #e3f6ec; }
.etapa.feita span { background: var(--ok); color: #fff; }
.etapa.atual { color: #fff; background: var(--azul); }
.etapa.atual span { background: var(--marca); color: #fff; }
.contrato { font-size: 14.5px; line-height: 1.6; }
.contrato h3 { text-align: left; }
.contrato h3:first-child { text-align: center; font-size: 18px; }

/* ---------- página do cliente (contrato + boleto) ---------- */
.cliente-tela { min-height: 100vh; background: var(--bg); padding: 24px 16px 60px; }
.cliente-box { max-width: 820px; margin: 0 auto; }
.cliente-topo { background: var(--azul); border-radius: 18px 18px 0 0; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cliente-topo img { height: 46px; width: auto; }
.cliente-topo .tit { color: #fff; font-weight: 700; }
.cliente-corpo { background: #fff; border-radius: 0 0 18px 18px; padding: 26px 28px; box-shadow: var(--sombra); }
.cliente-corpo > * + * { margin-top: 18px; }
.resumo-serv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.resumo-serv div { background: #f2f5fa; border-radius: 12px; padding: 12px 14px; }
.resumo-serv .k { font-size: 12px; color: var(--suave); text-transform: uppercase; letter-spacing: .04em; }
.resumo-serv .v { font-weight: 800; font-size: 17px; color: var(--azul); }
.passo { border: 1px solid var(--borda); border-radius: 14px; padding: 18px 20px; }
.passo h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.passo h2 .n { width: 30px; height: 30px; border-radius: 50%; background: var(--marca); color: #fff; display: grid; place-items: center; font-size: 15px; flex: none; }
.passo.feito { border-color: #b9e6cd; background: #f3fbf7; }
.passo.feito h2 .n { background: var(--ok); }
.contrato-rolagem { max-height: 420px; overflow-y: auto; border: 1px solid var(--borda); border-radius: 10px; padding: 16px 18px; background: #fcfdff; }
.linha-dig { font-family: Consolas, monospace; font-size: 15px; background: #f2f5fa; border-radius: 8px; padding: 10px 12px; word-break: break-all; }
@media print {
  .nao-imprime { display: none !important; }
  .cliente-tela { padding: 0; background: #fff; }
  .cliente-corpo { box-shadow: none; }
  .contrato-rolagem { max-height: none; overflow: visible; border: 0; padding: 0; }
}

/* ---------- suporte (chat) ---------- */
.nav-badge { margin-left: auto; background: var(--marca); color: #fff; font-size: 11.5px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; padding: 0 6px; }
.nav-link.ativo .nav-badge { background: #fff; color: var(--marca); }
.nav-badge[hidden] { display: none; }
.sup-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }
.sup-lista { padding: 14px; max-height: calc(100vh - 170px); overflow-y: auto; position: sticky; top: 18px; }
.sup-lista .chips { margin-bottom: 10px; }
.sup-item { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--borda); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; cursor: pointer; font: inherit; color: inherit; }
.sup-item:hover { border-color: #f1b5b7; }
.sup-item.on { border-color: var(--azul); box-shadow: 0 0 0 2px rgba(23, 35, 59, .12); }
.sup-item.nova { background: #fff8f8; }
.sup-item-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.sup-item-top small { color: var(--suave); white-space: nowrap; }
.sup-assunto { font-size: 14px; margin: 3px 0 7px; color: var(--texto); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sup-item-rod { display: flex; align-items: center; gap: 8px; }
.sup-item-rod .badge { font-size: 11.5px; padding: 2px 8px; }
.ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--marca); margin-left: auto; }
.sup-conversa { min-height: 460px; display: flex; flex-direction: column; }
.sup-vazio { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: auto; }
.sup-vazio .ico { width: 44px; height: 44px; opacity: .35; }
.sup-voltar { display: none; align-self: flex-start; margin-bottom: 10px; }
.sup-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--borda); padding-bottom: 12px; }
.sup-cab h2 { margin-bottom: 4px; }
.sup-msgs { flex: 1; overflow-y: auto; max-height: calc(100vh - 360px); min-height: 260px; padding: 16px 4px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 78%; border-radius: 14px; padding: 10px 14px; font-size: 14.5px; }
.msg.minha { align-self: flex-end; background: var(--azul); color: #fff; border-bottom-right-radius: 4px; }
.msg.outra { align-self: flex-start; background: #fff; border: 1px solid var(--borda); border-bottom-left-radius: 4px; }
.msg.bot { align-self: flex-start; background: #eef4ff; border: 1px solid #d5e2fb; border-bottom-left-radius: 4px; }
.msg-autor { font-size: 12px; font-weight: 700; opacity: .75; margin-bottom: 3px; }
.msg.minha .msg-autor { color: #c6d1e4; }
.msg-txt p { margin: 4px 0; }
.msg-txt p:first-child { margin-top: 0; }
.msg-txt ul, .msg-txt ol { margin: 4px 0; padding-left: 20px; }
.msg-refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg-hora { font-size: 11px; opacity: .6; text-align: right; margin-top: 4px; }
.msg-sis { align-self: center; text-align: center; font-size: 13px; color: var(--suave); background: #f2f5fa; border-radius: 99px; padding: 5px 14px; max-width: 90%; }
.msg-sis p { margin: 0; }
.msg-pergunta { align-self: flex-start; background: #fff8e6; border: 1px solid #f3dca5; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.msg-pergunta .acoes { margin-top: 8px; }
.digitando { padding: 10px 16px; }
.pontinhos { display: inline-flex; gap: 4px; padding: 4px 0; }
.pontinhos i { width: 7px; height: 7px; border-radius: 50%; background: var(--azul-medio); animation: pulo 1.2s infinite ease-in-out; }
.pontinhos i:nth-child(2) { animation-delay: .15s; }
.pontinhos i:nth-child(3) { animation-delay: .3s; }
@keyframes pulo { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.ia-card { border-left: 5px solid var(--azul-medio); }
.ia-card h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ia-numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ia-numeros div { background: #f2f5fa; border-radius: 10px; padding: 10px 14px; }
.ia-numeros b { display: block; font-size: 20px; color: var(--azul); }
.ia-numeros span { font-size: 12.5px; color: var(--suave); }
.sup-envio { display: flex; gap: 8px; align-items: flex-end; border-top: 1px solid var(--borda); padding-top: 12px; }
.sup-envio textarea { min-height: 46px; resize: none; }
@media (max-width: 860px) {
  .sup-grid { grid-template-columns: minmax(0, 1fr); }
  .sup-lista { position: static; max-height: none; }
  .sup-grid.com-conversa .sup-lista { display: none; }
  .sup-grid:not(.com-conversa) .sup-conversa { display: none; }
  .sup-voltar { display: inline-flex; }
  .sup-msgs { max-height: 60vh; }
  .msg { max-width: 92%; }
}

/* ---------- login (duas metades) ---------- */
.login-tela { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.login-split { display: grid; grid-template-columns: 1fr 1.25fr; width: min(1120px, 100%); min-height: 560px; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 40px rgba(23, 35, 59, .12); }
.login-form-side { padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; }
.login-form-side h1 { font-size: 34px; font-weight: 800; color: var(--azul); margin-bottom: 26px; }
.login-form-side .sub { color: var(--suave); margin: -14px 0 22px; }
.login-form-side label { color: var(--azul); font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
.login-form-side input { height: 52px; border-radius: 9px; padding: 0 16px; border-color: #d9e0ec; box-shadow: 0 1px 2px rgba(23, 35, 59, .04); }
.senha-wrap { position: relative; }
.senha-wrap input { padding-right: 50px; }
.olho { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; color: var(--suave); padding: 8px; display: grid; place-items: center; }
.olho:hover { color: var(--azul); }
.btn-login { width: 100%; height: 54px; justify-content: center; border-radius: 99px; font-size: 16px; margin-top: 30px; box-shadow: 0 8px 20px rgba(224, 37, 42, .3); }
.login-rodape { margin-top: 26px; font-size: 12.5px; color: var(--suave); }
.login-brand-side { background: var(--azul); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 48px 40px; overflow: hidden; }
.login-brand-side::before { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; background: rgba(255, 255, 255, .035); top: -170px; left: -120px; }
.login-brand-side::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(255, 255, 255, .035); bottom: -190px; right: -120px; }
.login-brand-side .pontos { position: absolute; top: 20px; right: 22px; width: 190px; height: 120px; background-image: radial-gradient(rgba(255, 255, 255, .22) 2px, transparent 2.4px); background-size: 24px 24px; }
.login-brand-side .logo-grande { position: relative; z-index: 1; width: min(430px, 88%); height: auto; }
.login-brand-side .bemvindo { position: relative; z-index: 1; margin-top: 26px; font-size: 22px; font-weight: 700; }
.login-brand-side .frase { position: relative; z-index: 1; margin-top: 6px; color: #9fb0cc; font-size: 14.5px; }
.login-split .erro-msg { margin-top: 16px; }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .login-split { grid-template-columns: 1fr; min-height: 0; }
  .login-brand-side { order: -1; padding: 30px 24px; }
  .login-brand-side .logo-grande { width: 230px; }
  .login-brand-side .bemvindo { font-size: 18px; margin-top: 14px; }
  .login-brand-side .frase { display: none; }
  .login-brand-side .pontos { width: 100px; height: 60px; }
  .login-form-side { padding: 32px 28px 36px; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; overflow: visible; }
  .brand { padding: 14px 16px 6px; }
  .brand img { max-width: 150px; }
  .side-user { padding: 8px 16px 10px; border-bottom: 0; }
  .nav { flex-direction: row; overflow-x: auto; padding: 8px 10px 12px; gap: 6px; scrollbar-width: none; min-width: 0; max-width: 100%; }
  .nav::-webkit-scrollbar { display: none; }
  .grp, .grp .grp-b, .grp.aberto .grp-b { display: contents; }
  .grp-h { display: none; }
  .nav-link, .nav-sub { width: auto; white-space: nowrap; padding: 8px 12px; background: rgba(255, 255, 255, .07); }
  .nav-link.ativo, .nav-sub.ativo { background: var(--marca); }
  .side-foot { flex-direction: row; padding: 0 10px 12px; border-top: 0; margin: 0; }
  .side-foot .nav-link { background: none; }
  main { padding: 18px 14px 50px; }
  .card { padding: 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .tile .val { font-size: 16px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .podio { grid-template-columns: 1fr; }
  .pod.p1 { order: -1; }
  .linha-barra { grid-template-columns: 84px 1fr 100px; gap: 8px; }
  .campeao .nome { font-size: 22px; }
  .videos { grid-template-columns: 1fr; }
  .artes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .link-caixa { flex-direction: column; }
  .ind-tipo { grid-template-columns: 1fr; }
  .roteiro-item { flex-wrap: wrap; }
  .roteiro-item .prod { min-width: 0; }
  .roteiro-item .tit { flex-basis: 100%; order: 3; }
  .pesquisa { width: 100%; }
}
