/* ══════════════════════════════════════════════════════════════
   Neurogram Diagnóstico V2 — FSM-inspired Design
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Fundo Neural Grey — Neurogram */
  --bg:            #E3E7DE;
  --bg-card:       #D8DDD3;

  /* Sidebar escura — Almost Black Neurogram */
  --sidebar-bg:    #21241C;
  --sidebar-card:  #2C3028;
  --sidebar-text:  #FFFFFF;
  --sidebar-muted: #BDC2B7;
  --sidebar-border:#3A3E35;

  /* Acento principal — Vibrant Green Neurogram */
  --accent:        #A2C96E;
  --accent-light:  #EEF6E0;
  --accent-dark:   #7DAE4A;

  /* Pilares */
  --p-seguranca:          #A2C96E;
  --p-processos:          #10B981;
  --p-interoperabilidade: #8B5CF6;
  --p-inteligencia:       #F59E0B;

  /* Texto */
  --text:          #1A1A1A;
  --text-muted:    #6B7280;
  --text-light:    #9CA3AF;

  /* UI */
  --border:        #D9D2C8;
  --surface:       #FFFFFF;
  --radius:        14px;
  --radius-sm:     10px;

  /* Scores */
  --score-high:    #10B981;
  --score-mid-h:   #A2C96E;
  --score-mid-l:   #F59E0B;
  --score-low:     #EF4444;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ── Screens ──────────────────────────────────────────────── */
.screen { display: none; min-height: 100vh; }
.screen.active { display: flex; flex-direction: column; }
#screen-results.active { display: block; }

/* ══════════════════════════════════════════════════════════════
   WELCOME — FSM style
   ══════════════════════════════════════════════════════════════ */
#screen-welcome {
  flex-direction: row;
  align-items: stretch;
  background: #E3E7DE;
  min-height: 100vh;
}

/* ── Esquerda: card branco + doc escuro ─────────────────── */
.welcome-left {
  flex: 0 0 52%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: #D8DDD3;
}

/* Outer: card branco arredondado (like FSM tablet card) */
.welcome-card-outer {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 24px;
  padding: 6px;
  box-shadow: 0 40px 100px rgba(0,0,0,.18), 0 8px 20px rgba(0,0,0,.08);
  overflow: hidden;
  max-height: 680px;
}

/* Inner: resultado escuro com scroll */
.welcome-card-inner {
  border-radius: 20px;
  overflow-y: auto;
  max-height: 668px;
  scrollbar-width: none;
}
.welcome-card-inner::-webkit-scrollbar { display: none; }

/* Doc escuro dentro do card */
.wp-doc {
  background: var(--sidebar-bg);
  padding: 20px;
}

.wp-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.wp-doc-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.wp-doc-dash {
  width: 14px;
  height: 2px;
  background: var(--accent);
  display: block;
}

.wp-doc-date {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,.3);
}

.wp-doc-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -.3px;
  line-height: 1.3;
}

/* Perfil + persona */
.wp-doc-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.wp-doc-profile { display: flex; flex-direction: column; gap: 3px; }

.wp-prow { display: flex; align-items: center; gap: 8px; }
.wp-plabel {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  width: 56px;
  flex-shrink: 0;
}
.wp-pval {
  font-size: 9px;
  font-weight: 600;
  color: #fff;
}

.wp-doc-persona {
  background: var(--accent);
  border-radius: 10px;
  padding: 10px;
}

.wp-persona-lbl {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0,0,0,.4);
  margin-bottom: 6px;
}

.wp-persona-icon {
  font-size: 14px;
  margin-bottom: 4px;
}

.wp-persona-name {
  font-size: 9px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  font-style: italic;
  margin-bottom: 4px;
  line-height: 1.3;
}

.wp-persona-desc {
  font-size: 8px;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
  font-style: italic;
}

/* Section labels */
.wp-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  margin-top: 4px;
}

.wp-snum {
  font-size: 9px;
  font-weight: 800;
  color: var(--accent);
  font-style: italic;
}

.wp-section-label > :nth-child(2) {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.3px;
}

.wp-ssub {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .8px;
  color: rgba(255,255,255,.2);
  margin-left: auto;
}

/* Skills mini */
.wp-skills {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  margin-bottom: 16px;
  background: var(--sidebar-card);
  border-radius: 10px;
  padding: 12px;
}

.wp-radar-mini {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wp-bars { display: flex; flex-direction: column; gap: 7px; justify-content: center; }

.wp-bar-row {
  display: grid;
  grid-template-columns: 50px 1fr 20px;
  align-items: center;
  gap: 6px;
}

.wp-bar-name {
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .3px;
}

.wp-bar-track {
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  overflow: hidden;
}

.wp-bar-fill { height: 100%; border-radius: 99px; }

.wp-bar-val {
  font-size: 9px;
  font-weight: 800;
  text-align: right;
}

/* Badges mini */
.wp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.wp-badge {
  background: var(--sidebar-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,.2);
}

.wp-badge-on {
  border-color: rgba(162,201,110,.4);
  color: var(--accent);
  background: rgba(162,201,110,.08);
}

/* SWOT mini */
.wp-swot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wp-swot-box {
  background: var(--sidebar-card);
  border-radius: 8px;
  padding: 10px;
  border-top: 2px solid;
}

.wp-swot-forcas   { border-color: #10B981; }
.wp-swot-fraquezas{ border-color: #EF4444; }
.wp-swot-opor     { border-color: #A2C96E; }
.wp-swot-alertas  { border-color: #F59E0B; }

.wp-swot-title {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 5px;
}

.wp-swot-line {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin-bottom: 5px;
}

.wp-swot-item {
  font-size: 7.5px;
  color: rgba(255,255,255,.4);
  line-height: 1.5;
  margin-bottom: 2px;
}

/* ── Direita: copy FSM style ────────────────────────────── */
.welcome-right {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 60px 64px;
}

.welcome-copy { max-width: 420px; }

.wc-eyebrow {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: .2px;
}

.welcome-copy h1 {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 900;
  color: #111;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.welcome-copy p {
  font-size: 16px;
  color: #6B7280;
  line-height: 1.7;
  margin-bottom: 28px;
}

.welcome-copy p strong { color: #111; font-weight: 700; }

.wc-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  font-size: 14px;
  color: #9CA3AF;
}

.wc-check { display: flex; align-items: center; gap: 5px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #21241C;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -.3px;
  transition: opacity .2s, transform .1s;
  margin-bottom: 16px;
  display: block;
}

.btn-primary:hover { opacity: .85; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.wc-privacy {
  font-size: 12px;
  color: #9CA3AF;
  line-height: 1.5;
  max-width: 360px;
}

/* ══════════════════════════════════════════════════════════════
   ASSESSMENT — layout FSM: chat | sidebar escura
   ══════════════════════════════════════════════════════════════ */
#screen-assessment { background: var(--bg); }

/* Progress bar fininha no topo */
.top-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 3px;
  background: rgba(0,0,0,.08);
}

.top-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width .4s ease;
  width: 0%;
}

.assessment-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: 100vh;
}

/* ── Chat panel ───────────────────────────────────────────── */
.chat-panel {
  padding: 48px 80px 120px;
  overflow-y: auto;
  max-height: 100vh;
  position: sticky;
  top: 0;
}

.chat-inner {
  max-width: 560px;
  margin: 0 auto;
}

/* Mensagens */
.msg { margin-bottom: 12px; animation: fadeUp .25s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Bolha do bot — branca, sem borda */
.msg-bot {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sidebar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.msg-bubble {
  background: var(--surface);
  border-radius: 4px 18px 18px 18px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  max-width: 460px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 2px 12px rgba(0,0,0,.04);
}

/* Bolha do usuário — sutil, levemente mais escura que o fundo */
.msg-user {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 0;
}

.msg-bubble-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 420px;
}

.msg-user .msg-bubble {
  background: #CDD3C7;
  border-radius: 18px 4px 18px 18px;
  color: #2A2F24;
  font-weight: 500;
  box-shadow: none;
  max-width: 100%;
}

/* Pill de pontos — igual ao FSM "+5 Growth" */
.answer-points {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  background: #EEF6E0;
  border: 1.5px solid #A2C96E;
  color: #3D6B1C;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.2px;
  animation: fadeUp .25s ease;
}

/* Mensagem de seção — dark pill */
.msg-section .msg-bubble {
  background: var(--sidebar-bg);
  color: #fff;
  border-radius: 4px 18px 18px 18px;
  padding: 16px 20px;
  max-width: 480px;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(162,201,110,.2);
  border: 1px solid rgba(162,201,110,.25);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -.2px;
}

.section-desc {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}

/* Pergunta — texto solto, peso médio, igual ao FSM */
.question-text {
  font-size: 16px;
  font-weight: 500;
  color: #444;
  margin: 18px 0 12px;
  line-height: 1.5;
  letter-spacing: -.1px;
}

/* Opções */
.options-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeUp .2s ease .05s both;
}

.option-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s, transform .1s, box-shadow .15s;
  font-family: inherit;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.option-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(162,201,110,.15);
}

.option-btn:active { transform: translateX(1px); }

/* Input de texto */
.text-input-wrap {
  display: flex;
  gap: 8px;
  animation: fadeUp .2s ease .05s both;
}

.text-input {
  flex: 1;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.text-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(162,201,110,.12);
}

.btn-continuar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,.08);
  color: #444;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.btn-continuar:hover { background: rgba(0,0,0,.14); color: #111; }

/* Dropdown */
.dropdown-wrap { animation: fadeUp .2s ease .05s both; }

.dropdown-select {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 40px 13px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.dropdown-select:focus { border-color: var(--accent); }

/* ── Sidebar escura ───────────────────────────────────────── */
.sidebar-panel {
  background: var(--sidebar-bg);
  overflow-y: auto;
  max-height: 100vh;
  position: sticky;
  top: 0;
}

.sidebar-inner {
  padding: 32px 24px;
}

/* Header da sidebar */
.sb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.sb-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-label::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--accent);
  display: block;
}

.sb-date {
  font-size: 11px;
  color: var(--sidebar-muted);
  font-weight: 500;
}

.sb-title {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -.3px;
}

/* Campos de perfil */
.sb-profile { margin-bottom: 20px; }

.sb-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  transition: background .2s;
}

.sb-profile-row.filled {
  background: rgba(162,201,110,.12);
  border: 1px solid rgba(162,201,110,.2);
}

.sb-profile-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sidebar-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.sb-profile-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--sidebar-muted);
  width: 72px;
  flex-shrink: 0;
}

.sb-profile-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--sidebar-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-profile-row.filled .sb-profile-value {
  color: #fff;
}

/* Persona placeholder — igual ao FSM */
.sb-persona {
  background: var(--accent);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  transition: background .4s ease;
  min-height: 120px;
}

.sb-persona.unknown {
  background: ##2C3028;
  border: none;
}

.sb-persona-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 12px;
}

.sb-persona-icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sb-persona-icon {
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.sb-persona-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.2px;
  line-height: 1.2;
}

.sb-persona-hint {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
  font-style: italic;
}

/* Divisor — igual ao FSM "01 Skills · 4 FUNÇÕES" */
.sb-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  margin-top: 4px;
}

.sb-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.sb-section-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  font-style: italic;
}

.sb-section-name {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.3px;
}

.sb-section-sub-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  margin-left: auto;
}

/* Radar na sidebar */
.sb-radar {
  background: var(--sidebar-card);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-radar canvas { width: 100% !important; height: 100% !important; }

/* Pillar scores na sidebar */
.sb-scores { display: flex; flex-direction: column; gap: 10px; }

.sb-score-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 8px;
}

.sb-score-icon { font-size: 13px; }

.sb-score-inner { }

.sb-score-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--sidebar-muted);
  margin-bottom: 4px;
}

.sb-score-track {
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  overflow: hidden;
}

.sb-score-bar {
  height: 100%;
  border-radius: 99px;
  width: 0%;
  transition: width .5s ease;
}

.sb-score-val {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  min-width: 24px;
  text-align: right;
}

/* Live badges na sidebar */
.sb-badges { margin-top: 16px; }

.sb-badges-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--sidebar-muted);
  margin-bottom: 8px;
}

.sb-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-pill {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  animation: badgePop .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes badgePop {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}

.badge-pill.new {
  background: rgba(162,201,110,.2);
  border-color: rgba(162,201,110,.4);
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   RESULTS — dark full-page (FSM style)
   ══════════════════════════════════════════════════════════════ */

#screen-results {
  background: var(--sidebar-bg);
  min-height: 100vh;
}

/* Header */
.rh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(33,36,28,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rh-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.rh-actions { display: flex; align-items: center; gap: 10px; }

.rh-btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, color .15s;
}
.rh-btn-outline:hover { border-color: rgba(255,255,255,.4); color: #fff; }

.rh-btn-cta {
  background: var(--accent);
  border: none;
  border-radius: 999px;
  color: #fff;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.rh-btn-cta:hover { background: var(--accent-dark); }

/* Documento de resultado */
.result-doc {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 40px 100px;
}

/* ── TOPO: perfil + persona ─────────────────────────────── */
.rd-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
  align-items: start;
}

.rd-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.rd-dash {
  width: 20px;
  height: 2px;
  background: var(--accent);
  display: block;
  flex-shrink: 0;
}

.rd-eyebrow-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.rd-eyebrow-date {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  margin-left: auto;
}

.rd-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -.3px;
  line-height: 1.3;
}

/* Campos de perfil */
.rd-profile { display: flex; flex-direction: column; gap: 4px; }

.rdp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
}

.rdp-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.rdp-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  width: 72px;
  flex-shrink: 0;
}

.rdp-value {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* Persona card — cyan bold */
.rd-persona-card {
  background: var(--accent);
  border-radius: 16px;
  padding: 24px;
}

.rdpc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0,0,0,.4);
  margin-bottom: 14px;
}

.rdpc-icon-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.rdpc-icon {
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.rdpc-name {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.3px;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 14px;
}

.rdpc-text {
  font-size: 14px;
  color: rgba(0,0,0,.65);
  line-height: 1.7;
}

/* ── SEÇÕES ──────────────────────────────────────────────── */
.rd-section { margin-bottom: 48px; }

.rd-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.rd-section-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  font-style: italic;
}

.rd-section-title {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
}

.rd-section-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  margin-left: auto;
}

/* ── SKILLS ──────────────────────────────────────────────── */
.rd-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* Radar card — altura fixa igual à soma dos 4 pillar cards */
.rd-radar-card {
  background: var(--sidebar-card);
  border-radius: 16px;
  padding: 24px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-radar-card canvas {
  width: 100% !important;
  height: 100% !important;
  max-height: 420px;
}

/* Pillar cards — compactos para caber os 4 em 480px */
.rd-pillars { display: flex; flex-direction: column; gap: 8px; }

.rdp-card {
  background: var(--sidebar-card);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.rdpc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.rdpc-pillar-icon {
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.rdpc-pillar-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.rdpc-bar-wrap {
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 7px;
}

.rdpc-bar { height: 100%; border-radius: 99px; }

.rdpc-desc {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rdpc-score-big {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  flex-shrink: 0;
}

/* ── BADGES ──────────────────────────────────────────────── */
.rd-badges-counter {
  display: inline-flex;
  align-items: center;
  background: rgba(162,201,110,.15);
  border: 1px solid rgba(162,201,110,.3);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.rd-badges-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.rdb-card {
  background: var(--sidebar-card);
  border: 1.5px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: border-color .2s;
}

.rdb-card.unlocked {
  border-color: rgba(162,201,110,.5);
  background: rgba(162,201,110,.07);
}

.rdb-icon {
  font-size: 20px;
  filter: grayscale(1) opacity(.3);
  transition: filter .2s;
}

.rdb-card.unlocked .rdb-icon { filter: none; }

.rdb-name {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.25);
  line-height: 1.3;
  transition: color .2s;
}

.rdb-card.unlocked .rdb-name { color: rgba(255,255,255,.8); }

/* ── SWOT ────────────────────────────────────────────────── */
.rd-swot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rds-box {
  background: var(--sidebar-card);
  border-radius: 16px;
  padding: 24px;
}

.rds-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.rds-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.rds-forcas .rds-circle        { background: rgba(16,185,129,.2); }
.rds-fraquezas .rds-circle     { background: rgba(239,68,68,.2); }
.rds-oportunidades .rds-circle { background: rgba(162,201,110,.2); }
.rds-alertas .rds-circle       { background: rgba(245,158,11,.2); }

.rds-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.rds-forcas .rds-title        { color: #10B981; }
.rds-fraquezas .rds-title     { color: #EF4444; }
.rds-oportunidades .rds-title { color: #A2C96E; }
.rds-alertas .rds-title       { color: #F59E0B; }

.rds-divider {
  height: 1px;
  margin-bottom: 14px;
}

.rds-forcas .rds-divider        { background: rgba(16,185,129,.3); }
.rds-fraquezas .rds-divider     { background: rgba(239,68,68,.3); }
.rds-oportunidades .rds-divider { background: rgba(162,201,110,.3); }
.rds-alertas .rds-divider       { background: rgba(245,158,11,.3); }

.rds-items { display: flex; flex-direction: column; gap: 10px; }

.rds-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  line-height: 1.55;
}

.rds-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

.rds-forcas .rds-dot        { background: #10B981; }
.rds-fraquezas .rds-dot     { background: #EF4444; }
.rds-oportunidades .rds-dot { background: #A2C96E; }
.rds-alertas .rds-dot       { background: #F59E0B; }

.rds-empty {
  font-size: 12px;
  color: rgba(255,255,255,.2);
  font-style: italic;
}

/* ── WHATSAPP GATE ──────────────────────────────────────── */
.rd-whatsapp-gate {
  background: var(--sidebar-card);
  border: 1px solid rgba(162,201,110,.2);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 24px;
}

.wg-left { flex: 1; }

.wg-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -.2px;
}

.wg-desc {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  line-height: 1.6;
}

.wg-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.wg-form {
  display: flex;
  gap: 8px;
}

.wg-form input {
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-family: inherit;
  color: #fff;
  outline: none;
  transition: border-color .15s;
  width: 200px;
}
.wg-form input::placeholder { color: rgba(255,255,255,.3); }
.wg-form input:focus { border-color: #25D366; }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s;
}
.btn-whatsapp:hover { background: #1EB956; }

.btn-skip {
  background: none;
  border: none;
  color: rgba(255,255,255,.25);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  transition: color .15s;
}
.btn-skip:hover { color: rgba(255,255,255,.5); }

.wg-confirm {
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.3);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #10B981;
  font-weight: 600;
  margin-top: 16px;
}

/* ── Badge toast — canto SUPERIOR direito (estilo FSM) ───── */
.badge-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #21241C;
  border-radius: 14px;
  padding: 14px 18px 14px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  transform: translateY(-120%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
  pointer-events: none;
  max-width: 300px;
}

.badge-toast.bt-visible {
  transform: translateY(0);
  opacity: 1;
}

.badge-toast.bt-out {
  transform: translateY(-120%);
  opacity: 0;
  transition: transform .3s ease, opacity .25s ease;
}

.bt-icon { font-size: 28px; flex-shrink: 0; }

.bt-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

@keyframes toastIn {
  from { opacity:0; transform: translateX(-50%) translateY(16px); }
  to   { opacity:1; transform: translateX(-50%) translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
/* ── Tablet ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  /* Welcome */
  #screen-welcome { flex-direction: column; }
  .welcome-left { flex: none; padding: 32px 24px; max-height: 400px; }
  .welcome-right { padding: 40px 32px; }
  .welcome-copy h1 { font-size: 36px; }

  /* Resultado */
  .result-doc { padding: 32px 20px 80px; }
  .rd-top { grid-template-columns: 1fr; }
  .rd-skills-grid { grid-template-columns: 1fr; }
  .rd-radar-card { height: 320px; }
  .rd-badges-grid { grid-template-columns: repeat(4, 1fr); }
  .rd-swot { grid-template-columns: 1fr; }
  .rd-whatsapp-gate { flex-direction: column; gap: 20px; }
  .wg-right { align-items: stretch; width: 100%; }
  .wg-form input { width: 100%; }
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Welcome ── */
  #screen-welcome { flex-direction: column; min-height: 100vh; }

  .welcome-right { order: 1; }

  .welcome-left {
    order: 2;
    flex: none;
    padding: 24px 20px;
    max-height: 260px;
    background: var(--sidebar-bg);
  }

  .welcome-card-outer {
    max-width: 100%;
    max-height: 220px;
    border-radius: 16px;
  }

  .welcome-card-inner { max-height: 208px; }

  .welcome-right {
    flex: 1;
    padding: 32px 24px 48px;
    background: var(--bg);
  }

  .welcome-copy h1 { font-size: 28px; letter-spacing: -1px; margin-bottom: 14px; }
  .welcome-copy p  { font-size: 15px; margin-bottom: 20px; }
  .wc-logo         { height: 24px; margin-bottom: 16px; }
  .wc-stats        { gap: 14px; margin-bottom: 24px; font-size: 13px; }
  .btn-primary     { width: 100%; justify-content: center; padding: 15px 24px; font-size: 15px; }
  .wc-privacy      { font-size: 11px; }

  /* ── Assessment — ESCONDE sidebar no mobile ── */
  .assessment-layout {
    grid-template-columns: 1fr;
    height: calc(100vh - 57px);
    overflow: hidden;
  }

  .sidebar-panel { display: none !important; }

  .chat-panel {
    padding: 24px 20px 120px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
  }

  .chat-inner {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
  }

  /* Bolhas — nunca ultrapassam a tela */
  .msg-bubble {
    font-size: 14px;
    padding: 12px 16px;
    max-width: 88%;
    word-break: break-word;
  }

  .msg-bubble-wrap { max-width: 88%; }

  /* Opções de resposta — full width, bem espaçadas */
  .options-wrap { gap: 10px; width: 100%; }

  .option-btn {
    font-size: 14px;
    padding: 14px 16px;
    width: 100%;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
  }

  /* Input de texto */
  .text-input-wrap { flex-direction: row; width: 100%; }
  .text-input { font-size: 15px; padding: 13px 14px; min-width: 0; }

  /* Dropdown */
  .dropdown-select { font-size: 15px; width: 100%; }

  /* Pergunta */
  .question-text { font-size: 15px; margin: 16px 0 10px; word-break: break-word; }

  /* Progress bar */
  .assessment-header { padding: 10px 16px; gap: 12px; }
  .header-logo span  { display: none; }
  .header-logo img   { height: 20px; }

  /* Badge toast — no mobile fica no topo mas menor */
  .badge-toast {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
    border-radius: 12px;
    padding: 12px 14px;
  }

  .bt-title { font-size: 12px; }
  .bt-icon  { font-size: 22px; }

  /* Pill de pontos */
  .answer-points { font-size: 11px; padding: 2px 9px; }

  /* ── Resultados ── */
  .rh-header  { padding: 12px 16px; }
  .rh-btn-outline { display: none; }
  .rh-btn-cta { font-size: 12px; padding: 8px 14px; }
  .rh-logo-img { height: 22px; }

  .result-doc { padding: 24px 16px 60px; }

  .rd-top { grid-template-columns: 1fr; gap: 16px; }
  .rd-title { font-size: 18px; }

  .rd-skills-grid { grid-template-columns: 1fr; }
  .rd-radar-card  { height: 280px; padding: 16px; }

  .rd-section-title { font-size: 20px; }
  .rd-badges-grid   { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .rdb-card         { padding: 10px 8px; }
  .rdb-icon         { font-size: 18px; }
  .rdb-name         { font-size: 9px; }

  .rd-swot          { grid-template-columns: 1fr; }
  .rds-box          { padding: 18px; }

  .rd-whatsapp-gate { flex-direction: column; gap: 16px; padding: 20px; }
  .wg-form          { flex-direction: column; }
  .wg-form input    { width: 100%; }
  .btn-whatsapp     { width: 100%; text-align: center; padding: 14px; }
}

/* ══════════════════════════════════════════════════════════════
   LOGOS & ÍCONES — Neurogram brand
   ══════════════════════════════════════════════════════════════ */

/* Logo na welcome (fundo claro — logo preta original) */
.wc-logo {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 24px;
}

/* Logo no header de resultados (fundo escuro — inverte para branco) */
.rh-logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Ícone na sidebar (fundo escuro — branco) */
.sb-icon {
  height: 16px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .8;
}

/* Ícone no avatar do chat (fundo escuro — branco) */
.avatar-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Avatar do chat — ajusta tamanho para o ícone */
.msg-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}
