:root{
  --navy:#16234d; --navy-2:#274a8f;
  --ink:#0f172a; --muted:#6b7790; --line:#e7ebf2;
  --bg:#eef1f6; --card:#fff; --accent:#2563eb;
  --ok-bg:#dcfce7; --ok-fg:#15803d;
  --go-bg:#fef3c7; --go-fg:#b45309;
  --new-bg:#e0e7ff; --new-fg:#4338ca;
  --radius:18px; --shadow:0 6px 22px rgba(16,24,40,.07); --shadow-h:0 14px 34px rgba(16,24,40,.13);
}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:"Segoe UI",system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;line-height:1.45}

/* ===================== LOGIN ===================== */
.ac-login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;
  background:radial-gradient(900px 380px at 50% -120px, rgba(39,74,143,.45), transparent 70%), var(--bg)}
.ac-card{width:100%;max-width:430px;background:var(--card);padding:34px 30px;border-radius:22px;box-shadow:var(--shadow)}
.ac-brand{display:flex;align-items:center;gap:9px;justify-content:center;font-weight:800;letter-spacing:.3px;color:var(--navy);margin-bottom:18px}
.ac-brand i{width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,var(--navy),var(--navy-2));display:inline-flex;align-items:center;justify-content:center;color:#fff;font-style:normal;font-size:13px;font-weight:800}
.ac-card h1{font-size:21px;text-align:center;margin:0 0 6px}
.ac-sub{text-align:center;color:var(--muted);font-size:14px;margin:0 0 22px}
.ac-card label{display:block;font-size:12.5px;font-weight:700;color:#334155;margin:0 0 6px}
.ac-card label small{font-weight:500;color:var(--muted)}
.ac-card input{width:100%;padding:13px 14px;margin:0 0 16px;border:1.5px solid #d8dee9;border-radius:12px;font-size:16px;background:#fbfcfe;transition:border-color .15s, box-shadow .15s}
.ac-card input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px rgba(37,99,235,.14)}
.ac-card button{width:100%;border:0;padding:14px;border-radius:12px;font-size:15.5px;font-weight:700;color:#fff;cursor:pointer;background:linear-gradient(135deg,var(--navy),var(--navy-2));box-shadow:0 8px 18px rgba(22,35,77,.25);transition:transform .08s, box-shadow .2s}
.ac-card button:hover{box-shadow:0 12px 24px rgba(22,35,77,.32)}
.ac-card button:active{transform:translateY(1px)}
.ac-erro{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;padding:11px 13px;border-radius:11px;font-size:14px;margin-bottom:16px}
.ac-aviso{background:#f8fafc;border:1px solid var(--line);padding:13px;border-radius:12px;font-size:13px;color:#475569;margin:2px 0 18px}
.ac-aviso strong{display:block;color:#334155;margin-bottom:3px}

/* ===================== PAINEL ===================== */
.ac-topo{background:linear-gradient(135deg,var(--navy),var(--navy-2));color:#fff;padding:26px 20px 32px}
.ac-topo-inner{max-width:940px;margin:0 auto;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.ac-topo-acoes{display:flex;align-items:center;gap:10px;flex:0 0 auto;margin-left:auto}
.ac-avatar{width:54px;height:54px;border-radius:16px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:19px;flex:0 0 auto}
.ac-topo-txt{flex:1;min-width:0}
.ac-topo-txt span{font-size:11px;letter-spacing:1.5px;opacity:.7;font-weight:600}
.ac-topo-txt h2{margin:2px 0 1px;font-size:20px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-topo-txt small{opacity:.85;font-size:12.5px}
.ac-sair{flex:0 0 auto;color:#fff;text-decoration:none;font-weight:600;font-size:13.5px;padding:9px 16px;border-radius:10px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.08);transition:background .15s}
.ac-sair:hover{background:rgba(255,255,255,.2)}

/* Contact icons */
.ac-contatos{display:flex;align-items:center;gap:6px}
.ac-contato-ico{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);text-decoration:none;transition:background .15s;cursor:pointer}
.ac-contato-ico:hover{background:rgba(255,255,255,.26)}
.ac-contato-wpp{color:#4ade80}
.ac-contato-disabled{opacity:.45;cursor:default}

.ac-container{max-width:940px;margin:-16px auto 48px;padding:0 16px}
.ac-bloco{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px 24px;margin-top:16px}
.ac-bloco>h3{margin:0 0 16px;font-size:16px;display:flex;align-items:center;gap:9px}
.ac-bloco>h3::before{content:"";width:4px;height:18px;border-radius:3px;background:var(--accent)}

.ac-dados{display:grid;grid-template-columns:1fr 1fr;gap:16px 20px}
.ac-dados>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.ac-dados b{font-size:11px;letter-spacing:.5px;color:var(--muted);font-weight:700}
.ac-dados span{font-size:15px;color:#1e293b;font-weight:500;word-break:break-word}

.ac-proposta{border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:14px;padding:16px 18px;margin-top:12px;background:#fff;transition:box-shadow .18s, transform .12s}
.ac-proposta:first-of-type{margin-top:0}
.ac-proposta:hover{box-shadow:var(--shadow-h);transform:translateY(-2px)}
.ac-proposta.is-finalizado{border-left-color:#16a34a}
.ac-proposta.is-andamento{border-left-color:#d97706}
.ac-proposta.is-proposta{border-left-color:#2563eb}
.ac-prop-topo{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.ac-prop-topo strong{font-size:15px;color:#0f172a;line-height:1.3}
.ac-prop-sub{display:block;color:var(--muted);font-size:13px;margin-top:3px}
.ac-badge{flex:0 0 auto;font-size:11px;font-weight:700;letter-spacing:.4px;padding:5px 11px;border-radius:999px;white-space:nowrap}
.ac-badge.is-finalizado{background:var(--ok-bg);color:var(--ok-fg)}
.ac-badge.is-andamento{background:var(--go-bg);color:var(--go-fg)}
.ac-badge.is-proposta{background:var(--new-bg);color:var(--new-fg)}
.ac-parcela{margin-top:13px;padding-top:12px;border-top:1px dashed var(--line);display:flex;align-items:baseline;gap:8px}
.ac-parcela b{font-size:11px;letter-spacing:.5px;color:var(--muted);font-weight:700}
.ac-valor{font-size:17px;font-weight:800;color:#0f172a;margin-left:auto}
.ac-adefinir{color:#94a3b8;font-style:italic;font-weight:600;margin-left:auto}
.ac-vazio{color:var(--muted);font-size:14px;padding:6px 0;margin:0}

.ac-indicacoes-embreve{opacity:.9;border:1px dashed #cbd5e1;box-shadow:none;background:#fafbfd}
.ac-indicacoes-embreve p{margin:0;color:var(--muted);font-size:14px}
.ac-embreve{display:inline-block;background:#e2e8f0;color:#475569;font-size:10.5px;letter-spacing:.4px;padding:3px 9px;border-radius:999px;margin-left:8px;font-weight:700;text-transform:uppercase}

.ac-seguranca{display:flex;gap:12px;align-items:flex-start;margin-top:16px;padding:18px 20px;background:#f1f5fb;border:1px solid var(--line);border-radius:var(--radius);color:#475569;font-size:13px}
.ac-shield{flex:0 0 auto;width:34px;height:34px;border-radius:10px;background:#e0e7ff;display:flex;align-items:center;justify-content:center;font-size:17px}
.ac-seguranca h4{margin:0 0 4px;font-size:14px;color:#334155}
.ac-seguranca p{margin:0;line-height:1.5}

/* Última atualização na proposta (agora dentro do dl) */
.ac-prop-atualizado{display:flex;align-items:center;gap:4px;font-size:11.5px;color:var(--muted);font-weight:500}
.ac-prop-atualizado svg{flex:0 0 auto;color:var(--muted)}

/* Detalhe list inside proposta card */
.ac-prop-detalhes{margin:10px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}
.ac-prop-detalhes>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.ac-prop-detalhes dt{font-size:10.5px;letter-spacing:.4px;color:var(--muted);font-weight:700;text-transform:uppercase}
.ac-prop-detalhes dd{margin:0;font-size:13.5px;color:#1e293b;font-weight:500;word-break:break-word}

/* Consultor block per proposta */
.ac-consultor{margin-top:14px;padding:12px 14px;background:#f8fafc;border:1px solid var(--line);border-radius:11px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13.5px;color:#334155}
.ac-consultor b{color:#0f172a}
.ac-consultor-wpp{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;padding:8px 15px;border-radius:10px;background:#16a34a;color:#fff;font-weight:700;font-size:13px;text-decoration:none;box-shadow:0 3px 10px rgba(22,163,74,.25);transition:background .15s,box-shadow .15s,transform .08s;white-space:nowrap}
.ac-consultor-wpp:hover{background:#15803d;box-shadow:0 5px 14px rgba(22,163,74,.35)}
.ac-consultor-wpp:active{transform:translateY(1px)}

/* "Fale com a equipe" footer CTA */
.ac-equipe{background:linear-gradient(135deg,#eff6ff,#dbeafe);border:1px solid #bfdbfe}
.ac-equipe-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ac-equipe-txt h3{margin:0 0 4px;font-size:15px;color:#1e3a8a}
.ac-equipe-txt p{margin:0;font-size:13.5px;color:#1d4ed8}
.ac-equipe-cta{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;padding:12px 22px;border-radius:12px;background:var(--navy);color:#fff;font-weight:700;font-size:14.5px;text-decoration:none;box-shadow:0 4px 14px rgba(22,35,77,.22);transition:background .15s,box-shadow .15s,transform .08s;white-space:nowrap}
.ac-equipe-cta:hover{background:var(--navy-2);box-shadow:0 6px 18px rgba(22,35,77,.3)}
.ac-equipe-cta:active{transform:translateY(1px)}

/* Indicar clientes card */
.ac-indicar-bloco{background:linear-gradient(135deg,#f0fdf4,#dcfce7);border:1px solid #bbf7d0}
.ac-indicar-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ac-indicar-inner>h3{margin:0 0 16px}
.ac-indicar-txt p{margin:0;font-size:14px;color:#166534}
.ac-indicar-txt h3{color:#14532d}
.ac-indicar{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;padding:12px 22px;border-radius:12px;background:#16a34a;color:#fff;font-weight:700;font-size:14.5px;text-decoration:none;box-shadow:0 4px 14px rgba(22,163,74,.3);transition:background .15s, box-shadow .15s, transform .08s;white-space:nowrap}
.ac-indicar:hover{background:#15803d;box-shadow:0 6px 18px rgba(22,163,74,.4)}
.ac-indicar:active{transform:translateY(1px)}

@media(max-width:560px){
  .ac-dados{grid-template-columns:1fr}
  .ac-bloco{padding:18px}
  .ac-topo-txt h2{font-size:18px;white-space:normal}
  .ac-prop-detalhes{grid-template-columns:1fr}
  .ac-equipe-inner{flex-direction:column;align-items:stretch}
  .ac-equipe-cta{justify-content:center;width:100%;padding:14px 16px;font-size:15px}
}

@media(max-width:480px){
  /* Header: let name truncate, keep sair accessible */
  .ac-topo{padding:18px 14px 24px}
  .ac-topo-inner{gap:10px}
  .ac-avatar{width:44px;height:44px;font-size:16px;border-radius:12px}
  .ac-topo-txt{min-width:0}
  .ac-topo-txt h2{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ac-topo-txt small{font-size:11.5px}
  .ac-topo-acoes{gap:8px}
  .ac-sair{font-size:12px;padding:8px 12px}
  /* Container */
  .ac-container{padding:0 10px;margin-bottom:32px}
  .ac-bloco{padding:16px 14px;border-radius:14px}
  /* Proposta cards */
  .ac-proposta{padding:14px 14px}
  .ac-prop-topo{flex-wrap:wrap;gap:8px}
  .ac-badge{align-self:flex-start}
  /* Indicar button: full width on mobile */
  .ac-indicar-bloco .ac-indicar-inner{flex-direction:column;align-items:stretch}
  .ac-indicar{justify-content:center;width:100%;padding:14px 16px;font-size:15px;margin-top:4px}
  /* Contact icons: slightly larger tap target */
  .ac-contato-ico{width:44px;height:44px}
  /* Security block */
  .ac-seguranca{padding:14px}
}

/* ── #3 Resumo no topo ── */
.ac-resumo{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:16px}
.ac-resumo-card{background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:14px 12px;display:flex;flex-direction:column;align-items:center;gap:3px;border-top:3px solid var(--accent)}
.ac-resumo-card.ac-resumo-total{border-top-color:var(--navy)}
.ac-resumo-card.ac-resumo-fin{border-top-color:#16a34a}
.ac-resumo-card.ac-resumo-and{border-top-color:#d97706}
.ac-resumo-card.ac-resumo-prop{border-top-color:#2563eb}
.ac-resumo-num{font-size:26px;font-weight:800;color:#0f172a;line-height:1}
.ac-resumo-lbl{font-size:11.5px;color:var(--muted);font-weight:600;text-align:center}

/* ── #1 Linha do tempo (stepper) ── */
.ac-stepper{display:flex;align-items:flex-start;margin:14px 0 2px}
.ac-step{display:flex;flex-direction:column;align-items:center;gap:7px;flex:0 0 auto;width:90px;text-align:center}
.ac-step-dot{width:20px;height:20px;border-radius:50%;background:#fff;border:2px solid #cbd5e1;position:relative;flex:0 0 auto;transition:background .2s,border-color .2s}
.ac-step.done .ac-step-dot{background:#16a34a;border-color:#16a34a}
.ac-step.done .ac-step-dot::after{content:"";position:absolute;left:6px;top:3px;width:4px;height:7px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.ac-step.atual .ac-step-dot{border-color:var(--accent);box-shadow:0 0 0 4px rgba(37,99,235,.18)}
.ac-step.atual .ac-step-dot::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--accent)}
.ac-step-lbl{font-size:11px;color:var(--muted);font-weight:600;line-height:1.25}
.ac-step.atual .ac-step-lbl{color:var(--accent);font-weight:700}
.ac-step.done .ac-step-lbl{color:#15803d}
.ac-step-track{flex:1 1 auto;height:3px;background:#e2e8f0;border-radius:2px;margin-top:9px;min-width:16px}
.ac-step-track.done{background:#16a34a}
.ac-stepper-caption{margin:10px 0 0;font-size:11.5px;color:var(--muted)}

/* ── #6 Avaliação por estrelas ── */
.ac-aval{margin-top:14px;padding:12px 14px;background:#fffdf5;border:1px solid #fde68a;border-radius:11px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.ac-aval-label{font-size:13.5px;color:#92400e;font-weight:600}
.ac-estrelas{display:inline-flex;gap:2px}
.ac-estrela{background:none;border:0;cursor:pointer;font-size:26px;line-height:1;color:#e2e8f0;padding:2px;transition:color .12s,transform .08s;min-width:32px}
.ac-estrela:hover{transform:scale(1.12)}
.ac-estrela.ac-estrela-on{color:#f59e0b}
.ac-aval-ok{font-size:14px;font-weight:700;color:#15803d}
.ac-aval-erro{margin:6px 0 0;font-size:12.5px;color:#b91c1c;width:100%}

/* ── #7 FAQ ── */
.ac-faq-item{border:1px solid var(--line);border-radius:11px;margin-top:10px;overflow:hidden;background:#fff}
.ac-faq-item summary{cursor:pointer;padding:13px 16px;font-weight:600;font-size:14px;color:#1e293b;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px}
.ac-faq-item summary::-webkit-details-marker{display:none}
.ac-faq-item summary::after{content:"+";font-size:18px;color:var(--accent);font-weight:700;flex:0 0 auto}
.ac-faq-item[open] summary::after{content:"\2013"}
.ac-faq-item[open] summary{border-bottom:1px solid var(--line)}
.ac-faq-item p{margin:0;padding:12px 16px;font-size:13.5px;color:#475569;line-height:1.55}
.ac-faq-item p strong{color:#334155}
.ac-faq-link{color:var(--accent);font-weight:600;text-decoration:none}

/* responsivo dos novos componentes */
@media(max-width:560px){
  .ac-resumo{grid-template-columns:1fr 1fr}
  .ac-aval{flex-direction:column;align-items:flex-start;gap:6px}
}
@media(max-width:420px){
  .ac-step-lbl{font-size:9.5px;max-width:60px}
  .ac-step-dot{width:14px;height:14px}
  .ac-step-track{margin-bottom:16px}
  .ac-resumo-num{font-size:22px}
  .ac-estrela{font-size:24px}
}

/* ── Cards de proposta mais compactos (menos respiro) ── */
.ac-proposta{padding:13px 15px;margin-top:10px}
.ac-prop-topo strong{font-size:14.5px}
.ac-stepper{margin:10px 0 0}
.ac-step{gap:4px}
.ac-step-dot{width:17px;height:17px}
.ac-step.done .ac-step-dot::after{left:5px;top:3px}
.ac-step-track{margin-top:7.5px}
.ac-step-lbl{font-size:10.5px}
.ac-stepper-caption{margin:5px 0 0;font-size:11px}
.ac-prop-detalhes{margin-top:8px;gap:5px 14px}
.ac-prop-detalhes dd{font-size:13px}
.ac-parcela{margin-top:9px;padding-top:8px}
.ac-consultor{margin-top:9px;padding:8px 12px;font-size:13px}
.ac-aval{margin-top:9px;padding:8px 12px}
.ac-aval-label{font-size:13px}

/* ── Card mais baixo: detalhes em 3 colunas (desktop) + espacos menores ── */
.ac-proposta{padding:12px 15px}
.ac-stepper{margin-top:8px}
.ac-prop-detalhes{margin-top:8px;gap:6px 16px}
.ac-parcela{margin-top:8px;padding-top:7px;border-top:1px solid #f1f5f9}
.ac-consultor{margin-top:8px}
.ac-aval{margin-top:8px}
@media(min-width:600px){.ac-prop-detalhes{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ── Login redesenhado ── */
.ac-login-card{padding:0;overflow:hidden}
.ac-login-head{background:linear-gradient(135deg,var(--navy),var(--navy-2));color:#fff;padding:28px 30px 22px;text-align:center}
.ac-login-logo{width:56px;height:56px;border-radius:16px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:21px;margin:0 auto 12px}
.ac-login-emp{font-size:19px;font-weight:800;letter-spacing:.3px}
.ac-login-tag{font-size:11px;opacity:.85;letter-spacing:2px;text-transform:uppercase;margin-top:3px}
.ac-login-body{padding:24px 30px 28px}
.ac-login-body h1{font-size:19px;text-align:center;margin:0 0 4px}
.ac-login-secure{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;color:var(--muted);margin:14px 0 0}
