.rf-invest-root{--bg:#081a16;--card:#102922;--line:#28453a;--muted:#a9bdb4;--green:#b5ed76;--white:#f2f7f3;color:#f2f7f3;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}
.rf-invest-root *{box-sizing:border-box}
.rf-invest-root .inv-pane{display:none}.rf-invest-root .inv-pane.inv-active{display:block}
.rf-invest-root .inv-goal-inline[hidden]{display:none!important}
.rf-invest-root *{box-sizing:border-box}
.rf-invest-root{margin:0;background:var(--bg);color:var(--white)}
.rf-invest-root .wrap{max-width:900px;margin:auto;padding:22px 16px 100px}
.rf-invest-root header{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.rf-invest-root .logo{width:40px;height:40px;border-radius:13px;background:#b5ed76;color:#103221;display:grid;place-items:center;font-size:23px;font-weight:900}
.rf-invest-root .brand{font-weight:800;font-size:16px}
.rf-invest-root .sub{color:var(--muted);font-size:12px;margin-top:3px}
.rf-invest-root h1{font-size:26px;letter-spacing:-.7px;margin:0 0 6px}
.rf-invest-root p{line-height:1.55}
.rf-invest-root .inv-lead{color:var(--muted);margin:0 0 20px;font-size:14px}
.rf-invest-root .inv-tabs{display:grid;grid-template-columns:repeat(3,1fr);background:#0d241e;padding:5px;border:1px solid var(--line);border-radius:15px;gap:4px;margin-bottom:18px}
.rf-invest-root .inv-tabs button{border:0;background:none;color:var(--muted);border-radius:10px;padding:12px 4px;font-size:13px;font-weight:700;cursor:pointer}
.rf-invest-root .inv-tabs button.inv-active{background:#284b38;color:#d9ffb7}
.rf-invest-root .inv-pane{display:none}
.rf-invest-root .inv-pane.inv-active{display:block}
.rf-invest-root .inv-card{border:1px solid var(--line);background:var(--card);border-radius:18px;padding:19px;margin-bottom:13px}
.rf-invest-root .inv-card h2{font-size:17px;margin:0 0 6px}
.rf-invest-root .inv-hint{font-size:12px;color:var(--muted);line-height:1.5;margin:0 0 14px}
.rf-invest-root .inv-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.rf-invest-root .inv-full{grid-column:1/-1}
.rf-invest-root label{display:block;font-size:12px;color:#cbdad0;margin-bottom:7px;font-weight:650}
.rf-invest-root input,.rf-invest-root select{display:block;width:100%;height:45px;border:1px solid #3a594b;background:#0b201a;color:white;border-radius:10px;padding:0 12px;font:inherit;min-width:0}
.rf-invest-root input:focus,.rf-invest-root select:focus{outline:2px solid #9de56d;outline-offset:1px}
.rf-invest-root .inv-pill{display:inline-flex;align-items:center;gap:5px;border:1px solid #4e744c;border-radius:999px;padding:5px 9px;color:#c9f6b1;font-size:11px;margin-bottom:10px}
.rf-invest-root .inv-big{font-size:32px;letter-spacing:-1px;font-weight:800;color:var(--green);margin:5px 0}
.rf-invest-root .inv-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:13px}
.rf-invest-root .inv-metric{background:#0b201a;border:1px solid #24483a;border-radius:12px;padding:12px;min-width:0}
.rf-invest-root .inv-metric small{display:block;color:var(--muted);font-size:11px;margin-bottom:6px}
.rf-invest-root .inv-metric strong{font-size:17px;word-break:break-word}
.rf-invest-root .inv-seg{display:flex;gap:5px;background:#0b201a;padding:4px;border-radius:10px;margin:12px 0}
.rf-invest-root .inv-seg button{flex:1;border:0;border-radius:8px;background:transparent;color:var(--muted);padding:9px 4px;font-size:12px;font-weight:700;cursor:pointer}
.rf-invest-root .inv-seg button.inv-active{background:#355844;color:white}
.rf-invest-root .inv-note{border-left:3px solid #b5ed76;padding:9px 12px;background:#1b3429;border-radius:0 8px 8px 0;color:#d7e7dc;font-size:12px;line-height:1.55;margin-top:13px}
.rf-invest-root .inv-options{display:grid;gap:9px}
.rf-invest-root .inv-option{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;background:#0c211b;border:1px solid #305042;border-radius:12px;color:white;padding:14px;cursor:pointer;gap:10px}
.rf-invest-root .inv-option strong{display:block;font-size:14px}
.rf-invest-root .inv-option span{font-size:12px;color:var(--muted);display:block;margin-top:4px}
.rf-invest-root .inv-option.inv-selected{border-color:var(--green);background:#1b3928}
.rf-invest-root .inv-details{margin-top:12px;background:#0c211b;border:1px solid var(--line);border-radius:12px;padding:16px}
.rf-invest-root .inv-details h3{font-size:16px;margin:0 0 8px}
.rf-invest-root .inv-details p{font-size:13px;color:#d1dfd6;margin:8px 0}
.rf-invest-root .inv-lesson{border:1px solid var(--line);border-radius:12px;background:#0c211b;margin-bottom:9px;overflow:hidden}
.rf-invest-root .inv-lesson summary{cursor:pointer;list-style:none;padding:15px;display:flex;gap:12px;align-items:center}
.rf-invest-root .inv-lesson summary::-webkit-details-marker{display:none}
.rf-invest-root .inv-lesson summary b{display:block;font-size:14px}
.rf-invest-root .inv-lesson summary small{display:block;font-size:12px;color:var(--muted);margin-top:5px}
.rf-invest-root .inv-lesson summary .inv-num{width:32px;height:32px;border-radius:9px;background:#254632;color:#d9f7b5;display:grid;place-items:center;font-size:13px;flex-shrink:0}
.rf-invest-root .inv-lesson summary .inv-arrow{margin-left:auto;color:var(--green)}
.rf-invest-root .inv-lesson-body{border-top:1px solid var(--line);padding:16px;font-size:14px;line-height:1.7;color:#dbe6de}
.rf-invest-root .inv-lesson-body h3{color:var(--green);font-size:15px;margin:18px 0 5px}
.rf-invest-root .inv-lesson-body p{margin:8px 0}
.rf-invest-root .inv-lesson-body ul{padding-left:20px}
.rf-invest-root .fine{font-size:11px;color:#9fb3a8;line-height:1.55}
.rf-invest-root .inv-footer{text-align:center;margin-top:24px;font-size:11px;color:var(--muted)}
@media (min-width:700px){.rf-invest-root .inv-two{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
.rf-invest-root .inv-two>.inv-card{height:100%}
.rf-invest-root .wrap{padding-top:32px}}
@media (max-width:390px){.rf-invest-root .wrap{padding-left:12px;padding-right:12px}
.rf-invest-root .inv-card{padding:15px}
.rf-invest-root .inv-big{font-size:27px}
.rf-invest-root .inv-metric strong{font-size:15px}}
.rf-invest-root .inv-goal-item{min-width:0}
.rf-invest-root .inv-goal-inline{margin:7px 0 2px;padding:15px}
.rf-invest-root .inv-goal-inline[hidden]{display:none!important}
.rf-invest-root .inv-option[aria-expanded="true"]{border-color:var(--green);background:#1b3928}
.rf-invest-root .inv-option .inv-chevron{font-size:20px;line-height:1;transition:transform .2s}
.rf-invest-root .inv-option[aria-expanded="true"] .inv-chevron{transform:rotate(90deg)}
.rf-invest-root .inv-lesson-body h3{line-height:1.4}
@media (max-width:699px){.rf-invest-root .inv-goal-inline{padding:13px}
.rf-invest-root .inv-goal-inline p{line-height:1.65}}
.rf-invest-root .inv-tabs button,.rf-invest-root .inv-seg button,.rf-invest-root .inv-option{width:auto;box-shadow:none;text-transform:none}
.rf-invest-root .inv-option{width:100%}
.rf-invest-root .inv-pane{display:none}.rf-invest-root .inv-pane.inv-active{display:block}
.rf-invest-root .inv-details[hidden]{display:none!important}
/* Correção crítica: a navegação interna não pode herdar o posicionamento fixo da barra principal da V12. */
.rf-invest-root nav.inv-tabs{position:static;inset:auto;left:auto;right:auto;top:auto;bottom:auto;transform:none;width:100%;max-width:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));box-shadow:none;backdrop-filter:none;border:1px solid var(--line);border-radius:15px;margin:0 0 18px;padding:5px;z-index:auto}
.rf-invest-root nav.inv-tabs button{min-width:0;white-space:normal;line-height:1.3;box-shadow:none}
.rf-invest-root .inv-card,.rf-invest-root .inv-metric,.rf-invest-root .inv-fields>div{min-width:0}
.rf-invest-root .inv-big,.rf-invest-root .inv-metric strong{overflow-wrap:anywhere}

/* Patrimônio, aportes e backup originais continuam acessíveis sem alterar a navegação aprovada. */
#rf-legacy-invest{margin:16px 0 22px;border:1px solid #315443;border-radius:14px;background:#10251d;overflow:hidden}
#rf-legacy-invest>summary{padding:14px 16px;cursor:pointer;font-size:13px;font-weight:700;color:#c7e5c4}
#rf-legacy-invest[open]>summary{border-bottom:1px solid #315443}
#rf-legacy-invest .rf-legacy-tools-body{padding:15px}
#rf-legacy-invest .rf-legacy-tools-body>h1{font-size:19px}
#rf-legacy-invest input,#rf-legacy-invest textarea{max-width:100%;box-sizing:border-box}
/* Navegação interna sempre visível, sem herdar o menu inferior fixo. */
.rf-invest-root nav.inv-tabs{display:grid!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;position:relative!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;transform:none!important}
.rf-invest-root nav.inv-tabs button{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}

/* Integração visual: respeita a largura, tipografia e cards da V12. */
#v-futuro .rf-invest-root{
  background:transparent;
  color:var(--tx);
  font-family:Manrope,system-ui,-apple-system,"Segoe UI",sans-serif;
  width:100%;max-width:100%;min-width:0;margin:0;padding:0;
  --card:rgba(13,42,32,.8);
  --line:var(--ln);
  --muted:var(--mut);
  --green:var(--ac);
  --white:var(--tx);
}
#v-futuro .rf-invest-root>h1{
  font-family:'Space Grotesk',Manrope,system-ui,sans-serif;
  font-size:22px;font-weight:700;letter-spacing:-.01em;
  margin:4px 0 2px;
  background:linear-gradient(90deg,var(--ac),#8be04e);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
#v-futuro .rf-invest-root>.sub{color:var(--mut);font-size:14px;margin:0 0 16px;line-height:1.4}
#v-futuro .rf-invest-root .inv-card{
  border:1px solid transparent;
  border-radius:14px;
  padding:12px 14px;
  background:linear-gradient(#0d2a20,#0d2a20) padding-box,
             linear-gradient(135deg,rgba(198,244,50,.5),rgba(139,224,78,.1) 45%,rgba(255,255,255,.4)) border-box;
  box-shadow:0 8px 28px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.04);
}
#v-futuro .rf-invest-root .inv-card h2{font-family:'Space Grotesk',Manrope,system-ui,sans-serif}
#v-futuro .rf-invest-root .inv-tabs{border-color:var(--ln);background:rgba(13,42,32,.8)}
#v-futuro .rf-invest-root .inv-tabs button.inv-active{background:rgba(198,244,50,.14);color:var(--ac)}
#v-futuro .rf-invest-root .inv-pill{color:var(--ac);border-color:var(--ln)}
#v-futuro .rf-invest-root .inv-big{color:var(--ac)}
#v-futuro .rf-invest-root .inv-note{border-left-color:var(--ac)}
#v-futuro .rf-invest-root .inv-option.inv-selected{border-color:var(--ac)}
@media(max-width:390px){#v-futuro .rf-invest-root .inv-card{padding:12px 14px}}
