* { box-sizing: border-box; }
:root {
  /* tokens espelhados 1:1 da landing page (sva-landing-page/src/index.css) */
  --brand-dark: 220 50% 7%;
  --brand-surface: 220 45% 10%;
  --brand-surface-alt: 220 45% 9%;
  --brand-secondary: 220 40% 16%;
  --brand-accent: 142 71% 45%;
  --brand-accent-dim: 142 50% 25%;
  --brand-cta: 28 100% 55%;
  --brand-border: 220 30% 18%;
  --brand-fg: 210 40% 92%;
  --brand-muted: 215 20% 65%;

  --bg: hsl(var(--brand-dark));
  --panel: hsl(var(--brand-surface));
  --panel-2: hsl(var(--brand-secondary));
  --border: hsl(var(--brand-border));
  --text: hsl(var(--brand-fg));
  --text-dim: hsl(var(--brand-muted));
  --accent: hsl(var(--brand-accent));
  --accent-2: hsl(var(--brand-accent));
  --cta: hsl(var(--brand-cta));
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.28);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lift: 0 14px 32px rgba(0,0,0,0.5);
}
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  position: relative;
}
a { color: hsl(var(--brand-accent)); text-decoration: none; }

/* ---------- aurora mesh de fundo (mesmo efeito da landing page) ---------- */
.bg-aurora { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bg-aurora::before, .bg-aurora::after {
  content: ""; position: absolute; border-radius: 50%; opacity: 0.12;
  animation: float-slow 24s ease-in-out infinite alternate;
}
.bg-aurora::before {
  top: -10%; left: -6%; width: 46vw; height: 46vw;
  background: radial-gradient(circle at center, hsl(var(--brand-accent)), transparent 70%);
}
.bg-aurora::after {
  bottom: -14%; right: -8%; width: 40vw; height: 40vw;
  background: radial-gradient(circle at center, hsl(var(--brand-cta)), transparent 70%);
  animation-delay: -12s;
}
@keyframes float-slow { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(4%,8%) scale(1.08); } }

/* ---------- shell layout: sidebar + main ---------- */
.shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
  width: 250px; flex-shrink: 0;
  background:
    linear-gradient(180deg, hsl(var(--brand-dark) / 0.35), hsl(var(--brand-dark) / 0.55) 60%, hsl(var(--brand-dark) / 0.8)),
    url('hero/sidebar-bg.png');
  background-size: cover; background-position: center top; background-repeat: no-repeat;
  border-right: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; flex-direction: column;
  padding: 18px 14px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-logo { display: flex; align-items: center; gap: 9px; padding: 4px 6px 20px; font-weight: 700; color: #fff; }
.sidebar-logo .logo-mark {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em; color: hsl(var(--brand-dark));
  background: linear-gradient(135deg, hsl(var(--brand-accent)), hsl(142 60% 35%)); padding: 5px 7px; border-radius: 7px;
}
.sidebar-user { text-align: center; padding: 8px 6px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 14px; }
.avatar-ring {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px;
  padding: 2px; background: hsl(var(--brand-accent) / 0.35);
}
.avatar {
  width: 100%; height: 100%; border-radius: 50%;
  background: hsl(var(--brand-surface)); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: hsl(var(--brand-accent));
}
.avatar.small { width: 30px; height: 30px; border-radius: 50%; font-size: 0.85rem; background: hsl(var(--brand-secondary)); }
.sidebar-user-name { font-weight: 600; color: #fff; margin-bottom: 10px; font-size: 0.95rem; }
.sidebar-progress-label { font-size: 0.72rem; color: var(--text-dim); text-align: left; margin-bottom: 4px; }
.sidebar-progress-bar { background: hsl(var(--brand-secondary)); border-radius: 999px; height: 6px; overflow: hidden; }
.sidebar-progress-bar > div { height: 100%; background: linear-gradient(90deg, hsl(var(--brand-accent-dim)), hsl(var(--brand-accent))); }
.sidebar-progress-count { font-size: 0.7rem; color: var(--text-dim); margin-top: 4px; text-align: left; }

.sidebar-nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 12px; border-radius: 10px; color: var(--text-dim);
  font-size: 0.9rem; font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-nav a svg { flex-shrink: 0; opacity: 0.8; }
.sidebar-nav a:hover { background: hsl(var(--brand-secondary)); color: var(--text); }
.sidebar-nav a.active { background: linear-gradient(90deg, hsl(var(--brand-accent) / 0.18), transparent); color: #fff; border-left: 3px solid hsl(var(--brand-accent)); padding-left: 9px; }
.sidebar-logout { display: block; text-align: center; padding: 10px; margin-top: 12px; color: var(--text-dim); font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 14px; }
.sidebar-logout:hover { color: #ff9494; }

.main { flex: 1; min-width: 0; }

/* ---------- mobile drawer (hambúrguer) ---------- */
.sidebar-toggle-input { display: none; }
.sidebar-mobile-bar { display: none; }
.sidebar-backdrop { display: none; }
.sidebar-close { display: none; }

/* ---------- topbar ---------- */
.topbar2 {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-bottom: 1px solid rgba(255,255,255,0.05); background: hsl(var(--brand-dark) / 0.85);
  position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.topbar-search { display: flex; align-items: center; gap: 8px; background: hsl(var(--brand-secondary) / 0.6); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 8px 14px; width: 320px; max-width: 50vw; color: var(--text-dim); box-shadow: inset 0 1px 2px rgba(0,0,0,0.3); transition: border-color 0.15s ease; }
.topbar-search:focus-within { border-color: hsl(var(--brand-accent)); }
.topbar-search input { background: none; border: none; outline: none; color: var(--text); font-size: 0.9rem; width: 100%; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-user { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-dim); }

.content { padding: 26px 28px 64px; max-width: 1200px; position: relative; z-index: 1; }
.content h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; color: #fff; }
.content > p.lead { color: var(--text-dim); margin: 0 0 24px; }

/* ---------- hero continue ---------- */
.hero-continue {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, hsl(var(--brand-dark) / 0.94) 0%, hsl(var(--brand-dark) / 0.55) 55%, hsl(var(--brand-dark) / 0.2) 100%),
    url('hero/hero-banner.png');
  background-size: cover; background-position: center right;
  border: 1px solid rgba(255,255,255,0.06); border-radius: 18px; padding: 40px 32px; margin-bottom: 22px;
  box-shadow: var(--shadow-md);
  min-height: 220px;
}
.hero-content { position: relative; z-index: 1; max-width: 480px; }
.hero-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--brand-accent)); }
.hero-continue h2 { margin: 8px 0 6px; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.hero-sub { color: hsl(var(--brand-fg) / 0.8); font-size: 0.92rem; }

/* ---------- botões estilo landing page (pill, uppercase, sweep shine) ---------- */
button, .btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, hsl(var(--brand-cta)), hsl(25 95% 50%));
  color: hsl(var(--brand-fg)); border: none; padding: 13px 26px;
  min-height: 44px; border-radius: 999px; font-size: 0.86rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 14px hsl(var(--brand-cta) / 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover, .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px hsl(var(--brand-cta) / 0.5); }
button:active, .btn:active { transform: translateY(0) scale(0.98); }
button::after, .btn::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s ease, transform 0.6s ease;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
}
button:hover::after, .btn:hover::after { opacity: 1; transform: translateX(100%); }

button.secondary, .btn.secondary {
  background: linear-gradient(135deg, hsl(var(--brand-accent)), hsl(142 60% 35%));
  color: hsl(var(--brand-dark)); box-shadow: 0 4px 14px hsl(var(--brand-accent) / 0.3);
}
button.secondary:hover, .btn.secondary:hover { box-shadow: 0 8px 25px hsl(var(--brand-accent) / 0.5); }
button.danger { background: hsl(0 72% 51%); box-shadow: none; }

.btn-hero { white-space: nowrap; padding: 15px 30px; font-size: 0.9rem; }

/* ---------- module section + carousel (linha simples, sem caixa em volta — igual Astron/Cakto) ---------- */
.module-section { margin-bottom: 30px; }
.module-banner {
  height: 90px; border-radius: 12px; background-size: cover; background-position: center;
  position: relative; margin-bottom: 12px; overflow: hidden;
}
.module-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, hsl(var(--brand-dark) / 0.75), transparent 60%); }
.module-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.module-section-head h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; margin: 0; color: #fff; }
.module-section-head .sub { color: var(--text-dim); font-size: 0.8rem; }
.module-section-head .progress-tag {
  font-size: 0.72rem; font-weight: 700; color: hsl(var(--brand-accent)); background: hsl(var(--brand-accent) / 0.1);
  border: 1px solid hsl(var(--brand-accent) / 0.28); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}

.carousel { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: hsl(var(--brand-secondary)); border-radius: 4px; }

/* ---------- fileira de módulos (home) ---------- */
.module-row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.module-row-head h2 { font-size: 1.05rem; font-weight: 700; margin: 0; color: #fff; }
.module-row-head .sub { color: var(--text-dim); font-size: 0.8rem; }
.module-row-caption { color: var(--text-dim); font-size: 0.8rem; margin: 10px 0 30px; }

.module-card {
  scroll-snap-align: start; flex: 0 0 300px; display: flex; flex-direction: column;
  color: #fff; text-decoration: none;
  transition: transform 0.18s ease;
}
.module-card:hover { transform: translateY(-4px); }
.module-card:hover .mc-image { box-shadow: var(--shadow-lift); border-color: hsl(var(--brand-accent) / 0.4); }

.module-card .mc-image {
  aspect-ratio: 1024/1536; border-radius: 14px; position: relative; overflow: hidden;
  background-size: cover; background-position: center; background-color: hsl(var(--brand-surface-alt));
  border: 1px solid rgba(255,255,255,0.06); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.module-card:not(.has-cover) .mc-image { background-image: linear-gradient(150deg, hsl(var(--brand-accent) / 0.35), hsl(var(--brand-dark)) 78%); }
.module-card .mc-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.03em;
  color: hsl(var(--brand-dark)); background: hsl(var(--brand-accent) / 0.92); padding: 3px 9px; border-radius: 999px;
}

.module-card .mc-caption { padding: 10px 2px 0; }
.module-card .mc-title {
  font-weight: 700; font-size: 0.92rem; line-height: 1.28; letter-spacing: -0.005em;
  color: hsl(var(--brand-fg)); text-wrap: balance;
}
.module-card .mc-bar { height: 3px; background: hsl(var(--brand-secondary)); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.module-card .mc-bar > div { height: 100%; background: linear-gradient(90deg, hsl(var(--brand-cta)), hsl(25 95% 55%)); }

/* ---------- página de módulo ---------- */
.module-hero {
  border-radius: 18px; padding: 40px 32px; margin-bottom: 26px; min-height: 200px;
  display: flex; align-items: flex-end; background-size: cover; background-position: center;
  position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); box-shadow: var(--shadow-md);
}
.module-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, hsl(var(--brand-dark) / 0.92), hsl(var(--brand-dark) / 0.35) 70%); }
.module-hero-content { position: relative; z-index: 1; max-width: 520px; }
.module-hero-content h1 { margin: 8px 0 8px; font-size: 1.8rem; font-weight: 800; color: #fff; text-wrap: balance; }
.module-lessons-grid { margin-bottom: 20px; }

.lesson-card {
  scroll-snap-align: start;
  flex: 0 0 158px; border-radius: 9px; position: relative; overflow: hidden;
  background: hsl(var(--brand-secondary) / 0.5); border: 1px solid rgba(255,255,255,0.06);
  color: #fff; box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.lesson-card:not(.locked):hover, .lesson-card:not(.locked):focus-visible {
  transform: translateY(-3px);
  border-color: hsl(var(--brand-accent) / 0.4);
  box-shadow: var(--shadow-lift);
}
.lesson-card.locked { opacity: 0.5; cursor: default; }

.lc-thumb {
  height: 88px; position: relative; background-size: cover; background-position: center;
  background-color: hsl(var(--brand-surface-alt));
  display: flex; align-items: center; justify-content: center;
}
.lc-thumb:not(.has-cover) { background-image: linear-gradient(150deg, hsl(var(--brand-accent) / 0.3), hsl(var(--brand-dark)) 75%); }
.lc-thumb .lc-play {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.lc-thumb .lc-play svg { width: 11px; height: 11px; }
.lc-thumb .lc-done {
  position: absolute; top: 6px; right: 6px; background: hsl(142 71% 15%); color: hsl(var(--brand-accent));
  border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem;
}
.lc-badge {
  position: absolute; top: 6px; left: 6px; font-size: 0.56rem; font-weight: 800; letter-spacing: 0.02em;
  color: hsl(var(--brand-dark)); background: hsl(var(--brand-accent)); padding: 2px 6px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.lesson-card.locked .lc-badge { background: hsl(var(--brand-secondary)); color: var(--text-dim); }

.lc-body { padding: 8px 9px 10px; }
.lc-title { font-weight: 600; font-size: 0.72rem; line-height: 1.25; color: hsl(var(--brand-fg)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-bar { height: 2.5px; background: hsl(var(--brand-secondary)); border-radius: 999px; margin-top: 7px; overflow: hidden; }
.lc-bar > div { height: 100%; background: hsl(var(--brand-accent)); }

.checkpoint {
  display: flex; align-items: flex-start; gap: 12px;
  background: hsl(28 100% 55% / 0.08);
  border: 1px solid hsl(28 100% 55% / 0.25); border-radius: 10px; padding: 14px 16px; margin-top: 16px;
}
.checkpoint .cp-icon { flex-shrink: 0; color: hsl(var(--brand-cta)); margin-top: 1px; }
.checkpoint .cp-label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: hsl(var(--brand-cta)); margin-bottom: 4px; }
.checkpoint .cp-text { display: block; font-size: 0.88rem; color: hsl(28 90% 82%); line-height: 1.5; }

/* ---------- generic cards / forms (aula, minha conta, admin, certificados) ---------- */
.card {
  border-radius: 14px; padding: 22px; margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(145deg, hsl(var(--brand-surface) / 0.7), hsl(var(--brand-dark) / 0.85));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

/* ---------- player custom ---------- */
.player {
  position: relative; width: 100%; background: #000; border-radius: 12px; overflow: hidden;
  aspect-ratio: 16/9; cursor: pointer;
}
.player video { width: 100%; height: 100%; display: block; border-radius: 0; background: #000; }
.player-loading {
  display: none; position: absolute; inset: 0; align-items: center; justify-content: center; pointer-events: none;
}
.player-loading::after {
  content: ""; width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25); border-top-color: #fff; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.player-center-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.15); opacity: 0; transition: opacity 0.2s ease; pointer-events: none;
}
.player.is-playing .player-center-play { opacity: 0; }
.player:not(.is-playing) .player-center-play { opacity: 1; pointer-events: auto; }
.player-center-play svg { width: 64px; height: 64px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }

.player-controls {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85) 60%);
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateY(6px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.player.show-controls .player-controls, .player:not(.is-playing) .player-controls { opacity: 1; transform: translateY(0); }

.player-seek-wrap { position: relative; height: 14px; display: flex; align-items: center; }
.player-seek-track { position: absolute; left: 0; right: 0; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.25); }
.player-seek-buffered { position: absolute; left: 0; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.4); width: 0%; }
.player-seek-fill { position: absolute; left: 0; height: 4px; border-radius: 999px; background: hsl(var(--brand-accent)); width: 0%; }
.player-seek-wrap input[type=range] {
  position: relative; width: 100%; height: 14px; margin: 0; -webkit-appearance: none; background: transparent; z-index: 2;
}
.player-seek-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px hsl(var(--brand-accent) / 0.35); margin-top: 0;
}

.player-row { display: flex; align-items: center; gap: 12px; }
.player-row .spacer { flex: 1; }
.player-btn {
  background: none; border: none; color: #fff; font-size: 1rem; cursor: pointer; padding: 4px 6px;
  min-height: auto; display: flex; align-items: center; justify-content: center; opacity: 0.9;
  box-shadow: none; text-transform: none; letter-spacing: normal; border-radius: 0;
}
.player-btn::after { display: none; }
.player-btn:hover { opacity: 1; transform: none; box-shadow: none; }
.player-time { color: #d5d6dd; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.player-row input[type=range].player-volume { width: 70px; height: 14px; accent-color: hsl(var(--brand-accent)); }
.player-speed { font-size: 0.78rem; font-weight: 700; min-width: 34px; }

form.login-form, form.senha-form { max-width: 380px; margin: 60px auto; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 11px 13px; margin: 6px 0 14px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.08); background: hsl(var(--brand-surface-alt)); color: var(--text); font-size: 0.95rem;
  font-family: inherit;
}
select { cursor: pointer; }
label { font-size: 0.85rem; color: var(--text-dim); }

.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.admin-tabs a {
  padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  color: var(--text-dim); background: hsl(var(--brand-secondary) / 0.5); transition: background 0.15s ease, color 0.15s ease;
}
.admin-tabs a:hover { background: hsl(var(--brand-secondary)); color: var(--text); }
.admin-tabs a.active { background: hsl(var(--brand-accent)); color: hsl(var(--brand-dark)); }
.erro { color: #ff9494; margin-bottom: 10px; font-size: 0.88rem; }
.ok { color: hsl(var(--brand-accent)); margin-bottom: 10px; font-size: 0.88rem; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { text-align: left; padding: 9px 10px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.88rem; }
th { color: var(--text-dim); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.markdown-body p, .markdown-body li { color: hsl(var(--brand-fg) / 0.85); }
.badge { font-size: 0.72rem; padding: 3px 9px; border-radius: 999px; }
.badge.done { background: hsl(142 71% 15%); color: hsl(var(--brand-accent)); }
.badge.pending { background: hsl(var(--brand-secondary)); color: var(--text-dim); }
.simple-list { list-style: none; padding: 0; margin: 0; }
.simple-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.simple-list li:first-child { border-top: none; }
.empty-hint { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- checklist de lançamento ---------- */
.launch-progress-card {
  background: linear-gradient(145deg, hsl(var(--brand-surface) / 0.7), hsl(var(--brand-dark) / 0.85));
  border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 18px 20px; margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.launch-progress-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.launch-progress-label { font-size: 0.8rem; color: var(--text-dim); font-weight: 600; }
.launch-progress-count { font-size: 0.95rem; font-weight: 800; color: hsl(var(--brand-accent)); font-variant-numeric: tabular-nums; }
.launch-progress-bar { height: 8px; background: hsl(var(--brand-secondary)); border-radius: 999px; overflow: hidden; }
.launch-progress-bar > div { height: 100%; background: linear-gradient(90deg, hsl(var(--brand-accent-dim)), hsl(var(--brand-accent))); transition: width 0.3s ease; }

.launch-sections { display: flex; flex-direction: column; gap: 16px; }
.launch-section {
  border-radius: 14px; padding: 20px 22px;
  border: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(145deg, hsl(var(--brand-surface) / 0.7), hsl(var(--brand-dark) / 0.85));
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}
.launch-section:has(input:checked):not(:has(input:not(:checked))) { border-color: hsl(var(--brand-accent) / 0.4); }
.launch-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.launch-section-num {
  font-size: 0.72rem; font-weight: 800; font-variant-numeric: tabular-nums;
  color: hsl(var(--brand-dark)); background: hsl(var(--brand-accent));
  padding: 4px 8px; border-radius: 6px; flex-shrink: 0;
}
.launch-section-head h2 { font-size: 1.02rem; font-weight: 700; color: #fff; margin: 0; }
.launch-section-tag {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: hsl(var(--brand-cta)); background: hsl(var(--brand-cta) / 0.1);
  border: 1px solid hsl(var(--brand-cta) / 0.28); padding: 3px 9px; border-radius: 999px; margin-left: auto;
}
.launch-section-final { border-color: hsl(var(--brand-cta) / 0.3); }

.launch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.launch-list li { border-top: 1px solid rgba(255,255,255,0.05); }
.launch-list li:first-child { border-top: none; }
.launch-list label {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 4px; cursor: pointer; border-radius: 8px;
  transition: background 0.15s ease;
}
.launch-list label:hover { background: hsl(var(--brand-secondary) / 0.5); }
.launch-list input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 22px; height: 22px; margin-top: 1px; border-radius: 6px;
  border: 2px solid hsl(var(--brand-muted) / 0.5); background: hsl(var(--brand-secondary) / 0.4);
  cursor: pointer; position: relative; transition: background 0.15s ease, border-color 0.15s ease;
}
.launch-list input[type="checkbox"]:checked { background: hsl(var(--brand-accent)); border-color: hsl(var(--brand-accent)); }
.launch-list input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid hsl(var(--brand-dark)); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.launch-list span { font-size: 0.9rem; line-height: 1.5; color: var(--text-dim); transition: color 0.15s ease, opacity 0.15s ease; }
.launch-list input[type="checkbox"]:checked ~ span { color: var(--text); }
.launch-list li:has(input:checked) span { opacity: 0.6; text-decoration: line-through; text-decoration-color: hsl(var(--brand-accent) / 0.5); }
.launch-list span strong { color: #fff; font-weight: 700; }
.launch-list span code {
  background: hsl(var(--brand-secondary)); color: hsl(var(--brand-accent));
  padding: 1px 6px; border-radius: 4px; font-size: 0.82em; font-family: ui-monospace, monospace;
}

@media (max-width: 780px) {
  .shell { flex-direction: column; }

  .sidebar-mobile-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; position: sticky; top: 0; z-index: 210;
    background: hsl(var(--brand-dark) / 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .sidebar-mobile-bar .sidebar-logo { padding: 0; }
  .sidebar-hamburger {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; color: var(--text);
    background: hsl(var(--brand-secondary) / 0.6); cursor: pointer;
  }

  .sidebar-backdrop {
    display: block; position: fixed; inset: 0; z-index: 220;
    background: rgba(0,0,0,0.6); opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .sidebar-toggle-input:checked ~ .sidebar-backdrop { opacity: 1; pointer-events: auto; }

  .sidebar {
    position: fixed; top: 0; left: 0; z-index: 230;
    width: 280px; max-width: 82vw; height: 100vh;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 8px 0 30px rgba(0,0,0,0.4);
  }
  .sidebar-toggle-input:checked ~ .sidebar { transform: translateX(0); }
  .sidebar > .sidebar-logo { display: none; }
  .sidebar-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 10px; right: 10px;
    width: 44px; height: 44px; border-radius: 10px; color: var(--text-dim);
    background: hsl(var(--brand-secondary) / 0.6); cursor: pointer;
  }
  .sidebar-user { display: block; margin-top: 26px; }
  .sidebar-nav { flex-direction: column; flex-wrap: nowrap; }
  .sidebar-nav a { min-height: 48px; }
  .sidebar-logout { display: block; }

  .topbar2 {
    position: static; padding: 12px 16px; box-shadow: none;
  }
  .topbar-search { width: 100%; max-width: none; padding: 10px 14px; }
  .topbar-right { flex-shrink: 0; }
  .topbar-user span { display: none; }
  .topbar-user .avatar.small { width: 36px; height: 36px; font-size: 0.95rem; }

  .content { padding: 18px 16px 48px; }
  .content h1 { font-size: 1.3rem; }

  .hero-continue { flex-direction: column; align-items: flex-start; background-position: center; padding: 26px 20px; min-height: auto; }
  .hero-continue h2 { font-size: 1.4rem; }

  .module-section-head { flex-wrap: wrap; gap: 4px; }

  .launch-section { padding: 16px 16px; }
  .launch-section-head { flex-wrap: wrap; }
  .launch-section-tag { margin-left: 0; }
}
