/* ============================================================
   X8 LABS — DASHBOARD V2 (bento)
   Geometria inspirada no arquétipo bento (12 col, tall+small+wide+strip);
   identidade 100% X8: tokens --via-*, tema claro, Geist.
   Código ORIGINAL — nada de CSS/bundle de terceiro.

   V1 fica intacto: o injetor só aplica display:none nos originais.
   Desligar => tudo volta (ver BENTO.ENABLED no boot-shim.js).
   ============================================================ */

/* quando o v2 está ligado, o topo vira coluna única (o aside vira o banner) */
.x8-bento-on .dashboard-simple-top { grid-template-columns: 1fr !important; }
.x8-bento-on [data-x8-bento-hidden] { display: none !important; }

/* ---------- BANNER (próxima mentoria) ---------- */
.x8-bento-banner {
  display: flex; align-items: center; gap: 18px;
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: var(--via-radius-lg, 20px);
  background: linear-gradient(135deg, hsl(200 30% 12%) 0%, hsl(200 34% 7%) 100%);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 1px 0 rgba(255,255,255,.10) inset, 0 18px 44px -24px rgba(10, 31, 59, .55);
  color: #fff; text-decoration: none;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .26s var(--via-ease-snap, cubic-bezier(.2,.7,.2,1)), box-shadow .26s ease;
}
.x8-bento-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(620px 260px at 8% 0%, rgba(54,143,161,.42), transparent 60%);
}
.x8-bento-banner:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 26px 56px -24px rgba(10,31,59,.7); }

.x8-bento-banner__tile {
  flex-shrink: 0; width: 112px; height: 70px; border-radius: var(--via-radius-md, 12px);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .10);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.x8-bento-banner__day { font-family: var(--via-font-mono, monospace); font-size: 22px; font-weight: 600; line-height: 1; color: #fff; }
.x8-bento-banner__mon { font-family: var(--via-font-mono, monospace); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }

.x8-bento-banner__body { flex: 1; min-width: 0; }
.x8-bento-banner__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.x8-bento-banner__pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: var(--via-radius-pill, 999px);
  background: rgba(184, 92, 92, .18); border: 1px solid rgba(184, 92, 92, .38);
  font-family: var(--via-font-mono, monospace); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #FFC9C9;
}
.x8-bento-banner__pill i { width: 5px; height: 5px; border-radius: 50%; background: #FF8A8A; animation: x8bento-pulse 1.6s ease-in-out infinite; }
@keyframes x8bento-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.55;transform:scale(.85)} }
.x8-bento-banner__eyebrow {
  font-family: var(--via-font-mono, monospace); font-size: 9.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.x8-bento-banner__title {
  margin: 0; font-family: var(--via-font, sans-serif); font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 560; letter-spacing: -.02em; line-height: 1.2; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.x8-bento-banner__sub { margin: 5px 0 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .62); }
.x8-bento-banner__cta {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--via-radius-pill, 999px);
  background: #fff; color: hsl(200 34% 10%);
  font-size: 13px; font-weight: 500; letter-spacing: -.008em; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.18); transition: transform .2s var(--via-ease-snap, ease), box-shadow .2s ease;
}
.x8-bento-banner:hover .x8-bento-banner__cta { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); }

/* ---------- GRID BENTO ---------- */
.x8-bento-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.15vw, 16px);
  margin-top: var(--via-space-4, 16px);
}

/* ---------- CARD (base) ---------- */
.x8-bento-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  padding: 22px 24px; border-radius: var(--via-radius-lg, 20px);
  background: var(--via-glass-card, linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,248,250,.58)));
  border: 1px solid var(--via-border-soft, rgba(10, 31, 59, .05));
  box-shadow: 0 1px 0 var(--via-edge-hi, rgba(255,255,255,.95)) inset, 0 10px 24px -16px var(--via-navy-12, rgba(10,31,59,.12));
  text-decoration: none; color: inherit; cursor: pointer;
  transition: transform .26s var(--via-ease-snap, cubic-bezier(.2,.7,.2,1)), box-shadow .26s ease, border-color .26s ease;
}
.x8-bento-card::after {  /* sheen no hover (mesma assinatura dos cards do X8) */
  content: ""; position: absolute; top: 0; left: 0; width: 50%; height: 100%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%);
  transform: translate(-240%); transition: transform .28s var(--via-ease-snap, ease);
}
.x8-bento-card:hover { transform: translateY(-3px); border-color: var(--via-navy-16, rgba(10,31,59,.16)); box-shadow: 0 1px 0 var(--via-edge-hi,#fff) inset, 0 0 0 .5px var(--via-navy-10, rgba(10,31,59,.1)), 0 22px 42px -16px var(--via-navy-22, rgba(10,31,59,.22)); }
.x8-bento-card:hover::after { transform: translate(260%); }
.x8-bento-card:focus-visible { outline: none; box-shadow: var(--via-shadow-focus, 0 0 0 3px rgba(10,31,59,.15)); }
.x8-bento-card > * { position: relative; z-index: 2; }

/* os filhos são <span> (link não pode conter <h2>/<p>) -> forçar empilhamento */
.x8-bento-body { display: flex; flex-direction: column; min-width: 0; }
.x8-bento-eyebrow, .x8-bento-title, .x8-bento-desc { display: block; }

.x8-bento-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--via-radius-md, 12px);
  background: var(--via-navy-06, rgba(10,31,59,.06)); color: var(--via-text-primary, #0A1F3B);
  margin-bottom: 14px; flex-shrink: 0;
}
.x8-bento-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.x8-bento-eyebrow {
  margin: 0 0 8px; font-family: var(--via-font-mono, monospace); font-size: 10.5px; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: var(--via-text-muted, #5C6677);
}
.x8-bento-title {
  margin: 0; font-family: var(--via-font, sans-serif); font-size: clamp(19px, 1.5vw, 23px);
  font-weight: 560; line-height: 1.15; letter-spacing: -.028em; color: var(--via-text-primary, #0A1F3B);
}
.x8-bento-desc {
  margin: 9px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--via-text-body, #344054);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.x8-bento-cta {
  margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 500; color: var(--via-blue, #3B82C4);
}
.x8-bento-cta .arw { display: inline-block; transition: transform .2s ease; }
.x8-bento-card:hover .x8-bento-cta .arw { transform: translateX(5px); }

/* ---------- SLOTS ---------- */
.x8-bento-card--tall  { grid-column: span 5; grid-row: span 2; min-height: 496px; }
.x8-bento-card--a     { grid-column: span 4; min-height: 200px; }
.x8-bento-card--b     { grid-column: span 3; min-height: 200px; }
.x8-bento-card--wide  { grid-column: span 7; min-height: 280px; }
.x8-bento-card--strip { grid-column: span 12; min-height: 168px; }

/* ---------- MÍDIA + SCRIM (o tratamento que dá profundidade) ----------
   Camadas, na ordem: mídia (inset-0, object-cover) → scrim (ancorado embaixo)
   → hairline → conteúdo. Aceita <img> OU <video autoplay muted loop>. */
.x8-bento-media {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 100%; object-fit: cover; opacity: .8;
}
.x8-bento-card::before {   /* scrim: escurece a base pro texto respirar */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(2,10,22,.86) 0%, rgba(2,10,22,.42) 45%, transparent 100%);
}
.x8-bento-card--strip::before { height: 100%; background: linear-gradient(to right, rgba(2,10,22,.82) 0%, rgba(2,10,22,.34) 45%, transparent 78%); }

/* ---------- CARDS ESCUROS (mesh próprio, sem foto de terceiro) ---------- */
.x8-bento-card {
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 22px 50px -24px var(--via-navy-40, rgba(10,31,59,.4));
}
.x8-bento-card .x8-bento-icon { background: rgba(255,255,255,.10); color: #fff; }
.x8-bento-card .x8-bento-eyebrow { color: rgba(255,255,255,.56); }
.x8-bento-card .x8-bento-title { color: #fff; }
.x8-bento-card .x8-bento-desc { color: rgba(255,255,255,.68); }
.x8-bento-card .x8-bento-cta { color: #fff; }
.x8-bento-card:hover { border-color: rgba(255,255,255,.18); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 30px 62px -24px var(--via-navy-60, rgba(10,31,59,.6)); }

/* TALL — Consultor IA: o mais profundo */
.x8-bento-card--tall {
  background:
    radial-gradient(ellipse 60% 70% at 12% 0%, rgba(94,156,186,.45) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 95% 8%, rgba(54,143,161,.42) 0%, transparent 60%),
    linear-gradient(135deg, hsl(200 30% 11%) 0%, hsl(200 34% 6%) 100%);
}
.x8-bento-card--tall .x8-bento-title { font-size: clamp(24px, 2.1vw, 31px); }
.x8-bento-card--tall .x8-bento-desc { font-size: 14.5px; -webkit-line-clamp: 4; }
.x8-bento-card--tall .x8-bento-cta {
  color: hsl(200 34% 10%); background: #fff; align-self: flex-start;
  padding: 10px 18px; border-radius: var(--via-radius-pill, 999px); margin-top: auto;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}

/* A — Mentorias: mesh coral (o eixo humano / ao vivo) */
.x8-bento-card--a {
  background:
    radial-gradient(ellipse 85% 75% at 25% 0%, rgba(184,92,92,.52) 0%, transparent 62%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(140,44,44,.42) 0%, transparent 60%),
    linear-gradient(135deg, #2A1220 0%, hsl(200 34% 6%) 100%);
  border-color: rgba(184, 92, 92, .26);
}
.x8-bento-card--a .x8-bento-icon { background: rgba(255,182,182,.16); }
.x8-bento-card--a .x8-bento-eyebrow { color: #FFC9C9; }

/* B — Builder */
.x8-bento-card--b {
  background:
    radial-gradient(ellipse 80% 70% at 80% 0%, rgba(70,147,185,.42) 0%, transparent 62%),
    linear-gradient(160deg, hsl(200 30% 11%) 0%, hsl(200 36% 4%) 100%);
}

/* WIDE — Soluções */
.x8-bento-card--wide {
  background:
    radial-gradient(ellipse 55% 80% at 0% 100%, rgba(54,143,161,.42) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 90% 0%, rgba(94,156,186,.34) 0%, transparent 62%),
    linear-gradient(120deg, hsl(200 34% 6%) 0%, hsl(200 30% 11%) 100%);
}

/* STRIP — Formações (horizontal + chips) */
.x8-bento-card--strip {
  background:
    radial-gradient(ellipse 40% 140% at 0% 50%, rgba(54,143,161,.42) 0%, transparent 62%),
    linear-gradient(90deg, hsl(200 30% 11%) 0%, hsl(200 34% 6%) 100%);
  flex-direction: row; align-items: center; gap: 22px;
}
.x8-bento-card--strip .x8-bento-icon { margin-bottom: 0; }
.x8-bento-card--strip .x8-bento-body { flex: 1; min-width: 0; }
.x8-bento-card--strip .x8-bento-desc { -webkit-line-clamp: 2; }
.x8-bento-card--strip .x8-bento-cta { margin-top: 12px; padding-top: 0; }
.x8-bento-chips { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.x8-bento-chip {
  display: inline-flex; align-items: center; padding: 5px 12px;
  border-radius: var(--via-radius-pill, 999px);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,.86); white-space: nowrap;
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1180px) {
  .x8-bento-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .x8-bento-card--tall  { grid-column: span 6; grid-row: auto; min-height: 300px; }
  .x8-bento-card--a     { grid-column: span 3; }
  .x8-bento-card--b     { grid-column: span 3; }
  .x8-bento-card--wide  { grid-column: span 6; min-height: 240px; }
  .x8-bento-card--strip { grid-column: span 6; }
}
@media (max-width: 760px) {
  .x8-bento-grid { grid-template-columns: 1fr; }
  .x8-bento-card--tall, .x8-bento-card--a, .x8-bento-card--b,
  .x8-bento-card--wide, .x8-bento-card--strip { grid-column: span 1; min-height: 0; }
  .x8-bento-card--strip { flex-direction: column; align-items: flex-start; }
  .x8-bento-chips { justify-content: flex-start; }
  .x8-bento-banner { flex-wrap: wrap; }
  .x8-bento-banner__cta { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .x8-bento-card, .x8-bento-card::after, .x8-bento-banner, .x8-bento-banner__cta { transition: none !important; }
  .x8-bento-banner__pill i { animation: none !important; }
}

/* ============================================================
   HERO (bloco 1) — canvas escuro + busca IA + 4 cards de categoria
   Geometria/medidas fiéis ao arquétipo; identidade e conteúdo X8.
   ============================================================ */
.x8-hero {
  position: relative; margin: 0 calc(var(--via-space-6, 24px) * -1);
  min-height: 560px; overflow: hidden; display: flex; flex-direction: column;
  background: var(--via-bg-2, hsl(220 6% 10%));
  isolation: isolate; contain: layout style paint; transform: translateZ(0);
}
@media (min-width: 768px) { .x8-hero { min-height: 480px; } }
@media (min-width: 1024px) { .x8-hero { min-height: 520px; } }

/* camada 0 — véu escuro sobre o fundo da página */
.x8-hero__base { position: absolute; inset: 0; pointer-events: none; background: rgba(6, 6, 16, .7); }

/* camadas 1–2 — os dois orbes teal (o coração do fundo) */
.x8-hero__blob {
  position: absolute; border-radius: 9999px; pointer-events: none;
  will-change: transform; transform: translateZ(0); contain: layout style paint;
}
.x8-hero__blob--1 {
  top: -25%; right: -15%; width: 90%; height: 90%; opacity: .55; filter: blur(50px);
  background: radial-gradient(circle, #75C6D7 0%, #5E9CBA 50%, transparent 70%);
  animation: x8-float-slow 10s ease-in-out infinite;
}
.x8-hero__blob--2 {
  bottom: -35%; left: -25%; width: 85%; height: 85%; opacity: .55; filter: blur(50px);
  background: radial-gradient(circle, #5CB8D6 0%, #4693B9 50%, transparent 70%);
  animation: x8-float-medium 7s ease-in-out infinite;
}
/* Só o blur muda no desktop. A opacidade fica .55 em toda largura:
   no alvo as classes md:opacity-38/42 são Tailwind INVÁLIDO (o certo seria
   opacity-[.38]), então nunca aplicam — o computed style entrega .55 sempre.
   Copiar a classe em vez do computado deixaria o hero cinza. */
@media (min-width: 768px) {
  .x8-hero__blob--1 { filter: blur(100px); }
  .x8-hero__blob--2 { filter: blur(110px); }
}
@keyframes x8-float-slow {
  0%, 100% { transform: translate(0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.08); }
  50% { transform: translate(-20px, 25px) scale(1.12); }
  75% { transform: translate(30px, 15px) scale(.95); }
}
@keyframes x8-float-medium {
  0%, 100% { transform: translate(0) scale(1); }
  33% { transform: translate(-50px, -40px) scale(1.15); }
  66% { transform: translate(40px, 30px) scale(.92); }
}

/* camada 3 — vinheta: fecha as bordas pra luz não vazar */
.x8-hero__vig {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60%, transparent 20%, rgba(7, 9, 13, .4) 100%);
}

/* camada 4 — grão: tira o banding do blur */
.x8-hero__grain {
  position: absolute; inset: 0; opacity: .025; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.x8-hero__inner {
  position: relative; z-index: 10; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 24px 48px; text-align: center;
}
.x8-hero__greet {
  margin: 0 0 12px; font-family: var(--via-font, sans-serif);
  font-size: clamp(24px, 3.6vw, 48px); font-weight: 500; letter-spacing: -.03em;
  line-height: 1.1; color: rgba(255, 255, 255, .97);
}
.x8-hero__sub { margin: 0; font-size: clamp(16px, 1.5vw, 20px); font-weight: 400; color: rgba(255, 255, 255, .60); }

/* busca */
.x8-hero__searchwrap { width: 100%; max-width: 42rem; margin-top: 34px; }
.x8-hero__search {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .016));
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .06);
  transition: box-shadow .7s cubic-bezier(.22, 1, .36, 1);
}
.x8-hero__search:focus-within {
  box-shadow: 0 0 30px rgba(82, 201, 224, .15), 0 0 60px rgba(71, 175, 209, .08), inset 0 1px 1px rgba(255, 255, 255, .08);
}
/* digitando: o halo respira */
.x8-hero__search.is-typing { animation: x8-aura-glow 2.6s ease-in-out infinite; }
@keyframes x8-aura-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(82,201,224,.15), 0 0 60px rgba(71,175,209,.08), inset 0 1px 1px rgba(255,255,255,.08); }
  50%      { box-shadow: 0 0 48px rgba(82,201,224,.26), 0 0 90px rgba(71,175,209,.14), inset 0 1px 1px rgba(255,255,255,.11); }
}
.x8-hero__searchrow { position: relative; display: flex; align-items: center; padding: 16px 20px; gap: 16px; }
.x8-hero__spark { width: 20px; height: 20px; flex-shrink: 0; color: #75C6D7; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.x8-hero__input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  font-family: var(--via-font, sans-serif); font-size: 16px; color: #fff;
}
.x8-hero__input::placeholder { color: rgba(255, 255, 255, .38); }
.x8-hero__go {
  flex-shrink: 0; width: 40px; height: 40px; border: none; cursor: pointer;
  border-radius: 12px; background: linear-gradient(135deg, #368FA1 0%, #316D81 100%);
  color: hsl(195 10% 92%);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, filter .2s ease;
}
.x8-hero__go:hover { transform: scale(1.05); filter: brightness(1.1); }
.x8-hero__chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 0 20px 16px; }
.x8-hero__chips b { font-weight: 400; font-size: 12px; color: rgba(255,255,255,.38); margin-right: 2px; }
.x8-hero__chip {
  padding: 6px 12px; border-radius: 9999px; cursor: pointer; border: none;
  background: rgba(255, 255, 255, .05);
  font-size: 12px; color: rgba(255, 255, 255, .5); transition: background .2s ease, color .2s ease;
}
.x8-hero__chip:hover { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); }
.x8-hero__powered { display: flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 13.5px; color: rgba(255, 255, 255, .40); }
.x8-hero__powered svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* 4 cards de categoria */
.x8-tracks {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  margin-top: 32px;
}
@media (min-width: 1024px) { .x8-tracks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; } }
.x8-track {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; border-radius: 16px; aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, .07); background: #0b0b0e;
  padding: 20px; text-decoration: none; isolation: isolate;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), border-color .5s ease;
}
@media (min-width: 640px) { .x8-track { aspect-ratio: auto; height: 300px; } }
@media (min-width: 1024px) { .x8-track { height: clamp(280px, 36svh, 420px); padding: 24px; } }
.x8-track:hover { transform: scale(1.015); border-color: rgba(255, 255, 255, .14); }
/* camadas do card, de baixo pra cima:
   mídia → sombra interna → glow teal → glow âmbar → scrim → pontilhado → conteúdo */
.x8-track__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .7s cubic-bezier(.16,1,.3,1); pointer-events: none; }
.x8-track:hover .x8-track__media { transform: scale(1.04); }

/* sombra interna: prende a arte dentro da moldura */
.x8-track__inner { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 28px 14px rgba(8, 11, 15, .42); }

/* os dois glows que respiram em contratempo (um sobe, o outro desce) */
.x8-track__glow, .x8-track__glowb {
  position: absolute; inset: 0; pointer-events: none;
  mix-blend-mode: screen; opacity: .5; transition: opacity .7s ease;
}
.x8-track__glow  { background: radial-gradient(120% 85% at 15% -10%, rgba(127, 233, 205, .2), transparent 60%); animation: x8-glow-breathe 10.5s ease-in-out infinite; }
.x8-track__glowb { background: radial-gradient(130% 95% at 88% 108%, rgba(255, 196, 112, .13), transparent 62%); animation: x8-glow-breathe-alt 10.5s ease-in-out infinite; }
.x8-track:hover .x8-track__glow { opacity: 1; }
@keyframes x8-glow-breathe {
  0%, 100% { opacity: .85; transform: translateZ(0) scale(1); }
  50%      { opacity: .25; transform: translate3d(0, 4%, 0) scale(1.06); }
}
@keyframes x8-glow-breathe-alt {
  0%, 100% { opacity: .2; transform: translateZ(0) scale(1); }
  50%      { opacity: .9; transform: translate3d(0, -4%, 0) scale(1.05); }
}

.x8-track__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,.85) 0%, rgba(0,0,0,.25) 50%, transparent 100%); }

/* pontilhado fino: textura que segura o preto */
.x8-track__dots {
  position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255,255,255,.055) .5px, transparent .5px);
  background-size: 3px 3px;
}

.x8-track__top { position: relative; z-index: 2; }
.x8-track__eyebrow { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 11px; font-weight: 500; text-transform: uppercase; color: rgba(255,255,255,.4); }
.x8-track__title { margin: 0; font-size: clamp(20px, 1.7vw, 32px); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; color: rgba(255,255,255,.97); word-break: break-word; }
/* a descrição só abre no hover (desktop) — o card respira fechado */
.x8-track__desc { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.45); }
@media (min-width: 1024px) {
  .x8-track__desc { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
    transition: max-height .5s ease, opacity .5s ease, margin-top .5s ease; }
  .x8-track:hover .x8-track__desc { max-height: 4rem; opacity: 1; margin-top: 12px; }
}
@media (max-width: 1023px) { .x8-track__desc { display: none; } }
.x8-track__cta {
  position: relative; z-index: 2; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px;
  border-radius: var(--via-radius-pill, 999px); border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); font-size: 12.5px; color: #fff;
  transition: background .2s ease;
}
.x8-track:hover .x8-track__cta { background: rgba(255,255,255,.18); }

@media (max-width: 760px) { .x8-hero { margin: 0 -16px; min-height: 480px; } .x8-hero__inner { padding: 40px 16px 36px; } }
@media (prefers-reduced-motion: reduce) {
  .x8-hero__blob, .x8-track__glow, .x8-track__glowb, .x8-hero__search.is-typing { animation: none !important; }
  .x8-track, .x8-track__media, .x8-track__desc { transition: none !important; }
}

/* filhos <span> dentro do <a> precisam empilhar */
.x8-track__top { display: block; }
.x8-track__title, .x8-track__desc { display: block; }
.x8-track__eyebrow { display: flex; }

/* ============================================================
   FUNDO ESCURO — só no dashboard (classe x8-bento-on no <html>,
   removida ao sair da rota). O shell externo já é escuro; o branco
   vem do <main> e do .dashboard-simple-root.
   ============================================================ */
/* ⚠ estas cores eram o petróleo CRAVADO (hsl 200 20%/25%) — com !important
   elas venciam os tokens, então o shell continuava azul-escuro mesmo depois
   de neutralizar o x8-petrol.css. Agora consomem os tokens: calibrar o dark
   é mexer SÓ no eixo (--x8-h / --x8-s) de lá. */
html.x8-bento-on main { background: var(--via-bg-2) !important; }
html.x8-bento-on .dashboard-simple-root { background: transparent !important; }
html.x8-bento-on div:has(> .via-shell-content) { background: var(--via-bg) !important; }

/* ---------- BLOCO 2 — Cursos (acesso rápido) ---------- */
.x8-courses { margin-top: 36px; }
.x8-courses__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.x8-courses__t { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.02em; color: rgba(255,255,255,.9); }
.x8-courses__s { margin: 4px 0 0; font-size: 12px; color: rgba(255,255,255,.55); }
.x8-courses__s b { font-weight: 400; font-variant-numeric: tabular-nums; }
.x8-courses__all {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  padding: 0 12px; border-radius: 12px; border: none; background: transparent; cursor: pointer;
  font-family: var(--via-font, sans-serif); font-size: 14px; font-weight: 500; color: rgba(255,255,255,.65);
  transition: background .2s ease, color .2s ease; text-decoration: none;
}
.x8-courses__all:hover { background: rgba(255,255,255,.06); color: #fff; }
.x8-courses__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (min-width: 640px) { .x8-courses__grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 768px) { .x8-courses__grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 1280px) { .x8-courses__grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.x8-course {
  display: flex; flex-direction: column; min-height: 154px; overflow: hidden;
  border-radius: 12px; padding: 4px 4px 10px; text-decoration: none;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02);
  transition: border-color .25s ease, background .25s ease, transform .25s var(--via-ease-snap, ease);
}
.x8-course:hover { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.05); transform: translateY(-2px); }
.x8-course__thumb {
  position: relative; aspect-ratio: 1.22 / 1; width: 100%; overflow: hidden; border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.03) 60%, rgba(255,255,255,.02));
}
.x8-course__thumb img { width: 100%; height: 100%; object-fit: cover; }
.x8-course__name { margin: 9px 8px 0; font-size: 13px; font-weight: 500; line-height: 1.3; color: rgba(255,255,255,.92);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x8-course__meta { margin: 5px 8px 0; font-size: 11px; color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; }
.x8-courses__empty { padding: 28px; text-align: center; font-size: 13px; color: rgba(255,255,255,.4);
  border: 1px dashed rgba(255,255,255,.1); border-radius: 12px; }

/* ---------- BLOCO 3 — Resumo (progresso real) ---------- */
.x8-resumo { margin-top: 36px; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.02); }
.x8-resumo__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
.x8-resumo__eyebrow { margin: 0; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.45); }
.x8-resumo__sub { margin: 4px 0 0; font-size: 14px; color: rgba(255,255,255,.7); }
.x8-resumo__pct { text-align: right; flex-shrink: 0; }
.x8-resumo__big { font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.x8-resumo__small { margin: 2px 0 0; font-size: 11px; color: rgba(255,255,255,.5); }
.x8-resumo__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 900px) { .x8-resumo__grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.x8-stat {
  display: flex; flex-direction: column; padding: 18px; min-height: 132px; text-decoration: none;
  border-right: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .2s ease;
}
.x8-stat:hover { background: rgba(255,255,255,.03); }
.x8-stat__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.x8-stat__lbl { margin: 0; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.45); }
.x8-stat__ico { width: 14px; height: 14px; fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1.8; }
.x8-stat__val { margin-top: auto; padding-top: 16px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.x8-stat__cap { margin: 6px 0 0; font-size: 11px; color: rgba(255,255,255,.5); }

/* ============================================================
   CARD GRANDE — stats + (Continue | Últimas) + promo + atividade
   Estrutura fiel ao arquétipo: uma única casca arredondada com
   divisores internos, 2 colunas no desktop, empilhado no mobile.
   ============================================================ */
.x8-painel {
  margin-top: 36px; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, hsl(195 20% 13%), hsl(195 25% 8%));
  box-shadow: 0 2px 8px hsl(195 30% 4% / .5), 0 1px 3px hsl(195 30% 4% / .4);
}

/* faixa de 4 indicadores */
.x8-painel__stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-bottom: 1px solid rgba(255,255,255,.06); }
@media (min-width: 1024px) { .x8-painel__stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.x8-pstat {
  display: flex; flex-direction: column; padding: 18px 20px; min-height: 104px; text-decoration: none;
  border-right: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .2s ease;
}
@media (min-width: 1024px) { .x8-pstat { border-bottom: none; } .x8-pstat:last-child { border-right: none; } }
a.x8-pstat:hover { background: rgba(255,255,255,.03); }
.x8-pstat__lbl { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.45); }
.x8-pstat__val { margin-top: auto; padding-top: 14px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.x8-pstat__cap { margin-top: 6px; font-size: 11px; color: rgba(255,255,255,.5); }

/* 2 colunas: à esquerda o estudo, à direita a promo */
.x8-painel__cols { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .x8-painel__cols { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.x8-painel__esq { display: flex; flex-direction: column; }
.x8-painel__esq > * { padding: 24px; }
@media (min-width: 1024px) { .x8-painel__esq > * { padding: 32px; } }
.x8-painel__esq > * + * { border-top: 1px solid rgba(255,255,255,.06); }
.x8-ultimas { flex: 1; }
@media (min-width: 1024px) { .x8-promo { border-left: 1px solid rgba(255,255,255,.06); } }
@media (max-width: 1023px) { .x8-promo { border-top: 1px solid rgba(255,255,255,.06); } }

.x8-blk__t { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.02em; color: rgba(255,255,255,.92); }
.x8-blk__s { margin: 4px 0 18px; font-size: 12.5px; color: rgba(255,255,255,.5); }

.x8-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 9999px; text-decoration: none;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05);
  font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.86);
  transition: background .2s ease, border-color .2s ease;
}
.x8-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); }

/* ---------- Continue de onde parou ---------- */
.x8-continuar__card {
  display: block; text-decoration: none; padding: 16px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
  transition: border-color .25s ease, background .25s ease;
}
.x8-continuar__card:hover { border-color: rgba(82,201,224,.35); background: rgba(255,255,255,.055); }
.x8-continuar__curso { display: block; font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.45); }
.x8-continuar__aula { display: block; margin-top: 6px; font-size: 16px; font-weight: 500; letter-spacing: -.015em; color: #fff; }
.x8-continuar__barra { display: block; margin-top: 14px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.x8-continuar__barra i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #368FA1, #75C6D7); }
.x8-continuar__pe { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.x8-continuar__pct { font-size: 11.5px; color: rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }
.x8-continuar--vazio .x8-btn-ghost { margin-top: 4px; }

/* ---------- Últimas Aulas ---------- */
.x8-ultimas__lista { display: flex; flex-direction: column; gap: 4px; }
.x8-aula {
  display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px;
  border-radius: 12px; text-decoration: none; transition: background .2s ease;
}
.x8-aula:hover { background: rgba(255,255,255,.04); }
.x8-aula__thumb {
  display: block; flex-shrink: 0; width: 68px; aspect-ratio: 1.5 / 1; overflow: hidden;
  border-radius: 8px; background: rgba(255,255,255,.06);
}
.x8-aula__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.x8-aula__body { display: block; min-width: 0; flex: 1; }
.x8-aula__t {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.9); letter-spacing: -.01em;
}
.x8-aula__m { display: block; margin-top: 3px; font-size: 11.5px; color: rgba(255,255,255,.45); }

/* ---------- Painel promo (colagem rotacionada + conteúdo) ---------- */
.x8-promo {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  min-height: 540px; background: #0a0a0c; isolation: isolate;
}
.x8-promo__colagem {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  display: flex; gap: 10px; transform: rotate(-10deg) scale(1.5); transform-origin: center;
}
.x8-promo__col { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.x8-promo__col:nth-child(2) { margin-top: -8%; }
.x8-promo__col:nth-child(3) { margin-top: 6%; }
.x8-promo__tile {
  display: block; width: 100%; aspect-ratio: 1.2 / 1; overflow: hidden;
  border-radius: 10px; background: rgba(255,255,255,.05);
}
.x8-promo__tile img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.x8-promo__veu {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 50%, rgba(10,10,12,.60) 0%, rgba(10,10,12,.88) 66%, #0a0a0c 100%),
    linear-gradient(180deg, rgba(10,10,12,.6) 0%, transparent 30%, transparent 70%, rgba(10,10,12,.6) 100%);
}
.x8-promo__conteudo {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 24px; text-align: center; color: #f6f3ef;
}
@media (min-width: 640px) { .x8-promo__conteudo { padding: 40px 32px; } }
.x8-promo__t { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 400; line-height: 1.25; letter-spacing: -.02em; color: rgba(246,243,239,.72); }
.x8-promo__t b { font-weight: 560; color: #fff; }
.x8-promo__d { margin: 14px 0 0; max-width: 34ch; font-size: 13.5px; line-height: 1.6; color: rgba(246,243,239,.55); }
.x8-promo__big { margin: 22px 0 0; font-size: 17px; font-weight: 560; letter-spacing: -.015em; color: #75C6D7; }
.x8-promo__cap { margin: 4px 0 0; font-size: 11.5px; color: rgba(246,243,239,.45); }
.x8-promo__cta {
  margin-top: 22px; display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 9999px; text-decoration: none;
  background: linear-gradient(135deg, #368FA1 0%, #316D81 100%); color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  box-shadow: 0 8px 24px -10px rgba(54,143,161,.9);
  transition: transform .2s ease, filter .2s ease;
}
.x8-promo__cta:hover { transform: translateY(-1px); filter: brightness(1.08); }
.x8-promo__foot { margin: 16px 0 0; font-size: 10.5px; letter-spacing: .04em; color: rgba(246,243,239,.32); }

/* ---------- rodapé do painel ---------- */
.x8-painel__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.06);
}
.x8-painel__foot-t { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.72); }

/* ---------- correção: filhos <span> de <a> precisam ser bloco ----------
   (span é inline por padrão -> aspect-ratio/altura/margem vertical não aplicam;
   era por isso que as capas das formações apareciam vazias) */
.x8-course__thumb { display: block; }
.x8-course__thumb img { display: block; }
.x8-course__name, .x8-course__meta { display: block; }
