/* Cabeçalho (todas as telas) e barra inferior (só celular). Ver planos/02_navegacao.md e planos/37_mobile_barra_inferior.md */
.vn-topo { position: fixed; top: 1.25rem; left: 0; right: 0; z-index: 1040; padding-inline: 1rem; pointer-events: none; font-family: "DM Sans", system-ui, sans-serif; transition: top .55s cubic-bezier(.22, 1, .36, 1); }
.vn-pilula { pointer-events: auto; max-width: 1180px; margin: 0 auto; height: 66px; background: #000; color: #fff; border-radius: 3rem; padding: .4rem .5rem .4rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; box-shadow: 0 20px 40px -18px rgb(0 0 0 / .45); transition: height .55s, border-radius .55s, max-width .55s; }
.vn-topo.is-scrolled { top: 0; padding-inline: 0; }
.vn-topo.is-scrolled .vn-pilula { max-width: none; height: 72px; border-radius: 0; padding-inline: 2rem; }
.vn-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; flex: none; }
.vn-itens { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.vn-itens > li { position: relative; }
.vn-itens > li > a, .vn-gatilho { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; background: none; border: 0; padding: .5rem 0; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; font-family: inherit; transition: color .2s; }
.vn-itens > li > a:hover, .vn-gatilho:hover { color: #9cb2ff; }
.vn-menu { position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 6px); min-width: 240px; background: #fff; color: #0c1222; border-radius: 16px; box-shadow: 0 24px 50px -20px rgb(0 0 0 / .5); padding: .5rem; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.vn-drop:hover .vn-menu, .vn-drop:focus-within .vn-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.vn-menu a { display: block; padding: .6rem .8rem; border-radius: 10px; color: #0c1222; text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.vn-menu a:hover { background: #eef2ff; color: #1d4ed8; }
.vn-menu hr { margin: .4rem .5rem; border: 0; border-top: 1px solid #e5e7eb; }
.vn-menu small { display: block; padding: .4rem .8rem .2rem; color: #64748b; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.vn-direita { display: flex; align-items: center; gap: .6rem; }
.vn-ajuda { color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; padding: .55rem .95rem; border-radius: 3rem; border: 1px solid rgb(255 255 255 / .25); }
.vn-ajuda:hover { background: rgb(255 255 255 / .1); }
.vn-sino { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.vn-entrar { background: #fff; color: #000; text-decoration: none; font-weight: 600; font-size: .9rem; padding: .7rem 1.2rem; border-radius: 3rem; white-space: nowrap; }
.vn-entrar:hover { background: #dbeafe; }
.vn-nick { font-weight: 700; font-size: .9rem; color: #fff; padding: .55rem .95rem; border-radius: 3rem; background: rgb(255 255 255 / .12); white-space: nowrap; }

.vn-busca input { width: 170px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); color: #fff; border-radius: 3rem; padding: .5rem .9rem; font: 600 .85rem "DM Sans", sans-serif; }
.vn-busca input::placeholder { color: #a5a0d8; }
.vn-busca input:focus { outline: none; background: rgb(255 255 255 / .18); }
@media (max-width: 991.98px) { .vn-busca { display: none; } }
.vn-tour { position: fixed; left: 1rem; bottom: 1rem; z-index: 1200; width: min(340px, calc(100vw - 2rem)); background: linear-gradient(160deg, #1b1446, #0b0a1f); color: #ece9ff; border: 1px solid rgb(255 255 255 / .12); border-radius: 20px; padding: 1.1rem 1.2rem; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6); font-family: "DM Sans", sans-serif; }
.vn-tour[hidden] { display: none; }
.vn-tour small { color: #a5a0d8; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .66rem; }
.vn-tour h4 { margin: .3rem 0 .4rem; font-size: 1.05rem; color: #fff; font-weight: 800; }
.vn-tour p { margin: 0 0 .9rem; font-size: .88rem; color: #cfcaf0; line-height: 1.5; }
.vn-tour .vn-tour-botoes { display: flex; justify-content: space-between; gap: .5rem; }
.vn-tour button { border: 0; border-radius: 12px; padding: .5rem .9rem; font: 800 .8rem "DM Sans", sans-serif; cursor: pointer; }
.vn-tour .vn-tour-prox { background: linear-gradient(135deg, #7c3aed, #4c1d95); color: #fff; }
.vn-tour .vn-tour-pular { background: rgb(255 255 255 / .08); color: #cfcaf0; }
.vn-usuario { position: relative; }
.vn-usuario-gatilho { display: flex; align-items: center; gap: .5rem; background: rgb(255 255 255 / .12); border: 0; color: #fff; border-radius: 3rem; padding: .2rem .9rem .2rem .25rem; font: 700 .9rem "DM Sans", sans-serif; cursor: pointer; }
.vn-usuario-gatilho:hover { background: rgb(255 255 255 / .2); }
.vn-usuario-avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; object-fit: contain; image-rendering: pixelated; }
.vn-menu-usuario { left: auto; right: 0; transform: translateY(6px); min-width: 270px; }
.vn-drop:hover .vn-menu-usuario, .vn-drop:focus-within .vn-menu-usuario { transform: none; }
.vn-menu-topo { display: flex; gap: .75rem; align-items: center; padding: .6rem .7rem .8rem; border-bottom: 1px solid #e5e7eb; margin-bottom: .35rem; }
.vn-menu-topo img { width: 52px; height: 52px; image-rendering: pixelated; object-fit: contain; background: #f1f5f9; border-radius: 50%; }
.vn-menu-topo b { display: block; color: #0c1222; font-size: .95rem; }
.vn-menu-topo small { color: #64748b; font-size: .8rem; }
.vn-menu form { margin: 0; }
.vn-menu form button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: .6rem .8rem; border-radius: 10px; font: 600 .9rem "DM Sans", sans-serif; color: #0c1222; cursor: pointer; }
.vn-menu form button:hover { background: #eef2ff; color: #1d4ed8; }
.vn-barra { display: none; }
@media (max-width: 991.98px) { .vn-itens { display: none; } }
@media (max-width: 767.98px) {
  .vn-topo { top: .75rem; }
  .vn-pilula { height: 58px; justify-content: flex-end; }
  .vn-barra { display: flex; position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 1040; height: 74px; background: #2b2c33; border-radius: 2rem; justify-content: space-around; align-items: center; padding: 0 .4rem; box-shadow: 0 14px 30px -12px rgb(0 0 0 / .5); }
}
.vn-barra a { display: flex; flex-direction: column; align-items: center; gap: .15rem; color: #8a8c96; text-decoration: none; font-size: .72rem; min-width: 56px; }
.vn-barra svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vn-barra .vn-nome { display: block; font-size: .64rem; line-height: 1.1; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.vn-barra a.ativo { color: #5b8cff; font-weight: 600; }
.vn-barra a.ativo .vn-nome { display: block; font-weight: 700; }
.vn-bar-drop { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.vn-bar-drop > summary { list-style: none; display: flex; flex-direction: column; align-items: center; gap: .15rem; color: #8a8c96; font-size: .72rem; cursor: pointer; }
.vn-bar-drop > summary::-webkit-details-marker { display: none; }
.vn-bar-drop > summary svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vn-bar-drop > summary .vn-nome { display: block; font-size: .64rem; line-height: 1.1; white-space: nowrap; }
.vn-bar-drop[open] > summary, .vn-bar-drop.ativo > summary { color: #5b8cff; font-weight: 600; }
.vn-barra .vn-bar-menu { position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%); min-width: 170px; background: #2b2c33; border-radius: 16px; padding: .4rem; box-shadow: 0 14px 30px -12px rgb(0 0 0 / .5); display: flex; flex-direction: column; gap: .15rem; }
.vn-barra .vn-bar-menu a { display: block; color: #e5e7eb; text-decoration: none; padding: .65rem .9rem; border-radius: 12px; font-size: .92rem; font-weight: 600; min-width: 0; }
.vn-barra .vn-bar-menu a:hover, .vn-barra .vn-bar-menu a:focus { background: #3a3b44; color: #fff; }
