.aluno-badge { font-size: .9rem; font-weight: 600; color: var(--muted); }

.view { padding: 40px 0; }

/* Course picker */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.pick-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px; transition: transform .15s, box-shadow .15s;
}
.pick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pick-card h3 { font-size: 1.05rem; }
.pick-card .muted { color: var(--muted); font-size: .88rem; }
.pick-card small { color: var(--muted); font-size: .8rem; }
.pick-card .buy { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.pick-card .price { font-weight: 800; color: var(--accent); font-size: 1.1rem; }

/* Registration */
.reg-form, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; max-width: 520px; }
.reg-form h2 { margin-bottom: 6px; }
.reg-form p { color: var(--muted); margin-bottom: 18px; font-size: .95rem; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .85rem; font-weight: 600; }
.field input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,107,26,.15); }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tab {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--text);
}
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab[data-lock="1"].locked { opacity: .5; }

/* Course head */
.course-head { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.course-head h1 { font-size: 1.5rem; margin-bottom: 6px; }
.course-head p { color: var(--muted); }
.course-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.stat { background: var(--bg); border-radius: 10px; padding: 10px 14px; font-size: .85rem; }
.stat strong { display: block; font-size: 1.05rem; color: var(--accent); }

/* Lock / payment block */
.need {
  background: #fff7e6; border: 1px solid #f7d488; border-radius: 14px; padding: 20px 22px; margin-top: 18px;
}
.need h3 { margin-bottom: 8px; }
.pix { background: #fff; border: 1px dashed var(--brand); border-radius: 12px; padding: 16px; margin: 14px 0; text-align: center; }
.pix .key { font-size: 1.3rem; font-weight: 800; color: var(--brand); letter-spacing: 1px; margin: 6px 0; }
.pix .lbl { font-size: .8rem; color: var(--muted); }

/* Welcome (acesso liberado) */
.welcome {
  background: linear-gradient(135deg, #1f9d53, #16a34a); color: #fff; border-radius: 14px;
  padding: 22px 24px; margin-top: 18px; text-align: center;
}
.welcome .big { font-size: 2rem; }
.welcome h2 { margin: 6px 0 8px; color: #fff; }
.welcome .muted { color: rgba(255,255,255,.92); font-size: .98rem; }
.welcome .muted.small { font-size: .85rem; margin-top: 6px; }

/* Lessons */
.aulas { display: grid; gap: 10px; }
.aula {
  display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s;
}
.aula:hover { border-color: var(--brand); }
.aula .play { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1rem; }
.aula .ttl { flex: 1; font-weight: 600; }
.aula-search { display: block; width: fit-content; margin-top: 5px; color: var(--brand); font-size: .84rem; font-weight: 600; text-decoration: none; }
.aula-search:hover { text-decoration: underline; }
.aula .ok { margin-left: auto; color: #1f9d53; font-weight: 700; }

/* Quiz / prova */
.qz { max-width: 720px; }
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 16px; }
.q-card .q { font-weight: 700; margin-bottom: 12px; }
.opt { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.opt:hover { border-color: var(--brand); }
.opt.sel { border-color: var(--brand); background: #fff0e6; }
.opt b { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: .8rem; }
.qz-res { padding: 16px; border-radius: 12px; margin-top: 16px; font-weight: 700; text-align: center; }
.qz-res.pass { background: #eefaf1; color: #1f9d53; }
.qz-res.fail { background: #fdeeee; color: #c0392b; }

/* Certificate */
.cert-ready { text-align: center; background: var(--surface); border: 2px solid var(--brand); border-radius: 16px; padding: 30px; }
.cert-ready .big { font-size: 2rem; }
.cert-fields { max-width: 420px; margin: 0 auto; text-align: left; padding: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; margin-top: 18px; }
.cert-fields .field input { width: 100%; }
.cert-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.pdf-canvas { position: relative; width: min(560px, 100%); margin: 0 auto; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 20px; background: #fff; height: 320px; }
#pdfCanvas, .pdf-canvas iframe { display: block; width: 100%; height: 100%; border: 0; }

.muted { color: var(--muted); }
.top-space { margin-top: 20px; }

/* Modal video */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.82); display: grid; place-items: center; z-index: 100; padding: 20px;
}
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(900px, 100%); }
.modal-close { position: absolute; top: -14px; right: -10px; z-index: 2; background: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-weight: 700; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

@media (max-width: 600px) {
  .view { padding: 24px 0; }
  .course-head { padding: 18px; }
}
