/* ============================================================
   A ORDEM — Área de Membros
   Estilo inspirado na Área de Membros da Cakto (preto degradê),
   com o detalhe trocado do verde para o roxo/magenta da marca
   "Genisson Silva FX".
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
  /* Fundo — degradê preto com leve viés roxo (como o da Cakto, porém frio->roxo) */
  --bg-0: #060510;
  --bg-1: #0a0813;
  --bg-2: #100b1d;

  /* Superfícies / cards */
  --surface: rgba(255, 255, 255, 0.035);
  --surface-solid: #130f20;
  --surface-2: #1a1430;
  --surface-3: #221a3d;

  /* Bordas */
  --border: rgba(150, 110, 255, 0.14);
  --border-strong: rgba(160, 120, 255, 0.30);

  /* Texto */
  --text: #f3f1fb;
  --text-dim: #a7a1c0;
  --text-mute: #6f6a88;

  /* Detalhe da marca — antes verde (Cakto), agora roxo->magenta (A ORDEM) */
  --accent: #8b3bff;
  --accent-bright: #a855f7;
  --accent-magenta: #d011c9;
  --accent-pink: #ec4bd6;
  --accent-grad: linear-gradient(115deg, #7c3aed 0%, #a021d6 55%, #d011c9 100%);
  --accent-grad-soft: linear-gradient(115deg, rgba(124, 58, 237, 0.22), rgba(208, 17, 201, 0.22));
  --accent-glow: 0 0 0 1px rgba(160, 120, 255, 0.35), 0 14px 40px -12px rgba(140, 60, 255, 0.55);

  --ok: #37d29b;
  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1360px;
  --nav-h: 66px;
  --shadow-card: 0 18px 44px -22px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

/* Fundo global: degradê preto + brilhos roxo/magenta como as imagens da marca */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(124, 58, 237, 0.30), transparent 60%),
    radial-gradient(1100px 700px at 100% 8%, rgba(208, 17, 201, 0.20), transparent 58%),
    radial-gradient(900px 900px at 50% 120%, rgba(96, 40, 220, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 40%, #040309 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(208, 17, 201, 0.35); }

/* Scrollbars */
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(150, 110, 255, 0.22); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: rgba(150, 110, 255, 0.4); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8, 6, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; width: 100%; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(160, 90, 255, 0.6)); }
.brand__name {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 15px;
  background: linear-gradient(180deg, #ffffff, #c9c2e6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand__by { font-size: 10.5px; color: var(--text-mute); letter-spacing: 0.06em; margin-top: 1px; }

.nav__links { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: background .15s, color .15s;
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a.is-active { color: var(--text); background: var(--accent-grad-soft); box-shadow: inset 0 0 0 1px var(--border-strong); }

.nav__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  width: 240px;
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(140, 60, 255, 0.14); }
.search svg { flex-shrink: 0; opacity: .6; }
.search input {
  background: none; border: none; outline: none; color: var(--text);
  font-size: 13px; width: 100%;
}
.search input::placeholder { color: var(--text-mute); }

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-grad);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: #fff;
  box-shadow: 0 0 0 2px rgba(160, 120, 255, 0.3);
  flex-shrink: 0;
}

.nav__burger {
  display: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 9px; width: 38px; height: 38px;
  color: var(--text); align-items: center; justify-content: center;
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px;
  border-radius: 11px;
  font-weight: 600; font-size: 14px;
  border: none;
  color: #fff;
  background: var(--accent-grad);
  box-shadow: 0 12px 30px -10px rgba(160, 40, 220, 0.6);
  transition: transform .12s, box-shadow .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 16px 40px -10px rgba(180, 40, 220, 0.7); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface-2); filter: none; }
.btn--block { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }
.btn--sm { padding: 9px 16px; font-size: 13px; }

/* ============================================================
   HERO / CARROSSEL DE BANNERS
   ============================================================ */
.hero {
  position: relative;
  margin-top: 26px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  min-height: 340px;
  display: flex;
  align-items: flex-end;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 5, 16, 0.98) 0%, rgba(6, 5, 16, 0.95) 34%, rgba(6, 5, 16, 0.62) 62%, rgba(6, 5, 16, 0.2) 100%),
    linear-gradient(0deg, rgba(6, 5, 16, 0.92) 0%, transparent 55%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 40px 48px 44px;
  max-width: 560px;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #f0a6ea;
  margin-bottom: 14px;
}
.hero__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-pink); box-shadow: 0 0 12px var(--accent-magenta); }
.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}
.hero p { color: var(--text-dim); font-size: 15px; margin: 0 0 22px; max-width: 480px; }
.hero__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero__progress { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-dim); }
.hero__progress .bar { width: 130px; }

.hero__dots { position: absolute; right: 26px; bottom: 22px; display: flex; gap: 7px; z-index: 3; }
.hero__dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.28); padding: 0;
  transition: width .2s, background .2s;
}
.hero__dots button.is-active { width: 22px; border-radius: 5px; background: var(--accent-grad); }

/* ============================================================
   SEÇÕES / CARROSSÉIS DE CURSOS
   ============================================================ */
.section { margin-top: 44px; }
.section__head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px;
}
.section__head h2 {
  font-family: 'Sora', sans-serif;
  font-size: 19px; margin: 0; font-weight: 700;
}
.section__head .count { font-size: 12.5px; color: var(--text-mute); }
.section__head a { margin-left: auto; font-size: 12.5px; color: var(--accent-bright); font-weight: 600; }
.section__head a:hover { color: var(--accent-pink); }

.rail { position: relative; }
.rail__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
  scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__arrow {
  position: absolute; top: 40%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(12, 9, 22, 0.9);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: grid; place-items: center;
  z-index: 4;
  transition: background .15s, transform .15s;
}
.rail__arrow:hover { background: var(--surface-3); }
.rail__arrow--prev { left: -14px; }
.rail__arrow--next { right: -14px; }
@media (max-width: 700px) { .rail__arrow { display: none; } }

/* Card de curso/módulo */
.card {
  scroll-snap-align: start;
  flex: 0 0 268px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--accent-glow);
}
.card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px;
  overflow: hidden;
}
.card__cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% 15%, rgba(255, 255, 255, 0.16), transparent 55%);
  mix-blend-mode: screen;
}
.card__num {
  font-family: 'Sora', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  position: relative; z-index: 1;
}
.card__cover-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700; font-size: 17px; line-height: 1.2;
  color: #fff;
  position: relative; z-index: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.card__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transition: opacity .16s; z-index: 2;
}
.card:hover .card__play { opacity: 1; }
.card__play span {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(10, 8, 18, 0.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: grid; place-items: center;
}
.card__body { padding: 14px 15px 16px; }
.card__title { font-weight: 600; font-size: 14.5px; margin: 0 0 4px; }
.card__meta { font-size: 12px; color: var(--text-mute); display: flex; align-items: center; gap: 8px; }
.card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

/* Barra de progresso */
.bar {
  height: 6px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.bar > i {
  display: block; height: 100%;
  background: var(--accent-grad);
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(200, 40, 210, 0.5);
}
.card__progress { margin-top: 12px; display: flex; align-items: center; gap: 9px; }
.card__progress .bar { flex: 1; }
.card__progress span { font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* Coberturas geradas (sem imagem) — motivo "orbe de vidro" da marca */
.cv1 { background: linear-gradient(135deg, #4c1d95, #7c3aed 55%, #c026d3); }
.cv2 { background: linear-gradient(135deg, #2e1065, #6d28d9 60%, #a21caf); }
.cv3 { background: linear-gradient(135deg, #1e1b4b, #4338ca 45%, #7c3aed); }
.cv4 { background: linear-gradient(135deg, #500724, #9d174d 50%, #a21caf); }
.cv5 { background: linear-gradient(135deg, #3b0764, #7e22ce 55%, #db2777); }
.cv6 { background: linear-gradient(135deg, #172554, #4f46e5 50%, #9333ea); }
.cv7 { background: linear-gradient(135deg, #4a044e, #86198f 55%, #c026d3); }
.cv8 { background: linear-gradient(135deg, #020617, #4c1d95 60%, #be185d); }
.card__cover--orb::before {
  content: "";
  position: absolute; width: 150px; height: 150px; right: -30px; bottom: -46px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.9), rgba(255, 120, 240, 0.35) 38%, rgba(80, 20, 120, 0.1) 62%, transparent 70%);
  box-shadow: inset -10px -14px 30px rgba(60, 0, 80, 0.5), 0 0 40px rgba(230, 70, 220, 0.35);
  z-index: 0;
}

/* ============================================================
   LINHA "CONTINUE ASSISTINDO" — cards horizontais
   ============================================================ */
.lesson-card {
  scroll-snap-align: start;
  flex: 0 0 340px;
  display: flex;
  gap: 0;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.lesson-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--accent-glow); }
.lesson-card__thumb {
  position: relative;
  flex: 0 0 130px;
  display: grid; place-items: center;
}
.lesson-card__thumb svg { opacity: .92; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .4)); }
.lesson-card__body { padding: 13px 15px; display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lesson-card__mod { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-bright); font-weight: 700; }
.lesson-card__title { font-size: 13.5px; font-weight: 600; margin: 4px 0 auto; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lesson-card__foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.lesson-card__foot .bar { flex: 1; }
.lesson-card__foot span { font-size: 10.5px; color: var(--text-dim); }

/* ============================================================
   RODAPÉ
   ============================================================ */
.footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  padding: 32px 0 44px;
  color: var(--text-mute);
  font-size: 12.5px;
}
.footer .wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.footer a:hover { color: var(--text-dim); }
.footer .brand__name { font-size: 13px; }

/* ============================================================
   PÁGINA DE LOGIN
   ============================================================ */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.auth__art {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 46px;
}
.auth__art-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 22%;
}
.auth__art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 5, 16, 0.30), rgba(6, 5, 16, 0.55) 45%, rgba(6, 5, 16, 0.86));
}
.auth__art > * { position: relative; z-index: 1; }
.auth__art .brand__mark { width: 40px; height: 40px; }
.auth__art .brand__name { font-size: 17px; }
.auth__quote { max-width: 420px; }
.auth__quote h2 {
  font-family: 'Sora', sans-serif;
  font-size: 30px; line-height: 1.18; margin: 0 0 14px;
}
.auth__quote p { color: var(--text-dim); font-size: 14.5px; margin: 0; }
.auth__badges { display: flex; gap: 20px; margin-top: 26px; font-size: 12.5px; color: var(--text-dim); }
.auth__badges b { display: block; font-family: 'Sora', sans-serif; font-size: 20px; color: var(--text); }

.auth__form-side { display: grid; place-items: center; padding: 40px 24px; }
.auth__card { width: 100%; max-width: 384px; }
.auth__card h1 { font-family: 'Sora', sans-serif; font-size: 24px; margin: 0 0 6px; }
.auth__card > p { color: var(--text-dim); font-size: 13.5px; margin: 0 0 28px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.field input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(140, 60, 255, 0.16); }
.field input::placeholder { color: var(--text-mute); }

.auth__row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 22px; font-size: 12.5px; }
.auth__row label { display: flex; align-items: center; gap: 7px; color: var(--text-dim); cursor: pointer; }
.auth__row a { color: var(--accent-bright); font-weight: 600; }
.auth__row a:hover { color: var(--accent-pink); }
.auth__foot { text-align: center; font-size: 12.5px; color: var(--text-mute); margin-top: 22px; }
.auth__foot a { color: var(--accent-bright); font-weight: 600; }

/* ============================================================
   PÁGINA DO CURSO (grade de aulas)
   ============================================================ */
.page-head {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 24px;
  padding: 38px 40px;
  background: linear-gradient(120deg, var(--surface-2), var(--surface-solid));
}
.page-head::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.5), rgba(236, 75, 214, 0.35) 40%, transparent 68%);
  filter: blur(6px);
}
.page-head .crumb { font-size: 12.5px; color: var(--text-mute); margin-bottom: 14px; position: relative; }
.page-head .crumb a:hover { color: var(--accent-bright); }
.page-head h1 { font-family: 'Sora', sans-serif; font-size: 30px; margin: 0 0 10px; position: relative; }
.page-head p { color: var(--text-dim); max-width: 560px; margin: 0 0 20px; font-size: 14px; position: relative; }
.page-head__stats { display: flex; gap: 26px; position: relative; flex-wrap: wrap; }
.page-head__stats div { font-size: 12.5px; color: var(--text-mute); }
.page-head__stats b { display: block; font-family: 'Sora', sans-serif; font-size: 18px; color: var(--text); }
.page-head__bar { margin-top: 20px; max-width: 420px; position: relative; }

.lessons-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.lrow {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 13px 15px;
  transition: border-color .15s, background .15s, transform .15s;
}
.lrow:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateX(3px); }
.lrow__check {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: grid; place-items: center; flex-shrink: 0;
  color: transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.lrow.is-done .lrow__check { background: var(--accent-grad); border-color: transparent; color: #fff; }
.lrow__idx { font-size: 12px; color: var(--text-mute); width: 22px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.lrow__info { min-width: 0; flex: 1; }
.lrow__info h3 {
  font-size: 13.5px; font-weight: 600; margin: 0 0 2px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.lrow__info span { font-size: 11.5px; color: var(--text-mute); }
.lrow__go { flex-shrink: 0; opacity: .5; }
.lrow:hover .lrow__go { opacity: 1; color: var(--accent-bright); }

/* ============================================================
   PLAYER DE AULA
   ============================================================ */
.player {
  display: grid;
  grid-template-columns: 1fr 348px;
  gap: 26px;
  margin-top: 24px;
  align-items: start;
}
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 45%, #1a1030, #0a0714);
  display: grid; place-items: center;
}
.video::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(6, 5, 16, 0.55));
}
.video__play {
  position: relative; z-index: 1;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--accent-grad);
  border: none;
  display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(160, 60, 255, 0.12), 0 20px 50px -10px rgba(180, 40, 210, 0.6);
  transition: transform .15s;
}
.video__play:hover { transform: scale(1.06); }
.video__label { position: absolute; z-index: 1; bottom: 16px; left: 18px; font-size: 12px; color: var(--text-dim); }

.lesson-main h1 { font-family: 'Sora', sans-serif; font-size: 23px; margin: 20px 0 6px; }
.lesson-main .sub { font-size: 12.5px; color: var(--text-mute); margin-bottom: 20px; }
.lesson-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs button {
  background: none; border: none; padding: 12px 16px;
  color: var(--text-mute); font-size: 13.5px; font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.tabs button:hover { color: var(--text-dim); }
.tabs button.is-active { color: var(--text); border-color: var(--accent-magenta); }
.tab-panel { display: none; font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.tab-panel.is-active { display: block; }
.tab-panel p { margin: 0 0 14px; }
.tab-panel ul { margin: 0 0 14px; padding-left: 20px; }
.tab-panel li { margin-bottom: 7px; }

.material {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: 11px; padding: 13px 15px; margin-bottom: 10px;
  transition: border-color .15s;
}
.material:hover { border-color: var(--border-strong); }
.material__ico { width: 38px; height: 38px; border-radius: 9px; background: var(--accent-grad-soft); display: grid; place-items: center; color: var(--accent-bright); flex-shrink: 0; }
.material b { font-size: 13px; color: var(--text); display: block; }
.material span { font-size: 11.5px; color: var(--text-mute); }
.material .btn { margin-left: auto; }

/* Sidebar do player */
.sidebar {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.sidebar__head { padding: 18px 18px 16px; border-bottom: 1px solid var(--border); }
.sidebar__head .mod { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent-bright); font-weight: 700; }
.sidebar__head h3 { font-family: 'Sora', sans-serif; font-size: 16px; margin: 6px 0 14px; }
.sidebar__head .prog { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--text-dim); }
.sidebar__head .prog .bar { flex: 1; }
.sidebar__list { max-height: 60vh; overflow-y: auto; }
.slrow {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background .13s;
}
.slrow:hover { background: var(--surface); }
.slrow.is-current { background: var(--accent-grad-soft); box-shadow: inset 3px 0 0 var(--accent-magenta); }
.slrow__check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--border-strong);
  display: grid; place-items: center; color: transparent;
}
.slrow.is-done .slrow__check { background: var(--accent-grad); border-color: transparent; color: #fff; }
.slrow__t { font-size: 12.5px; min-width: 0; flex: 1; }
.slrow__t span { display: block; font-size: 10.5px; color: var(--text-mute); margin-top: 1px; }
.slrow.is-current .slrow__t { font-weight: 600; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1080px) {
  .player { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar__list { max-height: none; }
  .auth { grid-template-columns: 1fr; }
  .auth__art { display: none; }
}
@media (max-width: 860px) {
  .nav__links, .search { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(8, 6, 16, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 18px;
    gap: 2px;
  }
  .hero__inner { padding: 30px 26px 34px; }
  .page-head { padding: 28px 24px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .hero { min-height: 300px; }
  .hero h1 { font-size: 24px; }
  .card { flex-basis: 78vw; }
  .lesson-card { flex-basis: 84vw; }
}

/* ============================================================
   GATE (auth-guard) — esconde a página até confirmar sessão/licença
   ============================================================ */
html.aordem-gate:not(.aordem-ready) body { opacity: 0; }
html.aordem-ready body { opacity: 1; transition: opacity .18s ease; }

/* ============================================================
   PLAYER PROTEGIDO (YouTube não listado + overlay anti-clique-direito)
   ============================================================ */
.ap { width: 100%; user-select: none; }
.ap__box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.ap__frame, .ap__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ap__overlay {
  position: absolute; inset: 0; z-index: 2; cursor: pointer;
  display: grid; place-items: center;
  background: transparent;
}
.ap__playicon {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--accent-grad);
  display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(160, 60, 255, 0.12), 0 20px 50px -10px rgba(180, 40, 210, 0.6);
  opacity: 0; transition: opacity .15s;
}
.ap:not(.is-playing) .ap__playicon { opacity: 1; }
.ap__controls {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-solid); border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 16px 16px; padding: 10px 14px;
}
.ap__btn { background: none; border: none; padding: 6px; display: grid; place-items: center; opacity: .85; }
.ap__btn:hover { opacity: 1; }
.ap__time { font-size: 11.5px; color: var(--text-mute); white-space: nowrap; }
.ap__bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); cursor: pointer; }
.ap__bar-fill { height: 100%; border-radius: 3px; background: var(--accent-grad); width: 0%; }

/* ============================================================
   MODAL (mentorias / sala de sinais)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(4, 3, 10, 0.82);
  display: grid; place-items: center;
  padding: 20px;
}
.modal-box {
  position: relative; width: 100%; max-width: 900px;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow-card);
}
.modal-box h3 { font-family: 'Sora', sans-serif; font-size: 18px; margin: 0 0 14px; padding-right: 36px; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; line-height: 1;
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-hero {
  position: relative; margin-top: 22px; padding: 100px 26px 76px; text-align: center;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 45%, #1a1030, #0a0714);
}
.landing-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,5,16,.45) 0%, rgba(6,5,16,.55) 55%, rgba(6,5,16,.85) 100%);
}
.landing-hero > * { position: relative; z-index: 2; }
.landing-hero .landing-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center; opacity: 0.85;
}
.landing-hero h1 { font-family: 'Sora', sans-serif; font-size: 42px; max-width: 780px; margin: 18px auto; line-height: 1.15; }
.landing-hero p { max-width: 600px; margin: 0 auto 28px; color: var(--text-dim); font-size: 16px; }

.landing-trust { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin: 26px 0 50px; }
.landing-trust span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-dim); }
.landing-trust svg { color: var(--accent-bright); flex-shrink: 0; }

.landing-how { margin: 60px 0; }
.landing-how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.landing-how__step {
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; text-align: left; position: relative;
}
.landing-how__num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-grad);
  display: grid; place-items: center; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px;
  color: #fff; margin-bottom: 14px;
}
.landing-how__step h3 { font-family: 'Sora', sans-serif; font-size: 15.5px; margin: 0 0 6px; }
.landing-how__step p { font-size: 13px; color: var(--text-dim); margin: 0; }

.card-flat {
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: left;
}
.landing-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 50px 0; }
.landing-highlights .card-flat__icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--accent-grad-soft);
  display: grid; place-items: center; color: var(--accent-bright); margin-bottom: 14px;
}
.landing-highlights .card-flat h3 { font-family: 'Sora', sans-serif; font-size: 16px; margin: 0 0 8px; }
.landing-highlights .card-flat p { color: var(--text-dim); font-size: 13.5px; margin: 0; }
.landing-section-title { font-family: 'Sora', sans-serif; font-size: 24px; text-align: center; margin: 0 0 30px; }

.landing-stats {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 40px 0;
}
.landing-stat { text-align: center; }
.landing-stat b { display: block; font-family: 'Sora', sans-serif; font-size: 28px; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-stat span { font-size: 12.5px; color: var(--text-mute); }

.landing-about {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center;
  margin: 60px 0; background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
}
.landing-about__photo {
  width: 100%; aspect-ratio: 1; border-radius: 50%; background-size: cover; background-position: center;
  background: var(--accent-grad);
}
.landing-about__text p { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; margin: 0; }

.landing-testimonials { margin: 60px 0; }
.landing-testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.landing-testimonial p { font-size: 14px; color: var(--text-dim); font-style: italic; margin: 0 0 14px; }
.landing-testimonial__who b { display: block; font-size: 13.5px; }
.landing-testimonial__who span { font-size: 11.5px; color: var(--text-mute); }

.landing-pricing { margin: 60px 0; display: flex; justify-content: center; }
.landing-pricing__card {
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 34px; max-width: 380px; width: 100%; text-align: center; box-shadow: var(--accent-glow);
}
.landing-pricing__card h3 { font-family: 'Sora', sans-serif; font-size: 18px; margin: 0 0 10px; }
.landing-pricing__price { font-family: 'Sora', sans-serif; font-size: 34px; margin-bottom: 18px; }
.landing-pricing__price span { font-size: 14px; color: var(--text-mute); font-family: 'Inter', sans-serif; }
.landing-pricing__features { list-style: none; margin: 0 0 22px; padding: 0; text-align: left; display: grid; gap: 10px; }
.landing-pricing__features li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-dim); }
.landing-pricing__features svg { color: var(--accent-bright); flex-shrink: 0; }

.landing-faq { max-width: 720px; margin: 50px auto; }
.landing-faq details { background: var(--surface-solid); border: 1px solid var(--border); border-radius: 11px; padding: 14px 18px; margin-bottom: 10px; }
.landing-faq summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.landing-faq p { color: var(--text-dim); font-size: 13.5px; margin: 10px 0 0; }
.landing-cta { text-align: center; padding: 50px 0 90px; }

@media (max-width: 860px) {
  .landing-highlights { grid-template-columns: 1fr; }
  .landing-how__grid { grid-template-columns: 1fr; }
  .landing-testimonials__grid { grid-template-columns: 1fr; }
  .landing-about { grid-template-columns: 1fr; text-align: center; }
  .landing-about__photo { max-width: 160px; margin: 0 auto; }
  .landing-about__text h2 { text-align: center !important; }
  .landing-hero { padding: 70px 20px 50px; }
  .landing-hero h1 { font-size: 28px; }
  .landing-trust { gap: 16px; }
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin { display: grid; grid-template-columns: 230px 1fr; gap: 0; min-height: calc(100vh - var(--nav-h)); }
.admin__side {
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.admin__side button {
  display: block; width: 100%; text-align: left;
  background: none; border: none; border-radius: 9px;
  padding: 10px 14px; margin-bottom: 3px;
  color: var(--text-dim); font-size: 13.5px; font-weight: 600;
}
.admin__side button:hover { background: var(--surface); color: var(--text); }
.admin__side button.is-active { background: var(--accent-grad-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--accent-magenta); }
.admin__main { padding: 28px 32px; max-width: 980px; }
.admin__main h2 { font-family: 'Sora', sans-serif; font-size: 21px; margin: 0 0 4px; }
.admin__main .hint { color: var(--text-mute); font-size: 12.5px; margin: 0 0 22px; }
.admin-panel { display: none; }
.admin-panel.is-active { display: block; }

.admin-form { display: grid; gap: 12px; max-width: 560px; margin-bottom: 26px; }
.admin-form label { font-size: 12px; color: var(--text-dim); font-weight: 600; display: block; margin-bottom: 5px; }
.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%; background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: 9px; padding: 10px 13px; color: var(--text); font-size: 13.5px; font-family: inherit;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { outline: none; border-color: var(--border-strong); }
.admin-form textarea { min-height: 80px; resize: vertical; }
.admin-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-form .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.admin-list { display: grid; gap: 8px; }
.admin-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: 11px; padding: 11px 14px;
}
.admin-row .thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.admin-row .grow { flex: 1; min-width: 0; }
.admin-row .grow b { display: block; font-size: 13.5px; }
.admin-row .grow span { display: block; font-size: 11.5px; color: var(--text-mute); }
.admin-row .actions { display: flex; gap: 6px; flex-shrink: 0; }
.admin-row .actions button { font-size: 11.5px; padding: 6px 10px; }

.badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
.badge--ok { background: rgba(55, 210, 155, .15); color: var(--ok); }
.badge--warn { background: rgba(255, 180, 60, .15); color: #ffb43c; }
.badge--off { background: rgba(255, 255, 255, .08); color: var(--text-mute); }

.toast {
  position: fixed; bottom: 22px; right: 22px; z-index: 50;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  border-radius: 11px; padding: 12px 18px; font-size: 13px;
  box-shadow: var(--shadow-card);
}
.toast.is-error { border-color: rgba(255, 90, 90, .5); color: #ff9a9a; }

@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .admin__side { position: static; height: auto; display: flex; overflow-x: auto; gap: 4px; }
  .admin__side button { white-space: nowrap; width: auto; }
}
