/* ==========================================================================
   VITRINE · CTA abaixo do retângulo de abertura + botão metal líquido
   ========================================================================== */
@property --vt-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.vt-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  margin-top: 18px; padding: 22px 26px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
}
.vt-cta-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vt-cta-txt b { font-size: clamp(17px, 1.4vw, 22px); font-weight: 500; letter-spacing: -0.02em; color: var(--text, #f3f3f5); }
.vt-cta-txt span { font-size: 14.5px; color: var(--text-2, #a1a1aa); }

/* botão metal líquido */
.vt-btn {
  position: relative; isolation: isolate; flex: none;
  display: inline-flex; align-items: center; gap: 24px; height: 64px; padding: 0 8px 0 34px; border-radius: 999px;
  color: #f4f4f6; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, #19191f 0%, #0b0b0e 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 34px -14px rgba(130,118,220,0.55);
  transition: transform 300ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms;
}
/* borda: anel cromado girando (prata com reflexos quentes e violeta) */
.vt-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.7px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--vt-ang),
    #ffffff 0deg, #9a9db2 35deg, #2b2c38 70deg, #f2d4a8 95deg, #ffffff 120deg, #8e91a8 160deg,
    #3a3550 200deg, #c8b6ff 230deg, #ffffff 260deg, #8f92a7 300deg, #ffe2bd 335deg, #ffffff 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: vtGira 4.5s linear infinite;
}
/* brilho violeta difuso embaixo */
.vt-btn::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 46px; z-index: -2; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 30%, rgba(140,128,235,0.5), rgba(140,128,235,0) 100%);
  filter: blur(10px); opacity: 0.85; transition: opacity 300ms;
}
.vt-btn i {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #0b0b0e;
  background: radial-gradient(circle at 38% 30%, #ffffff 0%, #eceef4 45%, #c3c6d4 100%);
  box-shadow: inset 0 -3px 6px rgba(40,40,60,0.18), inset 0 2px 3px rgba(255,255,255,0.9), 0 6px 16px rgba(0,0,0,0.45);
  transition: transform 300ms cubic-bezier(.2,.8,.2,1);
}
.vt-btn i svg { width: 18px; height: 18px; }
.vt-btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 20px 44px -14px rgba(140,128,235,0.75); }
.vt-btn:hover::before { animation-duration: 2.2s; }
.vt-btn:hover::after { opacity: 1; }
.vt-btn:hover i { transform: translateX(3px); }
.vt-btn:focus-visible { outline: 2px solid #e9ecf2; outline-offset: 4px; }
@keyframes vtGira { to { --vt-ang: 360deg; } }
@media (prefers-reduced-motion: reduce) { .vt-btn::before { animation: none; } }

/* o CTA só aparece junto da abertura (aba principal) */
body.modo-ferramentas .vt-cta, body.modo-extras .vt-cta { display: none; }

@media (max-width: 620px) {
  .vt-cta { padding: 20px; }
}

/* ---------- Favoritos e Extras ocultos nesta versão ---------- */
.nav [data-view="favoritos"], .nav [data-view="extras"], .fe-hero-fav,
.card .fav, [data-acao="fav"], #detFav { display: none !important; }

/* ---------- ferramentas: só vitrine, botão metal líquido no hover ---------- */
#ferramentasView .vt-fe-cta {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 50%, rgba(6,6,9,0.55), rgba(6,6,9,0.15) 70%, transparent);
  opacity: 0; transition: opacity 320ms cubic-bezier(.2,.8,.2,1);
}
#ferramentasView .vt-fe-cta .vt-btn { transform: translateY(10px) scale(0.96); transition: transform 420ms cubic-bezier(.2,.8,.2,1); height: 58px; font-size: 16px; padding-left: 28px; }
#ferramentasView .vt-fe-cta .vt-btn i { width: 44px; height: 44px; }
#ferramentasView .fe-card:hover .vt-fe-cta, #ferramentasView .fe-card:focus-within .vt-fe-cta { opacity: 1; }
#ferramentasView .fe-card:hover .vt-fe-cta .vt-btn, #ferramentasView .fe-card:focus-within .vt-fe-cta .vt-btn { transform: none; }
#ferramentasView .fe-card:hover .vt-fe-cta .vt-btn::before { animation-duration: 2.2s; }
#ferramentasView .fe-card:hover .vt-fe-cta .vt-btn i { transform: translateX(3px); }
@media (hover: none) { #ferramentasView .vt-fe-cta { opacity: 1; background: none; align-items: end; padding-bottom: 14px; } #ferramentasView .vt-fe-cta .vt-btn { transform: none; height: 50px; font-size: 14px; } #ferramentasView .vt-fe-cta .vt-btn i { width: 38px; height: 38px; } }

/* ---------- pop-up central ---------- */
.vt-pop { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; visibility: hidden; pointer-events: none; }
.vt-pop.on { visibility: visible; pointer-events: auto; }
.vt-pop-fundo { position: absolute; inset: 0; background: rgba(4,4,7,0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity 260ms; }
.vt-pop.on .vt-pop-fundo { opacity: 1; }
.vt-pop-card {
  position: relative; width: min(480px, 100%); padding: 34px 32px 30px; border-radius: 26px; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #1d1c26 0%, #101015 55%, #0b0b0e 100%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8), 0 0 80px -30px rgba(140,128,235,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
  opacity: 0; transform: translateY(14px) scale(0.97); transition: opacity 280ms, transform 380ms cubic-bezier(.2,.8,.2,1);
}
.vt-pop.on .vt-pop-card { opacity: 1; transform: none; }
.vt-pop-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2, #a1a1aa); border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); transition: color 160ms, background 160ms; }
.vt-pop-x:hover { color: #fff; background: rgba(255,255,255,0.08); }
.vt-pop-x svg { width: 13px; height: 13px; }
.vt-pop-selo { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; color: var(--text-2, #a1a1aa); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); }
.vt-pop-selo i { width: 7px; height: 7px; border-radius: 50%; background: #c8b6ff; box-shadow: 0 0 10px #c8b6ff; }
.vt-pop-card h2 { margin: 18px 0 0; font-size: clamp(26px, 3vw, 34px); font-weight: 500; line-height: 1.08; letter-spacing: -0.04em; color: #f4f4f6; }
.vt-pop-card p { margin: 12px auto 0; max-width: 36ch; font-size: 14.5px; line-height: 1.55; color: var(--text-2, #a1a1aa); }
.vt-pop-lista { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.vt-pop-lista li { position: relative; padding: 10px 12px 10px 38px; border-radius: 12px; font-size: 13.5px; color: #e4e4e8; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.vt-pop-lista li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 12px; height: 7px; margin-top: -5px; border-left: 1.6px solid #c8b6ff; border-bottom: 1.6px solid #c8b6ff; transform: rotate(-45deg); }
.vt-pop-btn { margin-top: 26px; width: 100%; justify-content: space-between; }
html.vt-pop-aberto { overflow: hidden; }
.vt-pop-card:focus { outline: none; }

/* ==========================================================================
   v4 · topo enxuto, botão no retângulo, biblioteca em seções 2 por fileira
   ========================================================================== */
/* topo: só Biblioteca e Ferramentas, sem busca */
.nav [data-abrir], .topo-dir .busca, .topo-dir .selo-offline { display: none !important; }

/* retângulo com gradiente: maior + botão */
.hero.hero-card-wrap .hero-card { min-height: clamp(440px, 46vw, 640px); }
.hero-card .vt-hero-btn { margin-top: 34px; height: 66px; font-size: 17.5px; }
.hero-card .vt-hero-btn::after { opacity: 1; }

/* sem abas, filtros e barra de resultados: tudo numa página */
#abas, #filtros, .barra-res, #maisBox { display: none !important; }
#grade.grade { display: block; }
.vt-sec { padding-top: clamp(28px, 4vw, 56px); }
.vt-sec + .vt-sec { margin-top: clamp(12px, 2vw, 24px); border-top: 1px solid rgba(255,255,255,0.06); }
.vt-sec-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.vt-sec-cab h2 { margin: 0; font-size: clamp(26px, 2.6vw, 40px); font-weight: 400; letter-spacing: -0.045em; color: var(--text, #f3f3f5); }
.vt-sec-cab span { font-size: 13.5px; color: var(--text-3, #71717a); }
.vt-sec-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px clamp(16px, 2vw, 28px); }

.vt-sec-mais { display: flex; justify-content: center; margin-top: 34px; }
.vt-btn.vt-btn-sm { height: 56px; font-size: 15.5px; padding-left: 26px; gap: 18px; }
.vt-btn.vt-btn-sm i { width: 42px; height: 42px; }
.vt-btn.vt-btn-sm i svg { width: 16px; height: 16px; }

.vt-sec:first-child { padding-top: 8px; }
.card-aviso { display: none !important; }

/* ---------- "ver mais" + prévia bloqueada ---------- */
.vt-mais {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 14.5px; color: var(--text, #f3f3f5); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.14);
  transition: background 200ms, border-color 200ms;
}
.vt-mais:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }
.vt-mais svg { width: 14px; height: 14px; }
.vt-bloq { pointer-events: none; user-select: none; }
.vt-bloq .card-visual { filter: blur(14px) saturate(0.8); opacity: 0.55; transform: scale(0.98); }
.vt-bloq .card-info { filter: blur(5px); opacity: 0.5; }
.vt-aberta .vt-sec-grade { position: relative; }
.vt-aberta .vt-sec-grade:has(.vt-bloq)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg, #0a0a0c) 92%);
}
.vt-bloq-faixa { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: -120px; position: relative; z-index: 2; text-align: center; }
.vt-bloq-faixa b { font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; letter-spacing: -0.02em; color: var(--text, #f3f3f5); }
.vt-cadeado { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #f3f3f5; background: rgba(20,20,26,0.8); border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 0 30px rgba(140,128,235,0.35); backdrop-filter: blur(8px); }
.vt-cadeado svg { width: 18px; height: 18px; }
@media (max-width: 700px) { .vt-bloq-faixa { margin-top: -70px; } }

/* ---------- v6 · retângulo maior e respirando, título em 2 linhas ---------- */
.hero.hero-card-wrap .hero-card { min-height: clamp(520px, 50vw, 680px); }
.hero.hero-card-wrap .hc-conteudo { padding: 64px 28px; }
.hero.hero-card-wrap h1 span { display: block; }
.hero.hero-card-wrap .hc-conteudo p { margin-top: 22px; }
.hero-card .vt-hero-btn { margin-top: 44px; }
@media (max-width: 620px) {
  .hero.hero-card-wrap .hero-card { min-height: 560px; }
  .hero.hero-card-wrap .hc-conteudo { padding: 56px 22px; }
  .hero.hero-card-wrap h1 { font-size: clamp(34px, 10vw, 44px); line-height: 1.05; }
  .hero.hero-card-wrap .hc-conteudo p { margin-top: 20px; font-size: 15px; line-height: 1.6; }
  .hero-card .vt-hero-btn { margin-top: 40px; height: 54px; font-size: 15px; padding: 0 6px 0 22px; gap: 16px; }
  .hero-card .vt-hero-btn i { width: 42px; height: 42px; }
  .vt-btn.vt-btn-sm { height: 52px; font-size: 14.5px; padding-left: 20px; gap: 14px; }
  .vt-btn.vt-btn-sm i { width: 40px; height: 40px; }
  .topo-in { grid-template-columns: auto 1fr; }
  .topo .nav { justify-self: end; grid-column: auto; grid-row: auto; overflow: visible; }
}
.vt-pop { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.vt-pop-card { box-sizing: border-box; min-width: 0; max-width: 100%; }
@media (max-width: 520px) {
  .vt-pop { padding: 14px; }
  .vt-pop-card { padding: 30px 18px 20px; border-radius: 22px; }
  .vt-pop-card h2 { font-size: 26px; }
  .vt-pop-card p { font-size: 14px; }
  .vt-pop-lista li { font-size: 13px; padding: 9px 10px 9px 34px; }
  .vt-pop-btn { height: 54px; font-size: 15px; padding: 0 6px 0 20px; gap: 12px; white-space: normal; text-align: left; }
  .vt-pop-btn i { width: 42px; height: 42px; flex: none; }
}

/* ---------- v7 · celular também com 2 cards por fileira ---------- */
@media (max-width: 700px) {
  .vt-sec-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .vt-sec-grade .card-acoes { display: none !important; }
  .vt-sec-grade .card-info { padding-top: 8px; gap: 2px; }
  .vt-sec-grade .card-nome { font-size: 13px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vt-sec-grade .card-cat { display: none; }
  .vt-sec-cab { margin-bottom: 16px; }
  .vt-sec-cab h2 { font-size: 26px; }
  .vt-sec-mais { margin-top: 24px; }
}

/* ==========================================================================
   v8 · sem "Continue explorando" · ferramentas na página inicial · CTA final
   ========================================================================== */
.rodape .explorar { display: none !important; }
.vt-home-cab { display: none; }
body.vt-home #ferramentasView { display: block; padding-top: clamp(40px, 5vw, 72px); padding-bottom: 0; border-top: 1px solid rgba(255,255,255,0.06); margin-top: clamp(28px, 4vw, 56px); }
body.vt-home #ferramentasView .fe-hero { display: none; }
body.vt-home #ferramentasView .vt-home-cab { display: flex; }

.vt-final { display: none; }
body.vt-home .vt-final { display: block; padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(24px, 3vw, 40px); }
.vt-final-card {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: clamp(420px, 40vw, 560px); padding: 64px 24px; border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.12); background: #06060a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 30px 80px -40px rgba(0,0,0,0.9);
}
.vt-final-luz { position: absolute; inset: -20%; z-index: -1; filter: blur(60px); }
.vt-final-luz i { position: absolute; border-radius: 50%; }
.vt-final-luz i:nth-child(1) { left: 5%; top: 20%; width: 45%; height: 70%; background: radial-gradient(closest-side, rgba(224,101,27,0.55), transparent); animation: vtLuzA 16s ease-in-out infinite alternate; }
.vt-final-luz i:nth-child(2) { right: 5%; top: 10%; width: 50%; height: 80%; background: radial-gradient(closest-side, rgba(29,95,184,0.6), transparent); animation: vtLuzB 19s ease-in-out infinite alternate; }
.vt-final-luz i:nth-child(3) { left: 35%; top: 35%; width: 30%; height: 40%; background: radial-gradient(closest-side, rgba(255,243,224,0.35), transparent); animation: vtLuzA 23s ease-in-out infinite alternate-reverse; }
@keyframes vtLuzA { to { transform: translate(8%, -6%) scale(1.1); } }
@keyframes vtLuzB { to { transform: translate(-8%, 6%) scale(0.95); } }
.vt-final-selo { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; color: rgba(243,243,245,0.8); background: rgba(10,10,12,0.55); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(6px); }
.vt-final-card h2 { margin: 22px 0 0; font-size: clamp(34px, 4.6vw, 64px); font-weight: 400; line-height: 1.02; letter-spacing: -0.05em; color: #f4f4f6; text-shadow: 0 1px 18px rgba(5,6,10,0.5); }
.vt-final-card h2 span { color: rgba(243,243,245,0.7); }
.vt-final-card p { margin: 20px auto 0; max-width: 46ch; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.6; color: rgba(243,243,245,0.75); }
.vt-final-btn { margin-top: 40px; }
@media (prefers-reduced-motion: reduce) { .vt-final-luz i { animation: none; } }
@media (max-width: 620px) {
  .vt-final-card { min-height: 480px; padding: 52px 20px; border-radius: 22px; }
  .vt-final-btn { height: 54px; font-size: 15px; padding: 0 6px 0 22px; gap: 16px; }
  .vt-final-btn i { width: 42px; height: 42px; }
  body.vt-home #ferramentasView .fe-grade { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) { .vt-final-card h2 { font-size: 32px; } }
