/* FLUXO — paleta extraída da logo: laranja em degradê, brasa e preto */
:root {
  --laranja-claro: #FF8A00;
  --laranja: #FF6A00;
  --laranja-forte: #FF4D00;
  --brasa: #C42B00;
  --grad: linear-gradient(135deg, #FF8A00 0%, #FF4D00 100%);
  --grad-escuro: linear-gradient(135deg, #FF6A00 0%, #C42B00 100%);
  --laranja-bg: #FFF3EA;
  --laranja-borda: #FFD9BF;

  --preto: #111111;
  --grafite: #1C1C1E;
  --grafite-2: #2A2A2D;
  --texto: #18181B;
  --texto-2: #52525B;
  --texto-3: #8A8A93;
  --linha: #ECECEF;
  --fundo: #F6F6F7;
  --branco: #FFFFFF;

  --verde: #14804A;
  --verde-bg: #E7F6EE;
  --vermelho: #D32F2F;
  --vermelho-bg: #FDECEC;
  --amarelo: #A15C00;
  --amarelo-bg: #FFF4DB;
  --azul: #2563EB;
  --azul-bg: #EAF1FE;

  --raio: 14px;
  --raio-sm: 10px;
  --sombra: 0 1px 2px rgba(17,17,17,.04), 0 4px 16px rgba(17,17,17,.06);
  --sombra-forte: 0 12px 40px rgba(17,17,17,.18);
  --sidebar: 248px;
  --topo: 60px;
  --nav-mobile: 66px;
  --fonte: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fonte-titulo: 'Sora', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font-family: var(--fonte); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--laranja-forte); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--fonte-titulo); margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; font-weight: 800; }
h2 { font-size: 1.12rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.muted { color: var(--texto-2); }
.small { font-size: .84rem; }
.tiny { font-size: .76rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.strong { font-weight: 700; }
.red { color: var(--vermelho); }
.green { color: var(--verde); }
.orange { color: var(--laranja-forte); }

.splash { min-height: 100vh; display: grid; place-items: center; }
.splash img { width: 72px; animation: pulsa 1.2s ease-in-out infinite; }
@keyframes pulsa { 50% { transform: scale(.92); opacity: .7; } }

/* ------------------------------------------------------------ layout */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--preto); color: #fff;
  display: flex; flex-direction: column; padding: 20px 14px; z-index: 30;
}
.sidebar .marca { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; }
.sidebar .marca img { width: 36px; }
.sidebar .marca b { font-family: var(--fonte-titulo); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.sidebar .marca small { display: block; color: #9a9aa2; font-size: .72rem; font-weight: 500; margin-top: -2px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: #c9c9cf; font-weight: 500; text-decoration: none; position: relative;
}
.menu a svg { width: 20px; height: 20px; flex: none; }
.menu a:hover { background: var(--grafite-2); color: #fff; }
.menu a.ativo { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(255,77,0,.35); }
.menu .sep { height: 1px; background: #2b2b2f; margin: 12px 8px; }
.menu .badge { margin-left: auto; }
.sidebar .usuario { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--grafite); display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; font-size: .9rem; }
.sidebar .usuario .info { min-width: 0; flex: 1; }
.sidebar .usuario .info b { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .usuario .info span { font-size: .74rem; color: #9a9aa2; }
.sidebar .usuario button { background: none; border: 0; color: #9a9aa2; cursor: pointer; padding: 6px; border-radius: 8px; }
.sidebar .usuario button:hover { color: #fff; background: var(--grafite-2); }

.topo {
  display: none; position: sticky; top: 0; z-index: 25; height: var(--topo);
  background: var(--preto); color: #fff; align-items: center; padding: 0 14px;
  padding-top: env(safe-area-inset-top); gap: 10px;
}
.topo img { width: 30px; }
.topo b { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.2rem; }
.topo .acoes { margin-left: auto; display: flex; gap: 4px; }
.topo .acoes a, .topo .acoes button { color: #fff; background: none; border: 0; padding: 8px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.topo .acoes svg { width: 22px; height: 22px; }

.conteudo { margin-left: var(--sidebar); padding: 28px 32px 48px; max-width: calc(1240px + var(--sidebar)); }

.nav-mobile {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 25;
  background: var(--branco); border-top: 1px solid var(--linha);
  height: calc(var(--nav-mobile) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  grid-template-columns: repeat(5, 1fr);
}
.nav-mobile a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--texto-3); font-size: .7rem; font-weight: 600; text-decoration: none; position: relative;
}
.nav-mobile a svg { width: 22px; height: 22px; }
.nav-mobile a.ativo { color: var(--laranja-forte); }
.nav-mobile a .badge { position: absolute; top: 6px; left: calc(50% + 4px); }
.nav-mobile .fab {
  width: 52px; height: 52px; border-radius: 16px; background: var(--grad); color: #fff;
  display: grid; place-items: center; margin: -18px auto 0; box-shadow: 0 8px 20px rgba(255,77,0,.4);
}
.nav-mobile .fab svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .topo { display: flex; }
  .nav-mobile { display: grid; }
  .conteudo { margin-left: 0; padding: 16px 16px calc(var(--nav-mobile) + 28px + env(safe-area-inset-bottom)); }
  h1 { font-size: 1.3rem; }
}

/* ------------------------------------------------------------ cabeçalho de página */
.cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.cabecalho .titulo { min-width: 0; }
.cabecalho .titulo p { margin: 4px 0 0; color: var(--texto-2); }
.cabecalho .acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.voltar { display: inline-flex; align-items: center; gap: 4px; color: var(--texto-2); font-size: .85rem; margin-bottom: 6px; font-weight: 500; }
.voltar svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------ componentes */
.card { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--linha); flex-wrap: wrap; }
.card-head h2 { display: flex; align-items: center; gap: 8px; }
.secao { margin-top: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--raio-sm); padding: 10px 16px;
  font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease; min-height: 42px;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primario { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(255,77,0,.28); }
.btn-primario:hover { box-shadow: 0 6px 20px rgba(255,77,0,.4); }
.btn-escuro { background: var(--preto); color: #fff; }
.btn-escuro:hover { background: var(--grafite-2); }
.btn-claro { background: var(--branco); color: var(--texto); border-color: var(--linha); }
.btn-claro:hover { border-color: #d6d6db; background: #fafafa; }
.btn-perigo { background: var(--vermelho-bg); color: var(--vermelho); }
.btn-perigo:hover { background: #fbdada; }
.btn-whats { background: #E8F8EE; color: #128C4A; }
.btn-whats:hover { background: #d6f3e2; }
.btn-sm { padding: 6px 11px; min-height: 34px; font-size: .85rem; border-radius: 9px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-bloco { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-icone { padding: 8px; min-height: 36px; min-width: 36px; }

.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--vermelho); color: #fff; font-size: .7rem; font-weight: 700;
}
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; white-space: nowrap; background: #f0f0f2; color: var(--texto-2);
}
.chip.laranja { background: var(--laranja-bg); color: var(--brasa); }
.chip.verde { background: var(--verde-bg); color: var(--verde); }
.chip.vermelho { background: var(--vermelho-bg); color: var(--vermelho); }
.chip.amarelo { background: var(--amarelo-bg); color: var(--amarelo); }
.chip.azul { background: var(--azul-bg); color: var(--azul); }
.chip.preto { background: var(--preto); color: #fff; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px; position: relative; overflow: hidden; }
.kpi .rotulo { font-size: .8rem; color: var(--texto-2); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .valor { font-family: var(--fonte-titulo); font-size: 1.45rem; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .det { font-size: .78rem; color: var(--texto-3); margin-top: 2px; }
.kpi.destaque { background: var(--grad); color: #fff; border: 0; }
.kpi.destaque .rotulo, .kpi.destaque .det { color: rgba(255,255,255,.88); }
.kpi.escuro { background: var(--preto); color: #fff; border: 0; }
.kpi.escuro .rotulo, .kpi.escuro .det { color: #b4b4bb; }
.kpi.alerta .valor { color: var(--vermelho); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .kpi .valor { font-size: 1.15rem; } .kpis { gap: 10px; } .kpi { padding: 13px 14px; } }

.mini-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.mini-stats .chip { padding: 6px 12px; font-size: .8rem; background: var(--branco); border: 1px solid var(--linha); }

/* Listas */
.lista { display: flex; flex-direction: column; container-type: inline-size; }
.item {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--linha);
  color: inherit; text-decoration: none !important;
}
.item:last-child { border-bottom: 0; }
a.item:hover, .item.clicavel:hover { background: #fcfcfc; cursor: pointer; }
.item .principal { flex: 1; min-width: 0; }
.item .principal .nome { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .principal .sub { font-size: .82rem; color: var(--texto-2); display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.item .valores { text-align: right; flex: none; }
.item .valores .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.item .valores .s { font-size: .78rem; color: var(--texto-3); }
.item .botoes { display: flex; gap: 6px; flex: none; }
.item .marcador { width: 4px; align-self: stretch; border-radius: 4px; background: var(--linha); flex: none; }
.item .marcador.atraso { background: var(--vermelho); }
.item .marcador.hoje { background: var(--laranja); }
.item .marcador.ok { background: var(--verde); }
@container (max-width: 600px) {
  .item { flex-wrap: wrap; padding: 13px 14px; gap: 10px; }
  .item .principal { flex-basis: calc(100% - 140px); }
  .item .botoes { width: 100%; }
  .item .botoes .btn { flex: 1; }
  .item .marcador { display: none; }
}
.vazio { padding: 32px 18px; text-align: center; color: var(--texto-3); }
.vazio svg { width: 40px; height: 40px; margin: 0 auto 8px; color: #d4d4d8; }

/* Grades */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lado { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.lado .fixo { position: sticky; top: 20px; }
@media (max-width: 1100px) { .lado { grid-template-columns: 1fr; } .lado .fixo { position: static; } }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Dados (definições) */
.dados { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 20px; }
.dados div span { display: block; font-size: .76rem; color: var(--texto-3); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.dados div b { font-weight: 600; word-break: break-word; }

/* ------------------------------------------------------------ formulários */
.form { display: flex; flex-direction: column; gap: 18px; }
.campos { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.campo { grid-column: span 12; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; }
.c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c8 { grid-column: span 8; } .c9 { grid-column: span 9; }
@media (max-width: 640px) {
  .c2, .c3, .c4 { grid-column: span 6; }
  .c5, .c6, .c8, .c9 { grid-column: span 12; }
}
.campo label, .rotulo-campo { font-size: .8rem; font-weight: 600; color: var(--texto-2); }
.campo .ajuda { font-size: .76rem; color: var(--texto-3); }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid #dcdce1; border-radius: var(--raio-sm); background: var(--branco);
  padding: 10px 12px; min-height: 44px; outline: none; transition: border-color .15s, box-shadow .15s;
  font-size: 16px; /* evita zoom no iOS */
}
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { border-color: var(--laranja); box-shadow: 0 0 0 3px rgba(255,106,0,.15); }
.input[readonly] { background: #f7f7f8; }
.input-pre { position: relative; }
.input-pre > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--texto-3); font-weight: 600; font-size: .9rem; pointer-events: none; }
.input-pre .input { padding-left: 38px; }
.input-suf { position: relative; }
.input-suf > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--texto-3); font-weight: 600; pointer-events: none; }
.input-suf .input { padding-right: 34px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; user-select: none; }
.check input { width: 20px; height: 20px; accent-color: var(--laranja-forte); }
.form-titulo { display: flex; align-items: center; gap: 8px; font-family: var(--fonte-titulo); font-weight: 700; font-size: 1rem; }
.form-titulo .n { width: 26px; height: 26px; border-radius: 8px; background: var(--laranja-bg); color: var(--brasa); display: grid; place-items: center; font-size: .8rem; }
.form-acoes { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 640px) { .form-acoes .btn { flex: 1; } }

.segmento { display: inline-flex; background: #ececef; border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.segmento button {
  border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-weight: 600; cursor: pointer;
  color: var(--texto-2); display: inline-flex; align-items: center; gap: 6px; font-size: .88rem;
}
.segmento button.ativo { background: var(--branco); color: var(--texto); box-shadow: var(--sombra); }
.segmento.grande { display: flex; }
.segmento.grande button { flex: 1; justify-content: center; padding: 11px; }
.segmento.grande button.ativo { background: var(--preto); color: #fff; }

.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.busca { position: relative; flex: 1; min-width: 200px; }
.busca svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--texto-3); }
.busca .input { padding-left: 38px; }
.rolagem-x { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rolagem-x::-webkit-scrollbar { display: none; }

/* Simulação */
.simulacao { background: var(--preto); color: #fff; border-radius: var(--raio); padding: 20px; overflow: hidden; position: relative; }
.simulacao::after { content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--grad); opacity: .2; }
.simulacao h3 { color: #b4b4bb; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.simulacao .grande { font-family: var(--fonte-titulo); font-size: 2rem; font-weight: 800; margin: 6px 0 2px; color: var(--laranja-claro); letter-spacing: -.02em; }
.simulacao .linhas { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.simulacao .linhas div { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; color: #d4d4d8; }
.simulacao .linhas b { color: #fff; font-variant-numeric: tabular-nums; }
.simulacao .cronograma { margin-top: 16px; max-height: 260px; overflow: auto; border-top: 1px solid #2b2b2f; padding-top: 10px; position: relative; z-index: 1; }
.simulacao .cronograma div { display: flex; justify-content: space-between; font-size: .84rem; padding: 4px 0; color: #c9c9cf; font-variant-numeric: tabular-nums; }
.simulacao .erro { color: #ffb38a; font-size: .88rem; margin-top: 8px; }

/* Garantias */
.garantia { border: 1px dashed var(--laranja-borda); background: #FFFBF7; border-radius: var(--raio-sm); padding: 14px; position: relative; }
.garantia + .garantia { margin-top: 10px; }
.garantia .remover { position: absolute; top: 8px; right: 8px; }
.garantia-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--linha); }
.garantia-card:last-child { border-bottom: 0; }
.garantia-card .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--laranja-bg); color: var(--brasa); display: grid; place-items: center; flex: none; }
.garantia-card .ic svg { width: 20px; height: 20px; }

/* Tabela de parcelas */
.tabela { width: 100%; border-collapse: collapse; }
.tabela th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--texto-3); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--linha); background: #fafafa; }
.tabela td { padding: 12px 14px; border-bottom: 1px solid var(--linha); vertical-align: middle; font-variant-numeric: tabular-nums; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tr.paga td { color: var(--texto-3); }
.tabela tr.atrasada { background: #FFF8F8; }
@media (max-width: 760px) {
  .tabela thead { display: none; }
  .tabela, .tabela tbody, .tabela tr, .tabela td { display: block; width: 100%; }
  .tabela tr { padding: 12px 14px; border-bottom: 1px solid var(--linha); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px;
    grid-template-areas: "n atual" "sit venc" "acoes acoes"; align-items: center; }
  .tabela td { padding: 0; border: 0; }
  .tabela td.t-n { grid-area: n; }
  .tabela td.t-venc { grid-area: venc; text-align: right; color: var(--texto-2); font-size: .86rem; }
  .tabela td.t-sit { grid-area: sit; }
  .tabela td.t-atual { grid-area: atual; text-align: right; }
  .tabela td.t-valor, .tabela td.t-pago { display: none; }
  .tabela td.acoes-td { grid-area: acoes; margin-top: 6px; display: flex; gap: 6px; }
  .tabela td.acoes-td:empty { display: none; }
  .tabela td.acoes-td .btn { flex: 1; }
  .tabela td.acoes-td .btn-icone { flex: 0 0 44px; }
  .tabela td.acoes-td .btn-whats { flex: 1 1 auto; }
}

/* Progresso */
.progresso { height: 8px; background: #ececef; border-radius: 99px; overflow: hidden; }
.progresso > div { height: 100%; background: var(--grad); border-radius: 99px; }

/* ------------------------------------------------------------ modal */
.modal-fundo {
  position: fixed; inset: 0; background: rgba(17,17,17,.55); z-index: 100; display: grid; place-items: center;
  padding: 20px; animation: aparece .15s ease; backdrop-filter: blur(2px);
}
.modal {
  background: var(--branco); border-radius: 18px; width: 100%; max-width: 520px; max-height: calc(100vh - 40px);
  display: flex; flex-direction: column; box-shadow: var(--sombra-forte); animation: sobe .2s ease;
}
.modal.largo { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--linha); gap: 10px; }
.modal-body { padding: 20px; overflow: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--linha); display: flex; gap: 10px; justify-content: flex-end; }
.fechar { background: #f2f2f4; border: 0; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; flex: none; }
.fechar svg { width: 18px; height: 18px; }
@keyframes aparece { from { opacity: 0; } }
@keyframes sobe { from { transform: translateY(16px); opacity: 0; } }
@media (max-width: 640px) {
  .modal-fundo { padding: 0; place-items: end stretch; }
  .modal { border-radius: 20px 20px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); }
  .modal-foot .btn { flex: 1; }
}

.resumo-pag { background: var(--fundo); border-radius: var(--raio-sm); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.resumo-pag div { display: flex; justify-content: space-between; gap: 10px; }
.resumo-pag .total { border-top: 1px dashed #d4d4d8; padding-top: 8px; margin-top: 4px; font-weight: 800; font-size: 1.1rem; font-family: var(--fonte-titulo); }
.aviso { border-radius: var(--raio-sm); padding: 12px 14px; font-size: .88rem; display: flex; gap: 10px; align-items: flex-start; }
.aviso svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.aviso.laranja { background: var(--laranja-bg); color: var(--brasa); }
.aviso.vermelho { background: var(--vermelho-bg); color: var(--vermelho); }
.aviso.azul { background: var(--azul-bg); color: #1e40af; }

/* ------------------------------------------------------------ toasts */
#toasts { position: fixed; z-index: 200; top: 16px; right: 16px; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast { background: var(--preto); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--sombra-forte); font-weight: 500; animation: sobe .2s ease; max-width: 380px; display: flex; gap: 10px; align-items: center; }
.toast.erro { background: var(--vermelho); }
.toast.ok::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--laranja-claro); flex: none; }
@media (max-width: 640px) { #toasts { top: auto; bottom: calc(var(--nav-mobile) + 16px + env(safe-area-inset-bottom)); left: 16px; right: 16px; } .toast { max-width: none; } }

/* ------------------------------------------------------------ login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .arte { background: var(--preto); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login .arte::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--grad); filter: blur(10px); opacity: .9; right: -200px; bottom: -220px; }
.login .arte::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 2px solid rgba(255,138,0,.35); right: 80px; bottom: 140px; }
.login .arte .topo-arte { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.login .arte .topo-arte img { width: 44px; }
.login .arte .topo-arte b { font-family: var(--fonte-titulo); font-size: 1.6rem; font-weight: 800; }
.login .arte h1 { font-size: 2.4rem; line-height: 1.1; max-width: 440px; position: relative; z-index: 1; }
.login .arte h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login .arte p { color: #b4b4bb; max-width: 400px; position: relative; z-index: 1; }
.login .painel { display: grid; place-items: center; padding: 32px 20px; background: var(--branco); }
.login .caixa { width: 100%; max-width: 380px; }
.login .caixa .logo { width: 150px; margin: 0 auto 24px; }
.login .caixa h2 { font-size: 1.4rem; text-align: center; }
.login .caixa .sub { text-align: center; color: var(--texto-2); margin: 6px 0 24px; }
.requisitos { list-style: none; padding: 0; margin: 4px 0 0; font-size: .82rem; color: var(--texto-3); display: flex; flex-direction: column; gap: 4px; }
.requisitos li::before { content: '○ '; }
.requisitos li.ok { color: var(--verde); }
.requisitos li.ok::before { content: '● '; }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login .arte { display: none; }
  .login .painel { align-items: start; padding-top: 48px; }
}

/* ------------------------------------------------------------ diversos */
.saudacao { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.saudacao .data { color: var(--texto-2); text-transform: capitalize; }
.alerta-notif { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 16px; border-color: var(--laranja-borda); background: #FFFBF7; }
.alerta-notif .txt { flex: 1; min-width: 200px; font-size: .9rem; }
.ponto { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.carregando { padding: 40px; text-align: center; color: var(--texto-3); }
.linha-total { display: flex; justify-content: space-between; padding: 12px 18px; background: #fafafa; border-top: 1px solid var(--linha); font-weight: 700; border-radius: 0 0 var(--raio) var(--raio); }
.tabs-scroll { display: flex; gap: 8px; }
.usuario-mobile { display: flex; align-items: center; gap: 12px; }
@media (min-width: 901px) { .so-mobile { display: none !important; } }
@media (max-width: 900px) { .so-desktop { display: none !important; } }
.segmento button svg { width: 18px; height: 18px; flex: none; }
.simulacao .cronograma { padding-right: 10px; }

/* Olhinho de mostrar senha */
.senha-caixa { position: relative; }
.senha-caixa .input { padding-right: 46px; width: 100%; }
.btn-olho { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: #8a8a8a; cursor: pointer; border-radius: 8px; }
.btn-olho:hover, .btn-olho:focus-visible { color: var(--laranja-forte); }
.btn-olho svg { width: 20px; height: 20px; }
