﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root{
  --bg:#05070a;
  --bg2:#070b12;
  --panel:#0b1220;
  --panel2:#0b1628;
  --stroke:rgba(255,255,255,.08);

  /* azul neon do logo */
  --neon:#00e5ff;
  --neon2:#38bdf8;

  --text:#e5e7eb;
  --muted:rgba(229,231,235,.62);
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:Inter, system-ui, Arial, sans-serif;
  background: radial-gradient(circle at 20% 10%, rgba(0,229,255,.10), transparent 40%),
              radial-gradient(circle at 80% 0%, rgba(56,189,248,.08), transparent 35%),
              var(--bg);
  color:var(--text);
}

a{color:inherit}

/* TOPBAR */
.topbar{
  position:fixed;
  top:0;
  width:100%;
  z-index:100;
  background:rgba(5,7,10,.75);
  border-bottom:1px solid var(--stroke);
  backdrop-filter: blur(12px);
}

.topbar-inner{
  max-width:1200px;
  margin:0 auto;
  padding:18px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  position:relative;
}

.logo{
  font-weight:700;
  letter-spacing:.6px;
  font-size:18px;
}
.logo-link{text-decoration:none}

.neon{
  color:var(--neon);
  text-shadow: 0 0 14px rgba(0,229,255,.85), 0 0 38px rgba(0,229,255,.25);
}

.topnav{
  display:flex;
  gap:14px;
}
.menu-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color:#fff;
  cursor:pointer;
}
.menu-toggle:hover{
  border-color: rgba(0,229,255,.35);
  box-shadow: 0 0 16px rgba(0,229,255,.18);
}
.navlink{
  text-decoration:none;
  font-size:13px;
  color:rgba(229,231,235,.75);
  padding:8px 10px;
  border-radius:10px;
  transition:.2s;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.navlink:hover{
  color:#fff;
  background: rgba(255,255,255,.06);
}
.navlink.active{
  color:#000;
  background: var(--neon);
  box-shadow: 0 0 18px rgba(0,229,255,.45);
}

.nav-icon{
  width:14px;
  height:14px;
  flex:0 0 14px;
  opacity:.85;
}

/* HOME */
.home{
  padding-top:78px;
}

.hero{
  position:relative;
  height:54vh;
  display:flex;
  align-items:center;
  padding:38px 28px;
  background:
    radial-gradient(circle at top, rgba(0,229,255,.18), transparent 55%),
    linear-gradient(to top, rgba(5,7,10,1), rgba(5,7,10,.35), transparent),
    var(--bg);
}
.hero-overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 70% 10%, rgba(0,229,255,.14), transparent 45%),
    radial-gradient(circle at 30% 0%, rgba(56,189,248,.10), transparent 42%);
  pointer-events:none;
}
.hero-content{
  position:relative;
  max-width:680px;
}
.badge{
  display:inline-block;
  font-size:11px;
  letter-spacing:1.2px;
  padding:8px 10px;
  border:1px solid rgba(0,229,255,.25);
  border-radius:999px;
  color:rgba(229,231,235,.86);
  background: rgba(0,229,255,.06);
  margin-bottom:12px;
}
.hero h1{
  margin:0 0 10px;
  font-size:42px;
  line-height:1.05;
}
.hero p{
  margin:0 0 18px;
  color:var(--muted);
  max-width:560px;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn-primary{
  display:inline-block;
  padding:12px 18px;
  border-radius:12px;
  background:var(--neon);
  color:#000;
  font-weight:700;
  text-decoration:none;
  box-shadow: 0 0 22px rgba(0,229,255,.55);
}
.btn-primary:hover{filter:brightness(1.03)}

.btn-secondary{
  display:inline-block;
  padding:12px 18px;
  border-radius:12px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  color:#fff;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
}
.btn-secondary:hover{
  border-color: rgba(0,229,255,.35);
  box-shadow: 0 0 18px rgba(0,229,255,.18);
}

/* Last seen */
.last-seen{
  max-width:1200px;
  margin: -18px auto 0;
  padding: 0 18px 10px;
}
.last-seen-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background:
    radial-gradient(circle at 10% 10%, rgba(0,229,255,.10), transparent 45%),
    rgba(11,18,32,.70);
  backdrop-filter: blur(8px);
}
.last-seen-label{
  font-size:11px;
  letter-spacing:1.2px;
  text-transform:uppercase;
  color: rgba(229,231,235,.65);
  margin-bottom:6px;
}
.last-seen-title{
  font-size:16px;
  font-weight:700;
  color: rgba(229,231,235,.95);
}
.last-seen-meta{
  font-size:12px;
  color: var(--muted);
  margin-top:4px;
}

/* SHELL (pages with sidebar) */
.shell{
  padding-top:78px;
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 260px 1fr;
  gap:18px;
  padding-left: 18px;
  padding-right: 18px;
  padding-bottom: 60px;
}

.sidebar{
  position:sticky;
  top:92px;
  align-self:start;
  background: rgba(11,18,32,.66);
  border:1px solid var(--stroke);
  border-radius:16px;
  padding:14px;
  backdrop-filter: blur(10px);
}

.sidebar-title{
  font-size:12px;
  letter-spacing:1.2px;
  color: rgba(229,231,235,.75);
  margin-bottom:10px;
  text-transform: uppercase;
}

.menu{
  display:grid;
  gap:8px;
}

.menu-item{
  text-decoration:none;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.04);
  color: rgba(229,231,235,.88);
  transition:.18s;
  font-size:13px;
}
.menu-item:hover{
  border-color: rgba(0,229,255,.25);
  box-shadow: 0 0 16px rgba(0,229,255,.14);
}
.menu-item.active{
  border-color: rgba(0,229,255,.45);
  box-shadow: 0 0 22px rgba(0,229,255,.20);
}
.menu-item.locked{
  opacity:.82;
}
.menu-lock{
  margin-left:8px;
}


.sidebar-foot{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.06);
}

.content{
  min-width: 0;
}

.content-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.page-title{
  margin:0;
  font-size:26px;
  line-height:1.15;
}

.muted{color:var(--muted)}
.small{font-size:12px}
.back-link{
  text-decoration:none;
  color: rgba(229,231,235,.85);
  font-size:13px;
}
.back-link:hover{color:#fff}

/* Lessons grid (premium cards) */
.lesson-grid{
  display:grid;
  gap:12px;
}
.lesson-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 16px;
  border-radius:16px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  text-decoration:none;
  transition:.18s;
}
.lesson-card:hover{
  transform: translateY(-1px);
  border-color: rgba(0,229,255,.25);
  box-shadow: 0 0 18px rgba(0,229,255,.16);
}
.lesson-left{
  display:flex; flex-direction:column; gap:4px;
}
.lesson-kicker{
  font-size:11px;
  color: rgba(229,231,235,.55);
  letter-spacing:1px;
}
.lesson-title{
  font-size:15px;
  font-weight:700;
}
.lesson-meta{
  font-size:12px;
  color: rgba(229,231,235,.62);
}
.lesson-badge{
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(0,229,255,.25);
  background: rgba(0,229,255,.06);
  color: rgba(229,231,235,.90);
}

/* Viewer */
.viewer{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(11,18,32,.55);
  backdrop-filter: blur(8px);
}
.viewer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px;
  background: rgba(5,7,10,.35);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.viewer-title{
  font-size:13px;
  font-weight:700;
  letter-spacing:.4px;
}
.pill{
  font-size:11px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(0,229,255,.08);
  border:1px solid rgba(0,229,255,.25);
  box-shadow: 0 0 16px rgba(0,229,255,.12);
  color: rgba(229,231,235,.9);
}

.pdf-pages{
  padding:14px;
  display:grid;
  gap:14px;
}

.pdf-page{
  background: rgba(5,7,10,.60);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:10px;
}

.pdf-page canvas{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
}

.pdf-pager{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(5,7,10,.35);
}

/* Responsive */
@media (max-width: 900px){
  .shell{
    grid-template-columns: 1fr;
  }
  .sidebar{
    position:relative;
    top:0;
  }
  .hero h1{font-size:34px}
}

@media (max-width: 720px){
  .topnav{
    display:none;
  }
  .topnav.open{
    display:flex;
  }
  .topnav{
    position:absolute;
    right:18px;
    top:64px;
    flex-direction:column;
    background: rgba(11,18,32,.96);
    border:1px solid var(--stroke);
    border-radius:14px;
    padding:10px;
    min-width:180px;
    box-shadow: 0 16px 40px rgba(0,0,0,.55);
    z-index:110;
    opacity:0;
    transform: translateY(-6px);
    pointer-events:none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .topnav.open{
    opacity:1;
    transform: translateY(0);
    pointer-events:auto;
  }
  .navlink{
    padding:10px 12px;
    border-radius:10px;
  }
  .menu-toggle{
    display:inline-flex;
  }
}

.wa-float{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:120;
  width:52px;
  height:52px;
  border-radius:999px;
  border:1px solid rgba(16,185,129,.45);
  background: rgba(16,185,129,.18);
  color:#eafff7;
  display:none;
  align-items:center;
  justify-content:center;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  text-decoration:none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.wa-float:hover{
  transform: translateY(-2px);
  border-color: rgba(16,185,129,.75);
  box-shadow: 0 16px 36px rgba(0,0,0,.55);
}
.wa-float svg{
  width:24px;
  height:24px;
}

@media (max-width: 900px){
  .wa-float{display:flex;}
}

@media (max-width: 720px){
  .row-cards{
    grid-auto-columns: 220px;
  }
  .card{
    min-height: 160px;
  }
  .card > span:not(.card-lock),
  .card strong{
    text-align:center;
  }
}

/* =========================
   HOME (Netflix rows)
========================= */
#rows{
  max-width:1200px;
  margin: 0 auto;
  padding: 14px 18px 70px;
}

.row{
  margin-top: 24px;
}

.row h2{
  font-size: 18px;
  letter-spacing: .2px;
  margin: 0 0 12px;
  color: rgba(229,231,235,.92);
}

.row-cards{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* barra de rolagem discreta */
.row-cards::-webkit-scrollbar{ height: 10px; }
.row-cards::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.12);
  border-radius: 999px;
}
.row-cards::-webkit-scrollbar-track{
  background: rgba(255,255,255,.04);
  border-radius: 999px;
}

/* cards dos módulos */
.card{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 145px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(900px 180px at 10% 10%, rgba(0,229,255,.22), transparent 55%),
    radial-gradient(800px 220px at 90% 40%, rgba(56,189,248,.12), transparent 60%),
    linear-gradient(180deg, rgba(11,18,32,.88), rgba(7,11,18,.88));
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  scroll-snap-align: start;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.card > span:not(.card-lock){
  font-size: 12px;
  color: rgba(229,231,235,.55);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align:center;
  width:100%;
}

.card strong{
  font-size: 16px;
  margin-top: 6px;
  line-height: 1.2;
  color: rgba(229,231,235,.95);
  text-align:center;
  width:100%;
}

.card:hover{
  transform: translateY(-4px);
  border-color: rgba(0,229,255,.35);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}

.card.locked{
  filter: saturate(.75) brightness(.88);
}
.card.locked:hover{
  transform: none;
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.card-lock{
  position:absolute;
  top:10px;
  right:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  height:auto;
  min-width:0;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  color: rgba(229,231,235,.9);
  font-size:18px;
  line-height:1;
  letter-spacing:0;
  text-transform:none;
  font-style:normal;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  pointer-events:none;
}


/* =========================
   QUIZ (Atividade opcional)
========================= */
.quiz-wrap{
  padding: 18px;
  display: grid;
  gap: 14px;
}

.quiz-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.quiz-title{
  font-size: 18px;
  font-weight: 700;
  color: rgba(229,231,235,.95);
  margin: 0;
}

.quiz-sub{
  margin: 6px 0 0;
  color: rgba(229,231,235,.68);
  font-size: 13px;
}

.quiz-pill{
  border: 1px solid rgba(0,229,255,.25);
  background: rgba(0,229,255,.08);
  color: rgba(0,229,255,.9);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.quiz-card{
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(11,18,32,.78), rgba(7,11,18,.78));
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

.quiz-q{
  color: rgba(229,231,235,.92);
  font-weight: 700;
  margin: 0 0 10px;
}

.quiz-options{
  display:grid;
  gap: 10px;
}

.quiz-opt{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}

.quiz-opt:hover{
  transform: translateY(-1px);
  border-color: rgba(0,229,255,.22);
}

.quiz-opt input{
  margin-top: 3px;
}

.quiz-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  justify-content:flex-end;
  margin-top: 12px;
}

.quiz-btn{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(229,231,235,.92);
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
}

.quiz-btn.primary{
  border-color: rgba(0,229,255,.35);
  background: rgba(0,229,255,.12);
}

.quiz-feedback{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(229,231,235,.85);
  font-size: 13px;
}

.quiz-feedback.ok{
  border-color: rgba(16,185,129,.35);
  background: rgba(16,185,129,.10);
}

.quiz-feedback.bad{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
}

.quiz-score{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,229,255,.18);
  background: rgba(0,229,255,.06);
  color: rgba(229,231,235,.92);
}

