/* TF mobile publico (24/11/2026)
   Acrescimo apenas: nao altera o CSS das paginas de SEO (tf-visual.css) nem o da pagina inicial.
   1. Menu do celular nas paginas publicas fora da inicial (SEO, sobre, termos etc.), igual ao da inicial.
   2. Paginas de SEO no celular: artigo mais largo e tabelas cabendo na tela.
   3. Seletor de moeda dentro do painel: abre com animacao suave. */

/* ---------- 1. Menu do celular (paginas publicas, menos a inicial) ---------- */
@media (max-width:991.98px){
  html:not(.tf-home-page) body.body-public #block_1 .navbar-collapse{
    padding:12px!important;border:1px solid rgba(98,64,230,.12)!important;border-radius:16px!important;background:#fff!important;
    box-shadow:0 22px 48px -18px rgba(40,22,120,.35),0 2px 8px rgba(40,22,120,.06)!important}
  html:not(.tf-home-page) body.body-public #block_1 .navbar-collapse.show{animation:tfMenuAbre .22s cubic-bezier(.2,.8,.2,1)}
  html:not(.tf-home-page) body.body-public #block_1 .navbar-nav{gap:4px!important}
  html:not(.tf-home-page) body.body-public #block_1 .navbar-nav>li:has(>a[href="/"]){order:99;margin-top:6px}
  html:not(.tf-home-page) body.body-public #block_1 a.component-navbar-nav-link__navbar-public{
    min-height:44px!important;padding:0 12px!important;gap:12px!important;border:0!important;border-radius:11px!important;
    background:#f7f5ff!important;color:#171052!important;-webkit-text-fill-color:#171052!important;
    font-family:Inter,Arial,sans-serif!important;font-size:15px!important;font-weight:600!important;letter-spacing:-.005em;
    justify-content:flex-start!important;transition:background-color .15s ease,color .15s ease}
  html:not(.tf-home-page) body.body-public #block_1 a.component-navbar-nav-link__navbar-public:hover,
  html:not(.tf-home-page) body.body-public #block_1 a.component-navbar-nav-link-active__navbar-public{background:#efe9ff!important;color:#5b2fe0!important;-webkit-text-fill-color:#5b2fe0!important}
  /* icones finos, desenhados por CSS (sem mexer no HTML) */
  html:not(.tf-home-page) body.body-public #block_1 a.component-navbar-nav-link__navbar-public::before{
    content:"";flex:none;width:20px;height:20px;background:#5b2fe0;
    -webkit-mask:var(--tf-mi) center/20px no-repeat;mask:var(--tf-mi) center/20px no-repeat}
  html:not(.tf-home-page) body.body-public #block_1 a[href="/services"]{--tf-mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5V20h16V9.5'/%3E%3Cpath d='M3 9.5L5 4h14l2 5.5a3 3 0 0 1-6 0 3 3 0 0 1-6 0 3 3 0 0 1-6 0z'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E")}
  html:not(.tf-home-page) body.body-public #block_1 a[href="/api"]{--tf-mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7l-5 5 5 5M16 7l5 5-5 5M13.5 5l-3 14'/%3E%3C/svg%3E")}
  html:not(.tf-home-page) body.body-public #block_1 a[href="/cadastro"]{--tf-mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='8' r='4'/%3E%3Cpath d='M3 20a7 7 0 0 1 11.5-5.4M18 14v6M15 17h6'/%3E%3C/svg%3E")}
  html:not(.tf-home-page) body.body-public #block_1 a[href="/terms"]{--tf-mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6v18h12V7z'/%3E%3Cpath d='M14 3v4h4M9 12h6M9 16h6'/%3E%3C/svg%3E")}
  html:not(.tf-home-page) body.body-public #block_1 a.component-navbar-nav-link__navbar-public[href="/"]{
    justify-content:center!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
    background:linear-gradient(135deg,#4012bd,#7027ed)!important;box-shadow:0 10px 22px -10px rgba(91,47,224,.7)!important;
    --tf-mi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E")}
  html:not(.tf-home-page) body.body-public #block_1 a.component-navbar-nav-link__navbar-public[href="/"]::before{background:#fff}
  html:not(.tf-home-page) body.body-public #block_1 a.component-navbar-nav-link__navbar-public[href="/"]:hover{filter:brightness(1.07)}
  /* idioma: mesma fonte e um globo */
  html:not(.tf-home-page) body.body-public #block_1 .navbar-languages .default-dropdown__toggle{
    display:flex!important;align-items:center;gap:8px;min-height:44px;font-family:Inter,Arial,sans-serif!important;font-size:14px!important;font-weight:600!important;color:#2b1f7a!important;border-radius:11px!important}
  html:not(.tf-home-page) body.body-public #block_1 .navbar-languages .default-dropdown__toggle::before{
    content:"";flex:none;width:18px;height:18px;background:#5b2fe0;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E") center/18px no-repeat;
            mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E") center/18px no-repeat}
  /* tema escuro */
  html.tf-dark-mode:not(.tf-home-page) body.body-public #block_1 .navbar-collapse{background:#14172a!important;border-color:rgba(255,255,255,.08)!important}
  html.tf-dark-mode:not(.tf-home-page) body.body-public #block_1 a.component-navbar-nav-link__navbar-public:not([href="/"]){background:rgba(255,255,255,.05)!important;color:#ece8ff!important;-webkit-text-fill-color:#ece8ff!important}
  html.tf-dark-mode:not(.tf-home-page) body.body-public #block_1 a.component-navbar-nav-link__navbar-public:not([href="/"])::before{background:#c9b8ff}
  html.tf-dark-mode:not(.tf-home-page) body.body-public #block_1 .navbar-languages .default-dropdown__toggle{color:#ece8ff!important}
}
/* O fundo escuro do menu do painel (tf-mobile-overlay) ficava atras do conteudo nas paginas publicas e aparecia
   como faixas cinzas dos lados. Nas paginas publicas o menu fica sem esse fundo, igual a pagina inicial. */
html:not(.tf-home-page) body.body-public .tf-mobile-overlay{display:none!important}
@keyframes tfMenuAbre{from{opacity:0;transform:translateY(-8px) scale(.985)}to{opacity:1;transform:none}}

/* ---------- 2. Paginas de SEO no celular ---------- */
@media (max-width:600px){
  /* artigo usa quase toda a largura: menos borda cinza dos lados, mais espaco para o texto */
  html body .tf-artigo-wrap{padding-left:8px!important;padding-right:8px!important;padding-top:16px!important}
  html body .tf-artigo{padding:22px 18px!important;border-radius:16px!important}
  html body .tf-artigo h1{font-size:26px!important;line-height:1.22!important;letter-spacing:-.02em}
  html body .tf-artigo h2{font-size:21px!important;line-height:1.3!important}
  html body .tf-artigo h3{font-size:17.5px!important;line-height:1.35!important}
  /* tabelas: cabem na tela, sem rolar para o lado */
  html body .tf-artigo .tfv-tabela{overflow:visible!important}
  html body .tf-artigo .tfv-tabela table{min-width:0!important;width:100%!important;table-layout:fixed;font-size:13.5px!important}
  html body .tf-artigo .tfv-tabela th,html body .tf-artigo .tfv-tabela td{padding:10px 8px!important;word-break:normal;overflow-wrap:anywhere;vertical-align:top}
  html body .tf-artigo .tfv-tabela th{font-size:12.5px!important;line-height:1.3}
  html body .tf-artigo .tfv-tabela th:first-child,html body .tf-artigo .tfv-tabela td:first-child{width:46%}
  html body .tf-artigo .tfv-tabela td:not(:first-child),html body .tf-artigo .tfv-tabela th:not(:first-child){text-align:right}
}

/* ---------- 3. Seletor de moeda (dentro do painel) ---------- */
html body .balance-dropdown-container .default-dropdown[data-trigger="hover"]::after{content:"";position:absolute;left:0;right:0;top:100%;height:10px}
html body .balance-dropdown-container .default-dropdown__container{
  display:block!important;opacity:0;visibility:hidden;pointer-events:none;
  top:calc(100% + 8px)!important;min-width:150px!important;padding:6px!important;margin:0!important;
  background:#fff!important;border:1px solid rgba(98,64,230,.14)!important;border-radius:14px!important;
  box-shadow:0 18px 40px -14px rgba(40,22,120,.35),0 2px 6px rgba(40,22,120,.06)!important;
  transform:translateY(-8px) scale(.97);transform-origin:top center;
  transition:opacity .18s ease,transform .24s cubic-bezier(.2,.8,.2,1),visibility 0s linear .24s}
html body .balance-dropdown-container .default-dropdown:hover>.default-dropdown__container,
html body .balance-dropdown-container .default-dropdown:focus-within>.default-dropdown__container,
html body .balance-dropdown-container .default-dropdown.show>.default-dropdown__container,
html body .balance-dropdown-container .default-dropdown__container.show{
  opacity:1;visibility:visible;pointer-events:auto;transform:none;
  transition:opacity .18s ease,transform .24s cubic-bezier(.2,.8,.2,1),visibility 0s}
/* itens entram em sequencia */
html body .balance-dropdown-container .default-dropdown__item{opacity:0;transform:translateY(-4px);transition:opacity .16s ease,transform .2s ease}
html body .balance-dropdown-container .default-dropdown:hover .default-dropdown__item,
html body .balance-dropdown-container .default-dropdown:focus-within .default-dropdown__item,
html body .balance-dropdown-container .default-dropdown.show .default-dropdown__item,
html body .balance-dropdown-container .default-dropdown__container.show .default-dropdown__item{opacity:1;transform:none}
html body .balance-dropdown-container .default-dropdown__item:nth-child(2){transition-delay:.03s}
html body .balance-dropdown-container .default-dropdown__item:nth-child(3){transition-delay:.06s}
html body .balance-dropdown-container .default-dropdown__item:nth-child(4){transition-delay:.09s}
html body .balance-dropdown-container .default-dropdown__item:nth-child(n+5){transition-delay:.12s}
html body .balance-dropdown-container .default-dropdown__link{
  display:flex!important;align-items:center;justify-content:space-between;gap:10px;
  padding:9px 12px!important;border-radius:9px!important;font-weight:600!important;font-size:14px!important;color:#202250!important;
  transition:background-color .15s ease,color .15s ease,padding-left .15s ease}
html body .balance-dropdown-container .default-dropdown__link:hover,
html body .balance-dropdown-container .default-dropdown__link:focus-visible{background:rgba(98,64,230,.09)!important;color:#5b2fe0!important;padding-left:15px!important;text-decoration:none!important}
/* seta do botao: o tema ja vira a seta; aqui so suaviza */
html body .balance-dropdown-container .default-dropdown__toggle::after{transition:transform .24s cubic-bezier(.2,.8,.2,1)}
html.tf-dark-mode body .balance-dropdown-container .default-dropdown__container{background:#14172a!important;border-color:rgba(255,255,255,.08)!important}
html.tf-dark-mode body .balance-dropdown-container .default-dropdown__link{color:#e9e6ff!important}
html.tf-dark-mode body .balance-dropdown-container .default-dropdown__link:hover{background:rgba(255,255,255,.07)!important;color:#fff!important}
@media (prefers-reduced-motion:reduce){
  html body .balance-dropdown-container .default-dropdown__container,html body .balance-dropdown-container .default-dropdown__item{transition:none!important}
  html:not(.tf-home-page) body.body-public #block_1 .navbar-collapse.show{animation:none}}

/* ---------- 4. Moeda dentro do menu do celular (gaveta do painel) ---------- */
html body .tfmm__moedas{position:relative;z-index:1;display:flex;flex-wrap:nowrap;gap:5px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.16)}
html body .tfmm__moeda{flex:1 1 0;min-width:0;height:32px;padding:0 2px;border:1px solid rgba(255,255,255,.22);border-radius:9px;background:rgba(255,255,255,.08);
  color:#fff;font:700 12.5px/1 Inter,Arial,sans-serif;letter-spacing:.02em;cursor:pointer;transition:background-color .15s ease,color .15s ease,transform .12s ease}
html body .tfmm__moeda:active{transform:scale(.96)}
html body .tfmm__moeda.ativa{background:#fff;border-color:#fff;color:#4a1fd0}
html body .tfmm__saldo--trocando .tfmm__saldo-val{opacity:.45;transition:opacity .2s ease}
html body .tfmm__saldo--trocando .tfmm__moedas{pointer-events:none}
