/* ==========================================================================
   LASERACUPUNTURA & LASERTERAPIA — Plataforma de videoaulas
   ========================================================================== */
:root {
  --bg: #0A1628;
  --bg2: #0D2839;
  --panel: #112F45;
  --panel2: #163A54;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --text: #F3F5F8;
  --muted: #94A3B8;
  --dim: #64748B;
  --mag: #00B4D8;
  --mag2: #42B2DE;
  --vio: #0077B6;
  --ok: #22C55E;
  --warn: #F59E0B;
  --radius: 16px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --font: "DM Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --head: "Poppins", "DM Sans", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--mag2); }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--mag2); outline-offset: 2px; border-radius: 6px; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; border-radius: 999px; padding: .85em 1.5em; font-weight: 700; font-size: 15px; text-decoration: none; color: #04121F; background: linear-gradient(135deg, #48CAE4, var(--mag)); box-shadow: 0 10px 30px -10px rgba(0, 180, 216, .7); transition: transform .15s, filter .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn--ghost { color: var(--text); background: rgba(255, 255, 255, .06); box-shadow: none; border: 1px solid var(--line2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--ok { color: #fff; background: linear-gradient(135deg, #22C55E, #15803D); box-shadow: 0 10px 30px -12px rgba(34, 197, 94, .6); }
.btn--sm { padding: .6em 1.1em; font-size: 14px; }
.btn--block { width: 100%; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 0; font-size: 14px; }
.link:hover { color: var(--text); }

/* ---------- carregando ---------- */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 50; transition: opacity .4s; }
.boot.is-out { opacity: 0; pointer-events: none; }
.boot { gap: 18px; padding: 24px; text-align: center; }
.boot__msg { max-width: 420px; font-size: 14.5px; color: var(--muted); }
.boot__msg p { margin: 0 0 8px; }
.boot__msg .boot__dica { font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.boot.is-erro .boot__ring { display: none; }
.boot__ring { width: 54px; height: 54px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .08); border-top-color: var(--mag); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- marca ---------- */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: #fff url("../img/marca/logo-emblema-96.png?v=1") center / 112% no-repeat; position: relative; flex: none; box-shadow: 0 0 24px -4px rgba(0, 180, 216, .8); }
.avatar--foto { overflow: hidden; background: #fff; } .avatar--foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert__logo { height: clamp(42px, 9vw, 96px); width: auto; mix-blend-mode: multiply; margin-bottom: 1.5%; }
.brand__txt { line-height: 1.1; }
.brand__txt b { display: block; font: 700 13px/1.1 var(--head); letter-spacing: 2px; text-transform: uppercase; }
.brand__txt span { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mag2); }

/* ==========================================================================
   LOGIN
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.auth__art { position: relative; overflow: hidden; background: #0A1628 url("../img/laser-fbm.jpg?v=1") right top / cover no-repeat; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; }
.auth__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 22, 40, .96) 0%, rgba(10, 22, 40, .75) 32%, rgba(10, 22, 40, 0) 62%), linear-gradient(90deg, rgba(10, 22, 40, .55) 0%, rgba(10, 22, 40, 0) 55%), linear-gradient(180deg, rgba(10, 22, 40, .55) 0%, rgba(10, 22, 40, 0) 18%); }
.auth__art > * { position: relative; z-index: 1; }
.auth__title { font: 800 clamp(30px, 3.6vw, 52px)/1.05 var(--head); letter-spacing: -.5px; margin: 0 0 16px; text-transform: uppercase; }
.auth__title em { font-style: normal; background: linear-gradient(90deg, var(--mag2), #90E0EF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth__lead { color: #CCD7DF; max-width: 460px; font-size: 16px; margin: 0; }
.auth__facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.auth__facts div { font-size: 13px; color: var(--muted); }
.auth__facts b { display: block; font: 800 24px/1 var(--head); color: #fff; margin-bottom: 4px; }
.auth__side { display: grid; place-items: center; padding: 40px 24px; background: radial-gradient(600px 400px at 80% 0%, rgba(0, 180, 216, .12), transparent 60%), var(--bg2); }
.card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 34px 30px; box-shadow: var(--shadow); }
.card h2 { font: 700 24px/1.2 var(--head); margin: 0 0 6px; }
.card p.sub { margin: 0 0 22px; color: var(--muted); }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; color: #CAD5DD; margin-bottom: 6px; }
.field input { width: 100%; background: #081322; border: 1px solid var(--line2); color: var(--text); border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field input:focus { outline: 0; border-color: var(--mag); box-shadow: 0 0 0 4px rgba(0, 180, 216, .18); }
.pw { position: relative; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font-size: 13px; padding: 6px 8px; }
.msg { font-size: 14px; border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; }
.msg--err { background: rgba(244, 63, 94, .12); border: 1px solid rgba(244, 63, 94, .35); color: #FFC2CF; }
.msg--ok { background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); color: #BBF7D0; }
.card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 10px; flex-wrap: wrap; }
.help { margin-top: 22px; font-size: 13px; color: var(--dim); text-align: center; }
.help a { color: var(--muted); }

/* ==========================================================================
   BLOQUEADO (inadimplência)
   ========================================================================== */
.lock { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; background: radial-gradient(700px 420px at 50% -10%, rgba(0, 180, 216, .18), transparent 70%), var(--bg); }
.lock .card { max-width: 560px; }
.lock__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); margin-bottom: 18px; }
.bill { border: 1px solid var(--line2); background: #0A1723; border-radius: 14px; padding: 14px 16px; margin: 10px 0; display: grid; gap: 10px; }
.bill__top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bill__top b { font-weight: 700; }
.bill__top .val { color: var(--mag2); font-weight: 800; }
.bill__due { font-size: 13px; color: #FDBA74; }
.bill__act { display: flex; gap: 8px; flex-wrap: wrap; }
.note { font-size: 14px; color: #BFE8CD; background: rgba(34, 197, 94, .07); border: 1px solid rgba(34, 197, 94, .25); border-radius: 12px; padding: 12px 14px; margin: 16px 0; }

/* ==========================================================================
   APP
   ========================================================================== */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 12px 28px; background: rgba(10, 22, 40, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top__nav { display: flex; gap: 4px; margin-left: 12px; }
.top__nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.top__nav a.is-on, .top__nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.search { margin-left: auto; position: relative; width: min(340px, 34vw); }
.search input { width: 100%; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px 10px 38px; color: var(--text); font: inherit; font-size: 14px; }
.search input:focus { outline: 0; border-color: rgba(0, 180, 216, .6); background: rgba(255, 255, 255, .07); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .6; }
.user { position: relative; }
.user__btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); padding: 4px; border-radius: 999px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: linear-gradient(135deg, var(--mag), var(--vio)); }
.user__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); }
.user__menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user__menu .who b { display: block; }
.user__menu .who span { font-size: 13px; color: var(--muted); word-break: break-all; }
.user__menu button, .user__menu a { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; }
.user__menu button:hover, .user__menu a:hover { background: rgba(255, 255, 255, .06); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; padding: 60px 48px 48px; background: #0A1628 url("../img/laser-fbm-wide.jpg?v=1") right center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 22, 40, .95) 0%, rgba(10, 22, 40, .6) 45%, rgba(10, 22, 40, 0) 75%), linear-gradient(0deg, var(--bg) 0%, rgba(10, 22, 40, 0) 40%); }
.hero__in { position: relative; max-width: 620px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mag2); background: rgba(0, 180, 216, .1); border: 1px solid rgba(0, 180, 216, .3); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font: 800 clamp(30px, 4.2vw, 56px)/1.02 var(--head); margin: 16px 0 12px; text-transform: uppercase; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--mag2), #90E0EF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #C6D1D9; margin: 0 0 22px; font-size: 16px; }
.hero__meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.hero__meta b { color: #fff; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.prog { display: flex; align-items: center; gap: 12px; margin-top: 22px; max-width: 420px; }
.prog__bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.prog__bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--mag), var(--vio)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.prog span { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- trilhas (linhas de módulos) ---------- */
.rows { padding: 8px 0 60px; }
.row { margin: 34px 0 0; }
.row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 48px; margin-bottom: 14px; }
.row__head h2 { font: 700 20px/1.25 var(--head); margin: 0; }
.row__head .tag { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tag--lock { color: #FDBA74 !important; }
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 290px); gap: 16px; overflow-x: auto; padding: 6px 48px 16px; scroll-snap-type: x mandatory; scroll-padding: 0 48px; scrollbar-width: none; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__arrow { position: absolute; top: 6px; bottom: 16px; width: 44px; border: 0; color: #fff; font-size: 26px; z-index: 2; opacity: 0; transition: opacity .2s; }
.rail:hover .rail__arrow { opacity: 1; }
.rail__arrow--l { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.rail__arrow--r { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.mod { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; padding: 0; transition: transform .2s, border-color .2s, box-shadow .2s; }
.mod:hover { transform: translateY(-4px); border-color: rgba(0, 180, 216, .45); box-shadow: 0 20px 40px -20px rgba(0, 180, 216, .5); }
.mod__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(120% 90% at var(--gx, 75%) 30%, var(--g1, rgba(0, 180, 216, .55)), transparent 60%), linear-gradient(160deg, #112839, #0A1628); }
.mod__art::before { content: ""; position: absolute; width: 180%; height: 1.5px; left: -40%; top: var(--ly, 55%); background: linear-gradient(90deg, transparent, rgba(150, 238, 255, .9), transparent); transform: rotate(var(--rot, -18deg)); box-shadow: 0 0 12px 1px rgba(0, 180, 216, .6); }
.mod__art::after { content: ""; position: absolute; right: -30px; top: -30px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 22px rgba(255, 255, 255, .02), 0 0 0 44px rgba(255, 255, 255, .015); }
/* capa própria do módulo: imagem + degradê embaixo para o número continuar legível */
.mod__art.has-capa { background: #0A1628; }
.mod__art.has-capa::before { content: ""; position: absolute; inset: 0; width: auto; height: auto; left: 0; top: 0; transform: none; box-shadow: none;
  background: linear-gradient(0deg, rgba(10, 22, 40, .88) 0%, rgba(10, 22, 40, .25) 45%, rgba(10, 22, 40, 0) 70%), var(--capa) center / cover no-repeat;
  transition: transform .5s ease; }
.mod__art.has-capa::after { display: none; }
.mod:hover .mod__art.has-capa::before { transform: scale(1.05); }
.mod__code { position: absolute; left: 16px; bottom: 10px; font: 800 44px/1 var(--head); color: rgba(255, 255, 255, .92); letter-spacing: -1px; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); z-index: 1; }
.mod__kind { position: absolute; right: 12px; top: 12px; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: rgba(10, 22, 40, .6); border: 1px solid var(--line2); padding: 4px 9px; border-radius: 999px; }
.mod__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mod__body h3 { font: 700 15.5px/1.3 var(--head); margin: 0; }
.mod__body small { color: var(--muted); font-size: 13px; }
.mod__prog { margin-top: auto; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mod__prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--mag), var(--vio)); }
.mod.is-locked { cursor: not-allowed; }
.mod.is-locked .mod__art { filter: grayscale(.7) brightness(.6); }
.mod.is-locked:hover { transform: none; border-color: var(--line); box-shadow: none; }
.mod__lock { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.mod__lock span { background: rgba(10, 22, 40, .75); border: 1px solid rgba(253, 186, 116, .4); color: #FDBA74; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.mod.is-done .mod__kind { background: rgba(34, 197, 94, .18); border-color: rgba(34, 197, 94, .5); color: #BBF7D0; }

/* ---------- player / aula ---------- */
.lesson { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0; min-height: calc(100vh - 61px); }
.lesson__main { padding: 26px 32px 60px; min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.player iframe, .player > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- proteção do conteúdo: marca d'água, sem cópia, sem impressão ---- */
.lz-prot { -webkit-user-select: none; -ms-user-select: none; user-select: none; }
.lz-prot input, .lz-prot textarea { -webkit-user-select: text; user-select: text; }
.lz-prot img, .lz-prot canvas { -webkit-user-drag: none; }
.lz-wm { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.lz-wm span { position: absolute; font: 600 13px/1.2 var(--font); color: rgba(255, 255, 255, .3); text-shadow: 0 1px 3px rgba(0, 0, 0, .65); white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.lz-wm__t { transition: top 1.8s ease, left 1.8s ease; }
.lz-wm__f { right: 12px; bottom: 10px; font-size: 11.5px !important; color: rgba(255, 255, 255, .24) !important; }
.player > .player__cap { inset: 0 0 auto 0; height: 64px; width: auto; z-index: 5; background: transparent; }
.leitor { position: relative; }
/* no leitor a página é branca e o fundo é escuro: cinza médio com contorno claro e escuro */
.leitor .lz-wm span { color: rgba(110, 133, 153, .75) !important; text-shadow: 0 1px 2px rgba(255, 255, 255, .5), 0 -1px 2px rgba(0, 0, 0, .45); }
.lz-oculto .player, .lz-oculto .leitor, .lz-oculto .lesson__main { filter: blur(24px); transition: filter .2s; }
@media print { body { display: none !important; } html::after { content: "Conteúdo protegido — Laseracupuntura & Laserterapia. A impressão está desativada."; font: 16px Arial, sans-serif; } }
.doc { aspect-ratio: auto; min-height: 320px; display: grid; place-items: center; text-align: center; padding: 40px 24px; background: radial-gradient(500px 300px at 70% 20%, rgba(0, 119, 182, .18), transparent 70%), radial-gradient(500px 300px at 20% 90%, rgba(0, 180, 216, .15), transparent 70%), var(--panel); }
.doc__ico { width: 76px; height: 92px; margin: 0 auto 18px; border-radius: 10px; background: linear-gradient(160deg, #173850, #112F45); border: 1px solid var(--line2); position: relative; display: grid; place-items: center; font: 800 14px/1 var(--head); color: var(--mag2); }
.doc__ico::after { content: ""; position: absolute; right: -1px; top: -1px; width: 22px; height: 22px; background: linear-gradient(225deg, var(--bg) 50%, #204D6D 50%); border-radius: 0 10px 0 6px; }
.doc h3 { font: 700 20px/1.3 var(--head); margin: 0 0 8px; }
.doc p { color: var(--muted); margin: 0 0 18px; }
.lesson__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 22px 0 8px; flex-wrap: wrap; }
.lesson__bar h1 { font: 700 clamp(20px, 2.2vw, 26px)/1.25 var(--head); margin: 0; flex: 1 1 320px; }
.lesson__sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.lesson__nav { display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; }
.lesson__nav .sp { flex: 1; }
.check { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--text); border-radius: 999px; padding: .7em 1.2em; font-weight: 700; font-size: 14px; }
.check i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; transition: all .2s; }
.check.is-on { border-color: rgba(34, 197, 94, .55); background: rgba(34, 197, 94, .1); color: #BBF7D0; }
.check.is-on i { background: var(--ok); border-color: var(--ok); }
.check.is-on i::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #06220F; border-bottom: 2px solid #06220F; transform: rotate(-45deg) translate(1px, -1px); }
.about { margin-top: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.about h4 { margin: 0 0 6px; font: 700 15px/1.3 var(--head); }
.about p { margin: 0; color: var(--muted); font-size: 14px; }

.side { border-left: 1px solid var(--line); background: var(--bg2); position: sticky; top: 61px; height: calc(100vh - 61px); display: flex; flex-direction: column; }
.side__head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.side__head small { color: var(--mag2); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; font-size: 11px; }
.side__head h3 { margin: 4px 0 10px; font: 700 16px/1.3 var(--head); }
.side__list { overflow-y: auto; flex: 1; padding: 8px 10px 20px; scrollbar-width: thin; scrollbar-color: #214F72 transparent; }
.side__sec { margin-top: 6px; }
.side__sec > button { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); text-align: left; padding: 12px 10px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.side__sec > button:hover { background: rgba(255, 255, 255, .04); }
.side__sec > button .cnt { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.side__sec > button .chev { transition: transform .2s; opacity: .6; flex: none; }
.side__sec.is-open > button .chev { transform: rotate(90deg); }
.side__items { display: none; padding: 2px 0 8px; }
.side__sec.is-open .side__items { display: block; }
.item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 10px 10px 12px; border-radius: 10px; text-decoration: none; color: #CDD8E0; font-size: 14px; line-height: 1.4; border-left: 2px solid transparent; }
.item:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.item.is-on { background: rgba(0, 180, 216, .1); border-left-color: var(--mag); color: #fff; }
.item__st { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #3C4954; margin-top: 1px; display: grid; place-items: center; }
.item.is-done .item__st { background: var(--ok); border-color: var(--ok); }
.item.is-done .item__st::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #06220F; border-bottom: 2px solid #06220F; transform: rotate(-45deg) translate(1px, -1px); }
.item__k { display: block; font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.item.is-locked { opacity: .45; pointer-events: none; }

/* ---------- perguntas e respostas ---------- */
.qa { margin-top: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.qa__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.qa__head h3 { margin: 0; font: 700 18px/1.3 var(--head); }
.qa__head span { font-size: 13px; color: var(--muted); }
.qa__form textarea, .qa__rform textarea { width: 100%; resize: vertical; min-height: 64px; background: #081322; border: 1px solid var(--line2); color: var(--text); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; }
.qa__form textarea:focus, .qa__rform textarea:focus { outline: 0; border-color: var(--mag); box-shadow: 0 0 0 4px rgba(0, 180, 216, .15); }
.qa__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.qa__bar small { color: var(--dim); font-size: 12.5px; }
.qa__list { margin-top: 18px; display: grid; gap: 14px; }
.qa__vazio { color: var(--muted); font-size: 14px; margin: 6px 0; }
.qa__msg { display: flex; gap: 12px; }
.qa__msg + .qa__msg:not(.qa__msg--r) { border-top: 1px solid var(--line); padding-top: 14px; }
.qa__av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: linear-gradient(135deg, #225176, #17334E); color: #DDE7EE; }
.qa__msg.is-prof > .qa__av { background: linear-gradient(135deg, var(--mag), var(--vio)); color: #fff; }
.qa__b { flex: 1; min-width: 0; }
.qa__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
.qa__meta b { color: var(--text); font-size: 14px; }
.qa__tag { font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #04121F; background: var(--mag); padding: 2px 8px; border-radius: 999px; }
.qa__em { color: var(--mag2); }
.qa__t { margin-top: 4px; font-size: 15px; color: #D8E2E9; overflow-wrap: anywhere; }
.qa__acts { display: flex; gap: 14px; margin-top: 6px; }
.qa__acts .link { font-size: 13px; }
.qa__resps { margin-top: 10px; display: grid; gap: 12px; padding-left: 14px; border-left: 2px solid var(--line2); }
.qa__resps:empty { display: none; }
.qa__msg--r .qa__av { width: 28px; height: 28px; font-size: 12px; }
.qa__msg.is-prof.qa__msg--r .qa__t { color: #fff; }
.qa__msg.is-oculto { opacity: .45; }
.qa__rform { display: grid; gap: 8px; justify-items: end; }

/* ---------- modal convidar ---------- */
.modal { position: fixed; inset: 0; z-index: 65; background: rgba(10, 22, 40, .78); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.modal__card { position: relative; max-width: 460px; }
.modal__x { position: absolute; right: 14px; top: 10px; background: none; border: 0; color: var(--muted); font-size: 28px; line-height: 1; }
.modal__ico { font-size: 34px; margin-bottom: 8px; }
.top__cv { color: var(--mag2) !important; }
.top__bol { color: #FDBA74 !important; }
/* leitor de PDF (materiais) */
.leitor { border: 1px solid var(--line2); border-radius: var(--radius); background: #0B1A2A; overflow: hidden; display: flex; flex-direction: column; height: min(78vh, 900px); }
.leitor__bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel); }
.leitor__bar .sp { flex: 1; }
.leitor__pag { color: var(--muted); font-size: 13px; }
.leitor__pags { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; -webkit-overflow-scrolling: touch; }
.leitor__pg { background: #fff; box-shadow: 0 8px 26px -8px rgba(0, 0, 0, .6); border-radius: 4px; overflow: hidden; flex: none; }
.leitor__pg canvas { display: block; }
.leitor__msg { margin: auto; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.leitor__msg .boot__ring { width: 36px; height: 36px; }
.leitor__frame { width: 100%; height: 100%; border: 0; background: #fff; }
.leitor:fullscreen { height: 100vh; border-radius: 0; }
.leitor.is-cheio { position: fixed; inset: 0; z-index: 70; height: auto; border-radius: 0; }
@media (max-width: 640px) { .leitor { height: 72vh; } .leitor__bar b { display: none; } }
#boletoModal .modal__card { max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; }
.bol-pergunta { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); display: grid; gap: 6px; }
.bol-pergunta span { color: var(--muted); font-size: 14px; }
.bol-pergunta__btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.bol-extrato { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.bol-extrato__res { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.bol-extrato__res div { background: #0A1723; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.bol-extrato__res b { display: block; font: 800 18px/1.2 var(--head); color: #fff; }
.bol-extrato__res .pago b { color: #86EFAC; }
.bol-extrato__res .aberto b { color: #FDBA74; }
.bol-extrato table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bol-extrato th, .bol-extrato td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.bol-extrato th { color: var(--dim); font-weight: 600; }
.bol-extrato .st-pago { color: #86EFAC; } .bol-extrato .st-aberto { color: #FDBA74; } .bol-extrato .st-vencido { color: #FDA4AF; }

/* ---------- chat com o professor ---------- */
.ch-fab { position: fixed; right: 22px; bottom: 22px; z-index: 55; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 14px 20px; font-weight: 700; font-size: 15px; color: #04121F; background: linear-gradient(135deg, #48CAE4, var(--mag)); box-shadow: 0 14px 34px -10px rgba(0, 180, 216, .8); }
.ch-fab b { min-width: 22px; height: 22px; border-radius: 999px; background: #fff; color: var(--mag); font-size: 12px; display: grid; place-items: center; padding: 0 6px; }
.ch { position: fixed; right: 22px; bottom: 22px; z-index: 56; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--panel2); border: 1px solid var(--line2); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.ch__top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, #16364B, #163A54); border-bottom: 1px solid var(--line); }
.ch__top b { display: block; font-size: 15px; }
.ch__top small { color: var(--muted); font-size: 12px; }
.ch__top button { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; }
.ch__msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ch__vazio { color: var(--muted); font-size: 14px; background: rgba(255, 255, 255, .04); border: 1px dashed var(--line2); border-radius: 12px; padding: 12px 14px; margin: 0; }
.ch__m { display: flex; }
.ch__m.is-eu { justify-content: flex-end; }
.ch__bal { max-width: 82%; background: #16334D; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 9px 12px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.ch__m.is-eu .ch__bal { background: linear-gradient(135deg, rgba(0, 180, 216, .35), rgba(0, 119, 182, .3)); border-color: rgba(0, 180, 216, .35); border-radius: 14px 14px 4px 14px; }
.ch__bal a { color: #C2F6FF; }
.ch__h { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.ch__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ch__form textarea { flex: 1; resize: none; max-height: 120px; background: #081322; border: 1px solid var(--line2); color: var(--text); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14.5px; }
.ch__form textarea:focus { outline: 0; border-color: var(--mag); }
@media (max-width: 480px) { .ch-fab span { display: none; } .ch-fab { padding: 14px 16px; } .ch { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100vh - 90px); } }

/* ---------- busca ---------- */
.page { padding: 34px 48px 60px; max-width: 1100px; }
.page h1 { font: 700 26px/1.2 var(--head); margin: 0 0 6px; }
.page .sub { color: var(--muted); margin: 0 0 24px; }
.results { display: grid; gap: 8px; }
.result { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; text-decoration: none; color: var(--text); }
.result:hover { border-color: rgba(0, 180, 216, .45); }
.result small { display: block; color: var(--muted); font-size: 12.5px; }
.result .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(0, 180, 216, .12); color: var(--mag2); flex: none; font-size: 12px; font-weight: 800; }
.result mark { background: rgba(0, 180, 216, .3); color: #fff; border-radius: 3px; padding: 0 2px; }
.empty { color: var(--muted); padding: 30px 0; }

/* ---------- certificado ---------- */
.cert-cta { margin: 36px 48px 0; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, rgba(34, 197, 94, .12), rgba(0, 119, 182, .1)); border: 1px solid rgba(34, 197, 94, .3); border-radius: var(--radius); padding: 20px 22px; }
.cert-cta p { margin: 0; flex: 1 1 260px; }
.cert { position: fixed; inset: 0; z-index: 60; background: rgba(10, 22, 40, .92); display: grid; place-items: center; padding: 20px; overflow: auto; }
.cert__sheet { width: min(1000px, 100%); aspect-ratio: 1.414; background: #FBF8F4; color: #010D00; border-radius: 6px; position: relative; padding: 5.5% 7%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: var(--shadow); }
.cert__sheet::before { content: ""; position: absolute; inset: 18px; border: 2px solid #00B4D8; border-radius: 4px; }
.cert__sheet::after { content: ""; position: absolute; inset: 26px; border: 1px solid rgba(0, 180, 216, .35); border-radius: 2px; }
.cert__sheet > * { position: relative; z-index: 1; }
.cert__k { font: 700 clamp(9px, 1.3vw, 13px)/1 var(--head); letter-spacing: 4px; text-transform: uppercase; color: #0077B6; }
.cert__t { font: 800 clamp(22px, 4.2vw, 46px)/1.1 var(--head); margin: 2.5% 0 1.5%; letter-spacing: 1px; }
.cert__n { font: 700 clamp(18px, 3.2vw, 36px)/1.2 Georgia, "Times New Roman", serif; font-style: italic; margin: 2% 0; padding: 0 4% 1.2%; border-bottom: 1px solid #CBD5D9; }
.cert__p { font-size: clamp(10px, 1.45vw, 15px); line-height: 1.6; max-width: 80%; color: #3A4955; margin: 0; }
.cert__sig { display: flex; justify-content: space-around; width: 80%; margin-top: 5%; font-size: clamp(9px, 1.2vw, 13px); color: #3A4955; }
.cert__sig div { border-top: 1px solid #6A7984; padding-top: 6px; min-width: 30%; }
.cert__bar { display: flex; gap: 10px; margin-top: 18px; justify-content: center; flex-wrap: wrap; }
.cert__bar input { background: #081322; border: 1px solid var(--line2); color: var(--text); border-radius: 999px; padding: 10px 16px; font: inherit; min-width: 260px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--panel2); border: 1px solid var(--line2); color: var(--text); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); z-index: 70; transition: all .3s; font-size: 14px; pointer-events: none; }
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ---------- consentimento (track.js) ---------- */
.tp-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; z-index: 80; background: var(--panel2); border: 1px solid var(--line2); border-radius: 14px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow); transform: translateY(12px); transition: transform .3s, opacity .3s; }
.tp-consent.is-in { transform: none; }
.tp-consent.is-out { transform: translateY(20px); opacity: 0; }
.tp-consent p { margin: 0; flex: 1 1 240px; font-size: 13.5px; color: var(--muted); }
.tp-consent__btns { display: flex; gap: 8px; }
.tp-consent button { border: 1px solid var(--line2); background: transparent; color: var(--text); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; }
.tp-consent button.is-primary { background: var(--mag); border-color: var(--mag); color: #04121F; }

.foot { border-top: 1px solid var(--line); padding: 22px 48px; color: var(--dim); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .lesson { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-left: 0; border-top: 1px solid var(--line); }
  .side__list { max-height: none; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth__art { min-height: 300px; padding: 28px 20px; background-position: right top; }
  .auth__facts { display: none; }
  .top { padding: 10px 16px; gap: 10px; }
  .top__nav { display: none; }
  .brand__txt span { display: none; }
  .search { width: auto; flex: 1; }
  .hero { min-height: 380px; padding: 40px 16px 28px; background-position: 60% center; }
  .row__head { padding: 0 16px; }
  .rail__track { padding: 6px 16px 14px; scroll-padding: 0 16px; grid-auto-columns: 74%; }
  .rail__arrow { display: none; }
  .lesson__main { padding: 16px 16px 40px; }
  .page { padding: 24px 16px 40px; }
  .cert-cta { margin: 28px 16px 0; }
  .foot { padding: 18px 16px; }
  .brand__txt b { font-size: 11px; letter-spacing: 1.2px; }
}
@media (max-width: 480px) {
  .brand__txt { display: none; }
  .lesson__nav .btn { flex: 1; }
  .lesson__nav .sp { display: none; }
}

@media print {
  body * { visibility: hidden; }
  .cert, .cert * { visibility: visible; }
  .cert { position: absolute; inset: 0; background: #fff; padding: 0; }
  .cert__bar { display: none; }
  .cert__sheet { width: 100%; box-shadow: none; }
  @page { size: A4 landscape; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ==========================================================================
   VÍDEOS DE AJUDA — acrescentar NO FIM de assets/css/plataforma.css
   (a LP e a área do aluno carregam este mesmo arquivo, por isso o estilo é um só)

   .vf       = "vídeo facade": miniatura + botão de play; o iframe entra no clique
   .vf-lp    = grade da LP (1 destaque + 4 temáticos)
   .ajuda    = bloco de ajuda da home do aluno (encolhe depois de algumas visitas)
   Usa só as variáveis que já existem no :root deste arquivo.
   ========================================================================== */
.vf { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #081322; }
.vf--big { border-radius: 20px; border-color: rgba(0, 180, 216, .4); box-shadow: var(--shadow); }
.vf iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vf__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: var(--text); display: block; text-align: left; }
.vf__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* véu escuro por cima da miniatura, para o título ficar legível */
.vf__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 22, 40, .92) 0%, rgba(10, 22, 40, .2) 58%, rgba(10, 22, 40, .3) 100%); }
.vf__ico { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; padding-left: 4px; color: #04121F; background: linear-gradient(135deg, #48CAE4, var(--mag)); box-shadow: 0 0 0 8px rgba(0, 180, 216, .18); transition: transform .2s; }
.vf--big .vf__ico { width: 78px; height: 78px; font-size: 28px; padding-left: 6px; }
.vf__play:hover .vf__ico { transform: translate(-50%, -50%) scale(1.08); }
.vf__play:focus-visible .vf__ico { transform: translate(-50%, -50%) scale(1.08); }
.vf__txt { position: absolute; left: 14px; right: 14px; bottom: 11px; z-index: 1; }
.vf__txt b { display: block; font: 700 14.5px/1.3 var(--head); }
.vf--big .vf__txt b { font-size: 19px; }
.vf__txt small { color: #C6D1D9; font-size: 12.5px; }

/* --- LP: destaque + 4 temáticos --- */
.vf-lp { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin: 22px 0 6px; align-items: start; }
.vf-lp__mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
@media (max-width: 900px) { .vf-lp { grid-template-columns: 1fr; gap: 12px; } .vf-lp__mini { gap: 12px; } }

/* --- área do aluno: bloco de ajuda --- */
.ajuda { margin: 30px 48px 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; }
.ajuda__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ajuda__head h2 { font: 700 18px/1.25 var(--head); margin: 0; }
.ajuda__sub { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.ajuda__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
/* versão encolhida: uma linha só, para quem já sabe usar */
.ajuda--min { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .ajuda { margin: 26px 16px 0; } }
