/* ===== Área do Aluno, CGJF Academy ===== */
body.login-body, body.app-body { background: var(--black); color: var(--bone); min-height: 100vh; }
.login-body { display: flex; align-items: center; justify-content: center; position: relative; overflow-x: hidden; }
.login-glow { position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(600px 420px at 78% 12%, rgba(242,129,27,.22), transparent 70%),
              radial-gradient(520px 380px at 8% 92%, rgba(242,129,27,.10), transparent 70%); }
.login-wrap { position: relative; width: 100%; max-width: 460px; padding: 32px var(--gutter, 20px); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.login-logo img { height: 96px; width: auto; }
.login-card { width: 100%; background: linear-gradient(180deg, var(--graphite-800), var(--graphite-900)); border: 1px solid var(--graphite-700); border-radius: 22px; padding: clamp(24px, 6vw, 38px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.login-card h1 { font-size: clamp(34px, 8vw, 44px); margin: 10px 0 8px; line-height: 1; }
.login-sub { color: var(--grey-mute); font-size: 15px; margin-bottom: 22px; }
.login-card label { display: block; font-family: var(--font-utility); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-dim); margin: 16px 0 8px; }
.login-card input { width: 100%; background: var(--black); border: 1px solid var(--graphite-600); color: var(--bone); border-radius: 12px; padding: 14px 16px; font: inherit; font-size: 16px; outline: none; transition: border-color .25s, box-shadow .25s; }
.login-card input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242,129,27,.18); }
.senha-box { position: relative; }
.senha-box input { padding-right: 92px; }
.senha-ver { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--orange-light); font-family: var(--font-utility); font-size: 13px; cursor: pointer; padding: 8px 10px; }
.login-btn { width: 100%; margin-top: 24px; justify-content: center; }
.login-erro { background: rgba(220,60,50,.12); border: 1px solid rgba(220,60,50,.45); color: #ffb4ab; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 6px; }
.login-ajuda { margin-top: 20px; font-size: 13.5px; color: var(--grey-mute); text-align: center; }
.login-ajuda a, .login-voltar:hover { color: var(--orange-light); }
.login-voltar { font-size: 13.5px; color: var(--grey-mute); }

/* ---------- Layout do painel ---------- */
:root { --sb-w: 288px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sb-w); background: var(--graphite-900); border-right: 1px solid var(--graphite-700); display: flex; flex-direction: column; padding: 22px 16px; z-index: 60; overflow-y: auto; }
.sidebar-logo img { height: 74px; width: auto; margin: 0 auto 18px 6px; }
.sidebar-user { background: var(--graphite-800); border: 1px solid var(--graphite-700); border-radius: 14px; padding: 12px 14px; margin-bottom: 18px; }
.sidebar-user-label { display: block; font-family: var(--font-utility); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-light); margin-bottom: 2px; }
.sidebar-user strong { font-size: 14.5px; word-break: break-word; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 12px; color: var(--bone-dim); font-size: 15px; border: 1px solid transparent; transition: background .2s, color .2s; min-height: 48px; }
.sidebar-nav a:hover { background: var(--graphite-800); color: var(--bone); }
.sidebar-nav a.ativo { background: rgba(242,129,27,.12); border-color: rgba(242,129,27,.45); color: var(--bone); }
.sn-num { font-family: var(--font-utility); font-size: 11.5px; color: var(--grey-mute); width: 20px; }
.sidebar-nav a.ativo .sn-num { color: var(--orange-light); }
.sidebar-nav svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--orange); }
.sidebar-foot { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.sf-link { font-size: 13.5px; color: var(--grey-mute); padding: 6px 12px; }
.sf-link:hover { color: var(--orange-light); }
.sf-sair { width: 100%; background: transparent; border: 1px solid var(--graphite-600); color: var(--bone); border-radius: 12px; padding: 12px; font: inherit; font-size: 14.5px; cursor: pointer; min-height: 46px; }
.sf-sair:hover { border-color: var(--orange); color: var(--orange-light); }

.app-topbar { display: none; }
.app-scrim { display: none; }
.app-main { margin-left: var(--sb-w); padding: clamp(24px, 4vw, 56px) clamp(18px, 4vw, 56px) 40px; max-width: calc(1080px + var(--sb-w)); }
.app-sec { padding: 0; display: none; animation: aparece .4s ease; }
.app-sec.ativa { display: block; }
@keyframes aparece { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.app-foot { margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--graphite-700); font-size: 12.5px; color: var(--grey-mute); }

.sec-head { margin-bottom: 24px; }
.sec-head h1 { font-size: clamp(34px, 5.5vw, 56px); margin: 10px 0 8px; line-height: 1.02; }
.sec-head p { color: var(--grey-mute); max-width: 640px; }

/* Introdução */
.intro-hero { position: relative; padding: clamp(28px, 5vw, 56px); border-radius: 24px; border: 1px solid var(--graphite-700); overflow: hidden;
  background: radial-gradient(520px 320px at 85% 0%, rgba(242,129,27,.25), transparent 70%), linear-gradient(180deg, var(--graphite-800), var(--graphite-900)); }
.intro-hero h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1; margin: 14px 0 16px; }
.intro-hero h1 em { font-style: normal; background: var(--grad-orange, linear-gradient(90deg,#f2811b,#ffb673)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-hero .lede { max-width: 640px; color: var(--bone-dim); font-size: clamp(16px, 2vw, 18px); }
.intro-cta { margin-top: 26px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.card { background: var(--graphite-900); border: 1px solid var(--graphite-700); border-radius: 20px; padding: clamp(22px, 3vw, 32px); }
.card h2 { font-size: clamp(26px, 3vw, 34px); margin: 8px 0 12px; line-height: 1.05; }
.card p { color: var(--bone-dim); margin-bottom: 12px; font-size: 15.5px; }
.card-accent { border-color: rgba(242,129,27,.4); background: linear-gradient(180deg, rgba(242,129,27,.10), var(--graphite-900)); }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; color: var(--bone-dim); font-size: 14.5px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.ticks b { color: var(--bone); }
.sec-sub { font-size: clamp(28px, 4vw, 40px); margin: 44px 0 16px; }
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.topics div { background: var(--graphite-900); border: 1px solid var(--graphite-700); border-left: 3px solid var(--orange); border-radius: 14px; padding: 16px 18px; }
.topics b { display: block; font-family: var(--font-utility); font-size: 15px; margin-bottom: 4px; }
.topics span { color: var(--grey-mute); font-size: 14px; }
.passos { list-style: none; counter-reset: p; padding: 0; display: grid; gap: 12px; }
.passos li { counter-increment: p; position: relative; padding: 16px 18px 16px 62px; background: var(--graphite-900); border: 1px solid var(--graphite-700); border-radius: 14px; color: var(--bone-dim); }
.passos li::before { content: counter(p); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--grad-orange, #f2811b); color: #1a1a1d; font-family: var(--font-utility); font-weight: 700; display: grid; place-items: center; }
.passos b { color: var(--bone); }

/* Leitor de PDF */
.pdf-shell { background: var(--graphite-900); border: 1px solid var(--graphite-700); border-radius: 18px; overflow: clip; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pdf-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: rgba(26,26,29,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--graphite-700); font-size: 13.5px; color: var(--grey-mute); }
.pdf-zoom { display: flex; gap: 6px; }
.pdf-zoom button { background: var(--graphite-800); border: 1px solid var(--graphite-600); color: var(--bone); border-radius: 10px; padding: 8px 14px; min-height: 40px; min-width: 40px; font: inherit; font-size: 13.5px; cursor: pointer; }
.pdf-zoom button:hover { border-color: var(--orange); color: var(--orange-light); }
.pdf-pages { padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; background: #131315; max-height: none; overflow-x: auto; }
.pdf-page { position: relative; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.5); border-radius: 4px; flex-shrink: 0; }
.pdf-page canvas { display: block; width: 100%; height: auto; pointer-events: none; }
.pdf-shell:fullscreen { overflow: auto; background: #131315; }
.pdf-shell:fullscreen .pdf-pages { padding: 16px 8px; }
.pdf-nota { margin-top: 12px; font-size: 12.5px; color: var(--grey-mute); }
@media print { body.app-body > * { display: none !important; } body.app-body::before { content: 'Impressão não disponível.'; color: #000; } }

/* Vídeos */
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; border: 1px solid var(--graphite-700); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.em-breve { text-align: center; padding: clamp(40px, 8vw, 90px) 24px; border: 1px dashed var(--graphite-600); border-radius: 20px; background: radial-gradient(380px 220px at 50% 0%, rgba(242,129,27,.14), transparent 70%), var(--graphite-900); }
.em-breve-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(242,129,27,.14); color: var(--orange); }
.em-breve-icon svg { width: 30px; height: 30px; }
.em-breve h3 { font-family: var(--font-display); font-size: 40px; margin-bottom: 6px; }
.em-breve p { color: var(--grey-mute); max-width: 440px; margin: 0 auto; }

/* Finalização */
.fim-card { padding: clamp(28px, 5vw, 60px); border-radius: 24px; border: 1px solid rgba(242,129,27,.4); background: radial-gradient(520px 320px at 10% 0%, rgba(242,129,27,.22), transparent 70%), linear-gradient(180deg, var(--graphite-800), var(--graphite-900)); }
.fim-card h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1; margin: 12px 0 20px; }
.fim-card h1 em { font-style: normal; color: var(--orange-light); }
.fim-card p { color: var(--bone-dim); max-width: 680px; margin-bottom: 14px; font-size: 16.5px; }
.fim-sign { margin-top: 22px; }
.fim-sign b { color: var(--bone); }
.fim-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Tablet e celular ---------- */
@media (max-width: 1024px) {
  .app-topbar { display: flex; align-items: center; gap: 12px; position: fixed; inset: 0 0 auto 0; height: 60px; padding: 0 14px; background: rgba(13,13,14,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--graphite-700); z-index: 50; }
  .app-topbar-logo { height: 40px; width: auto; }
  .app-topbar-title { margin-left: auto; font-family: var(--font-utility); font-size: 13.5px; color: var(--bone-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50vw; }
  .app-burger { width: 44px; height: 44px; border: 1px solid var(--graphite-600); border-radius: 12px; background: transparent; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
  .app-burger span { width: 20px; height: 2px; background: var(--bone); border-radius: 2px; }
  .sidebar { transform: translateX(-100%); transition: transform .35s ease; width: min(86vw, 320px); box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  .sidebar.open { transform: none; }
  .app-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 55; }
  .app-scrim.show { opacity: 1; pointer-events: auto; }
  .app-main { margin-left: 0; padding-top: 84px; }
  .pdf-bar { top: 60px; }
}
@media (max-width: 760px) {
  .intro-grid { grid-template-columns: 1fr; }
  .pdf-pages { padding: 10px 6px; }
  .pdf-zoom button { padding: 8px 10px; }
  .fim-cta .btn { width: 100%; justify-content: center; }
}

.pdf-link { position: absolute; display: block; cursor: pointer; border-radius: 6px; }
.pdf-link:hover { background: rgba(242,129,27,.12); outline: 1px solid rgba(242,129,27,.5); }

/* Perfil do aluno (pequeno, na lateral) */
.perfil-tag { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(242,129,27,.16); color: var(--orange-light); font-size: 10px; letter-spacing: .08em; }

/* Sala do Zoom */
.zoom-card { border: 1px solid rgba(242,129,27,.45); border-radius: 22px; padding: clamp(22px, 4vw, 36px);
  background: radial-gradient(420px 220px at 100% 0%, rgba(242,129,27,.2), transparent 70%), linear-gradient(180deg, var(--graphite-800), var(--graphite-900)); }
.zoom-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-utility); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-light); }
.zoom-live i { width: 9px; height: 9px; border-radius: 50%; background: #ff4d3d; box-shadow: 0 0 0 0 rgba(255,77,61,.6); animation: zpulse 1.8s infinite; }
@keyframes zpulse { 70% { box-shadow: 0 0 0 10px rgba(255,77,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,61,0); } }
.zoom-card h2 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 6px; line-height: 1.05; }
.zoom-quando { color: var(--bone-dim); font-size: 16px; }
.zoom-btn { margin-top: 22px; }
.zoom-dados { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.zoom-dados div { background: var(--black); border: 1px solid var(--graphite-700); border-radius: 14px; padding: 12px 18px; min-width: 150px; }
.zoom-dados dt { font-family: var(--font-utility); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-mute); }
.zoom-dados dd { margin: 4px 0 0; font-family: var(--font-utility); font-size: 20px; font-weight: 700; letter-spacing: .04em; user-select: all; }
.zoom-dica { margin-top: 18px; font-size: 14px; color: var(--grey-mute); max-width: 620px; }
@media (max-width: 760px) { .zoom-btn { width: 100%; justify-content: center; } .zoom-dados div { flex: 1 1 140px; } }

/* Conta (engrenagem no cantinho do perfil) */
.sidebar-user { position: relative; padding-right: 48px; }
.conta-btn { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--graphite-600); background: transparent; color: var(--bone-dim); display: grid; place-items: center; cursor: pointer; transition: all .25s; }
.conta-btn:hover { border-color: var(--orange); color: var(--orange-light); }
.conta-btn svg { width: 17px; height: 17px; }
.sidebar-user-email { display: block; margin-top: 3px; font-size: 11.5px; color: var(--grey-mute); word-break: break-all; }
.sn-badge { margin-left: auto; font-family: var(--font-utility); font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(242,129,27,.16); color: var(--orange-light); }

.conta-dlg { border: 1px solid var(--graphite-600); border-radius: 22px; background: var(--graphite-900); color: var(--bone); padding: 0; width: min(92vw, 440px); }
.conta-dlg::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
.conta-dlg form { padding: clamp(22px, 5vw, 32px); }
.conta-dlg h2 { font-size: 34px; margin-bottom: 4px; }
.conta-sub { color: var(--grey-mute); font-size: 14px; margin-bottom: 8px; }
.conta-dlg label { display: block; font-family: var(--font-utility); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-dim); margin: 16px 0 8px; }
.conta-dlg input { width: 100%; background: var(--black); border: 1px solid var(--graphite-600); color: var(--bone); border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 16px; outline: none; }
.conta-dlg input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242,129,27,.18); }
.conta-msg { min-height: 22px; margin-top: 14px; font-size: 14px; }
.conta-msg.ok { color: #7fe0a0; } .conta-msg.erro { color: #ffb4ab; }
.conta-acoes { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }

/* Progresso */
.prog-card { background: var(--graphite-900); border: 1px solid var(--graphite-700); border-radius: 18px; padding: 18px 20px; margin-bottom: 20px; }
.prog-top { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-utility); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 10px; }
.prog-top b { font-family: var(--font-display); font-size: 34px; letter-spacing: .02em; color: var(--orange-light); font-weight: 400; }
.prog-bar { height: 10px; border-radius: 99px; background: var(--graphite-700); overflow: hidden; }
.prog-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad-orange); transition: width .5s var(--ease); }
.prog-card small { display: block; margin-top: 8px; color: var(--grey-mute); font-size: 13px; }

/* Aulas */
.aulas { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.aula-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.aula-cod { font-family: var(--font-utility); font-size: 12px; letter-spacing: .12em; color: var(--orange-light); }
.aula-info h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; margin-top: 4px; }
.aula-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.aula-acoes .btn[disabled] { opacity: .45; cursor: not-allowed; }
.aula-vazio { position: absolute; inset: 0; display: grid; place-items: center; color: var(--grey-mute); text-align: center; padding: 20px; }
.aula-play { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--bone); font: inherit; font-size: 16px; text-align: center; padding: 20px;
  background: radial-gradient(420px 240px at 50% 40%, rgba(242,129,27,.22), transparent 70%), var(--graphite-900); }
.aula-play span { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; padding-left: 4px; background: var(--grad-orange); color: var(--black); transition: transform .3s var(--ease); }
.aula-play:hover span { transform: scale(1.08); }
.aula-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 640px; overflow-y: auto; }
.aula-item { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; min-height: 56px; border-radius: 14px; border: 1px solid var(--graphite-700); background: var(--graphite-900); color: var(--bone); font: inherit; font-size: 15px; cursor: pointer; transition: border-color .25s, background .25s; }
.aula-item:hover { border-color: var(--graphite-600); background: var(--graphite-800); }
.aula-item.ativa { border-color: var(--orange); background: rgba(242,129,27,.1); }
.aula-check { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--graphite-600); display: grid; place-items: center; color: transparent; transition: all .25s; }
.aula-check svg { width: 15px; height: 15px; }
.aula-item.feita .aula-check { background: var(--orange); border-color: var(--orange); color: var(--black); }
.aula-nome { flex: 1; min-width: 0; line-height: 1.2; }
.aula-nome small { display: block; font-family: var(--font-utility); font-size: 11px; letter-spacing: .1em; color: var(--grey-mute); margin-bottom: 2px; }
.aula-estado { font-size: 11.5px; color: var(--orange-light); font-family: var(--font-utility); }
@media (max-width: 960px) { .aulas { grid-template-columns: 1fr; } .aula-lista { max-height: none; } .aula-acoes .btn { flex: 1 1 auto; justify-content: center; } }
