/* ==========================================================
   Área de membros — MELI em 7
   Tema escuro. Toda a paleta está nas variáveis abaixo.
   ========================================================== */

:root {
  color-scheme: dark;

  /* Marca */
  --brand-yellow: #ffe600;
  --brand-amber: #ffb000;
  --brand-navy: #1f2357;
  --brand-navy-light: #2d3277;

  /* Destaque (botões, links, progresso) */
  --accent: var(--brand-yellow);
  --accent-2: var(--brand-amber);
  --accent-hover: #fff04a;
  --accent-ink: #141414;
  --accent-soft: rgba(255, 230, 0, 0.1);
  --accent-line: rgba(255, 230, 0, 0.32);

  /* Superfícies */
  --bg: #07080b;
  --surface: #111319;
  --surface-2: #171a22;
  --surface-3: #20242e;
  --field-bg: #0c0e13;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Texto */
  --text: #f3f4f6;
  --text-2: #c3c7d1;
  --muted: #868b99;

  /* Estados */
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.13);
  --danger: #f87171;

  /* Barra superior */
  --topbar-bg: #000;
  --topbar-h: 60px;

  /* Barra lateral: âmbar escurecendo até o azul-marinho */
  --side-1: #f5b100;
  --side-2: #d8730f;
  --side-3: #5a2c5c;
  --side-4: #1f2357;
  --side-5: #10122c;
  --side-w: 72px;
  --side-w-open: 236px;

  /* Carinhas da avaliação */
  --face-1: #ef4444;
  --face-2: #f97316;
  --face-3: #facc15;
  --face-4: #84cc16;
  --face-5: #22c55e;

  /* Tipografia */
  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Forma */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 16px 36px -18px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 6px 18px rgba(0, 0, 0, 0.4), 0 32px 64px -24px rgba(0, 0, 0, 0.85);
  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

ul,
ol {
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

/* ---------- marca ---------- */

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.logo--lg {
  font-size: 32px;
}

.logo--xl {
  font-size: 44px;
}

.splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.splash__bar {
  width: 120px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent) 0 0 / 200% 100%, var(--surface-2);
  animation: shimmer 1.2s linear infinite;
}

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(255, 230, 0, 0.55);
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px rgba(255, 230, 0, 0.6);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--lg {
  height: 52px;
  padding: 0 26px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.link-btn svg {
  width: 18px;
  height: 18px;
}

.link-btn:hover {
  text-decoration: underline;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.chip svg {
  width: 13px;
  height: 13px;
}

.chip--accent {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}

.chip--muted {
  color: var(--muted);
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- progresso ---------- */

.bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.6s var(--ease);
}

.bar--lg {
  height: 10px;
}

.bar--xs {
  height: 4px;
}

/* ---------- campos ---------- */

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.field__control > svg {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.field__control input {
  width: 100%;
  height: 50px;
  padding: 0 48px 0 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--field-bg);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field__control input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px var(--field-bg) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}

.field__control input::placeholder {
  color: #5c606c;
}

.field__control input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 230, 0, 0.14);
}

.field__toggle {
  position: absolute;
  right: 7px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
}

.field__toggle:hover {
  color: var(--text);
}

.field__toggle svg {
  width: 18px;
  height: 18px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.notice svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.notice--ok {
  background: var(--success-soft);
  border-color: rgba(34, 197, 94, 0.32);
  color: #86efac;
}

.notice--error {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

/* ==========================================================
   LOGIN
   ========================================================== */

.login {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
  background: #05060a;
}

.login__art {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #0d1033 0%, var(--brand-navy) 48%, #090a1a 100%);
}

.login__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 72%, #05060a), linear-gradient(0deg, rgba(5, 6, 10, 0.75), transparent 45%);
}

.login__shapes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.login__beam {
  animation: beam 7s ease-in-out infinite alternate;
}

.login__tagline {
  position: absolute;
  left: clamp(28px, 5vw, 64px);
  bottom: clamp(28px, 6vh, 64px);
  z-index: 1;
  max-width: 480px;
}

.login__eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.login__tagline strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.login__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.login__card {
  width: 100%;
  max-width: 400px;
  padding: 36px 32px 28px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: rgba(17, 19, 25, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login__hello {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.login__card > .notice {
  margin-bottom: 18px;
  text-align: left;
}

.login__form {
  display: grid;
  gap: 16px;
  text-align: left;
}

.login__forgot {
  justify-self: end;
  margin-top: -6px;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.login__forgot:hover {
  text-decoration: underline;
}

.login__help {
  padding: 14px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: rgba(255, 230, 0, 0.05);
}

.login__help p {
  margin-bottom: 10px;
  color: var(--text-2);
  font-size: 13px;
}

.login__form .btn {
  margin-top: 4px;
}

.login__foot {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.login__copy {
  margin-top: 24px;
  color: #4d515c;
  font-size: 12px;
}

/* ==========================================================
   ESTRUTURA
   ========================================================== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  height: var(--topbar-h);
  padding: 0 16px 0 16px;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar__search-btn {
  display: none;
}

.dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--topbar-bg);
}

/* pesquisa */
.search {
  position: relative;
  justify-self: center;
  width: min(480px, 100%);
}

.search__icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search__icon svg {
  width: 18px;
  height: 18px;
}

.search__input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: #14161c;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.search__input::placeholder {
  color: var(--muted);
}

.search__input::-webkit-search-cancel-button {
  display: none;
}

.search__input:focus {
  outline: none;
  border-color: var(--accent-line);
  background: #1a1d24;
}

.search__close {
  display: none;
}

.search__results {
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: auto;
  max-height: min(70vh, 520px);
  overflow-y: auto;
}

.result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.15s;
}

.result:hover,
.result:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.result__cover {
  flex: none;
  width: 36px;
}

.result .thumb {
  width: 72px;
}

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

.result__text small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.result__text strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* menus suspensos */
.pop-wrap {
  position: relative;
}

.pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: 300px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: #12141a;
  box-shadow: var(--shadow-lg);
  animation: pop-in 0.18s var(--ease);
}

.pop--bell {
  width: 320px;
}

.pop__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.pop__who {
  min-width: 0;
}

.pop__who strong,
.pop__who span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pop__who strong {
  font-size: 14px;
}

.pop__who span {
  color: var(--muted);
  font-size: 12px;
}

.pop__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text-2);
  font-size: 14px;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.pop__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.pop__item svg {
  width: 18px;
  height: 18px;
}

.pop__title {
  padding: 10px 12px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pop__empty,
.pop__foot {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.pop__foot {
  margin-top: 4px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.notif {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
}

.notif:hover {
  background: rgba(255, 255, 255, 0.06);
}

.notif__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.notif__icon svg {
  width: 16px;
  height: 16px;
}

.notif strong,
.notif span span {
  display: block;
}

.notif strong {
  font-size: 14px;
}

.notif span span {
  color: var(--muted);
  font-size: 13px;
}

/* avatar */
.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  margin-left: 6px;
}

.avatar--static {
  margin: 0;
}

.avatar--xl {
  width: 96px;
  height: 96px;
  margin: 0;
  border-width: 4px;
  font-size: 32px;
}

/* barra lateral */
.sidebar {
  position: fixed;
  top: var(--topbar-h);
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: var(--side-w);
  padding: 16px 0;
  background: linear-gradient(180deg, var(--side-1) 0%, var(--side-2) 18%, var(--side-3) 44%, var(--side-4) 70%, var(--side-5) 100%);
  transition: width 0.3s var(--ease), transform 0.3s var(--ease);
}

.sidebar__nav {
  display: grid;
  gap: 4px;
}

.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  margin: 0 12px;
  padding: 0 12px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.side-link__icon svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.side-link__label {
  display: none;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.side-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.side-link.is-active {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.side-link.is-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #fff;
}

/* dica com o nome quando a barra está fechada */
.side-link::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  padding: 6px 10px;
  border-radius: 8px;
  background: #1b1e26;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, -50%);
  transition: opacity 0.15s, transform 0.15s;
}

.side-link:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.nav-expanded .sidebar {
  width: var(--side-w-open);
}

.nav-expanded .side-link__label {
  display: block;
  animation: fade-in 0.3s var(--ease);
}

.nav-expanded .side-link::after {
  display: none;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.content {
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: var(--side-w);
  padding-top: var(--topbar-h);
  transition: margin-left 0.3s var(--ease);
}

.content:focus {
  outline: none;
}

.nav-expanded .content {
  margin-left: var(--side-w-open);
}

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px var(--gutter) 72px;
  animation: fade-up 0.35s var(--ease);
}

.page--wide {
  max-width: 1640px;
}

.page--narrow {
  max-width: 940px;
}

/* ==========================================================
   HOME
   ========================================================== */

.banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 400px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(115deg, #0f1236 0%, #0b0c1d 50%, #171006 100%);
  isolation: isolate;
}

.banner__art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 62%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}

.banner__art svg,
.banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner__img {
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
}

.banner__img.is-loaded {
  opacity: 1;
}

.banner__content {
  width: 100%;
  max-width: 600px;
  padding: clamp(28px, 4vw, 52px);
}

.banner__title {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.banner__subtitle {
  max-width: 460px;
  color: var(--text-2);
  font-size: 16px;
}

.banner__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 22px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.banner__meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.banner__meta svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

.banner__progress {
  max-width: 420px;
  margin-bottom: 26px;
}

.banner__progress-top,
.rate__progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-2);
}

.banner__progress-top strong,
.rate__progress-top strong {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
}

.banner__progress small,
.rate__progress small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  margin-top: 48px;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.section__sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

/* grade de módulos */
.modules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
}

.module {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

.module:focus-visible {
  outline: none;
}

.module:focus-visible .cover {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.module__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.module__foot span:last-child {
  color: var(--text-2);
  font-weight: 600;
}

.module__foot--locked span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.module__foot--locked svg {
  width: 14px;
  height: 14px;
}

.module .bar {
  margin: 0 2px;
}

/* ---------- capas ---------- */

.cover {
  --c1: var(--accent);
  --c2: var(--brand-navy);
  --c3: #07080b;
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--c3);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  container-type: inline-size;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), filter 0.4s;
}

.cover__art {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8cqw;
  background:
    radial-gradient(circle at 80% 14%, color-mix(in srgb, var(--c1) 42%, transparent), transparent 58%),
    linear-gradient(172deg, var(--c2) 0%, var(--c3) 78%);
  transition: transform 0.6s var(--ease), filter 0.4s;
}

.cover__shapes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cover__brand {
  position: absolute;
  top: 7cqw;
  left: 8cqw;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 6cqw;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.82);
}

.cover__brand b {
  color: var(--c1);
}

.cover__kicker {
  position: relative;
  font-size: 5.2cqw;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.cover__num {
  position: relative;
  margin: 1cqw 0 4cqw -1.5cqw;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 44cqw;
  line-height: 0.82;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #fff 30%, var(--c1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.cover__band {
  position: relative;
  align-self: flex-start;
  max-width: 100%;
  padding: 3.2cqw 5.4cqw;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  background: rgba(8, 8, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 6.4cqw;
  line-height: 1.25;
  color: #fff;
}

.cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s, transform 0.6s var(--ease), filter 0.4s;
}

.cover__img.is-loaded {
  opacity: 1;
}

.cover__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.26) 48%, transparent 64%);
  transform: translateX(-130%);
  pointer-events: none;
}

.cover--locked .cover__art,
.cover--locked .cover__img {
  filter: grayscale(0.85) brightness(0.38);
}

.cover__lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4cqw;
  padding-top: 32cqw;
}

.cover__lock span {
  display: grid;
  place-items: center;
  width: 26cqw;
  height: 26cqw;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cover__lock svg {
  width: 45%;
  height: 45%;
}

.cover__lock em {
  font-style: normal;
  font-size: 5.6cqw;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.module:not(.module--locked):hover .cover {
  transform: translateY(-6px) scale(1.025);
  filter: brightness(1.12);
  box-shadow:
    0 26px 50px -20px color-mix(in srgb, var(--c1) 55%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.16);
}

.module:not(.module--locked):hover .cover__art,
.module:not(.module--locked):hover .cover__img {
  transform: scale(1.08);
}

.module:not(.module--locked):hover .cover__shine {
  transform: translateX(130%);
  transition: transform 0.9s var(--ease);
}

.module--locked {
  cursor: not-allowed;
}

.module--locked:hover .cover {
  transform: translateY(-2px);
}

/* ---------- miniaturas e listas de aulas ---------- */

.thumb {
  --c1: var(--accent);
  --c2: var(--brand-navy);
  --c3: #07080b;
  position: relative;
  display: block;
  flex: none;
  width: 132px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 62%),
    linear-gradient(135deg, var(--c2), var(--c3));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.thumb__label {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.thumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transform: translate(-50%, -50%);
  color: #fff;
}

.thumb__play svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.rows {
  display: grid;
  gap: 10px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.row:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.row__link {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.row__link:hover .thumb__play {
  background: var(--accent);
  color: var(--accent-ink);
}

.row__text {
  min-width: 0;
}

.row__text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.row__text small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.row__text small svg {
  width: 14px;
  height: 14px;
}

.row__status {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

.done-badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  box-shadow: 0 0 0 4px var(--success-soft);
}

.done-badge svg {
  width: 15px;
  height: 15px;
}

.fav-btn {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.fav-btn svg {
  width: 19px;
  height: 19px;
}

.fav-btn:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

.fav-btn:active {
  transform: scale(0.9);
}

.fav-btn.is-on {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.fav-btn.is-on svg {
  animation: pop-star 0.35s var(--ease);
}

.fav-btn--wide {
  display: inline-flex;
  gap: 8px;
  width: auto;
  height: 40px;
  padding: 0 14px;
  border-radius: 99px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.fav-btn--wide svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================
   AULA
   ========================================================== */

.watch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  grid-template-areas:
    "player playlist"
    "info rate";
  gap: 24px 26px;
  align-items: start;
}

.watch__player {
  grid-area: player;
}

.watch__playlist {
  grid-area: playlist;
  position: relative;
  align-self: stretch;
  min-height: 260px;
}

.watch__info {
  grid-area: info;
  min-width: 0;
}

.watch__rate {
  grid-area: rate;
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
}

.watch.is-cinema {
  grid-template-areas:
    "player player"
    "info rate"
    "playlist rate";
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}

.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player--empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 75% 10%, color-mix(in srgb, var(--c1) 30%, transparent), transparent 55%),
    linear-gradient(160deg, var(--c2), var(--c3) 80%);
}

.player__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}

.player__center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
}

.player__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
}

.player__ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--c1);
  border-radius: 50%;
  animation: ring 2.4s ease-out infinite;
}

.player__ring svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.player__center strong {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
}

.player__center > span:last-child {
  max-width: 380px;
  color: var(--text-2);
  font-size: 14px;
}

.player__brand {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.player__brand b {
  color: var(--c1);
}

/* playlist */
.playlist {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.is-cinema .playlist {
  position: static;
  max-height: 480px;
}

.playlist__head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
}

.playlist__head small {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.playlist__head strong {
  display: block;
  margin: 2px 0 4px;
  font-family: var(--font-display);
  font-size: 16px;
}

.playlist__head span {
  color: var(--muted);
  font-size: 13px;
}

.playlist__list {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 8px;
  overflow-y: auto;
}

.pl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background 0.15s;
}

.pl-item:hover {
  background: var(--surface-2);
}

.pl-item__thumb {
  position: relative;
  flex: none;
}

.pl-item .thumb {
  width: 112px;
}

.pl-item__now {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 700;
}

.pl-item__text {
  flex: 1;
  min-width: 0;
}

.pl-item__text strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pl-item__text small {
  color: var(--muted);
  font-size: 12px;
}

.pl-item.is-current {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.pl-item.is-current strong {
  color: var(--accent);
}

.pl-item .done-badge {
  width: 22px;
  height: 22px;
  box-shadow: none;
}

.pl-item .done-badge svg {
  width: 13px;
  height: 13px;
}

/* informações abaixo do player */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.crumbs a {
  color: var(--text-2);
  font-weight: 600;
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs svg {
  width: 14px;
  height: 14px;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tool svg {
  width: 18px;
  height: 18px;
}

.tool:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--surface-2);
}

.tool.is-on {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.tool.is-disabled {
  opacity: 0.38;
  pointer-events: none;
}

.watch__title {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.watch__text {
  max-width: 72ch;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-line;
}

/* card de avaliação */
.rate {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}

.rate__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
}

.rate__faces {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 16px 0 10px;
}

.face {
  --face: var(--muted);
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--muted);
  transition: transform 0.2s var(--ease), color 0.2s, background 0.2s, border-color 0.2s;
}

.face svg {
  width: 30px;
  height: 30px;
}

.face--1 { --face: var(--face-1); }
.face--2 { --face: var(--face-2); }
.face--3 { --face: var(--face-3); }
.face--4 { --face: var(--face-4); }
.face--5 { --face: var(--face-5); }

.face:hover {
  color: var(--face);
  transform: translateY(-3px) scale(1.06);
}

.face.is-on {
  color: var(--face);
  border-color: var(--face);
  background: color-mix(in srgb, var(--face) 16%, transparent);
  transform: scale(1.12);
  box-shadow: 0 8px 22px -8px var(--face);
}

.rate__hint {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.rate__hint strong {
  color: var(--text);
}

.btn--done-toggle {
  width: 100%;
  height: 58px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}

.btn--done-toggle svg {
  width: 22px;
  height: 22px;
}

.btn--done-toggle:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 30px -12px rgba(255, 230, 0, 0.6);
}

.btn--done-toggle.is-done {
  background: var(--success);
  color: #fff;
}

.btn--done-toggle.is-done:hover {
  background: #2bd36a;
  box-shadow: 0 12px 30px -12px rgba(34, 197, 94, 0.6);
}

.rate__undo {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.rate__progress {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* esqueleto de carregamento */
.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%) 0 0 / 200% 100%;
  animation: shimmer 1.3s linear infinite;
  box-shadow: none;
}

.skeleton--line {
  width: 40%;
  height: 16px;
  margin: 8px 0 14px;
}

.skeleton--title {
  width: 70%;
  height: 34px;
}

.skeleton--block {
  height: 360px;
}

/* ==========================================================
   PÁGINAS
   ========================================================== */

.page-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.page-head__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}

.page-head__icon svg {
  width: 26px;
  height: 26px;
}

.page-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-head p {
  color: var(--muted);
}

.empty {
  padding: 64px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: 24px;
  background: var(--surface);
  text-align: center;
}

.empty__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.empty__icon svg {
  width: 32px;
  height: 32px;
}

.empty h2 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
}

.empty p {
  max-width: 420px;
  margin: 8px auto 24px;
  color: var(--muted);
}

/* em breve */
.soon {
  padding: 48px 28px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 176, 0, 0.18), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(45, 50, 119, 0.35), transparent 60%),
    var(--surface);
  text-align: center;
}

.soon h1 {
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
}

.soon > p {
  max-width: 480px;
  margin: 0 auto;
  color: var(--text-2);
}

.soon__points {
  display: grid;
  width: fit-content;
  gap: 10px;
  margin: 26px auto 30px;
  text-align: left;
}

.soon__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
}

.soon__points svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--success);
}

.soon-art {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.cert {
  position: relative;
  width: 260px;
  aspect-ratio: 1.42;
  padding: 22px 22px 0;
  border: 6px solid rgba(255, 176, 0, 0.55);
  border-radius: 12px;
  background: linear-gradient(160deg, #fffaf0, #f1e6c8);
  box-shadow: var(--shadow-lg);
  transform: rotate(-4deg);
  animation: float 5s ease-in-out infinite;
}

.cert__brand {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--brand-navy);
}

.cert__brand b {
  color: #d98e00;
}

.cert__line {
  display: block;
  width: 80%;
  height: 7px;
  margin: 11px auto 0 0;
  border-radius: 99px;
  background: rgba(31, 35, 87, 0.16);
}

.cert__line--title {
  width: 64%;
  height: 12px;
  margin-top: 16px;
  background: rgba(31, 35, 87, 0.5);
}

.cert__line--short {
  width: 50%;
}

.cert__seal {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-amber));
  color: var(--accent-ink);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.cert__seal svg {
  width: 26px;
  height: 26px;
}

.soon-art--podium {
  align-items: flex-end;
  gap: 10px;
  height: 200px;
}

.podium {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 78px;
  padding-bottom: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
}

.podium b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--text-2);
}

.podium--1 {
  height: 150px;
  border-color: transparent;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.podium--1 b {
  color: var(--accent-ink);
}

.podium--1 i {
  position: absolute;
  top: -50px;
  color: var(--accent);
  animation: float 4s ease-in-out infinite;
}

.podium--1 i svg {
  width: 38px;
  height: 38px;
}

.podium--2 {
  height: 110px;
}

.podium--3 {
  height: 80px;
}

/* perfil */
.profile {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(115deg, color-mix(in srgb, var(--brand-navy) 75%, transparent), var(--surface) 70%);
}

.profile__who {
  min-width: 0;
}

.profile h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
}

.profile p {
  margin-bottom: 12px;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.profile .chip {
  white-space: normal;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.stat__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.stat__icon svg {
  width: 18px;
  height: 18px;
}

.stat strong {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
}

.stat span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.card {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.card__title {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.card__note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.card__note a {
  color: var(--accent);
  font-weight: 600;
}

.card--row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.card--row .card__title {
  margin-bottom: 0;
}

.card--row .card__note {
  margin-top: 2px;
}

.mod-rows {
  display: grid;
  gap: 8px;
}

.mod-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px 8px 8px;
  border-radius: 14px;
  background: var(--surface-2);
}

.mod-row__cover {
  flex: none;
  width: 46px;
}

.mod-row__cover .cover {
  border-radius: 8px;
}

.mod-row__text {
  flex: 1;
  min-width: 0;
}

.mod-row__text small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.mod-row__text strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.mod-row__pct {
  color: var(--text-2);
  font-weight: 700;
  font-size: 14px;
}

.mod-row__pct svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.mod-row.is-locked {
  opacity: 0.6;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.form {
  display: grid;
  gap: 16px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form .btn {
  justify-self: start;
}

/* ---------- avisos ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(440px, calc(100% - 32px));
  padding: 11px 18px 11px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #1a1d25;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
}

.toast__icon svg {
  width: 14px;
  height: 14px;
}

.toast--lock .toast__icon,
.toast--info .toast__icon {
  background: var(--surface-3);
  color: var(--text);
}

.toast--star .toast__icon {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------- animações ---------- */

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

@keyframes pop-star {
  50% {
    transform: scale(1.35) rotate(-12deg);
  }
}

@keyframes ring {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes float {
  50% {
    translate: 0 -8px;
  }
}

@keyframes beam {
  from {
    opacity: 0.55;
    translate: -30px 0;
  }
  to {
    opacity: 1;
    translate: 30px 0;
  }
}

/* ==========================================================
   RESPONSIVO
   ========================================================== */

@media (max-width: 1180px) {
  .watch {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 1024px) {
  .modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .banner__art {
    width: 70%;
  }
}

@media (max-width: 900px) {
  :root {
    --topbar-h: 56px;
  }

  /* login */
  .login {
    grid-template-columns: 1fr;
  }

  .login__art {
    position: fixed;
    inset: 0;
    opacity: 0.6;
  }

  .login__art::after {
    background: linear-gradient(180deg, rgba(5, 6, 10, 0.2), rgba(5, 6, 10, 0.85));
  }

  .login__tagline {
    display: none;
  }

  .login__card {
    padding: 30px 22px 24px;
  }

  /* estrutura */
  .topbar {
    grid-template-columns: auto auto 1fr auto;
    gap: 6px;
    padding: 0 8px;
  }

  .topbar .logo {
    font-size: 18px;
  }

  .topbar__actions {
    justify-self: end;
  }

  .player__ring {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
  }

  .player__ring svg {
    width: 22px;
    height: 22px;
  }

  .player__center > span:last-child,
  .player__brand {
    display: none;
  }

  .search {
    display: none;
  }

  .topbar__search-btn {
    display: grid;
  }

  .searching .search {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 8px 0 12px;
    background: var(--topbar-bg);
  }

  .searching .search__icon {
    left: 26px;
  }

  .searching .search__close {
    display: grid;
    flex: none;
    margin-left: 4px;
  }

  .searching .search__results {
    position: fixed;
    top: calc(var(--topbar-h) + 6px);
    left: 8px;
    right: 8px;
  }

  .pop {
    position: fixed;
    top: calc(var(--topbar-h) + 6px);
    right: 8px;
    left: auto;
    width: min(320px, calc(100vw - 16px));
  }

  .sidebar {
    top: var(--topbar-h);
    width: var(--side-w-open);
    transform: translateX(-100%);
    box-shadow: none;
  }

  .nav-expanded .sidebar {
    width: var(--side-w-open);
  }

  .side-link__label {
    display: block;
  }

  .side-link::after {
    display: none;
  }

  .nav-open .sidebar {
    transform: none;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
  }

  .nav-open .backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .content,
  .nav-expanded .content {
    margin-left: 0;
  }

  .page {
    padding: 18px 16px 56px;
  }

  /* home */
  .banner {
    min-height: 0;
    border-radius: 22px;
  }

  .banner__art {
    width: 100%;
    opacity: 0.4;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
    mask-image: linear-gradient(180deg, #000, transparent 90%);
  }

  .banner__content {
    padding: 28px 22px 24px;
  }

  .banner__actions .btn {
    width: 100%;
  }

  .section {
    margin-top: 36px;
  }

  .modules {
    gap: 22px 14px;
  }

  .cover {
    border-radius: 14px;
  }

  .thumb {
    width: 104px;
  }

  .row {
    gap: 8px;
    padding: 8px 10px 8px 8px;
  }

  .row__link {
    gap: 12px;
  }

  .row__text strong {
    font-size: 14px;
  }

  /* aula */
  .watch,
  .watch.is-cinema {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "player"
      "info"
      "playlist"
      "rate";
    gap: 20px;
  }

  .watch__player {
    margin: -18px -16px 0;
  }

  .player {
    border-radius: 0;
  }

  .watch__playlist {
    min-height: 0;
  }

  .playlist,
  .is-cinema .playlist {
    position: static;
    max-height: none;
  }

  .watch__rate {
    position: static;
  }

  .tool--cinema {
    display: none;
  }

  .tools {
    width: 100%;
  }

  .tools .tool:last-child {
    margin-left: auto;
  }

  /* páginas */
  .profile {
    flex-direction: column;
    text-align: center;
    padding: 26px 20px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .form .btn {
    justify-self: stretch;
  }

  .info-list div {
    flex-direction: column;
    gap: 2px;
  }

  .info-list dd {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .face {
    width: 44px;
    height: 44px;
  }

  .face svg {
    width: 27px;
    height: 27px;
  }

  .tool {
    padding: 0 12px;
  }

  .fav-btn--wide span {
    display: none;
  }

  .page-head h1 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Etiqueta do módulo ainda não liberado que o admin vê aberto (prévia). */
.cover__admin {
  position: absolute;
  top: 4cqw;
  right: 4cqw;
  padding: 1.5cqw 3cqw;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 5cqw;
  font-weight: 700;
  line-height: 1.2;
}
