/* ============================================================
   AnderCtrl.co — Tools (Assessment + CtrlBot) & Dashboard
   ============================================================ */

.tool-body { background: var(--bg-alt); min-height: 100vh; }

/* Top bar */
.toolbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.toolbar__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.toolbar__back { font-weight: 600; color: var(--text-soft); font-size: .92rem; display: inline-flex; gap: 7px; align-items: center; }
.toolbar__back:hover { color: var(--blue-600); }

/* Stage */
.stage { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.stage--wide { max-width: 1080px; }

/* Progress */
.progress { margin-bottom: 34px; }
.progress__meta { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-mute); font-weight: 600; margin-bottom: 8px; }
.progress__bar { height: 8px; border-radius: 100px; background: var(--gray-200); overflow: hidden; }
.progress__fill { height: 100%; border-radius: 100px; background: var(--grad-brand); width: 0; transition: width .5s cubic-bezier(.2,.8,.2,1); }

/* Card screen */
.qcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-md); animation: fadeUp .45s cubic-bezier(.2,.8,.2,1);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.qcard__eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px; }
.qcard h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.qcard h2 { font-size: clamp(1.3rem,2.4vw,1.7rem); margin-bottom: 10px; }
.qcard p { color: var(--text-soft); margin-bottom: 10px; }
.qcard__axis { font-family: var(--mono); font-size: .76rem; color: var(--text-mute); margin-bottom: 6px; }

/* Disclaimers */
.disclaimer { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: rgba(0,107,255,.05); border: 1px solid rgba(0,107,255,.12); margin: 12px 0; }
.disclaimer .ic { font-size: 20px; flex-shrink: 0; }
.disclaimer p { font-size: .9rem; color: var(--text-soft); margin: 0; }

/* Options */
.options { display: grid; gap: 12px; margin: 26px 0 8px; }
.opt {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #fff; transition: border-color .2s, background .2s, transform .15s; width: 100%;
}
.opt:hover { border-color: var(--blue-400); background: rgba(0,107,255,.03); }
.opt.selected { border-color: var(--blue-500); background: rgba(0,107,255,.06); }
.opt__num { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; background: var(--gray-100); color: var(--text-soft); font-weight: 800; display: grid; place-items: center; font-size: .9rem; transition: .2s; }
.opt.selected .opt__num { background: var(--grad-brand); color: #fff; }
.opt__label { font-size: .96rem; font-weight: 500; color: var(--text); }
.opt__check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gray-200); flex-shrink: 0; display: grid; place-items: center; transition: .2s; }
.opt.selected .opt__check { background: var(--blue-500); border-color: var(--blue-500); }
.opt.selected .opt__check::after { content: '✓'; color: #fff; font-size: 12px; font-weight: 900; }
.multi-hint { font-size: .82rem; color: var(--blue-600); font-weight: 600; margin-top: 4px; display:inline-flex; gap:6px; align-items:center; }

/* Form fields */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; }
.field label .opt-tag { font-weight: 500; color: var(--text-mute); }
.field input, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  font-family: inherit; font-size: 1rem; color: var(--text); background: #fff; transition: border-color .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(0,107,255,.12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 15px; border-radius: 100px; border: 1.5px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--text-soft); transition: .2s; }
.chip:hover { border-color: var(--blue-400); }
.chip.selected { background: var(--grad-brand); color: #fff; border-color: transparent; }

.qnav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 12px; }
.qnav .btn--text { color: var(--text-mute); font-weight: 600; }
.qnav .btn--text:hover { color: var(--text); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash { animation: fadeUp .5s cubic-bezier(.2,.8,.2,1); }
.dash__header {
  background: var(--grad-deep); color: #fff; border-radius: var(--radius-xl);
  padding: 40px; position: relative; overflow: hidden; margin-bottom: 24px;
}
.dash__header::after { content: ''; position: absolute; inset: 0; background: var(--grad-glow); }
.dash__header > * { position: relative; z-index: 1; }
.dash__brandrow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.dash__brandrow .logo__text { color: #fff; }
.dash__report-tag { font-family: var(--mono); font-size: .76rem; color: rgba(255,255,255,.6); }
.dash__hero { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.gauge { position: relative; width: 168px; height: 168px; flex-shrink: 0; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge__center .v { font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1; }
.gauge__center .s { font-size: .72rem; color: rgba(255,255,255,.6); }
.dash__hero h1 { color: #fff; font-size: clamp(1.6rem,3vw,2.2rem); }
.dash__level { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-weight: 700; font-size: .85rem; margin-bottom: 12px; color: #bcd5ff; }
.dash__hero .who { color: rgba(232,238,250,.75); font-size: .95rem; margin-top: 8px; }
.dash__hero .who b { color: #fff; }

/* Dashboard grid cards */
.dgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.dcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.dcard--span6 { grid-column: span 6; }
.dcard--span12 { grid-column: span 12; }
.dcard--span7 { grid-column: span 7; }
.dcard--span5 { grid-column: span 5; }
.dcard__title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -.01em; }
.dcard__title .ic { font-size: 1.2rem; display: inline-flex; color: var(--blue-600); }
.dcard__title .ic svg { width: 20px; height: 20px; display: block; }
.profile-pill svg { width: 16px; height: 16px; display: block; }
.agent-emblem { color: #fff; } .agent-emblem svg { width: 36px; height: 36px; display: block; }
.dcard__sub { font-size: .88rem; color: var(--text-mute); margin-bottom: 20px; }
.dcard__qual { color: var(--text-soft); font-size: .97rem; line-height: 1.7; }

/* Profile card */
.profile-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px; background: rgba(0,107,255,.1); color: var(--blue-700); font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.profile-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.profile-arch { color: var(--text-mute); font-weight: 600; margin-bottom: 16px; font-size: .95rem; }

/* PDI list */
.pdi { display: grid; gap: 14px; counter-reset: pdi; }
.pdi li { display: flex; gap: 14px; padding: 16px; background: var(--bg-alt); border-radius: 14px; list-style: none; }
.pdi li::before { counter-increment: pdi; content: counter(pdi); width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; background: var(--grad-brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.pdi li span { font-size: .94rem; color: var(--text); line-height: 1.55; }

/* X / Y axis bars */
.axis-row { margin-bottom: 22px; }
.axis-row__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.axis-row__head b { font-size: .98rem; }
.axis-row__head .lvl { font-weight: 700; font-size: .82rem; padding: 3px 10px; border-radius: 100px; }
.lvl.low { background: rgba(196,88,56,.12); color: #b8502f; }
.lvl.mid { background: rgba(255,179,0,.16); color: #b07d00; }
.lvl.high { background: rgba(40,201,63,.14); color: #1c9c33; }
.axis-bar { height: 10px; border-radius: 100px; background: var(--gray-200); overflow: hidden; }
.axis-bar i { display: block; height: 100%; border-radius: 100px; background: var(--grad-brand); width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.axis-desc { font-size: .85rem; color: var(--text-mute); margin-top: 6px; }

/* 3x3 matrix */
.matrix { position: relative; padding-left: 28px; padding-bottom: 26px; }
.matrix__grid { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); gap: 8px; }
.mcell {
  border-radius: 12px; padding: 14px 12px; min-height: 86px; border: 1.5px solid var(--line);
  background: var(--bg-alt); display: flex; flex-direction: column; justify-content: center; gap: 4px;
  transition: .3s; position: relative;
}
.mcell .mc-name { font-weight: 700; font-size: .84rem; line-height: 1.25; }
.mcell .mc-sub { font-size: .68rem; color: var(--text-mute); }
.mcell.active { background: var(--grad-brand); border-color: transparent; box-shadow: var(--shadow-blue); transform: scale(1.04); }
.mcell.active .mc-name { color: #fff; } .mcell.active .mc-sub { color: rgba(255,255,255,.8); }
.mcell.active::after { content: 'VOCÊ'; position: absolute; top: 8px; right: 8px; font-size: .56rem; font-weight: 800; letter-spacing: .08em; color: #fff; background: rgba(255,255,255,.22); padding: 2px 6px; border-radius: 6px; }
.matrix__ylabel { position: absolute; left: -4px; top: 50%; transform: rotate(-90deg) translateX(50%); transform-origin: left; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--text-mute); text-transform: uppercase; white-space: nowrap; }
.matrix__xlabel { position: absolute; bottom: 0; left: 28px; right: 0; text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--text-mute); text-transform: uppercase; }

/* Radar */
.radar-wrap { display: grid; place-items: center; }
.radar-wrap svg { width: 100%; max-width: 380px; height: auto; }

/* Strengths / opportunities */
.so-list { display: grid; gap: 12px; }
.so-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-alt); }
.so-item .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.so-item .ic svg { width: 18px; height: 18px; }
.so-item.up .ic { background: rgba(40,201,63,.14); color: #1c9c33; } .so-item.down .ic { background: rgba(196,88,56,.12); color: #b8502f; }
.so-item b { font-size: .92rem; } .so-item .pct { margin-left: auto; font-weight: 800; font-family: var(--mono); font-size: .92rem; }
.so-item.up .pct { color: #1c9c33; } .so-item.down .pct { color: #b8502f; }

/* Answers recap */
.recap { display: grid; gap: 8px; }
.recap__row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.recap__row .q { color: var(--text-soft); flex: 1; } .recap__row .a { font-weight: 700; color: var(--text); text-align: right; max-width: 58%; }
.recap__score { display: inline-block; margin-left: 8px; vertical-align: 1px; font-family: var(--mono); font-weight: 800; font-size: .72rem; color: var(--blue-600); background: rgba(0,107,255,.08); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }

/* Dashboard CTA */
.dcta { background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg); padding: 34px; text-align: center; }
.dcta h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.dcta p { color: rgba(255,255,255,.9); max-width: 50ch; margin: 0 auto 22px; }
.dcta .btn--light { background: #fff; color: var(--blue-700); }
.dcta .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   ANDERBOT CHAT  (dark, sidebar — surpasses Templo)
   ============================================================ */
.bot-shell { display: grid; grid-template-columns: 280px 1fr; height: 100vh; background: var(--slate-900); }
.bot-side { background: #0a0f1c; border-right: 1px solid rgba(255,255,255,.07); padding: 22px 18px; display: flex; flex-direction: column; gap: 18px; }
.bot-side .logo__text { color: #fff; }
.bot-side__new { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 13px; border-radius: 12px; border: 1px dashed rgba(255,255,255,.2); color: #fff; font-weight: 700; font-size: .92rem; transition: .2s; }
.bot-side__new:hover { background: rgba(255,255,255,.05); border-color: var(--blue-500); }
.bot-side__label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); font-weight: 700; }
.bot-side__session { padding: 12px 14px; border-radius: 11px; background: rgba(0,107,255,.14); color: #cfe0ff; font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 9px; }
.bot-side__session .pulse { width: 8px; height: 8px; border-radius: 50%; background: #28c93f; box-shadow: 0 0 0 3px rgba(40,201,63,.25); }
.bot-side__foot { margin-top: auto; font-size: .78rem; color: rgba(255,255,255,.4); }
.bot-side__foot a { color: var(--blue-400); }

.bot-main { display: flex; flex-direction: column; min-height: 0; position: relative; }
.bot-head { padding: 16px 26px; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 12px; }
.bot-head .av { width: 38px; height: 38px; border-radius: 11px; background: var(--grad-brand); display: grid; place-items: center; font-weight: 800; color: #fff; }
.bot-head b { color: #fff; font-size: .98rem; display: block; }
.bot-head span { color: rgba(255,255,255,.5); font-size: .8rem; }
.bot-head .badge { margin-left: auto; font-size: .72rem; font-weight: 700; color: #28c93f; display: flex; align-items: center; gap: 6px; }
.bot-head .badge::before { content:''; width:7px;height:7px;border-radius:50%;background:#28c93f; }

.bot-feed { flex: 1; overflow-y: auto; padding: 30px 26px; display: flex; flex-direction: column; gap: 18px; }
.bot-feed::-webkit-scrollbar { width: 8px; } .bot-feed::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 8px; }
.msg { display: flex; gap: 12px; max-width: 80%; animation: fadeUp .35s ease; }
.msg__av { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.msg__bubble { padding: 14px 17px; border-radius: 16px; font-size: .97rem; line-height: 1.55; }
.msg--bot { align-self: flex-start; }
.msg--bot .msg__av { background: var(--grad-brand); color: #fff; }
.msg--bot .msg__bubble { background: var(--slate-700); color: #e8eefa; border-top-left-radius: 5px; }
.msg--user { align-self: flex-end; flex-direction: row-reverse; }
.msg--user .msg__av { background: rgba(255,255,255,.1); color: #fff; }
.msg--user .msg__bubble { background: var(--blue-600); color: #fff; border-top-right-radius: 5px; }
.msg__bubble b { color: #fff; } .msg--bot .msg__bubble b { color: #fff; }
.typing { display: flex; gap: 5px; padding: 4px 2px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); animation: blink 1.2s infinite; }
.typing i:nth-child(2){ animation-delay:.2s;} .typing i:nth-child(3){animation-delay:.4s;}
@keyframes blink { 0%,60%,100%{opacity:.3;transform:translateY(0);} 30%{opacity:1;transform:translateY(-3px);} }

/* Quick replies + composer */
.bot-foot { padding: 16px 26px 22px; border-top: 1px solid rgba(255,255,255,.07); }
.quick { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 12px; }
.quick button { padding: 10px 16px; border-radius: 100px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #dfe7f5; font-size: .9rem; font-weight: 600; transition: .2s; }
.quick button:hover { background: var(--blue-600); border-color: transparent; color: #fff; transform: translateY(-1px); }
.composer { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea {
  flex: 1; resize: none; min-height: 50px; max-height: 130px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: #fff; font-family: inherit; font-size: .96rem;
}
.composer textarea:focus { outline: none; border-color: var(--blue-500); }
.composer textarea::placeholder { color: rgba(255,255,255,.4); }
.composer__send { width: 50px; height: 50px; border-radius: 14px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-blue); transition: .2s; }
.composer__send:hover { transform: translateY(-2px); } .composer__send:disabled { opacity: .4; cursor: not-allowed; transform:none;}

/* Bot result card (the "dashboard") inside chat */
.result-card { align-self: stretch; max-width: 100%; background: #fff; border-radius: 18px; padding: 0; overflow: hidden; box-shadow: var(--shadow-lg); animation: fadeUp .5s ease; }
.result-card__bar { display:flex; align-items:center; gap:10px; padding: 12px 18px; background: var(--gray-100); border-bottom: 1px solid var(--line); }
.result-card__bar .dot{width:10px;height:10px;border-radius:50%;} .rc-r{background:#ff6058;}.rc-y{background:#ffbd2e;}.rc-g{background:#28c93f;}
.result-card__bar span { font-family: var(--mono); font-size: .78rem; color: var(--text-mute); margin-left:6px; }
.result-card__body { padding: 26px; }

@media (max-width: 900px) {
  .dgrid > .dcard { grid-column: span 12 !important; }
  .dash__hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .bot-shell { grid-template-columns: 1fr; }
  .bot-side { display: none; }
  .msg { max-width: 92%; }
}
@media (max-width: 560px) {
  .qcard { padding: 26px 20px; }
  .dash__header { padding: 26px; }
  .dcard { padding: 20px; }
}

/* ============================================================
   MARKDOWN dentro do chat
   ============================================================ */
.md-list { margin: 6px 0 6px 2px; padding-left: 18px; }
.md-list li { margin: 3px 0; }
.md-h { font-weight: 800; margin: 8px 0 2px; }
.msg__bubble .md-pre, .result-card .md-pre, .lead-gate .md-pre, .dash .md-pre {
  background: #0d1320; color: #cfe0ff; border-radius: 12px; padding: 14px 16px;
  overflow: auto; font-family: var(--mono); font-size: .8rem; line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
  margin: 8px 0; max-height: 360px; max-width: 100%;
}
/* Documentação do agente: nunca estourar a margem do card */
.agent-doc-body { overflow-wrap: anywhere; }
.agent-doc-body .md-h { margin-top: 16px; }
.dash .dcard { overflow: hidden; }
.msg--bot .msg__bubble code { background: rgba(255,255,255,.12); padding: 1px 5px; border-radius: 5px; font-family: var(--mono); font-size: .85em; }
.msg__bubble div { min-height: 1px; }

/* ============================================================
   LEAD GATE (tela de captura — estilo Templo)
   ============================================================ */
.lead-gate {
  position: absolute; inset: 0; z-index: 60; display: grid; place-items: center;
  padding: 28px 20px; overflow-y: auto;
  background: var(--grad-deep);
}
.lead-gate::before { content:''; position:absolute; inset:0; background: var(--grad-glow); pointer-events:none; }
.lead-card {
  position: relative; z-index: 1; width: 100%; max-width: 920px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); backdrop-filter: blur(8px);
}
.lead-card__pitch { padding: 40px; color: #fff; }
.lead-card__pitch .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #bcd5ff; }
.lead-card__pitch h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 16px 0 12px; }
.lead-card__pitch p { color: rgba(232,238,250,.82); font-size: .98rem; }
.lead-card__pitch ul { list-style: none; margin: 20px 0 0; display: grid; gap: 11px; }
.lead-card__pitch li { display: flex; gap: 10px; align-items: flex-start; color: rgba(232,238,250,.9); font-size: .92rem; }
.lead-card__pitch li::before { content: '✓'; color: #28c93f; font-weight: 900; }
.lead-card__form { background: #fff; padding: 34px; }
.lead-card__form h2 { font-size: 1.25rem; margin-bottom: 4px; }
.lead-card__form .sub { color: var(--text-mute); font-size: .88rem; margin-bottom: 20px; }
.lead-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--text-soft); margin: 6px 0 18px; }
.lead-consent input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--blue-600); }
.lead-err { color: #c05838; font-size: .82rem; margin-top: -8px; margin-bottom: 12px; display: none; }
.lead-gate__back { position: absolute; top: 16px; left: 18px; z-index: 2; color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 600; }
.lead-gate__back:hover { color: #fff; }

/* ============================================================
   Documento gerado pelo agente (CtrlBot) + copiar
   ============================================================ */
.agent-doc { align-self: stretch; max-width: 100%; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 100px;
  background: var(--grad-brand); color: #fff; font-weight: 700; font-size: .86rem; box-shadow: var(--shadow-blue);
  transition: transform .2s; margin: 10px 0; border: none; cursor: pointer;
}
.copy-btn:hover { transform: translateY(-2px); }
.copy-btn.ok { background: #1c9c33; box-shadow: none; }

/* ============================================================
   Caixa de dúvidas no dashboard do Assessment
   ============================================================ */
.followup { margin-top: 8px; }
.followup__feed { display: grid; gap: 12px; margin-bottom: 14px; }
.followup .msg { max-width: 100%; }
.followup__composer { display: flex; gap: 10px; align-items: flex-end; }
.followup__composer textarea {
  flex: 1; resize: none; min-height: 48px; max-height: 120px; padding: 13px 15px; border-radius: 12px;
  border: 1.5px solid var(--line); font-family: inherit; font-size: .95rem; color: var(--text); background: #fff;
}
.followup__composer textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(0,107,255,.12); }
.followup__composer button { width: 48px; height: 48px; border-radius: 12px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-blue); }
.followup .msg__bubble { background: var(--bg-alt); color: var(--text); }
.followup .msg--user .msg__bubble { background: var(--blue-600); color: #fff; }
.followup .msg--bot .msg__av { background: var(--grad-brand); color:#fff; }
.followup .msg--user .msg__av { background: var(--gray-200); color: var(--text); }
.followup .typing i, #aiNarrative .typing i { background: var(--blue-400); }

/* Chat conversacional do Diagnóstico */
.achat__head { margin-bottom: 14px; }
.achat__hint { color: var(--text-mute); font-size: .85rem; margin-top: 6px; }
.achat__feed { min-height: 320px; max-height: 56vh; overflow-y: auto; padding-right: 4px; }
.achat .msg { max-width: 88%; }
.achat .followup__composer { margin-top: 4px; }

@media (max-width: 760px) {
  .lead-card { grid-template-columns: 1fr; max-width: 460px; }
  .lead-card__pitch { padding: 30px 26px 10px; }
  .lead-card__pitch ul { display: none; }
  .lead-card__form { padding: 26px; }
}

/* ============================================================
   Curva de adoção (Rogers) no dashboard
   ============================================================ */
.bell-wrap { margin: 6px 0 4px; }
.bell-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0 6px; }
.bl-item { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--text-soft); }
.bl-item i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.bl-item.active { color: var(--text); font-weight: 800; }
.adopter-blurb { color: var(--text-soft); font-size: .95rem; line-height: 1.65; margin: 8px 0 4px; }
.dcard .src { font-size: .72rem; color: var(--text-mute); opacity: .85; margin-top: 10px; }

/* ============================================================
   Card de recomendação de produto
   ============================================================ */
.rec-card {
  background: linear-gradient(135deg, rgba(0,107,255,.06), rgba(0,107,255,.02));
  border: 1.5px solid rgba(0,107,255,.28); text-align: center;
}
.rec-tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-700); background: rgba(0,107,255,.12); padding: 5px 12px; border-radius: 100px; margin-bottom: 12px;
}
.rec-card h3 { font-size: 1.35rem; margin-bottom: 8px; color: var(--text); }
.rec-card p { color: var(--text-soft); max-width: 60ch; margin: 0 auto 20px; line-height: 1.65; }
.rec-card .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rec-card .btn--light { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-blue); }
.rec-card .btn--ghost { border: 1.5px solid rgba(0,107,255,.35); color: var(--blue-700); }

/* ============================================================
   Compartilhar link (dashboard)
   ============================================================ */
.share-out { margin-top: 18px; }
.share-row { display: flex; gap: 8px; align-items: center; max-width: 560px; margin: 0 auto; }
.share-row input {
  flex: 1; padding: 11px 14px; border-radius: 10px; border: none; font-family: var(--mono); font-size: .82rem;
  background: rgba(255,255,255,.92); color: var(--text); min-width: 0;
}
.dcta .share-row .btn--light { background: #fff; color: var(--blue-700); }
.share-note { font-size: .78rem; color: rgba(255,255,255,.85); margin-top: 10px; }
.share-fail { color: #fff; font-size: .9rem; }
.agent-doc .share-row input { background: rgba(255,255,255,.08); color: #eaf0fb; }

/* Página de resultado compartilhado (r.html) */
.agent-emblem { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; font-size: 38px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); flex-shrink: 0; }
.share-empty { max-width: 560px; margin: 60px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 48px 32px; }
.share-empty h1 { font-size: 1.5rem; margin: 18px 0 10px; }
.share-empty p { color: var(--text-soft); margin-bottom: 26px; }
.share-loading { max-width: 460px; margin: 80px auto; text-align: center; color: var(--text-soft); display: flex; gap: 10px; align-items: center; justify-content: center; }

/* Utilitários do dashboard (substituem estilos inline — CSP sem 'unsafe-inline') */
.quick-chip { padding: 10px 16px; border-radius: 100px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #dfe7f5; font-size: .9rem; font-weight: 600; }
.bell-svg { width: 100%; height: auto; }
.so-list--mb { margin-bottom: 18px; }
.bl-item i.bl-c0 { background: #006bff; }
.bl-item i.bl-c1 { background: #2f86ff; }
.bl-item i.bl-c2 { background: #5aa0ff; }
.bl-item i.bl-c3 { background: #9bbcf0; }
.bl-item i.bl-c4 { background: #c4cede; }

/* Print */
@media print {
  .toolbar, .dcta, .bot-foot, .quick, .followup, .no-share, .rec-card .acts { display: none !important; }
  body { background: #fff; }
  .dcard, .dash__header { box-shadow: none; break-inside: avoid; }
}
