:root{
  --primary:#f97316;
  --primary-dark:#ea580c;
  --dark:#0f172a;
  --muted:#64748b;
  --border:#e2e8f0;
  --bg:#f8fafc;
  --white:#fff;
  --green:#10b981;
  --red:#ef4444;
  --amber:#f59e0b;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,Segoe UI,Arial,sans-serif;
  background:var(--bg);
  color:var(--dark)
}
.container{width:min(1120px,92%);margin:auto}
.hero{
  padding:72px 0;
  background:linear-gradient(135deg,#0f172a,#1e293b);
  color:#fff
}
.badge{
  display:inline-flex;padding:8px 12px;border-radius:999px;
  background:#fff7ed;color:#c2410c;font-weight:800;font-size:12px
}
h1{font-size:clamp(34px,6vw,62px);line-height:1.02;margin:18px 0 16px}
.lead{font-size:18px;line-height:1.65;color:#cbd5e1;max-width:760px}
.card{
  background:#fff;border:1px solid var(--border);border-radius:22px;
  padding:24px;box-shadow:0 8px 30px rgba(15,23,42,.06)
}
.grid{display:grid;gap:20px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:800px){.grid-2,.grid-3{grid-template-columns:1fr}}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  border:0;border-radius:14px;padding:14px 20px;font-weight:900;
  cursor:pointer;text-decoration:none
}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-dark)}
.btn-dark{background:var(--dark);color:#fff}
.btn-soft{background:#fff7ed;color:#c2410c}
.form-control{
  width:100%;border:1px solid #cbd5e1;border-radius:14px;
  padding:13px 14px;font-size:15px;outline:none;background:#fff
}
.form-control:focus{border-color:var(--primary);box-shadow:0 0 0 3px #ffedd5}
label{font-weight:800;font-size:13px;display:block;margin:12px 0 7px}
.section{padding:42px 0}
.progress{
  height:12px;background:#e2e8f0;border-radius:999px;overflow:hidden
}
.progress>div{height:100%;background:var(--primary)}
.lesson{
  display:flex;gap:16px;align-items:flex-start;padding:18px;
  border:1px solid var(--border);border-radius:18px;background:#fff
}
.lesson-num{
  width:42px;height:42px;border-radius:14px;background:#fff7ed;color:#c2410c;
  display:flex;align-items:center;justify-content:center;font-weight:900;flex:none
}
.small{font-size:12px;color:var(--muted)}
.muted{color:var(--muted)}
.score{
  font-size:54px;font-weight:950;line-height:1;color:var(--primary)
}
.result-box{padding:18px;border-radius:16px;background:#f8fafc;border:1px solid var(--border)}
.success{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;padding:14px;border-radius:14px}
.warning{background:#fffbeb;border:1px solid #fde68a;color:#92400e;padding:14px;border-radius:14px}


/* =========================================================
   V0.2.1 — ÁREA DO ALUNO / MOBILE FIRST
   ========================================================= */
body{min-height:100vh}
.student-shell{min-height:100vh;background:linear-gradient(180deg,#f8fafc 0,#fff 100%)}
.student-topbar{
  position:sticky;top:0;z-index:40;background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);border-bottom:1px solid var(--border)
}
.student-topbar-inner{
  width:min(1120px,92%);margin:auto;height:68px;display:flex;align-items:center;
  justify-content:space-between;gap:16px
}
.student-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--dark)}
.student-logo{
  width:42px;height:42px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--primary),#fb923c);color:#fff;font-weight:950;
  box-shadow:0 8px 20px rgba(249,115,22,.22)
}
.student-brand-title{font-weight:950;font-size:14px;line-height:1.1}
.student-brand-sub{font-size:10px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.student-avatar{
  width:40px;height:40px;border-radius:999px;background:#0f172a;color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:900
}
.student-main{padding:28px 0 100px}
.student-hero{
  display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.6fr);gap:20px;align-items:stretch
}
.student-welcome{
  border-radius:26px;padding:28px;background:linear-gradient(135deg,#0f172a,#1e293b);
  color:#fff;position:relative;overflow:hidden
}
.student-welcome:after{
  content:"";position:absolute;width:240px;height:240px;border-radius:999px;
  background:rgba(249,115,22,.18);right:-80px;top:-110px
}
.student-welcome .muted{color:#cbd5e1}
.student-kpi-card{
  background:#fff;border:1px solid var(--border);border-radius:26px;padding:24px;
  box-shadow:0 10px 30px rgba(15,23,42,.05)
}
.student-kpi-number{font-size:36px;font-weight:950;line-height:1}
.student-section-title{
  display:flex;justify-content:space-between;align-items:end;gap:12px;margin:32px 0 14px
}
.student-section-title h2{margin:0;font-size:22px}
.student-section-title p{margin:4px 0 0}
.continue-card{
  margin-top:20px;padding:22px;border-radius:24px;background:#fff7ed;border:1px solid #fed7aa;
  display:flex;justify-content:space-between;gap:18px;align-items:center
}
.continue-card strong{font-size:18px}
.lesson-list{display:grid;gap:14px}
.lesson-card{
  background:#fff;border:1px solid var(--border);border-radius:22px;padding:18px;
  display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:16px;align-items:center;
  box-shadow:0 6px 18px rgba(15,23,42,.035);transition:.18s ease
}
.lesson-card:hover{transform:translateY(-1px);box-shadow:0 10px 26px rgba(15,23,42,.07)}
.lesson-card.is-locked{opacity:.72;background:#f8fafc}
.lesson-card-number{
  width:56px;height:56px;border-radius:18px;background:#fff7ed;color:#c2410c;
  display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:950
}
.lesson-card.is-done .lesson-card-number{background:#ecfdf5;color:#047857}
.lesson-card-title{font-weight:950;font-size:17px;margin:3px 0 6px}
.lesson-card-desc{font-size:13px;color:var(--muted);line-height:1.5;margin:0}
.lesson-card-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.status-chip{
  display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;
  font-size:10px;font-weight:900
}
.status-chip.ok{background:#ecfdf5;color:#047857}
.status-chip.pending{background:#f1f5f9;color:#64748b}
.status-chip.orange{background:#fff7ed;color:#c2410c}
.student-bottom-nav{display:none}
.video-shell{
  background:#fff;border:1px solid var(--border);border-radius:24px;padding:14px;
  box-shadow:0 8px 24px rgba(15,23,42,.06)
}
.video-frame{position:relative;padding-top:56.25%;overflow:hidden;border-radius:18px;background:#0f172a}
.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.tool-card{
  background:#fff;border:1px solid var(--border);border-radius:22px;padding:22px
}
.tool-card-icon{
  width:46px;height:46px;border-radius:15px;background:#fff7ed;color:#c2410c;
  display:flex;align-items:center;justify-content:center;font-weight:950;margin-bottom:14px
}
.page-heading{margin:22px 0}
.page-heading h1{font-size:clamp(30px,5vw,48px);color:#0f172a;margin:10px 0}
.back-link{text-decoration:none;color:var(--muted);font-weight:800;font-size:13px}

@media(max-width:820px){
  .student-main{padding-top:18px}
  .student-hero{grid-template-columns:1fr}
  .student-welcome{padding:22px;border-radius:22px}
  .student-kpi-card{border-radius:22px}
  .continue-card{align-items:flex-start;flex-direction:column}
  .lesson-card{
    grid-template-columns:48px minmax(0,1fr);
    padding:15px;border-radius:18px
  }
  .lesson-card-number{width:48px;height:48px;border-radius:15px;font-size:17px}
  .lesson-card-action{grid-column:1/-1}
  .lesson-card-action .btn{width:100%}
  .student-bottom-nav{
    display:grid;grid-template-columns:repeat(3,1fr);position:fixed;left:0;right:0;bottom:0;
    z-index:50;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);
    border-top:1px solid var(--border);padding:8px 10px calc(8px + env(safe-area-inset-bottom))
  }
  .student-bottom-nav a{
    text-decoration:none;color:#64748b;text-align:center;font-size:10px;font-weight:900;
    padding:8px 5px;border-radius:12px
  }
  .student-bottom-nav a.active{color:#c2410c;background:#fff7ed}
  .student-bottom-nav .nav-icon{font-size:18px;display:block;margin-bottom:2px}
  .student-topbar-inner{height:60px}
  .student-logo{width:36px;height:36px;border-radius:12px}
  .student-brand-title{font-size:13px}
  .card{padding:18px;border-radius:18px}
  .section{padding:24px 0}
  h1{font-size:clamp(30px,10vw,44px)}
  .btn{min-height:46px}
  .form-control{font-size:16px}
}


/* =========================================================
   V0.2.2 — AJUSTES DA JORNADA
   ========================================================= */
.continue-card,
.continue-card *{
  color:var(--dark);
}
.continue-card .small{
  color:#9a3412;
}
.continue-card-copy{
  min-width:0;
  flex:1;
}
.continue-card-copy strong{
  display:block;
  color:#0f172a !important;
  font-size:18px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.continue-card-note{
  margin-top:7px;
  color:#64748b !important;
  line-height:1.4;
}
.continue-card-next{
  background:#fff;
  border-color:#e2e8f0;
}
.continue-card-success{
  background:#ecfdf5;
  border-color:#a7f3d0;
}
.continue-card-success strong{
  color:#065f46 !important;
}
@media(max-width:820px){
  .continue-card-copy strong{font-size:16px}
}


/* =========================================================
   V0.2.8 — CORREÇÃO DEFINITIVA DO CARD "VOCÊ ESTÁ EM DIA"
   ========================================================= */

/* Evita herança do texto branco do bloco .student-welcome */
.student-welcome .continue-card-next,
.student-welcome .continue-card-next *,
.student-welcome .continue-card,
.student-welcome .continue-card * {
    color: #0f172a !important;
}

/* Rótulo superior */
.student-welcome .continue-card-next .small:first-child {
    color: #9a3412 !important;
}

/* Título da próxima aula */
.student-welcome .continue-card-next .continue-card-copy strong,
.student-welcome .continue-card-next strong {
    color: #0f172a !important;
    opacity: 1 !important;
}

/* Texto "A próxima aula será liberada..." */
.student-welcome .continue-card-next .continue-card-note,
.student-welcome .continue-card-next .continue-card-note.small {
    color: #475569 !important;
    opacity: 1 !important;
}

/* Mantém o botão Em breve em laranja */
.student-welcome .continue-card-next .btn-soft {
    color: #c2410c !important;
}

/* Fundo claro com contraste garantido */
.student-welcome .continue-card-next {
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
}

/* Ajuste mobile */
@media (max-width: 820px) {
    .student-welcome .continue-card-next .continue-card-copy strong {
        font-size: 16px !important;
        line-height: 1.35 !important;
    }

    .student-welcome .continue-card-next .continue-card-note {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
}
