/* ═════════ efeitos, artes dos módulos, login e perfil ═════════ */
em { font-style: normal; color: var(--destaque-texto, var(--destaque)); }
#fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 80; }
.cursor-luz { position: fixed; left: -300px; top: -300px; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--destaque) 9%, transparent), transparent 60%); opacity: 0; transition: opacity .4s; }
.cursor-luz.on { opacity: 1; }
#tela-area, .login-caixa { position: relative; z-index: 1; }
.onda { position: absolute; border-radius: 50%; pointer-events: none; background: color-mix(in srgb, var(--destaque) 35%, transparent); transform: scale(0); animation: onda .65s ease-out forwards; z-index: 3; }
.botao-cheio .onda { background: rgb(255 255 255 / .45); }
@keyframes onda { to { transform: scale(1); opacity: 0; } }

/* botões */
.botao-cheio { transition: box-shadow .3s, transform .15s, filter .2s; }
.botao-cheio:hover { box-shadow: 0 8px 28px -6px color-mix(in srgb, var(--destaque) 60%, transparent); }
.botao:active { transform: scale(.97); }
.botao svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.botao:hover svg { transform: translateX(3px); }

/* login */
.login { position: relative; overflow: hidden; }
.login-fundo { position: absolute; inset: 0; pointer-events: none; }
.lf-grade { position: absolute; inset: -50%; background-image: linear-gradient(var(--linha) 1px, transparent 1px), linear-gradient(90deg, var(--linha) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 55%); -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 55%); animation: grade-anda 20s linear infinite; opacity: .6; }
@keyframes grade-anda { to { transform: translate(48px, 48px); } }
.lf-luz { position: absolute; left: 50%; top: 30%; width: 700px; height: 700px; margin: -350px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--destaque) 22%, transparent), transparent 60%); animation: respira 6s ease-in-out infinite; }
@keyframes respira { 50% { transform: scale(1.15); opacity: .7; } }
.login-caixa > * { animation: sobe .6s cubic-bezier(.2,.8,.2,1) both; }
.login-caixa > *:nth-child(2) { animation-delay: .08s; } .login-caixa > *:nth-child(3) { animation-delay: .16s; } .login-caixa > *:nth-child(4) { animation-delay: .24s; }
.login-form input { transition: border-color .2s, box-shadow .2s; }
.login-form input:focus { border-color: var(--destaque); box-shadow: 0 0 0 4px color-mix(in srgb, var(--destaque) 18%, transparent); }
.marca-selo { background: var(--destaque) !important; color: var(--destaque-tinta) !important; }

/* perfil */
.perfil-menu { min-width: 280px; padding: 12px; transform-origin: top right; animation: abre-menu .22s cubic-bezier(.2,.8,.2,1); }
@keyframes abre-menu { from { opacity: 0; transform: scale(.94) translateY(-6px); } }
.perfil-cab { display: flex; gap: 12px; align-items: center; padding: 4px 4px 12px; }
.perfil-cab > div { min-width: 0; }
.perfil-cab .perfil-nome { margin: 0; }
.perfil-cab .perfil-email { margin: 2px 0 0; }
.avatar { background: var(--destaque) !important; color: var(--destaque-tinta) !important; font-weight: 700; }
.avatar-grande { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 15px; }
.perfil-prog { padding: 12px; border-radius: 12px; background: var(--superficie-2); margin-bottom: 8px; display: grid; gap: 8px; }
.perfil-prog .rot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--tinta-2); }
.perfil-prog .rot b { color: var(--destaque-texto, var(--destaque)); font: 600 15px/1 var(--display); }
.perfil-prog small { font-size: 12px; color: var(--tinta-3); }
.perfil-menu #btn-sair { color: var(--alerta); }

/* transição entre telas */
body.troca main:not([hidden]) { animation: troca .45s cubic-bezier(.2,.8,.2,1); }
@keyframes troca { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.topo-boas > * { animation: sobe .6s cubic-bezier(.2,.8,.2,1) both; }
.topo-boas > *:nth-child(2) { animation-delay: .1s; }

/* cards de módulo: entrada, inclinação 3D e brilho */
.mod-capa-card { opacity: 0; transform: translateY(26px) scale(.98); --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  transition: opacity .6s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 70ms), transform .6s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 70ms), border-color .25s, box-shadow .25s; }
.mod-capa-card.visto { opacity: 1; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); }
.mod-capa-card.visto:hover { transition: transform .12s linear, border-color .25s, box-shadow .25s; }
.mod-capa-card.visto:hover:not(.trancado) { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px); }
.mod-capa-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 2;
  background: radial-gradient(400px circle at var(--mx) var(--my), color-mix(in srgb, var(--destaque) 16%, transparent), transparent 45%); }
.mod-capa-card:hover::after { opacity: 1; }
.mc-brilho { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .14) 50%, transparent 65%); transform: translateX(-120%); }
.mod-capa-card:hover:not(.trancado) .mc-brilho { animation: brilho .9s ease; }
@keyframes brilho { to { transform: translateX(120%); } }
.mc-capa .arte { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; }
.mod-capa-card:hover:not(.trancado) .mc-capa .arte { transform: scale(1.06); }
.mod-capa-card .mc-num { text-shadow: 0 4px 24px rgb(0 0 0 / .6); transition: transform .3s; }
.mod-capa-card:hover .mc-num { transform: translateY(-3px) scale(1.04); }
.mod-capa-card .mc-tag.ok { box-shadow: 0 0 18px color-mix(in srgb, var(--destaque) 50%, transparent); }
.mc-info { display: inline-flex; align-items: center; gap: 6px; color: var(--tinta-3); }
.mc-info svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.mod-capa-card.trancado .arte { filter: grayscale(.85) brightness(.55); }
.mod-capa-card.vazio .arte { filter: brightness(.85); }
.mod-capa-card.vazio:hover .arte { filter: none; }
.mod-capa-card.completo { border-color: color-mix(in srgb, var(--destaque) 45%, var(--linha)); }

/* animações das artes */
.ar-pulsa { animation: ar-pulsa 2.4s ease-in-out infinite; }
@keyframes ar-pulsa { 50% { opacity: .45; } }
.ar-flutua { animation: ar-flutua 4s ease-in-out infinite; }
@keyframes ar-flutua { 50% { transform: translateY(-4px); } }
.ar-gira { animation: ar-gira 14s linear infinite; }
.ar-gira-lento { animation: ar-gira 40s linear infinite; }
@keyframes ar-gira { to { transform: rotate(360deg); } }
.ar-fio { stroke-dasharray: 6 5; animation: ar-fio 1.6s linear infinite; }
@keyframes ar-fio { to { stroke-dashoffset: -22; } }
.ar-linha { stroke-dasharray: 320; animation: ar-linha 2.4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ar-linha { from { stroke-dashoffset: 320; } }
.ar-barra { transform-box: fill-box; transform-origin: bottom; animation: ar-barra 1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ar-barra { from { transform: scaleY(0); } }
.ar-onda { animation: ar-onda 3s linear infinite; }
@keyframes ar-onda { to { transform: translateX(-80px); } }
.ar-balanca { animation: ar-balanca 3.5s ease-in-out infinite; }
@keyframes ar-balanca { 50% { transform: rotate(4deg); } }
.ar-pulsa-anel { animation: ar-anel 2.6s ease-out infinite; }
@keyframes ar-anel { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.ar-flecha { stroke-dasharray: 150; animation: ar-linha 1.4s cubic-bezier(.2,.8,.2,1) both; }

/* página do módulo */
.mod-hero-arte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 36px; }
.mod-hero-capa { position: relative; aspect-ratio: 16 / 9; border-radius: var(--raio-grande); overflow: hidden; border: 1px solid var(--linha); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--destaque) 35%, transparent); }
.mod-hero-capa img, .mod-hero-capa .arte { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mod-hero-capa .mc-num { position: absolute; left: 20px; bottom: 14px; font: 700 64px/1 var(--display); color: var(--destaque); letter-spacing: -0.04em; text-shadow: 0 4px 24px rgb(0 0 0 / .6); }
.mod-hero-txt h1 { margin: 10px 0; }
.mod-hero-txt .mod-lado { margin-top: 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.modulo-vazio { text-align: center; padding: 8px 0 20px; }
.modulo-vazio > svg { width: 34px; height: 34px; fill: none; stroke: var(--destaque); stroke-width: 1.8; animation: ar-pulsa 2s infinite; }
.modulo-vazio h3 { margin: 10px 0 6px; font: 600 24px/1.2 var(--display); }
.modulo-vazio > p { margin: 0 auto 30px; max-width: 46ch; color: var(--tinta-2); }
.modulo-vazio .lista-aulas { text-align: left; }

/* capa de aula pendente ("em breve") */
.capa-pendente { background: var(--superficie-2); }
.pendente-arte { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: repeating-linear-gradient(-45deg, #141414 0 14px, #1a1a1a 14px 28px); }
.pendente-arte::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--destaque) 12%, transparent) 50%, transparent 70%); animation: varre 2.4s ease-in-out infinite; transform: translateX(-100%); }
@keyframes varre { to { transform: translateX(100%); } }
.pendente-arte span { position: relative; padding: 6px 14px; border: 2px solid var(--destaque); color: var(--destaque); font: 700 13px/1 var(--display); letter-spacing: .2em; border-radius: 6px; transform: rotate(-6deg); }
.capa-pendente .cadeado { opacity: 0; }
.aula-card.esqueleto { cursor: default; }

/* aulas: entrada escalonada */
.aula-card { opacity: 0; transform: translateY(16px); transition: opacity .5s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 50ms), transform .5s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 50ms); }
.aula-card.visto, .aula-card.esqueleto { opacity: 1; transform: none; }
.aula-card.visto:hover:not(.trancada) { transform: translateY(-4px); transition: transform .25s; }

/* barra de progresso com brilho */
.barra i { position: relative; overflow: hidden; box-shadow: 0 0 12px color-mix(in srgb, var(--destaque) 60%, transparent); }
.barra i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .5), transparent); transform: translateX(-100%); animation: varre 2.2s ease-in-out infinite; }

@media (max-width: 760px) { .mod-hero-arte { grid-template-columns: 1fr; gap: 20px; } }
@media (prefers-reduced-motion: reduce) { .mod-capa-card, .aula-card { opacity: 1; transform: none; } }

/* ═════════ otimização celular / Mac / Windows (21/11) ═════════ */
html, body { overflow-x: hidden; }
body { -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility; }
/* iPhone: notch e barra inferior */
.topo-in { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.moldura { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
@media (min-width: 641px) { .topo-in { padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); } }
/* Safari antigo sem color-mix: topo não fica transparente */
@supports not (background: color-mix(in srgb, red 50%, transparent)) { .topo { background: rgb(10 10 10 / .9); } }
/* artes paradas fora da tela = menos bateria */
.mod-capa-card:not(.na-tela) .arte *, .mod-hero-capa:not(.na-tela) .arte * { animation-play-state: paused; }
/* touch (celular/tablet): sem hover "grudado", com toque responsivo */
@media (hover: none) {
  .mod-capa-card.visto:hover:not(.trancado), .aula-card.visto:hover:not(.trancada) { transform: none; }
  .mod-capa-card:hover::after, .mod-capa-card:hover:not(.trancado) .mc-brilho { opacity: 0; animation: none; }
  .mod-capa-card:hover:not(.trancado) .mc-capa .arte, .aula-card:hover:not(.trancada) .capa img { transform: none; }
  .mod-capa-card:hover .mc-num { transform: none; }
  .mod-capa-card:active:not(.trancado), .aula-card:active:not(.trancada) { transform: scale(.97); transition: transform .1s; }
  .mod-capa-card.visto { transform: none; }
}
/* celular */
@media (max-width: 640px) {
  input, textarea, select { font-size: 16px !important; } /* iPhone não dá zoom ao digitar */
  .topo { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(10 10 10 / .94); }
  .mod-capa-card .mc-tag { backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.troca main:not([hidden]) { animation-name: troca-leve; }
  .modulos-grade { gap: 12px; }
  .mod-capa-card { border-radius: 16px; }
  .mod-capa-card .mc-num { font-size: 30px; left: 10px; bottom: 6px; }
  .mod-capa-card .mc-tag { right: 8px; top: 8px; padding: 4px 8px; font-size: 11px; }
  .mod-capa-card .mc-corpo { padding: 10px 12px 12px; gap: 4px; }
  .mod-capa-card h3 { font-size: 15px; line-height: 1.2; }
  .mod-capa-card p.desc { font-size: 12px; }
  .mod-capa-card .mc-pe { margin-top: 6px; font-size: 11px; }
  .lista-aulas { gap: 16px 12px; }
  .aula-card .info { padding-top: 8px; }
  .aula-card .info b { font-size: 13px; }
  .aula-card .info small { font-size: 11px; }
  .mod-hero-capa .mc-num { font-size: 44px; }
}
@keyframes troca-leve { from { opacity: 0; transform: translateY(8px); } }
/* celular bem pequeno (iPhone SE, Androids 320–360px) */
@media (max-width: 370px) {
  .mod-capa-card p.desc { display: none; }
  .mod-capa-card h3 { font-size: 14px; }
  .lista-aulas, .modulos-grade { gap: 12px 10px; }
}

/* ═════════ fundo, glass, borda girando e hover novo (21/11) ═════════
   Leve: só transform/opacity animados (GPU), sem blur pesado, para fora da tela. */
.fundo-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; contain: strict; }
.fundo-fx::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgb(250 204 21 / .09) 1px, transparent 1.4px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%); }
.fundo-fx::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, var(--fundo)); }
.fundo-fx i { position: absolute; border-radius: 50%; will-change: transform; }
.fundo-fx .f1 { width: 70vmax; height: 70vmax; left: -20vmax; top: -30vmax; background: radial-gradient(circle, rgb(250 204 21 / .13), transparent 62%); animation: fundo-a 26s ease-in-out infinite alternate; }
.fundo-fx .f2 { width: 60vmax; height: 60vmax; right: -25vmax; top: 10vh; background: radial-gradient(circle, rgb(234 179 8 / .09), transparent 62%); animation: fundo-b 32s ease-in-out infinite alternate; }
.fundo-fx .f3 { width: 55vmax; height: 55vmax; left: 20vw; bottom: -35vmax; background: radial-gradient(circle, rgb(253 224 71 / .07), transparent 62%); animation: fundo-a 38s ease-in-out infinite alternate-reverse; }
@keyframes fundo-a { to { transform: translate3d(12vw, 8vh, 0) scale(1.1); } }
@keyframes fundo-b { to { transform: translate3d(-10vw, 12vh, 0) scale(.92); } }
.topo, .rodape { position: relative; z-index: 2; } .topo { position: sticky; }
:root[data-theme="light"] .fundo-fx { opacity: .5; }

/* glass nos cards (sem backdrop-filter = não pesa) */
.mod-capa-card, .aula-card:not(.esqueleto) {
  background: var(--superficie);
  background: linear-gradient(160deg, color-mix(in srgb, var(--superficie) 62%, transparent), color-mix(in srgb, var(--superficie) 86%, transparent));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), 0 10px 30px -18px rgb(0 0 0 / .9);
}
.aula-card { position: relative; padding: 7px; border-radius: calc(var(--raio) + 7px); border: 1px solid var(--linha); }
.aula-card .info { padding: 10px 5px 5px; }
.aula-card.esqueleto { padding: 7px; border-radius: calc(var(--raio) + 7px); border: 1px dashed var(--linha); }

/* borda de luz girando em volta */
.borda-gira { position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 4; overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55; transition: opacity .35s; }
.borda-gira::before { content: ""; position: absolute; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0 62%, rgb(250 204 21 / .15) 72%, #facc15 86%, #fff7c2 89%, transparent 93%);
  animation: borda-gira 6s linear infinite; }
.mod-capa-card .borda-gira { inset: 0; }
.aula-card .borda-gira::before { width: 160%; animation-duration: 7s; }
@keyframes borda-gira { to { rotate: 360deg; } }
.mod-capa-card:not(.na-tela) .borda-gira::before, .aula-card:not(.na-tela) .borda-gira::before { animation-play-state: paused; }
.mod-capa-card.trancado .borda-gira, .aula-card.trancada .borda-gira { display: none; }
.mod-capa-card.vazio .borda-gira { opacity: .5; }
.mod-capa-card.completo .borda-gira { opacity: .8; }

/* hover novo (só mouse): sobe, brilha, borda acende, luz segue o cursor */
.mod-capa-card.visto, .mod-capa-card.visto:hover:not(.trancado) { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .mod-capa-card, .aula-card:not(.esqueleto) { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s, opacity .6s; }
  .mod-capa-card.visto:hover:not(.trancado), .aula-card.visto:hover:not(.trancada):not(.esqueleto) {
    transform: translateY(-6px); border-color: rgb(250 204 21 / .55);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 22px 50px -20px rgb(250 204 21 / .45), 0 0 0 1px rgb(250 204 21 / .15); }
  .mod-capa-card:hover:not(.trancado) .borda-gira, .aula-card:hover:not(.trancada) .borda-gira { opacity: 1; }
  .mod-capa-card:hover:not(.trancado) .mc-num { transform: translateY(-2px); text-shadow: 0 0 22px rgb(250 204 21 / .55), 0 4px 24px rgb(0 0 0 / .6); }
  .mod-capa-card::after { background: radial-gradient(260px circle at var(--mx) var(--my), rgb(250 204 21 / .13), transparent 60%); }
  .aula-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgb(250 204 21 / .1), transparent 60%); }
  .aula-card:hover:not(.trancada)::after { opacity: 1; }
}
/* celular: fundo parado, toque com resposta */
@media (hover: none), (max-width: 640px) {
  .fundo-fx i { animation: none; }
  .aula-card.visto:active:not(.trancada) { transform: scale(.97); transition: transform .1s; }
}
@media (max-width: 640px) { .aula-card { padding: 5px; border-radius: calc(var(--raio) + 5px); } .aula-card .info { padding: 8px 4px 4px; } }
@media (prefers-reduced-motion: reduce) { .fundo-fx i, .borda-gira::before { animation: none !important; } }

/* ═════════ hover limpo: só a borda glass circulando (21/11) ═════════ */
/* tira: subida, luz do mouse, brilho que passa, zoom da arte, número mexendo */
.mod-capa-card, .aula-card:not(.esqueleto) { transition: opacity .6s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 60ms), transform .6s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 60ms); }
.mod-capa-card.visto, .mod-capa-card.visto:hover, .mod-capa-card.visto:hover:not(.trancado),
.aula-card.visto, .aula-card.visto:hover, .aula-card.visto:hover:not(.trancada) { transform: none !important; }
.mod-capa-card:hover:not(.trancado), .aula-card:hover:not(.trancada):not(.esqueleto) { border-color: var(--linha); box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), 0 10px 30px -18px rgb(0 0 0 / .9); }
.mod-capa-card::after, .aula-card::after, .mc-brilho, .cursor-luz { display: none !important; }
.mod-capa-card:hover .mc-capa .arte, .mod-capa-card:hover .mc-capa img, .aula-card:hover .capa img { transform: none !important; }
.mod-capa-card:hover .mc-num { transform: none !important; text-shadow: 0 4px 24px rgb(0 0 0 / .6) !important; }

/* borda glass: aro de vidro fixo + luz suave circulando */
.mod-capa-card, .aula-card:not(.esqueleto) { border-color: rgb(255 255 255 / .07); }
.borda-gira { opacity: 1 !important; padding: 1.25px; transition: none; }
.borda-gira::before {
  width: 220%;
  background: conic-gradient(from 0deg,
    rgb(255 255 255 / .05) 0deg, rgb(255 255 255 / .05) 150deg,
    rgb(253 224 71 / .25) 200deg, rgb(255 248 200 / .95) 248deg, rgb(250 204 21 / .7) 262deg,
    rgb(255 255 255 / .05) 310deg, rgb(255 255 255 / .05) 360deg);
  animation: borda-gira 7s linear infinite;
}
.aula-card .borda-gira::before { width: 170%; animation-duration: 8s; }
/* reflexo fixo de vidro no topo do card */
.borda-gira::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgb(255 255 255 / .22), transparent 35%, transparent 75%, rgb(255 255 255 / .06)); }
.mod-capa-card.vazio .borda-gira, .mod-capa-card.completo .borda-gira { opacity: 1 !important; }
/* cada card com a luz num ponto diferente: fica orgânico */
.mod-capa-card .borda-gira::before, .aula-card .borda-gira::before { animation-delay: calc(var(--i, 0) * -1.3s); }

/* borda mais forte (21/11) */
.borda-gira { padding: 2px; }
.borda-gira::before {
  background: conic-gradient(from 0deg,
    rgb(255 255 255 / .08) 0deg, rgb(255 255 255 / .08) 120deg,
    rgb(250 204 21 / .45) 175deg, #fde047 225deg, #fffbe0 250deg, #facc15 268deg, rgb(250 204 21 / .35) 300deg,
    rgb(255 255 255 / .08) 330deg, rgb(255 255 255 / .08) 360deg);
}
@media (max-width: 640px) { .borda-gira { padding: 1.75px; } }

/* capa das tarefas do Aquecimento (Dia 01…10) */
.capa-dia { background: radial-gradient(120% 100% at 0% 0%, rgb(250 204 21 / .22), transparent 55%), repeating-linear-gradient(135deg, transparent 0 16px, rgb(250 204 21 / .04) 16px 17px), #121212; }
.cd-arte { position: absolute; inset: 0; display: grid; align-content: center; padding: 0 16px; gap: 2px; }
.cd-arte small { font: 700 12px/1 var(--display); letter-spacing: .3em; color: var(--tinta-2); }
.cd-arte strong { font: 700 clamp(40px, 9vw, 58px)/.95 var(--display); color: var(--destaque); letter-spacing: -0.04em; text-shadow: 0 0 24px rgb(250 204 21 / .35); }
.cd-arte span { margin-top: 6px; font-size: 12px; color: var(--tinta-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capa-dia .selo.feito { left: auto; right: 10px; }
@media (max-width: 640px) { .cd-arte { padding: 0 10px; } .cd-arte strong { font-size: 36px; } .cd-arte span { font-size: 10.5px; } }
@media (max-width: 640px) { .lista-aulas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; } }

/* ═════════ tarefas diárias: arte, oculto e jornada (21/11) ═════════ */
.capa-dia { background: #121212; }
.capa-dia .arte { position: absolute; inset: 0; width: 100%; height: 100%; }
.cd-arte { display: none; }
.cd-num { position: absolute; left: 12px; bottom: 8px; z-index: 2; display: grid; line-height: 1; font: 700 34px/1 var(--display); color: var(--destaque); letter-spacing: -0.04em; text-shadow: 0 4px 20px rgb(0 0 0 / .7); }
.cd-num small { font-size: 10px; letter-spacing: .3em; color: var(--tinta-2); margin-bottom: 2px; }
.capa-dia.oculta .cd-num { color: #6b6b6b; }
.cd-aviso { position: absolute; right: 8px; top: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 16px);
  padding: 4px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; background: rgb(0 0 0 / .75); color: var(--tinta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-aviso svg { width: 12px; height: 12px; flex: none; }
.aula-card .titulo-oculto { display: inline-flex; align-items: center; gap: 6px; color: var(--tinta-3); letter-spacing: .02em; }
.aula-card .titulo-oculto svg { width: 14px; height: 14px; }
.aula-card .titulo-oculto::after { content: "████████"; color: var(--superficie-2); letter-spacing: -1px; font-size: 12px; }

.faixa-diaria { margin: 4px 0 26px; padding: 16px 18px; border-radius: var(--raio-grande); border: 1px solid rgb(250 204 21 / .25);
  background: linear-gradient(120deg, rgb(250 204 21 / .1), rgb(20 20 20 / .6) 55%); display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; align-items: center; }
.faixa-diaria small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-2); }
.faixa-diaria b { font: 700 28px/1.05 var(--display); color: var(--destaque); letter-spacing: -0.02em; }
.faixa-diaria b span { font-size: 15px; color: var(--tinta-2); font-weight: 500; }
.fd-dias { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.fd-dias i { height: 8px; border-radius: 99px; background: var(--superficie-2); border: 1px solid var(--linha); }
.fd-dias i.ok { background: var(--destaque); border-color: var(--destaque); }
.fd-dias i.agora { border-color: var(--destaque); box-shadow: 0 0 10px rgb(250 204 21 / .5); }
.faixa-diaria p { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--tinta); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.faixa-diaria p span { color: var(--tinta-2); }
@media (max-width: 640px) {
  .faixa-diaria { grid-template-columns: 1fr; padding: 14px; }
  .faixa-diaria b { font-size: 24px; }
  .cd-num { font-size: 26px; left: 9px; bottom: 6px; }
  .cd-aviso { font-size: 10px; padding: 3px 7px; right: 6px; top: 6px; }
}
.capa-dia .selo.feito { left: 8px; right: auto; top: 8px; }
.aula-card .titulo-oculto { white-space: nowrap; }
.aula-card .titulo-oculto::after { content: none; }
.capa-dia.oculta .arte { opacity: .8; }

/* módulos sem aula: em breve, sem acesso */
.mod-capa-card.vazio { cursor: not-allowed; }
.mod-capa-card.vazio .arte { filter: grayscale(.7) brightness(.5) !important; }
.mod-capa-card.vazio h3, .mod-capa-card.vazio p.desc { opacity: .55; }
.mod-capa-card.vazio .mc-num { color: var(--tinta-3); }
.mod-capa-card.vazio .borda-gira { display: none; }
.mod-capa-card.vazio:active { transform: none !important; }

/* bloqueado (falta terminar o anterior) ≠ em breve (sem aula): tom âmbar */
.mod-capa-card.trancado { border: 1px dashed rgb(250 204 21 / .4) !important; background: linear-gradient(160deg, rgb(250 204 21 / .07), rgb(20 20 20 / .85) 60%) !important; }
.mod-capa-card.trancado .arte, .mod-capa-card.trancado .mc-capa img { filter: sepia(.6) saturate(1.4) brightness(.4) !important; }
.mod-capa-card.trancado .mc-capa::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: 2; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgb(10 10 10 / .8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23facc15' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / 22px no-repeat;
  border: 1.5px solid rgb(250 204 21 / .6); box-shadow: 0 0 22px rgb(250 204 21 / .25); }
.mod-capa-card.trancado .mc-num { color: rgb(250 204 21 / .45) !important; }
.mod-capa-card.trancado h3, .mod-capa-card.trancado p.desc { opacity: .75 !important; }
.mod-capa-card.trancado .mc-tag { background: rgb(10 10 10 / .85); color: var(--destaque); border: 1px solid rgb(250 204 21 / .5); }
.mod-capa-card.trancado .mc-info { color: rgb(250 204 21 / .75); }
.mod-capa-card.trancado .borda-gira { display: none; }
@media (max-width: 640px) { .mod-capa-card.trancado .mc-capa::before { width: 36px; height: 36px; margin: -18px 0 0 -18px; background-size: 17px; } }
.faixa-previa { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; padding: 8px 14px; border-radius: 99px; background: var(--destaque); color: #0a0a0a; font-size: 13px; font-weight: 600; box-shadow: 0 8px 30px rgb(0 0 0 / .6); white-space: nowrap; }
.faixa-previa a { margin-left: 8px; color: #0a0a0a; }

/* ═════════ cards 3D agressivos (21/11) ═════════
   Tudo estático (pinta 1x); só um flutuar leve via transform (GPU). */
.mod-capa-card .mc-capa { perspective: 700px; background: radial-gradient(70% 90% at 70% 35%, rgb(250 204 21 / .22), transparent 65%), #0b0b0b; }
/* piso em perspectiva */
.mod-capa-card .mc-capa::before { content: ""; position: absolute; left: -30%; right: -30%; bottom: -38%; height: 85%; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgb(250 204 21 / .5) 1px, transparent 1px), linear-gradient(90deg, rgb(250 204 21 / .5) 1px, transparent 1px);
  background-size: 28px 28px; transform: rotateX(72deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%); opacity: .55; }
/* ícone em 3D: inclinado, com profundidade e brilho */
.mod-capa-card .mc-capa .arte { z-index: 1; transform: rotateX(14deg) rotateY(-18deg) scale(1.08); transform-origin: 60% 55%;
  filter: drop-shadow(5px 7px 0 #6b5200) drop-shadow(0 18px 22px rgb(250 204 21 / .35)); }
.mod-capa-card .mc-capa .arte > rect:first-of-type { fill: transparent !important; }
.mod-capa-card .mc-capa .arte * { animation: none !important; }
.mod-capa-card.na-tela:not(.trancado):not(.vazio) .mc-capa .arte { animation: flutua-3d 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.7s); will-change: transform; }
@keyframes flutua-3d { 50% { transform: rotateX(14deg) rotateY(-18deg) scale(1.08) translateY(-5px); } }
.mod-capa-card:hover:not(.trancado) .mc-capa .arte { transform: rotateX(14deg) rotateY(-18deg) scale(1.08) !important; }
/* número com volume */
.mod-capa-card .mc-num { z-index: 3; font-size: 58px; color: #ffd21f !important;
  text-shadow: 1px 1px 0 #d9a800, 2px 2px 0 #c49400, 3px 3px 0 #a87f00, 4px 4px 0 #8c6a00, 5px 5px 0 #705500, 6px 6px 0 #554000, 10px 12px 18px rgb(0 0 0 / .8), 0 0 28px rgb(250 204 21 / .35) !important; }
.mod-capa-card:hover .mc-num { text-shadow: 1px 1px 0 #d9a800, 2px 2px 0 #c49400, 3px 3px 0 #a87f00, 4px 4px 0 #8c6a00, 5px 5px 0 #705500, 6px 6px 0 #554000, 10px 12px 18px rgb(0 0 0 / .8), 0 0 28px rgb(250 204 21 / .35) !important; }
/* card como bloco: base grossa */
.mod-capa-card:not(.trancado):not(.vazio) { box-shadow: inset 0 1px 0 rgb(255 255 255 / .09), 0 6px 0 -1px #3a2e00, 0 7px 0 -1px rgb(250 204 21 / .35), 0 22px 40px -18px rgb(0 0 0 / .95) !important; }
.mod-capa-card { margin-bottom: 6px; }
/* bloqueado / em breve: sem cor no 3D */
.mod-capa-card.vazio .mc-capa::before, .mod-capa-card.trancado .mc-capa::before { opacity: .15; filter: grayscale(1); }
.mod-capa-card.vazio .mc-capa .arte { filter: grayscale(1) brightness(.5) drop-shadow(5px 7px 0 #222) !important; }
.mod-capa-card.trancado .mc-capa .arte { filter: sepia(.6) saturate(1.4) brightness(.4) drop-shadow(5px 7px 0 #2a2100) !important; }
.mod-capa-card.vazio .mc-num, .mod-capa-card.trancado .mc-num { text-shadow: 1px 1px 0 #333, 2px 2px 0 #2a2a2a, 3px 3px 0 #222, 4px 4px 0 #1a1a1a, 8px 10px 14px rgb(0 0 0 / .8) !important; }
.mod-capa-card.vazio .mc-num { color: #5c5c5c !important; }
.mod-capa-card.trancado .mc-num { color: rgb(250 204 21 / .5) !important; }
@media (max-width: 640px) {
  .mod-capa-card .mc-num { font-size: 36px; text-shadow: 1px 1px 0 #c49400, 2px 2px 0 #a87f00, 3px 3px 0 #705500, 6px 8px 12px rgb(0 0 0 / .8) !important; }
  .mod-capa-card .mc-capa .arte { filter: drop-shadow(3px 4px 0 #6b5200); }
  .mod-capa-card .mc-capa::before { background-size: 20px 20px; }
}
@media (prefers-reduced-motion: reduce) { .mod-capa-card .mc-capa .arte { animation: none !important; } }
.mod-capa-card .mc-capa .arte { inset: -14% -10% !important; width: 120% !important; height: 128% !important; }

/* ═════════ fundo agressivo (21/11) — só transform/opacity animados ═════════ */
.fundo-fx .f1 { background: radial-gradient(circle, rgb(250 204 21 / .2), transparent 60%); }
.fundo-fx .f2 { background: radial-gradient(circle, rgb(234 179 8 / .14), transparent 60%); }
/* feixes de luz diagonais varrendo */
.f-feixes { position: absolute; inset: -40% -60%; will-change: transform; opacity: .9;
  background: repeating-linear-gradient(115deg, transparent 0 140px, rgb(250 204 21 / .06) 140px 150px, transparent 150px 330px, rgb(250 204 21 / .1) 330px 334px, transparent 334px 520px);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000, transparent 80%); mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000, transparent 80%);
  animation: feixes 18s linear infinite; }
@keyframes feixes { to { transform: translate3d(520px, 0, 0); } }
/* piso de grade em perspectiva andando pra frente */
.f-piso { position: absolute; left: 0; right: 0; bottom: 0; height: 46vh; perspective: 340px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 95%); mask-image: linear-gradient(to top, #000 5%, transparent 95%); }
.f-piso b { position: absolute; left: -60%; right: -60%; top: 0; height: 200%; transform-origin: 50% 0; will-change: transform;
  background-image: linear-gradient(rgb(250 204 21 / .35) 1.5px, transparent 1.5px), linear-gradient(90deg, rgb(250 204 21 / .35) 1.5px, transparent 1.5px);
  background-size: 64px 64px; transform: rotateX(72deg) translate3d(0, 0, 0); animation: piso 3.2s linear infinite; }
@keyframes piso { to { transform: rotateX(72deg) translate3d(0, 64px, 0); } }
.f-piso::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #facc15, transparent); box-shadow: 0 0 30px 6px rgb(250 204 21 / .45); opacity: .7; }
.f-vinheta { position: absolute; inset: 0; background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgb(0 0 0 / .75)); }
.fundo-fx::before { opacity: 1; background-image: radial-gradient(rgb(250 204 21 / .16) 1px, transparent 1.5px); }
@media (hover: none), (max-width: 640px) { .f-feixes, .f-piso b { animation: none; } .f-piso { height: 34vh; } }
@media (prefers-reduced-motion: reduce) { .f-feixes, .f-piso b { animation: none !important; } }

/* ═════════ login minimalista ═════════ */
.login-fundo, .btn-tema-login { display: none !important; }
.login { background: transparent; }
.login-caixa { width: min(380px, 100%); padding: 30px 26px 24px; border-radius: 24px; text-align: left;
  background: linear-gradient(160deg, rgb(26 26 26 / .78), rgb(12 12 12 / .9)); border: 1px solid rgb(255 255 255 / .08);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 0 0 1px rgb(250 204 21 / .08), 0 30px 80px -20px rgb(0 0 0 / .9), 0 0 80px -30px rgb(250 204 21 / .4); }
.login-caixa .marca-grande { font-size: 16px; }
.login-caixa .marca-grande .marca-selo { width: 34px; height: 34px; font-size: 16px; box-shadow: 0 0 24px rgb(250 204 21 / .45); }
.login-titulo { margin: 26px 0 6px; font-size: 30px; }
.login-sub { margin-bottom: 22px; font-size: 14px; }
.login-form { gap: 12px; }
.login-form label { font-size: 12px; letter-spacing: .02em; }
.login-form input { height: 48px; background: rgb(0 0 0 / .45); border-color: rgb(255 255 255 / .1); }
.login-form .botao-cheio { height: 50px; font-weight: 700; box-shadow: 0 10px 30px -10px rgb(250 204 21 / .7); }
.login-nota { line-height: 1.5; }
.login.lembrado .login-sub { display: none; }
.login.lembrado .login-titulo { margin-bottom: 18px; }
@media (max-width: 640px) { .login-caixa { padding: 24px 18px 20px; border-radius: 20px; } .login-titulo { font-size: 26px; } }
.fundo-fx::after { display: none; }
.f-piso b { top: auto; bottom: 0; transform-origin: 50% 100%; }

/* botão Painel ADM (só admins) */
.perfil-menu #btn-adm { background: var(--destaque); color: #111; font-weight: 700; text-align: center; margin-bottom: 6px; }
.perfil-menu #btn-adm:hover { filter: brightness(1.08); background: var(--destaque); }
.perfil-menu #btn-adm[hidden] { display: none; }

/* ═════════ otimização + hover dos módulos (23/11) ═════════
   Hover só em mouse (Mac/PC): piso da capa acende e anda, aro amarelo, seta "Abrir".
   Sem subir card, sem 3D, sem luz seguindo o mouse. Celular: toque com resposta. */
body.troca main:not([hidden]) { animation: troca-leve .35s cubic-bezier(.2,.8,.2,1); } /* sem blur na troca de tela (blur pesa) */

.mc-abrir { position: absolute; inset: auto; right: 10px; bottom: 10px; z-index: 4;
  padding: 6px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; background: var(--destaque); color: #0a0a0a;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.mod-capa-card.trancado .mc-abrir, .mod-capa-card.vazio .mc-abrir { display: none; }

@media (hover: hover) and (pointer: fine) {
  .mod-capa-card:not(.trancado):not(.vazio) { transition: box-shadow .3s, border-color .3s, opacity .6s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 60ms); }
  .mod-capa-card:not(.trancado):not(.vazio):hover {
    border-color: rgb(250 204 21 / .5) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 6px 0 -1px #3a2e00, 0 7px 0 -1px rgb(250 204 21 / .6), 0 0 0 1px rgb(250 204 21 / .35), 0 18px 50px -14px rgb(250 204 21 / .45) !important; }
  .mod-capa-card:not(.trancado):not(.vazio) .mc-capa::before { transition: opacity .3s; }
  .mod-capa-card:not(.trancado):not(.vazio):hover .mc-capa::before { opacity: 1; animation: piso-card 1.1s linear infinite; }
  .mod-capa-card:not(.trancado):not(.vazio):hover .mc-abrir { opacity: 1; transform: none; }
  .mod-capa-card:not(.trancado):not(.vazio):hover .borda-gira::before { animation-duration: 2.6s; }
  .mod-capa-card:not(.trancado):not(.vazio):hover h3 { color: var(--destaque); }
  .mod-capa-card h3 { transition: color .25s; }
}
@keyframes piso-card { to { background-position: 0 28px, 28px 0; } }

/* celular/tablet: sem flutuar, toque afunda o card e a seta aparece */
@media (hover: none), (max-width: 640px) {
  .mod-capa-card.na-tela:not(.trancado):not(.vazio) .mc-capa .arte { animation: none; will-change: auto; }
  .mod-capa-card:not(.trancado):not(.vazio):active { transform: scale(.97) !important; transition: transform .1s !important; }
  .mod-capa-card:not(.trancado):not(.vazio):active .mc-abrir { opacity: 1; transform: none; }
  .mod-capa-card .mc-abrir { font-size: 11px; padding: 5px 9px; right: 8px; bottom: 8px; }
  .fundo-fx i { will-change: auto; }
  .f-feixes, .f-piso b { will-change: auto; }
}
@media (prefers-reduced-motion: reduce) { .mod-capa-card .mc-capa::before { animation: none !important; } }
