/* Balaclava® — área de membros do curso.
   Mesma identidade da área dos mentorados (blueprint-membros/public/index.html):
   preto, Inter, hero com fade to black, cards 9:16. */

:root {
  --muted: #909090;
  --line: rgba(255,255,255,.09);
  --card: rgba(13,13,13,.82);
  --panel: #0b0b0b;
  --ok: #34c759;
  --nav-h: 68px;
  --gut: clamp(16px, 3.6vw, 44px);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ *
 *  troca de página: fade nativo entre documentos (Chrome/Edge/Safari);
 *  onde não existe, o body entra em fade sozinho
 * ------------------------------------------------------------------ */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s ease both; }
::view-transition-new(root) { animation: vt-in .42s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

* { margin: 0; padding: 0; box-sizing: border-box; overflow-wrap: break-word; }
html { scroll-behavior: smooth; }
html, body {
  width: 100%;
  background: #000;
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}
body { min-height: 100svh; display: flex; flex-direction: column; animation: page-in .5s ease both; }
body > main, body > section:last-of-type { flex: 1 0 auto; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
::selection { background: #fff; color: #000; }
button, input, textarea { font: inherit; color: inherit; }
button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ------------------------------------------------------------------ *
 *  base
 * ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 18px 28px;
  border: 0; border-radius: 18px;
  background: #fff; color: #000;
  font-size: 16px; font-weight: 600; letter-spacing: -0.04em; line-height: 1;
  text-decoration: none; cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: transform .22s ease, opacity .22s ease, background .22s ease;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn.busy { opacity: .6; cursor: wait; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.ghost { background: rgba(255,255,255,.06); color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.danger { background: rgba(255,90,90,.14); color: #ff9a9a; box-shadow: inset 0 0 0 1px rgba(255,90,90,.35); }

.field { display: block; }
.field span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.52); }
.field input, .notes textarea, .admin input:not([type=checkbox]), .search input {
  width: 100%; min-height: 54px;
  border: 1px solid var(--line); border-radius: 16px; outline: none;
  background: rgba(255,255,255,.055);
  padding: 0 16px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.03em;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .notes textarea:focus { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.08); }
.field input::placeholder, .notes textarea::placeholder { color: rgba(255,255,255,.28); }
.field input:disabled { opacity: .45; }
.field input[readonly] { opacity: .6; }
.msg { display: none; margin-top: 12px; font-size: 13px; line-height: 1.45; letter-spacing: -0.02em; }
.msg.on { display: block; }
.msg.err { color: rgba(255,105,105,.92); }
.msg.ok { color: rgba(120,220,150,.92); }
.hint { font-size: 14px; line-height: 1.5; letter-spacing: -0.02em; color: rgba(255,255,255,.58); }
.dim { color: rgba(255,255,255,.4); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }

/* fade-in no scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ *
 *  topo
 * ------------------------------------------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gut);
  border-bottom: 1px solid transparent;
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease;
  view-transition-name: topo;
}
.nav.solid, .pg-sub .nav { background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav .brand { display: flex; align-items: center; text-decoration: none; }
.nav .logo { height: 21px; width: auto; opacity: .95; }
.nav .logo-fallback { display: none; font-size: 15px; font-weight: 700; letter-spacing: -0.04em; }

.account { position: relative; }
.account .trigger {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 8px 7px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.82);
  font-size: 13px; font-weight: 600; letter-spacing: -0.03em; cursor: pointer;
  transition: background .22s ease, color .22s ease;
}
.account .trigger:hover { background: rgba(255,255,255,.1); color: #fff; }
.account .avatar { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #000; font-size: 11.5px; font-weight: 700; }
.account .trigger .who { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .account .trigger .who { display: none; } .account .trigger { padding: 7px; } }
.menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 232px; padding: 8px;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(14,14,14,.92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .26s ease, transform .26s cubic-bezier(.22,1,.36,1), visibility 0s linear .26s;
}
@media (hover: hover) { .account:hover .menu { opacity: 1; visibility: visible; transform: none; transition: opacity .26s ease, transform .26s cubic-bezier(.22,1,.36,1), visibility 0s; } }
.account.open .menu { opacity: 1; visibility: visible; transform: none; transition: opacity .26s ease, transform .26s cubic-bezier(.22,1,.36,1), visibility 0s; }
.menu .head { padding: 11px 12px 13px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .head .n { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: -0.03em; }
.menu .head .e { margin-top: 3px; font-size: 12px; color: rgba(255,255,255,.42); overflow: hidden; text-overflow: ellipsis; }
.menu a, .menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px;
  border: 0; border-radius: 12px; background: none; color: rgba(255,255,255,.82);
  font-size: 14px; font-weight: 500; letter-spacing: -0.03em; text-align: left; text-decoration: none; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.menu a:hover, .menu button:hover { background: rgba(255,255,255,.07); color: #fff; }
.menu svg { width: 16px; height: 16px; flex: none; opacity: .6; }
.menu .danger:hover { color: #ff8080; }
.adm { display: none; align-items: center; flex: none; padding: 4px 7px; border-radius: 6px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1; }
body.is-admin .adm { display: inline-flex; }

/* ------------------------------------------------------------------ *
 *  hero — idêntico ao dos mentorados
 * ------------------------------------------------------------------ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: #05070c; }
.pg-hub .hero { min-height: min(100svh, 860px); }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img, .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s ease, transform 6s cubic-bezier(.22,1,.36,1);
}
.hero-media img.ready, .hero-media video.ready { opacity: 1; transform: scale(1); }
.hero-media img.handoff, .hero-media video.handoff { transition: opacity .01s linear, transform 6s cubic-bezier(.22,1,.36,1); }
.hero-media video { z-index: 1; }
.hero-curtain { position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0; pointer-events: none; transition: opacity .42s ease; }
.hero-curtain.on { opacity: 1; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(90,110,150,.16), transparent 62%), radial-gradient(60% 50% at 50% 46%, rgba(255,255,255,.07), transparent 70%);
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.38) 34%, rgba(0,0,0,.06) 62%, rgba(0,0,0,.2) 100%),
    linear-gradient(180deg, rgba(0,0,0,.46) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 62%, rgba(0,0,0,.78) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1440px; margin: 0 auto; padding: calc(var(--nav-h) + 24px) var(--gut) 120px; }
.hero-copy { max-width: 620px; }
.hero-copy .kicker { font-size: clamp(19px, 2.1vw, 27px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.hero-copy h1 { margin-top: 4px; font-size: clamp(44px, 6.4vw, 78px); font-weight: 800; letter-spacing: -0.062em; line-height: .96; }
.hero-copy h1 sup { display: inline-block; font-size: .26em; line-height: 0; vertical-align: super; margin-left: .03em; }
.hero-copy .desc { margin-top: 16px; max-width: 46ch; font-size: clamp(13.5px, 1.05vw, 15px); line-height: 1.5; letter-spacing: -0.02em; color: rgba(255,255,255,.68); }
.hero-copy .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-copy .kicker, .hero-copy h1, .hero-copy .desc, .hero-copy .actions {
  opacity: 0; filter: blur(14px); transform: translateY(14px);
  animation: hero-in 1.1s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-copy h1 { animation-delay: .1s; }
.hero-copy .desc { animation-delay: .24s; }
.hero-copy .actions { animation-delay: .38s; }
@keyframes hero-in { to { opacity: 1; filter: blur(0); transform: none; } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 2; transform: translateX(-50%); color: rgba(255,255,255,.4); animation: cue-in .8s ease 1.4s both, cue-bob 2s ease-in-out 2.2s infinite; transition: opacity .4s ease; }
.scroll-cue svg { width: 24px; height: 24px; display: block; }
.scroll-cue.hide { opacity: 0; animation: none; }
@keyframes cue-in { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes cue-bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }
.hero.arte-texto .hero-media img { object-position: left center; }
@media (min-aspect-ratio: 1/1) {
  .hero.arte-texto { align-items: flex-end; }
  .hero.arte-texto .kicker, .hero.arte-texto h1, .hero.arte-texto .desc {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .hero.arte-texto .actions { margin-top: 0; }
}
@media (max-aspect-ratio: 1/1) { .hero.arte-texto .hero-media img { object-position: 30% center; } }
@media (max-width: 620px) {
  .hero { align-items: flex-end; }
  .hero-inner { padding-top: calc(var(--nav-h) + 16px); padding-bottom: clamp(84px, 12svh, 104px); }
  .hero-copy .actions .btn { flex: 1 1 auto; }
}

/* ------------------------------------------------------------------ *
 *  cards 9:16 — só a arte (o nome já vem na imagem)
 * ------------------------------------------------------------------ */
.modules { position: relative; z-index: 2; width: 100%; max-width: 1440px; margin: 0 auto; padding: clamp(60px, 8vw, 110px) var(--gut) clamp(80px, 10vw, 140px); }
.sec-head { margin-bottom: clamp(24px, 3vw, 36px); }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; letter-spacing: -0.06em; line-height: 1.04; }
.sec-head .sec-desc { margin-top: 8px; max-width: 52ch; font-size: 14.5px; line-height: 1.45; letter-spacing: -0.02em; color: rgba(255,255,255,.62); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 22px); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.mcard {
  position: relative; display: block; width: 100%;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: radial-gradient(85% 60% at 50% 18%, rgba(255,255,255,.07), transparent 65%), linear-gradient(180deg, #121212 0%, #070707 100%);
  -webkit-mask-image: -webkit-radial-gradient(#fff, #000);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: transform .45s cubic-bezier(.22,1,.36,1), border-color .35s ease, box-shadow .45s ease;
}
a.mcard:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.22); box-shadow: 0 26px 70px rgba(0,0,0,.6); }
a.mcard:active { transform: translateY(-2px) scale(.995); }
.mcard .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 1s ease, transform .6s cubic-bezier(.22,1,.36,1), filter .5s ease; pointer-events: none; }
.mcard .cover.ready { opacity: 1; }
a.mcard:hover .cover.ready { transform: scale(1.05); }
@media (max-width: 700px) { .mcard { border-radius: 14px; } }

/* barra fina de progresso na base — sem texto */
.mbar { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; height: 3px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.mbar i { display: block; height: 100%; border-radius: inherit; background: #fff; }

/* bloqueado pelo drip */
.mcard.locked .cover { filter: grayscale(.7) brightness(.42); }
.mcard.locked { cursor: not-allowed; }
.mcard .lock {
  position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(0,0,0,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 11.5px; font-weight: 600; letter-spacing: -0.01em;
}
.mcard .lock svg { width: 13px; height: 13px; }
.mcard.soon { cursor: default; }
@media (max-width: 700px) { .mcard .lock { font-size: 10.5px; padding: 7px 10px; bottom: 10px; } }

/* ------------------------------------------------------------------ *
 *  páginas internas
 * ------------------------------------------------------------------ */
.page { width: 100%; max-width: 1440px; margin: 0 auto; padding: calc(var(--nav-h) + clamp(18px, 2.4vw, 30px)) var(--gut) 90px; }
.page.narrow { max-width: 860px; }
.page-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.06em; line-height: 1.05; margin-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 18px; font-size: 13px; font-weight: 500; letter-spacing: -0.03em; color: rgba(255,255,255,.42); }
.crumb a { text-decoration: none; transition: color .2s ease; }
.crumb a:hover { color: #fff; }
.crumb .sep { opacity: .5; }
.crumb .cur { color: rgba(255,255,255,.8); }

.panel { border: 1px solid var(--line); border-radius: 22px; background: var(--panel); padding: 22px; }
.panel + .panel { margin-top: 14px; }
.panel h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.04em; margin-bottom: 12px; }
.panel h3:not(:first-child) { margin-top: 22px; }
.panel .hint { margin-bottom: 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.kv { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 8px 18px; font-size: 14px; letter-spacing: -0.02em; }
.kv dt { color: rgba(255,255,255,.45); }
.kv dd { word-break: break-word; }
.devices, .events { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.devices li { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px; }
.devices li span { color: rgba(255,255,255,.5); font-size: 12.5px; }
.devices em { color: #7ee2a0; font-style: normal; }

.locked-panel { max-width: 560px; margin: clamp(30px, 8vh, 90px) auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.locked-panel h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.055em; line-height: 1.1; }
.locked-panel p { color: rgba(255,255,255,.62); line-height: 1.55; letter-spacing: -0.02em; }
.lp-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line); }
.lp-ic svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------------ *
 *  aula
 * ------------------------------------------------------------------ */
.pv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(18px, 2vw, 28px); align-items: start; }
@media (max-width: 1080px) { .pv-grid { grid-template-columns: minmax(0, 1fr); } }

.video { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #000; view-transition-name: palco; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.video .vph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; background: radial-gradient(70% 60% at 50% 40%, rgba(255,255,255,.06), transparent 70%), linear-gradient(180deg, #101010, #060606); text-align: center; padding: 24px; }
.video .play { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.95); color: #000; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.video .play svg { width: 22px; height: 22px; margin-left: 3px; }
.video .vph .lbl { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.4); }
.video.on .vph { display: none; }
/* marca d'água: e-mail do aluno, passeando devagar por cima do vídeo */
.video .wm {
  position: absolute; z-index: 3; left: 8%; top: 12%; pointer-events: none;
  font-size: clamp(10px, 1.1vw, 13px); font-weight: 600; letter-spacing: .01em;
  color: rgba(255,255,255,.22); text-shadow: 0 1px 2px rgba(0,0,0,.35);
  white-space: nowrap; user-select: none;
  transition: left 9s ease-in-out, top 9s ease-in-out;
}
.video .fs { position: absolute; z-index: 4; right: 12px; top: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 11px; background: rgba(0,0,0,.5); color: #fff; cursor: pointer; opacity: 0; transition: opacity .25s ease; }
.video:hover .fs, .video:fullscreen .fs { opacity: .85; }
.video .fs svg { width: 16px; height: 16px; }
.video:fullscreen { border-radius: 0; border: 0; aspect-ratio: auto; }

.stage-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(70% 80% at 0% 0%, rgba(255,255,255,.06), transparent 60%), #080808; }
.stage-card h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.1; }
.stage-card p { color: rgba(255,255,255,.6); letter-spacing: -0.02em; }

.lesson-head { margin-top: clamp(20px, 2.2vw, 28px); }
.lesson-head .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.34); }
.lesson-head h1 { margin-top: 10px; font-size: clamp(25px, 2.7vw, 34px); font-weight: 600; letter-spacing: -0.06em; line-height: 1.06; }
.lesson-head .watched { margin-top: 8px; font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.42); min-height: 1em; }
.lesson-actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500; letter-spacing: -0.03em; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
.chip:hover { background: rgba(255,255,255,.09); color: #fff; }
.chip:active { transform: scale(.97); }
.chip svg { width: 16px; height: 16px; flex: none; }
.chip.liked { background: rgba(255,255,255,.95); color: #000; border-color: #fff; }
.lesson-actions .grow { flex: 1; }
.btn-done { min-height: 48px; padding: 0 24px; border-radius: 15px; font-size: 14.5px; }
.btn-done.is-done { background: rgba(52,199,89,.16); color: #7ee2a0; box-shadow: inset 0 0 0 1px rgba(52,199,89,.42); }
@media (max-width: 620px) { .lesson-actions .grow { display: none; } .btn-done { flex: 1; } }

.materiais { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.material { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.04); text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.material:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.material .ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line); }
.material .ic svg { width: 17px; height: 17px; }
.material .tx b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.03em; }
.material .tx i { display: block; margin-top: 3px; font-size: 12px; font-style: normal; color: rgba(255,255,255,.42); }

.notes { display: block; margin-top: 26px; position: relative; }
.notes span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.52); }
.notes textarea { min-height: 110px; padding: 14px 16px; resize: vertical; line-height: 1.5; font-size: 15px; }
.notes i { position: absolute; right: 12px; bottom: 10px; font-size: 11.5px; font-style: normal; color: rgba(255,255,255,.35); }

.pager { margin-top: clamp(28px, 3.4vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .pager { grid-template-columns: 1fr; } }
.pager > * { display: block; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); padding: 18px 20px; text-decoration: none; transition: background .22s ease, border-color .22s ease; }
.pager a:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.pager .off { opacity: .32; }
.pager .k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.38); }
.pager .t { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.3; }
.pager .next { text-align: right; }

.side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--nav-h) + 18px); }
.side .panel + .panel { margin-top: 0; }
@media (max-width: 1080px) { .side { position: static; } }
.ring-wrap { display: grid; place-items: center; padding: 8px 0 4px; }
.ring { position: relative; width: 120px; height: 120px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.ring .bg { stroke: rgba(255,255,255,.1); }
.ring .fg { stroke: #fff; transition: stroke-dashoffset .8s cubic-bezier(.22,1,.36,1); }
.ring .pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 600; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.ring-wrap .cap { margin-top: 14px; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.5); }
.side .list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.side .list-head .n { font-size: 16px; font-weight: 600; letter-spacing: -0.05em; }
.side .list-head .c { font-size: 12.5px; color: rgba(255,255,255,.42); }
.lessons { display: flex; flex-direction: column; gap: 6px; max-height: min(56vh, 520px); overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.lessons::-webkit-scrollbar { width: 4px; }
.lessons::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 4px; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid transparent; border-radius: 14px; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.li:hover { background: rgba(255,255,255,.05); }
.li.on { background: rgba(255,255,255,.07); border-color: var(--line); }
.li .ic { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line); color: rgba(255,255,255,.7); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.li .ic svg { width: 15px; height: 15px; }
.li.done .ic { background: var(--ok); color: #04310f; box-shadow: none; }
.li .tx { flex: 1; font-size: 14px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.3; color: rgba(255,255,255,.74); }
.li.on .tx { color: #fff; }
.li.done .tx { color: rgba(255,255,255,.56); }
.li .mini { display: block; margin-top: 7px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.li .mini i { display: block; height: 100%; background: rgba(255,255,255,.7); }

/* ------------------------------------------------------------------ *
 *  login / cadastro (portão)
 * ------------------------------------------------------------------ */
.gate { flex: 1; display: grid; place-items: center; padding: 24px; position: relative; }
.gate::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 55% at 50% 0%, rgba(255,255,255,.07), transparent 70%); pointer-events: none; }
.gate-card {
  position: relative; width: 100%; max-width: 400px;
  border: 1px solid var(--line); border-radius: 26px; background: var(--card);
  box-shadow: 0 30px 120px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  padding: 26px; animation: gate-in .6s cubic-bezier(.22,1,.36,1) both;
}
.gate-card.wide { max-width: 440px; }
@keyframes gate-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.gate h1, .termo-head h1 { font-size: 25px; font-weight: 600; letter-spacing: -0.055em; line-height: 1.12; }
.gate h1 sup { display: inline-block; font-size: .42em; line-height: 0; vertical-align: super; margin-left: .04em; }
.gate .hint { margin-top: 9px; }
.gate form { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.gate .btn { width: 100%; margin-top: 4px; }
.gate .switch { margin-top: 18px; text-align: center; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.42); }
.gate .switch button { border: 0; background: none; color: rgba(255,255,255,.72); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gate .pane { display: none; }
.gate .pane.on { display: block; animation: gate-in .45s cubic-bezier(.22,1,.36,1) both; }
.gate .pane > .msg.on { margin-top: 14px; }
.sent-mark { width: 52px; height: 52px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #000; }
.sent-mark svg { width: 24px; height: 24px; }
.step { margin-bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.38); }

/* ------------------------------------------------------------------ *
 *  termo
 * ------------------------------------------------------------------ */
.termo-page { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: clamp(28px, 6vh, 64px) var(--gut) 60px; display: flex; flex-direction: column; gap: 18px; }
.termo-head .hint { margin-top: 8px; }
.termo-box {
  height: min(58svh, 620px); overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line); border-radius: 20px; background: #090909;
  font-size: 14px; line-height: 1.6; letter-spacing: -0.01em; color: rgba(255,255,255,.78);
}
.termo-box.static { height: auto; overflow: visible; }
.termo-box p { margin: 0 0 6px; }
.termo-box h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.termo-box h4 { margin: 14px 0 6px; font-size: 14px; font-weight: 700; color: #fff; }
.termo-box ul { margin: 0 0 8px 20px; }
.termo-box hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.termo-box p:first-child { font-weight: 700; color: #fff; }
.termo-sign { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.termo-sign .btn { width: 100%; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; letter-spacing: -0.02em; color: rgba(255,255,255,.8); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: #fff; }
.check:has(input:disabled) { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------------------------ *
 *  admin
 * ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats div { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.stats b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -0.05em; }
.stats span { font-size: 12.5px; color: rgba(255,255,255,.5); }
.admin .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin .row input { flex: 1 1 180px; min-height: 48px; }
.admin .row .btn { min-height: 48px; padding: 0 22px; }
.admin .inline { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,.6); }
.search { margin: 18px 0 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; letter-spacing: -0.02em; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); background: #080808; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td a { text-decoration: none; }
td.warn { color: #ffb36b; font-weight: 700; }
tr.dim td { color: rgba(255,255,255,.35); }
.tag { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: rgba(255,255,255,.1); vertical-align: middle; }
.tag.ativo { background: rgba(52,199,89,.16); color: #7ee2a0; }
.tag.suspenso, .tag.reembolsado { background: rgba(255,90,90,.14); color: #ff9a9a; }
.bar { display: inline-block; width: 70px; height: 4px; margin-right: 8px; border-radius: 4px; background: rgba(255,255,255,.12); vertical-align: middle; overflow: hidden; }
.bar i { display: block; height: 100%; background: #fff; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.cols .panel + .panel { margin-top: 0; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.actions-row .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
.events li { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.events li > span:first-child { color: rgba(255,255,255,.4); font-variant-numeric: tabular-nums; }
@media print {
  .nav, .foot, .noprint { display: none !important; }
  body, .panel, .termo-box { background: #fff !important; color: #000 !important; }
  .panel, .termo-box { border-color: #ccc !important; }
  .kv dt, .hint, .termo-box * { color: #000 !important; }
  .page { padding-top: 0; }
}

/* ------------------------------------------------------------------ *
 *  rodapé
 * ------------------------------------------------------------------ */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut) 40px; font-size: 12px; letter-spacing: -0.02em; color: rgba(255,255,255,.4); }
.foot b { display: block; color: #fff; font-weight: 700; margin-bottom: 4px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
