/* ══════════════════════════════════════════════════════════════════════
   The Law Lab — Platform CSS  (Netflix-style redesign)
   Auth · Top Nav · Dashboard · Trail · Player · Checkout
══════════════════════════════════════════════════════════════════════ */

/* ── Reset / base ──────────────────────────────────────────────────── */
.plat-wrap, .auth-wrap, .checkout-wrap,
.plat-trail-wrap, .plat-player-wrap-v2 {
  font-family: 'Inter', sans-serif;
  background: #04080F;
  min-height: 100vh;
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════
   AUTH PAGE  (split-screen, unchanged)
══════════════════════════════════════════════════════════════════════ */
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-left {
  background: linear-gradient(160deg, #04080F 0%, #060E1C 50%, #071525 100%);
  border-right: 1px solid rgba(0,196,154,.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
}
.auth-logo {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
  text-decoration: none;
}
.auth-logo span { color: #00C49A; }
.auth-left-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.auth-quote {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.5px;
  color: #fff;
  border: none; padding: 0; margin: 0;
}
.auth-features { display: flex; flex-direction: column; gap: 14px; }
.auth-feat { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #94A3B8; }
.auth-glow {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,196,154,.12) 0%, transparent 70%);
  bottom: -100px; left: -80px;
  pointer-events: none;
}
.auth-right {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
  background: #060E1C;
}
.auth-box { width: 100%; max-width: 420px; }
.auth-tabs {
  display: flex; gap: 4px;
  background: rgba(255,255,255,.05);
  border-radius: 10px; padding: 4px;
  margin-bottom: 32px;
}
.auth-tab {
  flex: 1; padding: 10px; border-radius: 7px;
  border: none; background: transparent; color: #94A3B8;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s; font-family: 'Inter', sans-serif;
}
.auth-tab.active { background: rgba(0,196,154,.12); color: #00C49A; border: 1px solid rgba(0,196,154,.2); }
.auth-form { display: none; flex-direction: column; gap: 20px; }
.auth-form.active { display: flex; }
.auth-field { display: flex; flex-direction: column; gap: 8px; }
.auth-field label { font-size: 13px; font-weight: 600; color: #CBD5E1; }
.auth-field small { color: #4A5568; font-weight: 400; }
.auth-field input {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 13px 16px;
  color: #fff; font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s;
}
.auth-field input:focus { outline: none; border-color: rgba(0,196,154,.4); }
.auth-field input::placeholder { color: #4A5568; }
.auth-field input:disabled { opacity: .4; cursor: not-allowed; }
.auth-msg { font-size: 13px; min-height: 20px; color: #f87171; }
.auth-msg.ok { color: #00C49A; }
.auth-switch { font-size: 13px; color: #4A5568; text-align: center; }
.auth-link {
  background: none; border: none; color: #00C49A;
  cursor: pointer; font-size: 13px;
  font-family: 'Inter', sans-serif;
  text-decoration: underline; padding: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   PLATFORM TOP NAV
══════════════════════════════════════════════════════════════════════ */
.plat-topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: linear-gradient(180deg, rgba(4,8,15,.98) 0%, rgba(4,8,15,.85) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.admin-bar .plat-topnav { top: 32px; }

.plat-topnav-logo {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.plat-topnav-logo span { color: #00C49A; }

.plat-topnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.plat-topnav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #4A5568;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.plat-topnav-link:hover { color: #CBD5E1; background: rgba(255,255,255,.05); }
.plat-topnav-link.active { color: #fff; font-weight: 600; }

.plat-topnav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.plat-topnav-search {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: none; border: none;
  color: #4A5568; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s, background .2s;
}
.plat-topnav-search:hover { color: #fff; background: rgba(255,255,255,.07); }

.plat-topnav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,196,154,.25), #0d2233);
  border: 2px solid rgba(0,196,154,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #00C49A;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  transition: border-color .2s;
}
.plat-topnav-avatar:hover { border-color: rgba(0,196,154,.6); }

/* Avatar dropdown */
.plat-avatar-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 220px;
  background: #0D1B2A;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  z-index: 200;
}
.plat-topnav-avatar:focus-within .plat-avatar-menu,
.plat-avatar-menu.open { display: flex; }

.plat-avatar-menu-header {
  padding: 12px 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 4px;
}
.plat-avatar-menu-name { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.plat-avatar-menu-plan { font-size: 11px; }
.plat-avatar-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 13px; color: #94A3B8;
  text-decoration: none; cursor: pointer;
  border: none; background: none;
  font-family: 'Inter', sans-serif;
  width: 100%; text-align: left;
  transition: background .15s, color .15s;
}
.plat-avatar-menu-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.plat-avatar-menu-item.danger { color: #f87171; }
.plat-avatar-menu-item.danger:hover { background: rgba(248,113,113,.08); }
.plat-avatar-menu-sep { height: 1px; background: rgba(255,255,255,.07); margin: 4px 0; }

/* Plan badge */
.plat-plan-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
}
.plat-plan-free    { background: rgba(255,255,255,.06); color: #4A5568; }
.plat-plan-pro     { background: rgba(0,196,154,.12); color: #00C49A; border: 1px solid rgba(0,196,154,.2); }
.plat-plan-premium { background: rgba(168,85,247,.12); color: #c084fc; border: 1px solid rgba(168,85,247,.2); }

/* ══════════════════════════════════════════════════════════════════════
   PLATFORM LAYOUT — full-width, no sidebar
══════════════════════════════════════════════════════════════════════ */
.plat-wrap { display: block; }
.plat-main { background: #04080F; }
.plat-main-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 48px 100px;
}

/* ══════════════════════════════════════════════════════════════════════
   DASHBOARD HERO — "continue watching"
══════════════════════════════════════════════════════════════════════ */
.plat-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 56px;
}
.plat-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #060E1C 0%, #0A1628 50%, #060E1C 100%);
}
.plat-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,196,154,.08) 0%, transparent 60%),
    linear-gradient(180deg, transparent 30%, rgba(4,8,15,.95) 100%);
}
.plat-hero-accent {
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  opacity: .15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 180px;
  font-weight: 900;
  letter-spacing: -8px;
  color: #00C49A;
  user-select: none;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}
.plat-hero-content {
  position: relative;
  z-index: 2;
  padding: 48px;
  width: 100%;
}
.plat-hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #00C49A;
  margin-bottom: 12px;
}
.plat-hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 16px;
  max-width: 600px;
}
.plat-hero-title em { font-style: normal; color: #00C49A; }
.plat-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #4A5568;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.plat-hero-meta span::before { content: '· '; }
.plat-hero-meta span:first-child::before { content: none; }
.plat-hero-desc {
  font-size: 15px;
  color: #94A3B8;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 28px;
}
.plat-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.plat-hero-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 13px;
  color: #4A5568;
}
.plat-hero-progress-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
}
.plat-hero-progress-fill {
  height: 100%;
  background: #00C49A;
  border-radius: 2px;
  transition: width .6s ease;
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION ROWS
══════════════════════════════════════════════════════════════════════ */
.plat-section { margin-bottom: 56px; }
.plat-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.plat-section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #00C49A;
}
.plat-section-link {
  font-size: 12px;
  color: #4A5568;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .5px;
  transition: color .2s;
}
.plat-section-link:hover { color: #CBD5E1; }
.plat-empty { font-size: 14px; color: #4A5568; padding: 32px 0; }

/* ── Trail cards (horizontal row) ─────────────────────────────────── */
.plat-trails-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.plat-trail-card {
  background: #060E1C;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .2s;
}
.plat-trail-card:hover { border-color: rgba(0,196,154,.3); transform: translateY(-3px); }
.plat-trail-card.locked { opacity: .6; }

.ptc-thumb {
  height: 160px;
  position: relative;
  overflow: hidden;
  background: #04080F;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ptc-thumb-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #04080F 0%, #060E1C 100%);
}
.ptc-thumb-code {
  position: relative;
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -3px;
  opacity: .12;
  font-family: 'JetBrains Mono', monospace;
  user-select: none;
}
.ptc-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,14,28,.95) 100%);
}
.ptc-thumb-lock {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  background: rgba(0,0,0,.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #4A5568;
}
.ptc-thumb-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.08);
}
.ptc-thumb-progress-fill {
  height: 100%;
  border-radius: 0;
  transition: width .6s ease;
}
.ptc-info { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ptc-code-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.ptc-name { font-size: 16px; font-weight: 800; color: #fff; line-height: 1.25; }
.ptc-desc { font-size: 12px; color: #4A5568; line-height: 1.6; flex: 1; }
.ptc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #4A5568;
  margin-top: 8px;
}
.ptc-footer-count { font-weight: 600; }

/* ══════════════════════════════════════════════════════════════════════
   STATS ROW
══════════════════════════════════════════════════════════════════════ */
.plat-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}
.plat-stat-card {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.plat-stat-num {
  font-size: 32px; font-weight: 900;
  letter-spacing: -1.5px; color: #fff;
}
.stat-plan-active { color: #00C49A; }
.plat-stat-lbl { font-size: 12px; color: #4A5568; font-weight: 500; }

/* ══════════════════════════════════════════════════════════════════════
   TRAIL DETAIL PAGE
══════════════════════════════════════════════════════════════════════ */
.plat-trail-wrap { display: block; }
.trail-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.trail-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #04080F 0%, #060E1C 60%);
}
.trail-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(4,8,15,.98) 100%);
}
.trail-hero-visual {
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.trail-hero-visual-code {
  font-size: 200px;
  font-weight: 900;
  letter-spacing: -8px;
  opacity: .07;
  color: var(--tc, #00C49A);
  font-family: 'JetBrains Mono', monospace;
  user-select: none;
  line-height: 1;
}
/* Thumbnail YouTube no hero da trilha */
.trail-hero-thumb {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: .72;
  transition: opacity .4s ease;
}
.trail-hero:hover .trail-hero-thumb { opacity: .85; }

.trail-hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,8,15,1) 0%, transparent 40%);
  z-index: 1; /* garante que o overlay fique sobre a imagem */
}
.trail-hero-content {
  position: relative;
  z-index: 2;
  padding: 64px 64px 56px;
  width: 100%;
  max-width: 720px;
}
.trail-hero-eyebrow {
  font-size: 11px; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--tc, #00C49A);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.trail-hero-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--tc, #00C49A);
  opacity: .25;
  max-width: 60px;
}
.trail-hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 1;
  margin-bottom: 18px;
}
.trail-hero-meta {
  display: flex; align-items: center;
  gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: #4A5568;
  margin-bottom: 16px;
}
.trail-hero-meta span { display: flex; align-items: center; gap: 6px; }
.trail-hero-meta .sep { color: rgba(255,255,255,.15); }
.trail-hero-desc {
  font-size: 16px; color: #94A3B8;
  line-height: 1.7; max-width: 520px;
  margin-bottom: 32px;
}
.trail-hero-actions {
  display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.trail-hero-progress {
  display: flex; align-items: center;
  gap: 14px; font-size: 13px; color: #4A5568;
}
.trail-hero-pbar {
  width: 240px; height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 2px; overflow: hidden;
}
.trail-hero-pfill {
  height: 100%; border-radius: 2px;
  background: var(--tc, #00C49A);
  transition: width .6s ease;
}

/* Modules section */
.trail-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 64px 100px;
}
.trail-section-label {
  font-size: 11px; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase;
  color: #4A5568; margin-bottom: 24px;
}
.trail-modules-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  overflow: hidden;
}
.trail-module-item {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  text-decoration: none;
  color: #fff;
  transition: background .15s;
  cursor: pointer;
  background: transparent;
}
.trail-module-item:last-child { border-bottom: none; }
a.trail-module-item:hover { background: rgba(255,255,255,.03); }
.trail-module-item.locked { color: #4A5568; cursor: default; }
.trail-module-item.done { }

.tml-num {
  width: 64px;
  height: 64px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  letter-spacing: 1px;
  color: #4A5568;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.05);
}
.trail-module-item.done .tml-num { color: #00C49A; }

.tml-thumb {
  width: 96px; height: 64px;
  background: #04080F;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid rgba(255,255,255,.05);
  overflow: hidden;
  position: relative;
}
.tml-thumb-inner {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #060E1C, #04080F);
  display: flex; align-items: center; justify-content: center;
}
.tml-thumb-icon { opacity: .3; }

/* YouTube thumbnail no item de aula (lista da trilha) */
.tml-thumb.tml-thumb-has-img .tml-thumb-inner {
  background: none;
  padding: 0;
}
.tml-thumb-yt {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 4px;
}
.tml-thumb-lock-overlay,
.tml-thumb-done-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4,8,15,.55);
  border-radius: 4px;
}
.tml-thumb-done {
  position: absolute;
  inset: 0;
  background: rgba(0,196,154,.08);
  display: flex; align-items: center; justify-content: center;
}

.tml-info {
  flex: 1;
  padding: 16px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.tml-title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.tml-trail-module-item.locked .tml-title { color: #4A5568; }
.tml-meta { font-size: 12px; color: #4A5568; display: flex; gap: 12px; }

.tml-right {
  padding: 0 24px;
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.tml-dur { font-size: 12px; color: #4A5568; }

/* Gate banner */
.trail-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(0,196,154,.05);
  border: 1px solid rgba(0,196,154,.12);
  border-radius: 14px;
  padding: 28px 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.trail-gate strong { display: block; font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.trail-gate p { font-size: 13px; color: #94A3B8; }

/* ══════════════════════════════════════════════════════════════════════
   LESSON PLAYER  (updated with top nav)
══════════════════════════════════════════════════════════════════════ */
.plat-player-wrap-v2 {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}
.plat-lesson-sidebar {
  background: #04080F;
  border-right: 1px solid rgba(255,255,255,.06);
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.admin-bar .plat-lesson-sidebar { height: calc(100vh - 32px); top: 32px; }

.lsl-top {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  flex-shrink: 0;
}
.lsl-logo {
  font-size: 12px; font-weight: 900;
  letter-spacing: 4px; color: #fff;
  text-decoration: none; display: block;
  margin-bottom: 16px;
}
.lsl-logo span { color: #00C49A; }
.lsl-back {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #4A5568;
  text-decoration: none;
  transition: color .2s;
}
.lsl-back:hover { color: #94A3B8; }

.lsl-wrap { flex: 1; overflow-y: auto; padding: 8px; }
.lsl-section-label {
  font-size: 9px; font-weight: 800;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,.2);
  padding: 12px 8px 6px;
}
.lsl-item {
  display: flex; align-items: flex-start;
  gap: 10px; padding: 9px 8px;
  border-radius: 8px; font-size: 13px;
  color: #4A5568; text-decoration: none;
  transition: background .15s, color .15s;
  line-height: 1.4;
}
.lsl-item:hover { background: rgba(255,255,255,.04); color: #94A3B8; }
.lsl-item.lsl-active { background: rgba(0,196,154,.1); color: #fff; border: 1px solid rgba(0,196,154,.15); }
.lsl-item.lsl-done { color: #4A5568; }
.lsl-item.lsl-done .lsl-name { text-decoration: line-through; }
.lsl-item.lsl-locked { cursor: default; opacity: .4; }
.lsl-num {
  width: 22px; min-width: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; padding-top: 1px;
}
.lsl-name { flex: 1; }

.plat-player-main { display: flex; flex-direction: column; overflow-y: auto; }
.player-video-wrap {
  position: relative; background: #000;
  width: 100%; aspect-ratio: 16/9;
  max-height: 62vh; overflow: hidden;
}
.player-iframe { width: 100%; height: 100%; border: none; }

/* YouTube IFrame API — o JS cria um <iframe> dentro de #tll-yt-player */
#tll-yt-player {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
#tll-yt-player iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
}

/* Shield — bloqueia clique no logo do YouTube (topo e rodapé do player) */
.yt-click-shield {
  position: absolute;
  left: 0; right: 0;
  z-index: 10;
  pointer-events: all;
  background: transparent;
  cursor: default;
}
.yt-click-shield.top    { top: 0;    height: 46px; }
.yt-click-shield.bottom { bottom: 0; height: 42px; }

/* Loading spinner enquanto o AJAX busca o ID seguro */
.player-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; background: #04080F;
  color: #4A5568; font-size: 13px;
  font-family: 'Inter', sans-serif;
}
@keyframes tll-spin { to { transform: rotate(360deg); } }
.player-loading-spin { animation: tll-spin 1s linear infinite; }
.player-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; background: #04080F;
  color: #4A5568; font-size: 14px;
}
.player-gate {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px; padding: 80px 40px; text-align: center;
}
.player-gate h2 { font-size: 28px; font-weight: 800; }
.player-gate p { color: #94A3B8; font-size: 16px; }
.player-gate-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.player-controls {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 24px;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-wrap: wrap;
}
.player-info { display: flex; flex-direction: column; gap: 6px; }
.player-code { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.player-title { font-size: clamp(16px, 2.2vw, 22px); font-weight: 800; letter-spacing: -.5px; }
.player-dur { font-size: 13px; color: #4A5568; }
.player-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-done {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 7px;
  border: 1.5px solid rgba(0,196,154,.25);
  background: rgba(0,196,154,.08);
  color: #00C49A; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: 'Inter', sans-serif;
}
.player-materials {
  padding: 24px 32px; border-top: 1px solid #1E2D40; max-width: 720px;
}
.player-materials-title {
  font-size: 13px; font-weight: 700; color: #94A3B8;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.player-materials-list { display: flex; flex-direction: column; gap: 8px; }
.player-material-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  background: rgba(0,196,154,.06); border: 1px solid rgba(0,196,154,.15);
  color: #00C49A; font-size: 13px; font-weight: 500;
  text-decoration: none; transition: background .15s;
}
.player-material-item:hover { background: rgba(0,196,154,.12); }
.player-material-item svg { flex-shrink: 0; }

.player-content {
  padding: 32px; max-width: 720px;
  font-size: 16px; line-height: 1.8; color: #94A3B8;
}
.player-content h2, .player-content h3 { color: #fff; margin: 24px 0 12px; }
.player-content p { margin-bottom: 16px; }
.player-content code {
  background: rgba(0,196,154,.08); color: #00C49A;
  padding: 2px 7px; border-radius: 4px; font-size: 14px;
}

/* ══════════════════════════════════════════════════════════════════════
   BUTTONS  (global platform)
══════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  border: none; font-family: 'Inter', sans-serif;
  transition: all .2s; white-space: nowrap;
}
.btn-lab {
  background: #00C49A; color: #04080F;
}
.btn-lab:hover { background: #00d4a8; }
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.2);
  color: #fff;
}
.btn-outline:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }
.btn-ghost {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }
.shimmer-btn { position: relative; overflow: hidden; }
.shimmer-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  animation: shimmer 2.5s infinite;
}
@keyframes shimmer { to { left: 160%; } }

/* ══════════════════════════════════════════════════════════════════════
   PLATFORM PAGES — TABS (Explorar, Comunidade, etc.)
══════════════════════════════════════════════════════════════════════ */
.plat-page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  gap: 24px; margin-bottom: 40px;
}
.plat-page-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900; letter-spacing: -1.5px; margin-bottom: 6px;
}
.plat-page-sub { font-size: 15px; color: #4A5568; }
.plat-premium-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  background: rgba(168,85,247,.12); color: #c084fc;
  border: 1px solid rgba(168,85,247,.2);
  padding: 6px 14px; border-radius: 100px; align-self: flex-start;
}

/* Trilhas list view */
.plat-trilhas-list { display: flex; flex-direction: column; gap: 12px; }
.plat-trilha-row {
  display: flex; align-items: stretch;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; overflow: hidden;
  transition: border-color .25s;
}
.plat-trilha-row:hover { border-color: rgba(255,255,255,.15); }
.ptr-accent { width: 4px; flex-shrink: 0; }
.ptr-body { flex: 1; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.ptr-top { display: flex; flex-direction: column; gap: 6px; }
.ptr-meta { display: flex; align-items: center; gap: 8px; }
.ptr-code { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.ptr-badge { font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 2px 8px; border-radius: 4px; }
.ptr-badge-done    { background: rgba(0,196,154,.12); color: #00C49A; border: 1px solid rgba(0,196,154,.2); }
.ptr-badge-active  { background: rgba(59,130,246,.1); color: #60a5fa; border: 1px solid rgba(59,130,246,.2); }
.ptr-badge-locked  { background: rgba(255,255,255,.05); color: #4A5568; }
.ptr-name { font-size: 16px; font-weight: 800; color: #fff; }
.ptr-desc { font-size: 13px; color: #4A5568; line-height: 1.6; }
.ptr-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ptr-progress-wrap { display: flex; align-items: center; gap: 10px; flex: 1; font-size: 12px; color: #4A5568; }
.ptr-progress-bar { flex: 1; max-width: 240px; height: 3px; background: rgba(255,255,255,.07); border-radius: 2px; overflow: hidden; }
.ptr-progress-fill { height: 100%; border-radius: 2px; transition: width .6s ease; }
.ptr-pct { font-weight: 700; white-space: nowrap; }
.ptr-count { white-space: nowrap; }

/* Catalog grid */
.plat-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.plat-catalog-card {
  display: flex; background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; overflow: hidden;
  transition: border-color .25s, transform .2s;
}
.plat-catalog-card:hover { border-color: rgba(255,255,255,.18); transform: translateY(-2px); }
.plat-catalog-soon { opacity: .5; }
.pcat-accent { width: 4px; flex-shrink: 0; }
.pcat-body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.pcat-top { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.pcat-code { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.pcat-soon-tag { font-size: 9px; font-weight: 700; background: rgba(255,255,255,.06); color: #4A5568; padding: 2px 7px; border-radius: 4px; margin-left: auto; }
.pcat-lock-tag { display: flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 700; background: rgba(0,196,154,.08); color: #00C49A; border: 1px solid rgba(0,196,154,.15); padding: 2px 7px; border-radius: 4px; margin-left: auto; }
.pcat-name { font-size: 15px; font-weight: 800; color: #fff; line-height: 1.25; }
.pcat-desc { font-size: 13px; color: #4A5568; line-height: 1.6; flex: 1; }
.pcat-meta { display: flex; gap: 6px; font-size: 11px; color: #4A5568; margin-top: 4px; }

/* Community */
.plat-community-hero {
  text-align: center; padding: 56px 32px;
  background: rgba(0,196,154,.04);
  border: 1px solid rgba(0,196,154,.12);
  border-radius: 18px; margin-bottom: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.pch-icon { width: 72px; height: 72px; border-radius: 50%; background: rgba(0,196,154,.08); border: 1px solid rgba(0,196,154,.15); display: flex; align-items: center; justify-content: center; }
.pch-title { font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; color: #fff; }
.pch-sub { font-size: 16px; color: #94A3B8; max-width: 520px; line-height: 1.6; }
.plat-community-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pcf-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.pcf-card h3 { font-size: 15px; font-weight: 700; color: #fff; }
.pcf-card p { font-size: 13px; color: #4A5568; line-height: 1.6; }
.plat-community-gate { text-align: center; padding: 64px 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pcgate-icon { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.plat-community-gate h2 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; color: #fff; }
.plat-community-gate p { font-size: 15px; color: #94A3B8; max-width: 500px; line-height: 1.6; }
.pcgate-features { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.pcf-feature-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #CBD5E1; }
.pcgate-note { font-size: 13px; color: #4A5568; margin-top: 4px; }

/* Certificates */
.plat-cert-empty { text-align: center; padding: 80px 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.plat-cert-empty h2 { font-size: 24px; font-weight: 800; }
.plat-cert-empty p { font-size: 15px; color: #4A5568; max-width: 420px; }
.plat-cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.plat-cert-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; overflow: hidden; }
.pcc-header { background: rgba(0,196,154,.04); border-bottom: 1px solid; padding: 28px 24px; text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pcc-watermark { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font-size: 8px; font-weight: 800; letter-spacing: 4px; color: rgba(255,255,255,.1); white-space: nowrap; }
.pcc-emblem { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,196,154,.08); border: 1px solid rgba(0,196,154,.15); display: flex; align-items: center; justify-content: center; }
.pcc-code-label { font-size: 9px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; }
.pcc-body { padding: 24px; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.pcc-certifica { font-size: 11px; color: #4A5568; text-transform: uppercase; letter-spacing: 1.5px; }
.pcc-nome { font-size: 18px; font-weight: 800; color: #fff; margin: 4px 0; }
.pcc-concluiu { font-size: 12px; color: #4A5568; }
.pcc-trilha-nome { font-size: 15px; font-weight: 700; color: #00C49A; margin: 4px 0; }
.pcc-info { font-size: 11px; color: #4A5568; }
.pcc-footer { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: center; }
.pcc-download:disabled { opacity: .4; cursor: not-allowed; }

/* Settings */
.plat-settings-section { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 28px; margin-bottom: 20px; }
.plat-settings-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #CBD5E1; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.plat-settings-avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.plat-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, rgba(0,196,154,.15), #0d2233); border: 2px solid rgba(0,196,154,.3); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #00C49A; flex-shrink: 0; }
.plat-avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.plat-settings-avatar-name { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.plat-settings-avatar-email { font-size: 13px; color: #4A5568; }
.plat-settings-form { display: flex; flex-direction: column; gap: 20px; }
.plat-settings-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plat-plan-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ppc-left { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ppc-badge { font-size: 12px; padding: 4px 12px; }
.ppc-desc { font-size: 14px; color: #94A3B8; line-height: 1.6; max-width: 480px; }
.ppc-right { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.plat-cancel-link { color: #4A5568; font-size: 13px; text-decoration: none; display: inline-block; padding: 8px; }
.plat-cancel-link:hover { color: #f87171; text-decoration: underline; }

/* Continue card */
.plat-continue-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; background: rgba(0,196,154,.05);
  border: 1px solid rgba(0,196,154,.15);
  border-radius: 14px; padding: 24px 28px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.pcc-left { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcc-code { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.pcc-trail { font-size: 17px; font-weight: 800; color: #fff; }
.pcc-next { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #4A5568; }
.pcc-bar-wrap { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #4A5568; margin-top: 4px; }
.pcc-bar { flex: 1; max-width: 200px; height: 3px; background: rgba(255,255,255,.07); border-radius: 2px; overflow: hidden; }
.pcc-fill { height: 100%; border-radius: 2px; }

/* Gate banner */
.plat-gate-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; background: rgba(0,196,154,.06);
  border: 1px solid rgba(0,196,154,.15);
  border-radius: 12px; padding: 24px 28px; margin-top: 24px;
}
.plat-gate-banner strong { display: block; font-weight: 700; margin-bottom: 4px; }
.plat-gate-banner p { font-size: 14px; color: #94A3B8; }

/* ══════════════════════════════════════════════════════════════════════
   CHECKOUT
══════════════════════════════════════════════════════════════════════ */
.checkout-wrap { min-height: 100vh; padding: 0; display: flex; flex-direction: column; }
.checkout-head { text-align: center; margin-bottom: 56px; padding-top: 56px; }
.checkout-title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -1.5px; margin: 24px 0 10px; }
.checkout-sub { font-size: 16px; color: #4A5568; }
.checkout-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; width: 100%; align-items: start; margin: 0 auto; padding: 0 24px; }
.checkout-plan { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 36px; position: relative; transition: border-color .25s; }
.checkout-plan:hover { border-color: rgba(255,255,255,.15); }
.checkout-plan.cp-featured { background: rgba(0,196,154,.04); border-color: rgba(0,196,154,.2); }
.checkout-plan.cp-featured:hover { border-color: rgba(0,196,154,.4); }
.checkout-plan.cp-current { border-color: rgba(0,196,154,.3); }
.cp-badge-top { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #00C49A; color: #04080F; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 16px; border-radius: 100px; white-space: nowrap; }
.cp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cp-name { font-size: 18px; font-weight: 800; }
.cp-active-badge { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #00C49A; background: rgba(0,196,154,.1); border: 1px solid rgba(0,196,154,.2); padding: 3px 8px; border-radius: 4px; }
.cp-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 28px; }
.cp-cur { font-size: 18px; font-weight: 700; color: #94A3B8; }
.cp-val { font-size: 52px; font-weight: 900; letter-spacing: -3px; line-height: 1; }
.cp-per { font-size: 16px; color: #4A5568; }
.cp-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.cp-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #CBD5E1; }
.cp-list li.ok::before { content: ''; display: inline-flex; width: 16px; height: 16px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300C49A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat; }
.cp-list li.no { color: #4A5568; }
.cp-list li.no::before { content: ''; display: inline-flex; width: 16px; height: 16px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/contain no-repeat; }
.cp-cta { display: flex; align-items: center; justify-content: center; }
.checkout-note { margin-top: 32px; font-size: 13px; color: #4A5568; text-align: center; padding: 0 24px 80px; }
.checkout-note a { color: #00C49A; text-decoration: none; }

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .plat-main-inner { padding: 40px 32px 80px; }
  .trail-body { padding: 40px 32px 80px; }
  .trail-hero-content { padding: 48px 32px 40px; }
  .plat-topnav { padding: 0 24px; }
}

@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 40px 24px; }

  .plat-topnav-links { position: static; transform: none; display: none; }
  .plat-topnav { padding: 0 20px; }

  .plat-main-inner { padding: 28px 20px 80px; }
  .plat-stats-row { grid-template-columns: 1fr 1fr; }
  .plat-trails-row { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

  .trail-hero { min-height: 400px; }
  .trail-hero-visual { display: none; }
  .trail-hero-content { padding: 40px 24px 32px; max-width: 100%; }
  .trail-body { padding: 32px 20px 80px; }

  .plat-player-wrap-v2 { grid-template-columns: 1fr; }
  .plat-lesson-sidebar { display: none; }
  .player-controls { padding: 20px; }

  .plat-settings-fields { grid-template-columns: 1fr; }
  .plat-plan-card { flex-direction: column; }
  .ppc-right { align-items: flex-start; }

  .checkout-plans { grid-template-columns: 1fr; max-width: 420px; }
  .checkout-head { padding-top: 40px; }
}

@media (max-width: 600px) {
  .plat-hero { min-height: 360px; border-radius: 12px; }
  .plat-hero-content { padding: 32px 24px; }
  .plat-hero-title { font-size: 28px; letter-spacing: -1px; }
  .plat-stats-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .plat-stat-num { font-size: 24px; }
  .plat-page-header { flex-direction: column; }
  .plat-community-features { grid-template-columns: 1fr; }
  .plat-cert-grid { grid-template-columns: 1fr; }
  .plat-catalog-grid { grid-template-columns: 1fr; }
  .player-actions { flex-direction: column; align-items: stretch; }
  .player-actions .btn { justify-content: center; }
  .plat-continue-card { flex-direction: column; align-items: flex-start; }
  .trail-hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════════════════
   DASHBOARD — Brandbook layout
   Hero · Mid 3-col · Bot 2-col · Biblioteca · Laboratório
══════════════════════════════════════════════════════════════════════ */

/* ── Hero card ─────────────────────────────────────────────────────── */
.dash-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 340px;
  background: linear-gradient(135deg, #060C18 0%, #0A1628 60%, #071420 100%);
  border: 1px solid rgba(0,196,154,.12);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
}

.dash-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.dash-hero-bg-slashes {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 320px;
  font-weight: 900;
  color: rgba(0,196,154,.03);
  line-height: 1;
  font-family: 'Inter', sans-serif;
  letter-spacing: -20px;
  user-select: none;
}

.dash-hero-left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 40px 40px 40px 44px;
}

.dash-hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 36px;
  border-left: 1px solid rgba(255,255,255,.05);
  background: rgba(0,0,0,.15);
}

.dash-hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #00C49A;
  text-transform: uppercase;
  margin: 0;
}

.dash-hero-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #00C49A;
  letter-spacing: 1px;
  margin: 0;
}

.dash-hero-title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0;
}

.dash-hero-desc {
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
}

.dash-hero-meta {
  font-size: 13px;
  color: #4A5568;
  margin: 0;
}
.dash-hero-meta strong { color: #94A3B8; }

.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* ── Hero right: progress ──────────────────────────────────────────── */
.dash-hero-pct-wrap {
  text-align: center;
  width: 100%;
}

.dash-hero-pct {
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -4px;
  font-family: 'Inter', sans-serif;
}
.dash-hero-pct span {
  font-size: 36px;
  font-weight: 700;
  color: #00C49A;
  letter-spacing: 0;
}

.dash-pct-zero {
  color: rgba(255,255,255,.15);
}

.dash-hero-pct-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #4A5568;
  margin: 8px 0 16px;
  letter-spacing: 1px;
}

.dash-hero-pbar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
}
.dash-hero-pfill {
  height: 100%;
  background: linear-gradient(90deg, #00C49A, #00E5B3);
  border-radius: 2px;
  transition: width .6s ease;
}

/* ── Hero right: next lesson ───────────────────────────────────────── */
.dash-hero-next { width: 100%; }

.dash-hero-next-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #4A5568;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.dash-hero-next-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(0,196,154,.07);
  border: 1px solid rgba(0,196,154,.15);
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: background .2s, border-color .2s;
  line-height: 1.4;
}
.dash-hero-next-item:hover {
  background: rgba(0,196,154,.13);
  border-color: rgba(0,196,154,.3);
}

.dash-hero-next-play {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: #00C49A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #04080F;
}

/* ── Hero right: empty state ───────────────────────────────────────── */
.dash-hero-right-empty {
  gap: 16px;
  opacity: .5;
}
.dash-hero-slash-big {
  font-size: 64px;
  font-weight: 900;
  color: rgba(0,196,154,.2);
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

/* ── Grids ─────────────────────────────────────────────────────────── */
.dash-mid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.dash-bot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* ── Card base ─────────────────────────────────────────────────────── */
.dash-card {
  background: #080E1C;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dash-card-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #00C49A;
  letter-spacing: .5px;
  margin: 0;
}

.dash-card-link {
  font-size: 12px;
  color: #4A5568;
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.dash-card-link:hover { color: #94A3B8; }

.dash-card-footer-link {
  display: block;
  font-size: 12px;
  color: #00C49A;
  text-decoration: none;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.dash-card-footer-link:hover { opacity: .8; }

.dash-empty {
  font-size: 13px;
  color: #4A5568;
  margin: auto 0;
  text-align: center;
}

/* ── Trails mini list ──────────────────────────────────────────────── */
.dash-trails-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.dash-trail-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.02);
  border: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.dash-trail-row:hover:not(.dash-trail-locked) {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.06);
}
.dash-trail-locked { opacity: .4; }

.dash-trail-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #00C49A;
  letter-spacing: .5px;
  white-space: nowrap;
}

.dash-trail-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.dash-trail-name {
  font-size: 12px;
  font-weight: 500;
  color: #E2E8F0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-trail-bar {
  height: 3px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
}
.dash-trail-fill {
  height: 100%;
  background: #00C49A;
  border-radius: 2px;
}

.dash-trail-status { flex-shrink: 0; }

.dash-trail-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #00C49A;
}

.dash-trail-soon {
  font-size: 10px;
  color: #4A5568;
  font-style: italic;
  letter-spacing: .3px;
}

.dash-upgrade-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  margin-top: auto;
  background: rgba(0,196,154,.08);
  border: 1px solid rgba(0,196,154,.2);
  border-radius: 8px;
  color: #00C49A;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.dash-upgrade-btn:hover {
  background: rgba(0,196,154,.14);
  border-color: rgba(0,196,154,.35);
}

/* ── Live card ─────────────────────────────────────────────────────── */
.dash-live-card {
  background: linear-gradient(145deg, #0A1628 0%, #060C18 100%);
  border-color: rgba(0,196,154,.15);
}

.dash-live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #00C49A;
  text-transform: uppercase;
}

.dash-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00C49A;
  box-shadow: 0 0 0 3px rgba(0,196,154,.2);
  animation: dashPulse 2s ease-in-out infinite;
}

@keyframes dashPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0,196,154,.2); }
  50%       { box-shadow: 0 0 0 6px rgba(0,196,154,.06); }
}

.dash-live-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin: 0;
}

.dash-live-meta {
  font-size: 12px;
  color: #4A5568;
  margin: 0;
  line-height: 1.5;
}

.dash-live-host {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.05);
}

.dash-live-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,196,154,.15);
  border: 1px solid rgba(0,196,154,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #00C49A;
  flex-shrink: 0;
}

.dash-live-host-name {
  font-size: 13px;
  font-weight: 600;
  color: #E2E8F0;
  margin: 0;
}

.dash-live-host-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #4A5568;
  letter-spacing: .5px;
  margin: 0;
}

/* ── Community ─────────────────────────────────────────────────────── */
.dash-disc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.dash-disc-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.dash-disc-item:last-child { border-bottom: none; }

.dash-disc-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.dash-disc-body { min-width: 0; }

.dash-disc-text {
  font-size: 12px;
  color: #CBD5E1;
  line-height: 1.5;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-disc-meta {
  font-size: 11px;
  color: #4A5568;
}

.dash-comm-gate {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 16px 0;
}
.dash-comm-gate p {
  font-size: 13px;
  color: #4A5568;
  margin: 0;
  max-width: 200px;
  line-height: 1.5;
}

/* ── Biblioteca ────────────────────────────────────────────────────── */
.dash-lib-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.dash-lib-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.02);
  border: 1px solid transparent;
  transition: background .2s;
}

.dash-lib-soon { opacity: .45; }

.dash-lib-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .3px;
}

.dash-lib-info {
  flex: 1;
  min-width: 0;
}

.dash-lib-name {
  font-size: 13px;
  font-weight: 500;
  color: #E2E8F0;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-lib-size {
  font-size: 11px;
  color: #4A5568;
  margin: 0;
}

.dash-lib-dl {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #4A5568;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
  transition: background .2s;
}

/* ── Seu Laboratório ───────────────────────────────────────────────── */
.dash-lab-card {
  background: linear-gradient(145deg, #080F1E 0%, #050A14 100%);
  border-color: rgba(0,196,154,.1);
  gap: 20px;
}

.dash-lab-profile {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.dash-lab-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,196,154,.2), rgba(0,196,154,.05));
  border: 1px solid rgba(0,196,154,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #00C49A;
}

.dash-lab-info { flex: 1; min-width: 0; }

.dash-lab-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-lab-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #4A5568;
  margin: 0 0 6px;
  letter-spacing: .5px;
}

/* ── Stats row ─────────────────────────────────────────────────────── */
.dash-lab-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.dash-lab-stat {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-lab-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}

.dash-lab-stat-lbl {
  font-size: 11px;
  color: #4A5568;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dash-lab-stat-sep {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.06);
}

/* ── Conquistas / Badges ───────────────────────────────────────────── */
.dash-lab-conquistas { display: flex; flex-direction: column; gap: 10px; }

.dash-lab-conquistas-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #4A5568;
  text-transform: uppercase;
  margin: 0;
}

.dash-lab-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-badge {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s;
  cursor: default;
}

.dash-badge.earned {
  background: linear-gradient(145deg, rgba(0,196,154,.12), rgba(0,196,154,.05));
  border-color: rgba(0,196,154,.25);
  color: #00C49A;
  box-shadow: 0 2px 12px rgba(0,196,154,.12), inset 0 1px 0 rgba(0,196,154,.1);
}
.dash-badge.earned:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,196,154,.25);
}
/* Tooltip on hover */
.dash-badge::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(.9);
  background: #0D1626;
  border: 1px solid rgba(0,196,154,.2);
  color: #E2E8F0;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .5px;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 10;
}
.dash-badge:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.dash-badge.locked {
  background: rgba(255,255,255,.02);
  border-color: rgba(255,255,255,.05);
  color: rgba(255,255,255,.15);
}
.dash-badge.locked svg { opacity: .3; }

/* ══════════════════════════════════════════════════════════════════════
   TRILHAS — Netflix catalog grid
══════════════════════════════════════════════════════════════════════ */

.tll-catalog-wrap {
  padding-bottom: 60px;
}

.tll-catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.tll-catalog-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #00C49A;
  margin: 0 0 6px;
}

.tll-catalog-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  margin: 0;
}

.tll-catalog-sub {
  font-size: 14px;
  color: #4A5568;
  margin: 0;
  text-align: right;
  max-width: 280px;
  line-height: 1.5;
}

/* ── Grid ──────────────────────────────────────────────────────────── */
.tll-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Card wrapper ──────────────────────────────────────────────────── */
.tll-card {
  background: #080E1C;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex;
  flex-direction: column;
}
.tll-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,.5);
  border-color: rgba(var(--tc-rgb, 0,196,154), .3);
}

/* Apply color variable to hover glow */
.tllc-solo:hover  { box-shadow: 0 20px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(0,196,154,.2); }
.tllc-ai:hover    { box-shadow: 0 20px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(167,139,250,.2); }
.tllc-lit:hover   { box-shadow: 0 20px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(248,113,113,.2); }
.tllc-rain:hover  { box-shadow: 0 20px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(251,191,36,.2); }

/* ── Cover ─────────────────────────────────────────────────────────── */
.tll-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.tll-cover-bg {
  position: absolute;
  inset: 0;
}
.tllc-solo  .tll-cover-bg { background: linear-gradient(145deg, #041018 0%, #061C20 40%, #030E14 100%); }
.tllc-ai    .tll-cover-bg { background: linear-gradient(145deg, #070315 0%, #100726 50%, #06020F 100%); }
.tllc-lit   .tll-cover-bg { background: linear-gradient(145deg, #120309 0%, #200510 50%, #0C0206 100%); }
.tllc-rain  .tll-cover-bg { background: linear-gradient(145deg, #0E0B00 0%, #1C1400 50%, #070500 100%); }

.tll-cover-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tc, #00C49A);
}

/* ── Cover number watermark ────────────────────────────────────────── */
.tllca-number {
  position: absolute;
  right: -8px;
  bottom: -20px;
  font-size: 130px;
  font-weight: 900;
  line-height: 1;
  color: var(--tc, #00C49A);
  opacity: .04;
  font-family: 'Inter', sans-serif;
  letter-spacing: -8px;
  pointer-events: none;
  user-select: none;
}

/* ── TLL.001 — Solo Practice: briefcase ────────────────────────────── */
.tllca-solo-brief {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -44%);
}
.tllca-brief-body {
  width: 72px;
  height: 56px;
  border: 2.5px solid var(--tc, #00C49A);
  border-radius: 8px;
  position: relative;
  opacity: .6;
}
.tllca-brief-handle {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 14px;
  border: 2.5px solid var(--tc, #00C49A);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  opacity: .8;
}
.tllca-brief-body::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 2px;
  background: var(--tc, #00C49A);
  opacity: .5;
}
.tllca-lines {
  position: absolute;
  left: 24px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tllca-lines span {
  display: block;
  height: 1.5px;
  background: var(--tc, #00C49A);
  opacity: .15;
  border-radius: 1px;
}
.tllca-lines span:nth-child(1) { width: 40px; }
.tllca-lines span:nth-child(2) { width: 28px; }
.tllca-lines span:nth-child(3) { width: 34px; }

/* ── TLL.002 — AI Lawyer: neural grid ─────────────────────────────── */
.tllca-ai-grid {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  display: grid;
  grid-template-columns: repeat(3, 28px);
  grid-template-rows: repeat(3, 28px);
  gap: 16px;
}
.tllca-ai-node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tc, #A78BFA);
  margin: auto;
  opacity: .7;
  animation: aiPulse 2.4s ease-in-out infinite;
}
@keyframes aiPulse {
  0%, 100% { opacity: .3; transform: scale(1); }
  50%       { opacity: .9; transform: scale(1.4); }
}
.tllca-ai-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: 120px;
  height: 80px;
  color: var(--tc, #A78BFA);
}

/* ── TLL.003 — Modern Litigator: scales of justice ────────────────── */
.tllca-scales {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: 100px;
  height: 70px;
}
.tllca-scales-beam {
  position: absolute;
  top: 12px;
  left: 0; right: 0;
  height: 2px;
  background: var(--tc, #F87171);
  opacity: .6;
  border-radius: 1px;
}
.tllca-scales-center {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 50px;
  background: var(--tc, #F87171);
  opacity: .5;
  border-radius: 2px;
}
.tllca-scales-center::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tc, #F87171);
  opacity: .8;
}
.tllca-scales-arm {
  position: absolute;
  top: 12px;
  width: 40px;
}
.tllca-arm-l { left: 0; }
.tllca-arm-r { right: 0; }
.tllca-scales-chain {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  height: 24px;
  background: var(--tc, #F87171);
  opacity: .4;
}
.tllca-scales-pan {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 8px;
  background: var(--tc, #F87171);
  opacity: .25;
  border-radius: 0 0 12px 12px;
}

/* ── TLL.004 — Rainmaker: rain drops + arrow ───────────────────────── */
.tllca-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.tllca-raindrop {
  position: absolute;
  top: -30px;
  width: 1.5px;
  background: linear-gradient(to bottom, transparent, var(--tc, #FBBF24));
  border-radius: 1px;
  animation: rainFall 1.8s linear infinite;
}
@keyframes rainFall {
  0%   { transform: translateY(-30px); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(200px); opacity: 0; }
}
.tllca-rain-arrow {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 50px;
  color: var(--tc, #FBBF24);
  opacity: .65;
}

/* ── Cover overlays ────────────────────────────────────────────────── */
.tll-cover-status {
  position: absolute;
  top: 12px;
  left: 12px;
}
.tllcs-presale, .tllcs-soon, .tllcs-coming {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.tllcs-presale {
  background: rgba(167,139,250,.2);
  border: 1px solid rgba(167,139,250,.35);
  color: #A78BFA;
}
.tllcs-soon {
  background: rgba(251,191,36,.12);
  border: 1px solid rgba(251,191,36,.25);
  color: #FBBF24;
}
.tllcs-coming {
  background: rgba(74,85,104,.2);
  border: 1px solid rgba(74,85,104,.3);
  color: #4A5568;
}

.tll-cover-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.tll-cover-pbar {
  height: 3px;
  background: rgba(255,255,255,.1);
}
.tll-cover-pfill {
  height: 100%;
  background: var(--tc, #00C49A);
  transition: width .4s ease;
}

.tll-cover-done {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #00C49A;
  background: rgba(0,196,154,.12);
  border: 1px solid rgba(0,196,154,.25);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ── Card info ─────────────────────────────────────────────────────── */
.tll-card-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px 22px;
  flex: 1;
}

.tll-card-top { display: flex; flex-direction: column; gap: 5px; }

.tll-card-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--tc, #00C49A);
  margin: 0;
}

.tll-card-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.4px;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.tll-card-sub {
  font-size: 13px;
  color: #4A5568;
  margin: 0;
  line-height: 1.5;
}

.tll-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4A5568;
}
.tll-card-meta .sep { color: rgba(255,255,255,.1); }

.tll-card-prog { display: flex; flex-direction: column; gap: 5px; }
.tll-card-pbar { height: 3px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; }
.tll-card-pfill { height: 100%; background: var(--tc, #00C49A); border-radius: 2px; }
.tll-card-prog > span { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--tc, #00C49A); }

.tll-card-cta { margin-top: auto; }

.tll-card-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #4A5568;
  letter-spacing: .5px;
}

/* ── Responsive: trilhas ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .tll-grid { grid-template-columns: 1fr; }
  .tll-catalog-header { flex-direction: column; align-items: flex-start; }
  .tll-catalog-sub { text-align: left; max-width: 100%; }
}

@media (max-width: 600px) {
  .tll-cover { aspect-ratio: 16/8; }
  .tll-card-name { font-size: 16px; }
}

/* ── Utility: full-width btn ───────────────────────────────────────── */
.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════════════
   NETFLIX TRILHAS — .ntx-*
   Horizontal-scroll rows with cinematic SVG covers and hover panels
═══════════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ─────────────────────────────────────────────────── */
.ntx-wrap {
  padding: 0 0 60px;
}

/* ── Page header ──────────────────────────────────────────────────── */
.ntx-page-header {
  padding: 40px 32px 30px;
}
.ntx-page-title {
  font-size: 28px;
  font-weight: 800;
  color: #F8F9FB;
  letter-spacing: -.5px;
  margin: 0 0 6px;
  line-height: 1.1;
}
.ntx-page-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #94A3B8;
  letter-spacing: 1px;
  margin: 0;
}

/* ── Row section ──────────────────────────────────────────────────── */
.ntx-row {
  margin-bottom: 40px;
}
.ntx-row-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  color: #00C49A;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 0 32px 14px;
  margin: 0;
}

/* ── Scroll outer container (hides scrollbar, adds right fade) ────── */
.ntx-scroll-outer {
  overflow: hidden;
  position: relative;
}
.ntx-scroll-outer::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 72px; height: 100%;
  background: linear-gradient(to right, transparent, #0A1628);
  pointer-events: none;
  z-index: 2;
}

/* ── Horizontal scroll track ──────────────────────────────────────── */
.ntx-scroll {
  display: flex;
  gap: 16px;
  padding: 4px 32px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.ntx-scroll::-webkit-scrollbar { display: none; }
.ntx-scroll:active { cursor: grabbing; }

/* ── Individual card ──────────────────────────────────────────────── */
.ntx-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  position: relative;
  transition: transform .25s cubic-bezier(.25,.46,.45,.94), z-index 0s .25s;
  z-index: 1;
}
.ntx-card:hover {
  transform: scale(1.05);
  z-index: 10;
  transition: transform .25s cubic-bezier(.25,.46,.45,.94), z-index 0s 0s;
}

/* ── Card link ────────────────────────────────────────────────────── */
.ntx-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative; /* hover panel anchors to this */
}
.ntx-card-link.ntx-no-link {
  cursor: default;
  pointer-events: none;
}

/* ── Thumbnail ────────────────────────────────────────────────────── */
.ntx-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #0F1E2E;
  box-shadow: 0 4px 20px rgba(0,0,0,.55);
  transition: box-shadow .25s;
}
.ntx-card:hover .ntx-thumb {
  box-shadow: 0 8px 32px rgba(0,0,0,.7);
}
.ntx-thumb > svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* YouTube thumbnail como capa da trilha */
.ntx-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .35s ease;
}
.ntx-card:hover .ntx-thumb-img {
  transform: scale(1.06);
}
/* Overlay escuro suave para legibilidade sobre a foto */
.ntx-thumb-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,22,40,.35) 0%, rgba(10,22,40,.55) 100%);
  pointer-events: none;
}

/* ── Progress bar ─────────────────────────────────────────────────── */
.ntx-thumb-pbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.12);
}
.ntx-thumb-pfill {
  height: 100%;
  background: #00C49A;
  border-radius: 0 2px 2px 0;
  transition: width .3s;
}

/* ── Play overlay ─────────────────────────────────────────────────── */
.ntx-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  opacity: 0;
  transition: opacity .2s, background .2s;
  border-radius: 6px;
}
.ntx-card:hover .ntx-thumb-overlay {
  opacity: 1;
  background: rgba(0,0,0,.32);
}
.ntx-thumb-overlay svg {
  width: 42px !important;
  height: 42px !important;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.7));
}

/* ── Status tag (Pré-venda / Em breve / Aguarde) ──────────────────── */
.ntx-status-tag {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
}
.ntx-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  line-height: 1.2;
}
.ntx-tag-pre    { background: #A78BFA; color: #0D0A1F; }
.ntx-tag-soon   { background: rgba(248,113,113,.14); color: #F87171; border: 1px solid rgba(248,113,113,.35); }
.ntx-tag-coming { background: rgba(251,191,36,.1); color: #FBBF24; border: 1px solid rgba(251,191,36,.28); }

/* ── Done badge ───────────────────────────────────────────────────── */
.ntx-done-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(0,196,154,.14);
  color: #00C49A;
  border: 1px solid rgba(0,196,154,.32);
  line-height: 1.2;
}

/* ── Hover info panel (slides out below thumb) ────────────────────── */
.ntx-card-hover {
  position: absolute;
  top: 100%; /* right below .ntx-thumb (card-link height = thumb only, hover is out-of-flow) */
  left: 0; right: 0;
  background: #0E1E30;
  border: 1px solid rgba(255,255,255,.08);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 14px 14px 16px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,.7);
  z-index: 4;
}
.ntx-card:hover .ntx-card-hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ntx-hover-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #00C49A;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 5px;
}
.ntx-hover-name {
  font-size: 13px;
  font-weight: 700;
  color: #F8F9FB;
  margin: 0 0 7px;
  line-height: 1.3;
}
.ntx-hover-prog {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #94A3B8;
  margin: 0 0 10px;
}
.ntx-hover-sub {
  font-size: 11px;
  color: #64748B;
  margin: 0 0 8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ntx-hover-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #4A5568;
  letter-spacing: .5px;
  margin: 0 0 10px;
}
.ntx-hover-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #00C49A;
  color: #0A1628;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 4px;
  letter-spacing: .4px;
  text-decoration: none;
  cursor: pointer;
}
.ntx-btn-lock {
  background: rgba(255,255,255,.06);
  color: #94A3B8;
  border: 1px solid rgba(255,255,255,.1);
}
.ntx-btn-lock svg { stroke: #94A3B8; }

/* ── Card label (below thumb) ─────────────────────────────────────── */
.ntx-card-label {
  font-size: 12px;
  font-weight: 600;
  color: #94A3B8;
  margin: 9px 0 0;
  padding: 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s;
}
.ntx-card:hover .ntx-card-label {
  color: #F8F9FB;
}

/* ── Completed card (dimmed) ──────────────────────────────────────── */
.ntx-done .ntx-thumb { opacity: .55; }
.ntx-done .ntx-card-label { color: #4A5568; }
.ntx-done:hover .ntx-thumb { opacity: .8; }
.ntx-done:hover .ntx-card-label { color: #94A3B8; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ntx-page-header { padding: 28px 20px 22px; }
  .ntx-row-title   { padding: 0 20px 12px; }
  .ntx-scroll      { padding: 4px 20px 16px; gap: 12px; }
  .ntx-card        { flex: 0 0 240px; }
}

@media (max-width: 600px) {
  .ntx-page-header  { padding: 22px 16px 18px; }
  .ntx-page-title   { font-size: 22px; }
  .ntx-row-title    { padding: 0 16px 10px; }
  .ntx-scroll       { padding: 4px 16px 12px; gap: 10px; }
  .ntx-card         { flex: 0 0 200px; }
  .ntx-card-hover   { display: none; }
  .ntx-scroll-outer::after { width: 40px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   EPISODE CARDS — .ntx-ep-*
   Smaller cards inside each trail's horizontal row
═══════════════════════════════════════════════════════════════════════ */

/* ── Episode row header tweak ─────────────────────────────────────── */
.ntx-ep-row .ntx-row-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94A3B8;
  letter-spacing: 1px;
}
.ntx-ep-row-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 7px;
  border-radius: 3px;
  border: 1px solid;
  line-height: 1.2;
  flex-shrink: 0;
}

/* ── Episode card ─────────────────────────────────────────────────── */
.ntx-ep {
  flex: 0 0 210px;
  scroll-snap-align: start;
  background: #0D1E2E;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .2s, border-color .2s, transform .2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.ntx-ep::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ec, #00C49A);
  opacity: 0;
  transition: opacity .2s;
}
.ntx-ep-open:hover {
  background: #112234;
  border-color: rgba(255,255,255,.12);
  transform: translateY(-2px);
}
.ntx-ep-open:hover::before { opacity: 1; }

.ntx-ep-locked {
  opacity: .55;
  cursor: default;
}
.ntx-ep-preview {
  opacity: 1;
}
.ntx-ep-preview::before { opacity: .5; }

/* ── Episode header (number + module + lock/preview) ─────────────── */
.ntx-ep-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ntx-ep-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--ec, #00C49A);
  line-height: 1;
  min-width: 32px;
}
.ntx-ep-locked .ntx-ep-num { color: #4A5568; }

.ntx-ep-mod-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: #4A5568;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-left: auto;
  white-space: nowrap;
}
.ntx-ep-free-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0,196,154,.14);
  color: #00C49A;
  border: 1px solid rgba(0,196,154,.3);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: auto;
  white-space: nowrap;
}
.ntx-ep-lock {
  color: #4A5568;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Episode title ────────────────────────────────────────────────── */
.ntx-ep-title {
  font-size: 12px;
  font-weight: 600;
  color: #CBD5E1;
  line-height: 1.5;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ntx-ep-locked .ntx-ep-title { color: #4A5568; }
.ntx-ep-open:hover .ntx-ep-title { color: #F8F9FB; }

/* ── Episode footer ───────────────────────────────────────────────── */
.ntx-ep-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.ntx-ep-dur {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #4A5568;
  letter-spacing: .5px;
  white-space: nowrap;
}
.ntx-ep-play-btn {
  font-size: 10px;
  font-weight: 700;
  color: var(--ec, #00C49A);
  letter-spacing: .3px;
  opacity: 0;
  transition: opacity .15s;
  white-space: nowrap;
}
.ntx-ep-open:hover .ntx-ep-play-btn { opacity: 1; }

.ntx-ep-lock-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: #334155;
  letter-spacing: .5px;
  white-space: nowrap;
}

/* ── Photo card variant ───────────────────────────────────────────── */
.ntx-ep-photo {
  padding: 0;
  height: 200px;
  flex: 0 0 240px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  gap: 0;
}
.ntx-ep-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .35s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.ntx-ep-open.ntx-ep-photo:hover .ntx-ep-photo-img {
  transform: scale(1.05);
}
.ntx-ep-photo-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.75) 75%,
    rgba(0,0,0,0.92) 100%
  );
  transition: opacity .25s;
}
.ntx-ep-open.ntx-ep-photo:hover .ntx-ep-photo-grad {
  opacity: .85;
}
/* play button centre */
.ntx-ep-photo-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.ntx-ep-open.ntx-ep-photo:hover .ntx-ep-photo-play {
  opacity: 1;
}
.ntx-ep-photo-play svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.8));
}
/* info block at bottom */
.ntx-ep-photo-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ntx-ep-photo-info .ntx-ep-num {
  font-size: 13px;
  line-height: 1;
}
.ntx-ep-photo-info .ntx-ep-title {
  font-size: 12px;
  color: rgba(255,255,255,.9);
  -webkit-line-clamp: 2;
  margin: 0;
}
.ntx-ep-photo-info .ntx-ep-dur {
  color: rgba(255,255,255,.45);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ntx-ep { flex: 0 0 190px; padding: 14px 12px 12px; }
  .ntx-ep-photo { flex: 0 0 210px; height: 180px; }
}
@media (max-width: 600px) {
  .ntx-ep { flex: 0 0 170px; gap: 8px; padding: 12px 10px 10px; }
  .ntx-ep-num { font-size: 18px; }
  .ntx-ep-title { font-size: 11px; }
  .ntx-ep-row .ntx-row-title { flex-wrap: wrap; }
}

/* ── Responsive: dashboard ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .dash-mid-grid { grid-template-columns: 1fr 1fr; }
  .dash-mid-grid .dash-live-card { grid-column: span 2; }
}

@media (max-width: 900px) {
  .dash-hero { grid-template-columns: 1fr; }
  .dash-hero-right {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.05);
    flex-direction: row;
    justify-content: flex-start;
    padding: 24px 28px;
    gap: 32px;
  }
  .dash-hero-pct { font-size: 56px; }
  .dash-hero-next { flex: 1; }
  .dash-mid-grid { grid-template-columns: 1fr; }
  .dash-mid-grid .dash-live-card { grid-column: span 1; }
  .dash-bot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .dash-hero-left { padding: 28px 24px; gap: 10px; }
  .dash-hero-right { flex-direction: column; align-items: flex-start; padding: 24px; }
  .dash-hero-pct { font-size: 48px; letter-spacing: -2px; }
  .dash-hero-title { font-size: 22px; }
  .dash-lab-stats { gap: 0; }
  .dash-lab-stat-num { font-size: 22px; }
  .dash-lib-grid { gap: 2px; }
}

/* ══════════════════════════════════════════════════════════════════════
   COMUNIDADE — Forum + SAC
══════════════════════════════════════════════════════════════════════ */

/* ── Layout grid ──────────────────────────────────────────────────── */
.com-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

/* ── Category filter tabs ─────────────────────────────────────────── */
.com-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.com-cat-tab {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: #94A3B8;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  transition: background .18s, color .18s, border-color .18s;
}
.com-cat-tab:hover {
  background: rgba(255,255,255,.08);
  color: #F8F9FB;
}
.com-cat-tab.active {
  background: rgba(0,196,154,.12);
  color: #00C49A;
  border-color: rgba(0,196,154,.3);
}
.com-cat-tab[style*="--cat-color"].active {
  background: rgba(from var(--cat-color) r g b / .12);
  color: var(--cat-color);
  border-color: rgba(from var(--cat-color) r g b / .3);
}

/* ── New topic form ───────────────────────────────────────────────── */
.com-nova-wrap { margin-bottom: 24px; }
.com-nova-btn  { margin-bottom: 0; }
.com-nova-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 18px;
}
.com-nova-form.hidden { display: none; }
.com-nova-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Shared form elements ─────────────────────────────────────────── */
.com-input,
.com-select,
.com-textarea {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  color: #F8F9FB;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 10px 13px;
  outline: none;
  transition: border-color .18s;
  box-sizing: border-box;
  resize: vertical;
}
.com-input:focus,
.com-select:focus,
.com-textarea:focus { border-color: #00C49A; }
.com-select option { background: #0A1628; }
.com-form-msg {
  font-size: 12px;
  color: #00C49A;
}
.com-form-msg.err { color: #F87171; }

/* ── Topic list ───────────────────────────────────────────────────── */
.com-topic-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.com-topic-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 9px;
  text-decoration: none;
  color: #F8F9FB;
  transition: background .18s, border-color .18s;
}
.com-topic-row:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
}
.com-cat-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.com-topic-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.com-topic-row-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.com-topic-row-meta {
  font-size: 11px;
  color: #94A3B8;
}
.com-topic-row-replies {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #94A3B8;
}

/* ── Category badges ──────────────────────────────────────────────── */
.com-cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cat-color, #94A3B8);
  background: rgba(from var(--cat-color, #94A3B8) r g b / .12);
  border: 1px solid rgba(from var(--cat-color, #94A3B8) r g b / .25);
}
.com-cat-badge-sm {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--cat-color, #94A3B8);
  background: rgba(from var(--cat-color, #94A3B8) r g b / .12);
}

/* ── SAC sidebar ──────────────────────────────────────────────────── */
.com-sac-col { display: flex; flex-direction: column; gap: 16px; }

.com-sac-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 20px;
}
.com-sac-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #F8F9FB;
  margin: 0 0 6px;
}
.com-sac-sub {
  font-size: 12px;
  color: #94A3B8;
  margin: 0 0 14px;
}
.com-sac-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-full { width: 100%; justify-content: center; }

.com-discord-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(88,101,242,.12);
  border: 1px solid rgba(88,101,242,.3);
  border-radius: 12px;
  padding: 16px;
}
.com-discord-icon { flex-shrink: 0; }
.com-discord-label {
  font-size: 12px;
  font-weight: 700;
  color: #F8F9FB;
  margin: 0 0 2px;
}
.com-discord-sub { font-size: 11px; color: #94A3B8; margin: 0; }
.com-discord-btn { flex-shrink: 0; margin-left: auto; font-size: 12px; padding: 6px 14px; }

/* ── Single topic view ────────────────────────────────────────────── */
.com-single-wrap { max-width: 760px; }

.com-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94A3B8;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color .18s;
}
.com-back:hover { color: #00C49A; }

.com-topic-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
}
.com-topic-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.com-topic-author,
.com-topic-date {
  font-size: 12px;
  color: #94A3B8;
}
.com-topic-title {
  font-size: 20px;
  font-weight: 700;
  color: #F8F9FB;
  margin: 0 0 14px;
  line-height: 1.3;
}
.com-topic-body {
  font-size: 13px;
  color: #CBD5E1;
  line-height: 1.7;
}
.com-topic-body p { margin: 0 0 10px; }
.com-topic-body p:last-child { margin-bottom: 0; }

/* ── Replies ──────────────────────────────────────────────────────── */
.com-replies-wrap { }
.com-replies-head {
  font-size: 13px;
  font-weight: 600;
  color: #94A3B8;
  margin: 0 0 16px;
}
.com-replies-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.com-reply {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.com-reply-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,196,154,.15);
  color: #00C49A;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.com-reply-body {
  flex: 1;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 9px;
  padding: 12px 14px;
}
.com-reply-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}
.com-reply-author { font-size: 12px; font-weight: 600; color: #F8F9FB; }
.com-reply-date   { font-size: 11px; color: #94A3B8; }
.com-reply-text   { font-size: 13px; color: #CBD5E1; line-height: 1.65; }
.com-reply-text p { margin: 0 0 8px; }
.com-reply-text p:last-child { margin-bottom: 0; }

.com-reply-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 16px;
}

/* ── Empty state ──────────────────────────────────────────────────── */
.com-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 20px;
  color: #4A5568;
  text-align: center;
  font-size: 13px;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .com-layout { grid-template-columns: 1fr; }
  .com-sac-col { flex-direction: row; flex-wrap: wrap; }
  .com-sac-card { flex: 1 1 300px; }
  .com-discord-card { flex: 1 1 280px; }
}
@media (max-width: 600px) {
  .com-topic-card { padding: 16px; }
  .com-topic-title { font-size: 17px; }
  .com-sac-col { flex-direction: column; }
  .com-sac-card, .com-discord-card { flex: unset; }
}

/* ══════════════════════════════════════════════════════════════════════
   NEW FEATURES — F2 · F3 · F4 · F5 · F6 · F9 · F11 · F12 · F13 · F14 · F16
══════════════════════════════════════════════════════════════════════ */

/* ── F2: Continue de Onde Parou banner ──────────────────────────────── */
.continue-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(0,196,154,.1) 0%, rgba(10,22,40,.95) 60%);
  border: 1px solid rgba(0,196,154,.2);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.continue-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--cb-color, #00C49A);
}
.continue-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 52px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.continue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.continue-thumb-placeholder {
  color: var(--cb-color, #00C49A);
  opacity: .5;
}
.continue-info { flex: 1; min-width: 0; }
.continue-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cb-color, #00C49A);
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 4px;
}
.continue-code {
  font-size: 10px;
  color: #94A3B8;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 4px;
}
.continue-title {
  font-size: 15px;
  font-weight: 700;
  color: #F8F9FB;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.continue-btn {
  flex-shrink: 0;
}

/* ── F3: Module Progress bars ───────────────────────────────────────── */
.mod-prog-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mod-prog-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mod-prog-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #94A3B8;
}
.mod-prog-name { font-weight: 600; }
.mod-prog-frac { font-family: 'JetBrains Mono', monospace; }
.mod-prog-bar {
  height: 3px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
}
.mod-prog-fill {
  height: 100%;
  background: var(--mc, #00C49A);
  border-radius: 2px;
  transition: width .4s ease;
}

/* ── F4: Notes panel (lesson player) ───────────────────────────────── */
.player-notes {
  margin: 28px 28px 0;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 20px 22px;
}
.player-notes-title {
  font-size: 13px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: .5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.player-notes-title svg { color: #00C49A; }
.player-notes-textarea {
  width: 100%;
  min-height: 110px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #F8F9FB;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.6;
  transition: border-color .2s;
}
.player-notes-textarea:focus {
  outline: none;
  border-color: rgba(0,196,154,.4);
}
.note-status {
  font-size: 11px;
  margin-top: 6px;
  min-height: 16px;
  transition: color .2s;
}
.note-status.saving { color: #94A3B8; }
.note-status.saved  { color: #00C49A; }
.note-status.error  { color: #EF4444; }

/* ── F4: Notes list (dashboard tab) ────────────────────────────────── */
.notes-tab-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.note-list-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 16px 18px;
}
.note-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.note-list-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.note-list-code {
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #00C49A;
}
.note-list-title {
  font-size: 14px;
  font-weight: 600;
  color: #F8F9FB;
  text-decoration: none;
}
.note-list-title:hover { color: #00C49A; }
.note-list-preview {
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.6;
  white-space: pre-wrap;
}
.note-full-text {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  color: #CBD5E1;
  line-height: 1.7;
  white-space: pre-wrap;
  background: rgba(0,0,0,.2);
  border-radius: 6px;
  padding: 10px 12px;
}
.note-full-text.open { display: block; }
.note-expand-btn {
  font-size: 11px;
  color: #00C49A;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 6px;
}

/* ── F5: Activity timeline ──────────────────────────────────────────── */
.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
}
.activity-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  position: relative;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00C49A;
  margin-top: 5px;
}
.activity-dot.completed  { background: #00C49A; }
.activity-dot.viewed     { background: #3B82F6; }
.activity-dot.note       { background: #A855F7; }
.activity-dot.topic      { background: #F97316; }
.activity-text {
  flex: 1;
  font-size: 13px;
  color: #CBD5E1;
  line-height: 1.5;
}
.activity-text strong { color: #F8F9FB; font-weight: 600; }
.activity-time {
  font-size: 11px;
  color: #4A5568;
  white-space: nowrap;
  margin-top: 2px;
}

/* ── F6: Bookmark button ────────────────────────────────────────────── */
.player-bookmark-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #94A3B8;
  cursor: pointer;
  transition: all .2s;
}
.player-bookmark-btn:hover {
  background: rgba(255,255,255,.09);
  color: #F8F9FB;
}
.player-bookmark-btn.bookmarked {
  background: rgba(0,196,154,.12);
  border-color: rgba(0,196,154,.3);
  color: #00C49A;
}
.player-bookmark-btn svg { flex-shrink: 0; }

/* ── F6: Saved lessons list ─────────────────────────────────────────── */
.saved-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.saved-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  text-decoration: none;
  transition: background .18s, border-color .18s;
}
.saved-item:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.saved-code {
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.saved-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #F8F9FB;
}
.saved-dur {
  font-size: 11px;
  color: #4A5568;
  font-family: 'JetBrains Mono', monospace;
}

/* ── F9: Biblioteca AJAX ────────────────────────────────────────────── */
.bib-group { margin-bottom: 16px; }
.bib-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
}

/* ── F11: Search ────────────────────────────────────────────────────── */
.plat-search-wrap {
  position: relative;
  margin-right: 8px;
}
.plat-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 6px 12px;
  transition: border-color .2s;
}
.plat-search-input-wrap:focus-within {
  border-color: rgba(0,196,154,.4);
}
.plat-search-input-wrap svg { color: #4A5568; flex-shrink: 0; }
#tll-search-input {
  background: none;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #F8F9FB;
  width: 180px;
}
#tll-search-input::placeholder { color: #4A5568; }
.plat-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 320px;
  background: #0D1B2E;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  overflow: hidden;
  z-index: 1000;
  display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.plat-search-dropdown.open { display: block; }
.srch-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4A5568;
  padding: 10px 14px 4px;
  font-family: 'JetBrains Mono', monospace;
}
.srch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  transition: background .15s;
}
.srch-item:hover { background: rgba(255,255,255,.05); }
.srch-item-badge {
  font-size: 9px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
  background: rgba(0,196,154,.12);
  color: #00C49A;
  border: 1px solid rgba(0,196,154,.2);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.srch-badge-com {
  background: rgba(249,115,22,.12);
  color: #F97316;
  border-color: rgba(249,115,22,.2);
}
.srch-item-title {
  font-size: 13px;
  color: #CBD5E1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.srch-empty {
  padding: 16px 14px;
  font-size: 13px;
  color: #4A5568;
  text-align: center;
}

/* ── F12: Explore filter pills ──────────────────────────────────────── */
.exp-filters-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  align-items: center;
}
.exp-filter-label {
  font-size: 11px;
  color: #4A5568;
  font-weight: 600;
  margin-right: 4px;
}
.exp-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #94A3B8;
  cursor: pointer;
  transition: all .18s;
}
.exp-filter-pill:hover {
  background: rgba(255,255,255,.08);
  color: #F8F9FB;
}
.exp-filter-pill.active {
  background: rgba(0,196,154,.12);
  border-color: rgba(0,196,154,.3);
  color: #00C49A;
}
.exp-filter-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,.1);
  margin: 0 4px;
}

/* ── F13: Onboarding modal ──────────────────────────────────────────── */
.tll-onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,8,15,.9);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadein .3s ease;
}
.tll-modal-hiding {
  animation: fadeout .4s ease forwards;
}
@keyframes fadein  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeout { from { opacity: 1; } to { opacity: 0; } }
.tll-onboarding-modal {
  background: #0D1B2E;
  border: 1px solid rgba(0,196,154,.2);
  border-radius: 16px;
  padding: 40px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
}
.tll-onb-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: #4A5568;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
}
.tll-onb-close:hover { color: #F8F9FB; }
.tll-onb-logo {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #00C49A;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 20px;
}
.tll-onb-title {
  font-size: 22px;
  font-weight: 800;
  color: #F8F9FB;
  margin-bottom: 8px;
}
.tll-onb-sub {
  font-size: 13px;
  color: #94A3B8;
  margin-bottom: 28px;
  line-height: 1.6;
}
.tll-onb-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.tll-onb-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.tll-onb-step.done {
  background: rgba(0,196,154,.06);
  border-color: rgba(0,196,154,.2);
}
.tll-onb-step-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #4A5568;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: all .2s;
}
.tll-onb-step.done .tll-onb-step-check {
  background: rgba(0,196,154,.15);
  border-color: #00C49A;
  color: #00C49A;
}
.tll-onb-step-label {
  font-size: 14px;
  font-weight: 600;
  color: #94A3B8;
}
.tll-onb-step.done .tll-onb-step-label { color: #F8F9FB; }
.tll-onb-start-btn {
  width: 100%;
}

/* ── F14: Aula do Dia widget ────────────────────────────────────────── */
.aula-dia-widget {
  background: linear-gradient(135deg, rgba(168,139,250,.08) 0%, rgba(10,22,40,.95) 70%);
  border: 1px solid rgba(168,139,250,.2);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.aula-dia-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  color: #A78BFA;
  margin-bottom: 6px;
}
.aula-dia-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 48px;
  border-radius: 8px;
  background: rgba(168,139,250,.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aula-dia-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aula-dia-info { flex: 1; min-width: 0; }
.aula-dia-title {
  font-size: 14px;
  font-weight: 700;
  color: #F8F9FB;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aula-dia-meta {
  font-size: 11px;
  color: #94A3B8;
  margin-bottom: 10px;
}

/* ── F16: Star rating widget ────────────────────────────────────────── */
.player-rating {
  margin: 20px 28px 0;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 18px 22px;
}
.player-rating-title {
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: .5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.rating-stars-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rating-stars {
  display: flex;
  gap: 4px;
}
.rating-star {
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: #4A5568;
  transition: color .15s, transform .1s;
}
.rating-star:hover,
.rating-star.active {
  color: #FBBF24;
}
.rating-star:hover { transform: scale(1.15); }
.rating-stat {
  font-size: 13px;
  color: #94A3B8;
}
.rating-avg {
  font-size: 20px;
  font-weight: 800;
  color: #FBBF24;
}
.rating-cnt {
  font-size: 12px;
  color: #4A5568;
}

/* ── Tabs: Notas + Atividade + Salvos + Biblioteca ──────────────────── */
.feat-tab-bar {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  overflow-x: auto;
  scrollbar-width: none;
}
.feat-tab-bar::-webkit-scrollbar { display: none; }
.feat-tab {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #4A5568;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .18s, border-color .18s;
  white-space: nowrap;
  margin-bottom: -1px;
}
.feat-tab:hover { color: #94A3B8; }
.feat-tab.active {
  color: #00C49A;
  border-bottom-color: #00C49A;
}
.feat-tab-panels { padding-top: 24px; }
.feat-tab-panel { display: none; }
.feat-tab-panel.active { display: block; }

/* Hide old search button since it's now replaced with the input */
.plat-topnav-search { display: none; }

/* ── Responsive tweaks for new features ─────────────────────────────── */
@media (max-width: 768px) {
  .continue-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .continue-btn { align-self: flex-start; }
  .aula-dia-widget { flex-direction: column; }
  #tll-search-input { width: 120px; }
  .plat-search-dropdown { min-width: 260px; }
  .tll-onboarding-modal { padding: 28px 22px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   FEATURE 8 — NOTIFICATION BELL
══════════════════════════════════════════════════════════════════════════ */
.tll-bell-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.tll-bell-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,196,154,.07);
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.tll-bell-btn:hover,
.tll-bell-btn.active {
  background: rgba(0,196,154,.18);
  color: #00C49A;
}
.tll-bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #F87171;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  padding: 0 4px;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
  border: 2px solid #0A1628;
}
.tll-bell-badge.hidden { display: none; }

/* Panel */
.tll-notif-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: -8px;
  width: 320px;
  background: #111827;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  box-shadow: 0 24px 56px rgba(0,0,0,.55);
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.tll-notif-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.tll-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tll-notif-title {
  font-size: 12px;
  font-weight: 700;
  color: #F8F9FB;
  font-family: 'Inter', sans-serif;
  letter-spacing: .04em;
}
.tll-notif-read-all {
  font-size: 11px;
  color: #00C49A;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: 'Inter', sans-serif;
  opacity: .8;
}
.tll-notif-read-all:hover { opacity: 1; text-decoration: underline; }
.tll-notif-list {
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #1e293b transparent;
}
.tll-notif-loading,
.tll-notif-empty {
  padding: 28px 16px;
  text-align: center;
  color: #4A5568;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}

/* Items */
.tll-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  cursor: pointer;
  transition: background .15s;
}
.tll-notif-item:last-child { border-bottom: none; }
.tll-notif-item:hover { background: rgba(255,255,255,.03); }
.tll-notif-item.unread { background: rgba(0,196,154,.04); }
.tll-notif-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}
.tll-notif-icon.reply    { background: rgba(59,130,246,.14); }
.tll-notif-icon.complete { background: rgba(0,196,154,.14); }
.tll-notif-icon.info     { background: rgba(148,163,184,.1); }
.tll-notif-item-body { flex: 1; min-width: 0; }
.tll-notif-item-title {
  font-size: 12px;
  font-weight: 600;
  color: #F8F9FB;
  font-family: 'Inter', sans-serif;
  margin-bottom: 2px;
  line-height: 1.3;
}
.tll-notif-item.read .tll-notif-item-title { color: #94A3B8; }
.tll-notif-item-body-text {
  font-size: 11px;
  color: #94A3B8;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tll-notif-item.read .tll-notif-item-body-text { color: #4A5568; }
.tll-notif-item-time {
  font-size: 10px;
  color: #4A5568;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 3px;
}
.tll-notif-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00C49A;
  margin-top: 8px;
  flex-shrink: 0;
  transition: background .2s;
}
.tll-notif-item.read .tll-notif-dot { background: transparent; }

/* Responsive */
@media (max-width: 480px) {
  .tll-notif-panel { width: 290px; right: -40px; }
}

/* ── Aula Comments ──────────────────────────────────────────────────────── */
.tll-comments-section {
  margin-top: 24px;
  background: #111827;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 20px 24px 28px;
}

.tll-comments-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #94A3B8;
}

.tll-comments-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #00C49A;
}

.tll-comments-count {
  font-size: 12px;
  color: #4A5568;
}

/* ── New comment form ── */
.tll-new-comment-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.tll-new-comment-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tll-new-comment-textarea,
.tll-reply-textarea {
  width: 100%;
  background: #0A1628;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #F8F9FB;
  font-family: inherit;
  font-size: 13px;
  padding: 10px 12px;
  resize: vertical;
  transition: border-color .2s;
  box-sizing: border-box;
  min-height: 70px;
}
.tll-new-comment-textarea:focus,
.tll-reply-textarea:focus {
  outline: none;
  border-color: #00C49A;
}

.tll-new-comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.tll-btn-primary-sm {
  background: #00C49A;
  color: #0A1628;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
}
.tll-btn-primary-sm:hover   { opacity: .85; }
.tll-btn-primary-sm:disabled { opacity: .5; cursor: default; }

.tll-btn-sm {
  background: rgba(0,196,154,.12);
  color: #00C49A;
  border: 1px solid rgba(0,196,154,.25);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  transition: background .15s;
}
.tll-btn-sm:hover   { background: rgba(0,196,154,.22); }
.tll-btn-sm:disabled { opacity: .5; cursor: default; }

.tll-btn-sm-ghost {
  background: none;
  color: #4A5568;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  transition: color .15s;
}
.tll-btn-sm-ghost:hover { color: #94A3B8; }

.tll-comment-status-msg { font-size: 12px; }
.tll-comment-status-msg.ok  { color: #00C49A; }
.tll-comment-status-msg.err { color: #f87171; }

.tll-inline-err { font-size: 11px; color: #f87171; display: block; margin-top: 4px; }

.tll-comments-login-prompt {
  font-size: 13px;
  color: #4A5568;
  text-align: center;
  padding: 8px 0 20px;
  margin: 0;
}
.tll-comments-login-prompt a { color: #00C49A; text-decoration: none; }

/* ── Thread ── */
.tll-comments-thread { min-height: 40px; }
.tll-comments-loading { display: flex; justify-content: center; padding: 20px 0; }

.tll-no-comments {
  font-size: 13px;
  color: #4A5568;
  text-align: center;
  padding: 20px 0;
  margin: 0;
}

/* ── Comment list ── */
.tll-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tll-comment-replies {
  margin-top: 10px;
  padding-left: 16px;
  border-left: 2px solid rgba(0,196,154,.15);
}

/* ── Single comment ── */
.tll-comment {
  border-radius: 8px;
}
.tll-comment-inner {
  display: flex;
  gap: 12px;
  background: #0D1B2E;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 8px;
  padding: 14px 16px;
}
.tll-comment--mod > .tll-comment-inner {
  border-color: rgba(0,196,154,.2);
  background: rgba(0,196,154,.04);
}

.tll-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
}

.tll-comment-right {
  flex: 1;
  min-width: 0;
}

.tll-comment-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.tll-comment-author {
  font-size: 13px;
  font-weight: 700;
  color: #F8F9FB;
}

.tll-mod-badge {
  display: inline-block;
  background: rgba(0,196,154,.18);
  color: #00C49A;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
}

.tll-comment-date {
  font-size: 11px;
  color: #4A5568;
  margin-left: auto;
}

.tll-comment-body {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 10px;
  word-break: break-word;
  white-space: pre-wrap;
}

/* ── Comment footer (like + reply) ── */
.tll-comment-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Like button ── */
.tll-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #4A5568;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  line-height: 1;
}
.tll-like-btn:hover { color: #f87171; background: rgba(248,113,113,.08); }
.tll-like-btn.liked { color: #f87171; }
.tll-like-btn.liked svg { fill: #f87171; stroke: #f87171; }
.tll-like-btn:disabled { cursor: default; opacity: .4; }
.tll-like-count { min-width: 8px; }

/* ── Delete button (admin only) ── */
.tll-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
  transition: color .15s, background .15s;
  margin-left: auto; /* push to right side */
  line-height: 1;
}
.tll-delete-btn:hover { color: #f87171; background: rgba(248,113,113,.1); }
.tll-delete-btn:disabled { opacity: .4; cursor: default; }

/* ── Reply toggle ── */
.tll-reply-toggle {
  background: none;
  border: none;
  color: #4A5568;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 0;
  transition: color .15s;
}
.tll-reply-toggle:hover { color: #00C49A; }

/* ── Reply form ── */
.tll-reply-form-wrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tll-reply-form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .tll-comments-section  { padding: 16px; }
  .tll-comment-replies   { padding-left: 10px; }
  .tll-comment-date      { margin-left: 0; width: 100%; }
}
