/* ========= LOGIN ========= */

/* Fundo da página de login (mantém clima da home) */
.login-body {
  background: radial-gradient(circle at top, #0b2441, #020817);
}

/* Ajuste da seção home quando usada como tela de login */
.home--login {
  padding: 2.5rem 0 3rem;
}

/* Card de login na direita da grid */
.login-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(
    145deg,
    rgba(6, 27, 52, 0.98),
    rgba(3, 15, 30, 0.98)
  );
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.55);
  backdrop-filter: blur(12px);
}

/* Cabeçalho do card */
.login-card__header {
  margin-bottom: 1.4rem;
}

.login-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cor-branco);
  margin-bottom: 0.35rem;
}

.login-card__subtitle {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.5;
}

/* Campos do formulário */
.login-form__field {
  margin-bottom: 1rem;
}

.login-form__field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: rgba(226, 232, 240, 0.95);
}

/* Inputs mais elegantes para login */
.login-input {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.98),
    rgba(6, 27, 52, 0.98)
  );
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.85);
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, transform 0.08s ease;
  color: var(--cor-branco);
}

.login-input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.login-input:focus {
  outline: none;
  border-color: var(--cor-primaria);
  box-shadow:
    0 0 0 1px rgba(247, 147, 30, 0.45),
    0 0 25px rgba(15, 23, 42, 0.95);
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 1),
    rgba(6, 27, 52, 0.98)
  );
  transform: translateY(-1px);
}

/* Ações (botão + esqueci senha) */
.login-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}

.login-form__forgot {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.92);
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.9;
}

.login-form__forgot:hover {
  opacity: 1;
}

/* Mensagens de validação */
.login-form__message {
  margin-top: 1rem;
  font-size: 0.85rem;
  min-height: 1.1rem;
}

.login-form__message--success {
  color: #4ade80;
}

.login-form__message--error {
  color: #f97373;
}

/* Responsivo login */
@media (min-width: 900px) {
  .login-card {
    margin-left: auto;
  }
}

/* ========= DASHBOARD ========= */

.dashboard-body {
  background: radial-gradient(circle at top, #0b2441, #020817);
}

.dashboard-main {
  padding: 2.4rem 0 3.2rem;
}

/* TOPO: texto + cards */
.dashboard-top {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-bottom: 2.4rem;
}

.dashboard-top__text {
  max-width: 620px;
}

.dashboard-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 0.4rem;
}

.dashboard-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cor-branco);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.dashboard-caption {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.9);
}

/* Grid dos cards do topo */
.dashboard-top__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

/* Card principal */
.metric-card {
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.2rem;
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.98),
    rgba(3, 15, 30, 0.98)
  );
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-soft);
}

.metric-card--primary {
  background: radial-gradient(
    circle at top left,
    rgba(248, 113, 38, 0.25),
    rgba(15, 23, 42, 0.98)
  );
}

.metric-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.metric-card__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(248, 250, 252, 0.9);
  margin-bottom: 0.15rem;
}

.metric-card__hint {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.9);
}

.metric-card__value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--cor-primaria);
}

.metric-card__bar {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.metric-card__bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316, #facc15, #22c55e);
}

.metric-card__footer {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.95);
}

/* Cards menores de métricas */
.metric-small-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.metric-small {
  border-radius: var(--radius);
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.98),
    rgba(2, 8, 23, 0.98)
  );
  border: 1px solid rgba(51, 65, 85, 0.8);
}

.metric-small__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 0.15rem;
}

.metric-small__value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cor-branco);
  margin-bottom: 0.4rem;
}

/* barra simples */
.metric-small__bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.metric-small__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #a3e635);
}

/* “gráfico” de colunas fake */
.metric-small__chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 42px;
  margin-bottom: 0.4rem;
}

.metric-small__chart span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  opacity: 0.95;
}

.metric-small__hint {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
}

/* ========= CARROSSEL DE MÓDULOS DO DASHBOARD ========= */

.modules-section {
  margin-top: 0.5rem;
}

.modules-section__header {
  margin-bottom: 1rem;
}

.modules-section__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cor-branco);
  margin-bottom: 0.3rem;
}

.modules-section__subtitle {
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.95);
}

/* carrossel horizontal */
.modules-carousel {
  position: relative;
}

.modules-carousel__track {
  display: flex;
  gap: 1rem;
  padding: 0.3rem 0 0.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.modules-carousel__track::-webkit-scrollbar {
  height: 12px;
}

.modules-carousel__track::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
}

.modules-carousel__track::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.8);
  border-radius: 999px;
}

/* Slide do módulo */
.module-slide {
  scroll-snap-align: start;
  flex: 0 0 280px;
  border-radius: calc(var(--radius) + 2px);
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.98),
    rgba(2, 8, 23, 0.98)
  );
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Imagem do módulo (capa 1536 x 1024 ajustada) */
.module-slide__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.module-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

/* Pill de status sobre a imagem */
.module-slide__status-pill {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.9);
  color: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(248, 250, 252, 0.7);
}

.module-slide__status-pill--secondary {
  background: rgba(22, 163, 74, 0.9);
  border-color: rgba(240, 253, 250, 0.9);
}

.module-slide__status-pill--locked {
  background: rgba(127, 29, 29, 0.9);
  border-color: rgba(254, 226, 226, 0.95);
}

/* Conteúdo do card */
.module-slide__content {
  padding: 0.9rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.module-slide__tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.95);
}

.module-slide__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cor-branco);
}

.module-slide__description {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.5;
}

/* CTA do módulo */
.module-slide__cta {
  margin-top: 0.6rem;
  align-self: flex-start;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: var(--cor-primaria);
  color: #04101f;
  box-shadow: var(--shadow-soft);
  transition: transform 0.08s ease, opacity 0.08s ease,
    box-shadow 0.1s ease;
}

.module-slide__cta:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.module-slide__cta--disabled {
  background: rgba(15, 23, 42, 0.9);
  color: rgba(148, 163, 184, 0.9);
  box-shadow: none;
  cursor: not-allowed;
}

/* Estados visuais */
.module-slide--locked {
  opacity: 0.85;
}

/* Responsivo topo do dashboard */
@media (min-width: 900px) {
  .dashboard-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .dashboard-top__text {
    max-width: 420px;
  }

  .dashboard-top__grid {
    flex: 1;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .metric-small-grid {
    grid-template-columns: 1fr;
    height: 100%;
  }

  .dashboard-title {
    font-size: 1.9rem;
  }
}

/* Responsivo carrossel do dashboard */
@media (min-width: 1200px) {
  .module-slide {
    flex: 0 0 320px;
  }
}

/* ========= MODULE PAGE (MÓDULO 0 E FUTUROS) ========= */

.module-body {
  background: radial-gradient(circle at top, #0b2441, #020817);
}

.module-main {
  padding: 2.4rem 0 3.2rem;
}

/* Cabeçalho do módulo */
.module-header {
  margin-bottom: 1.8rem;
}

.module-header__top {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.module-header__tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 0.3rem;
}

.module-header__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cor-branco);
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

.module-header__description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.9);
  max-width: 640px;
}

/* Progresso do módulo */
.module-header__progress {
  max-width: 320px;
  border-radius: var(--radius);
  padding: 0.9rem 1rem 0.8rem;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.98),
    rgba(2, 8, 23, 0.98)
  );
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.module-header__progress-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 0.3rem;
}

.module-header__progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.module-header__progress-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316, #facc15, #22c55e);
}

.module-header__progress-text {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.95);
}

/* Layout principal do módulo */
.module-layout {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* Carrossel de aulas dentro do módulo */
.lesson-carousel {
  margin-bottom: 0.5rem;
}

.lesson-carousel__header {
  margin-bottom: 0.7rem;
}

.lesson-carousel__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cor-branco);
  margin-bottom: 0.3rem;
}

.lesson-carousel__subtitle {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.95);
}

/* trilha horizontal */
.lesson-carousel__track {
  display: flex;
  gap: 1rem;
  padding: 0.2rem 0 0.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.lesson-carousel__track::-webkit-scrollbar {
  height: 6px;
}

.lesson-carousel__track::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
}

.lesson-carousel__track::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.8);
  border-radius: 999px;
}

/* Card do carrossel de aulas */
.lesson-thumb-card {
  scroll-snap-align: start;
  flex: 0 0 260px;
  border-radius: calc(var(--radius) + 2px);
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.98),
    rgba(2, 8, 23, 0.98)
  );
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.1s ease,
    box-shadow 0.1s ease;
}

.lesson-thumb-card:hover {
  transform: translateY(-1px);
  border-color: var(--cor-primaria);
}

.lesson-thumb-card.is-active {
  border-color: var(--cor-primaria);
  box-shadow:
    0 0 0 1px rgba(247, 147, 30, 0.5),
    0 12px 25px rgba(0, 0, 0, 0.6);
}

/* Imagem da aula */
.lesson-thumb-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.lesson-thumb-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.18s ease;
}

.lesson-thumb-card:hover .lesson-thumb-card__image img {
  transform: scale(1.05);
}

/* Tag "Aula X" */
.lesson-thumb-card__tag {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.9);
  color: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(248, 250, 252, 0.7);
}

/* Texto da aula no card */
.lesson-thumb-card__content {
  padding: 0.7rem 0.8rem 0.8rem;
}

.lesson-thumb-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cor-branco);
  margin-bottom: 0.15rem;
}

.lesson-thumb-card__meta {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.95);
}

/* Bloco principal: player + materiais + feedback */
.module-layout__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Player / visualização da aula */
.lesson-viewer {
  border-radius: var(--radius);
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.98),
    rgba(2, 8, 23, 0.98)
  );
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.1rem 1rem;
}

.lesson-viewer__header {
  margin-bottom: 0.9rem;
}

.lesson-viewer__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 0.45rem;
}

.lesson-viewer__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cor-branco);
  margin-bottom: 0.2rem;
}

.lesson-viewer__meta {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.95);
}

/* Área do vídeo */
.lesson-viewer__video {
  margin-top: 0.75rem;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.95);
  background: #020617;
}

/* Placeholder antes da aula ser selecionada */
.lesson-viewer__placeholder {
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.95);
}

.lesson-viewer__video-tag {
  width: 100%;
  display: block;
  max-height: 420px;
}

/* Botão concluído */
.lesson-viewer__complete-btn {
  margin-top: 0.8rem;
  font-size: 0.85rem;
}

/* Materiais complementares */
.lesson-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cor-branco);
  margin-bottom: 0.4rem;
}

.lesson-materials {
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.98),
    rgba(4, 21, 40, 0.98)
  );
  border: 1px solid rgba(51, 65, 85, 0.9);
  padding: 0.9rem 1rem 0.9rem;
}

.materials-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.materials-list__item + .materials-list__item {
  margin-top: 0.3rem;
}

.materials-list__item--empty {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.95);
}

.materials-list__link {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.95);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.materials-list__link::before {
  content: "⬇";
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Feedback / rating / comentários */
.lesson-feedback {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.lesson-rating__header {
  margin-bottom: 0.3rem;
}

.lesson-rating__hint {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.95);
}

/* Estrelas */
.rating {
  display: inline-flex;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
}

.rating__star {
  background: none;
  border: none;
  padding: 0;
  font-size: 1.4rem;
  cursor: pointer;
  color: rgba(148, 163, 184, 0.7);
  transition: transform 0.08s ease, color 0.08s ease;
}

.rating__star:hover {
  transform: translateY(-1px) scale(1.05);
  color: var(--cor-primaria);
}

.rating__star.is-active {
  color: var(--cor-primaria);
}

.rating__label {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.95);
}

/* Botão reportar problema */
.report-button {
  align-self: flex-start;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.7);
  background: rgba(127, 29, 29, 0.15);
  color: rgba(252, 165, 165, 0.95);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease;
}

.report-button:hover {
  background: rgba(127, 29, 29, 0.35);
  transform: translateY(-1px);
}

/* Comentários */
.lesson-comments {
  border-radius: var(--radius);
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.98),
    rgba(2, 8, 23, 0.98)
  );
  border: 1px solid rgba(30, 64, 175, 0.9);
  padding: 0.9rem 1rem 0.9rem;
}

.lesson-comments__form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.lesson-comments__textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.98),
    rgba(6, 27, 52, 0.98)
  );
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  color: var(--cor-branco);
  resize: vertical;
  min-height: 80px;
}

.lesson-comments__textarea::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.lesson-comments__textarea:focus {
  outline: none;
  border-color: var(--cor-primaria);
  box-shadow:
    0 0 0 1px rgba(247, 147, 30, 0.35),
    0 0 20px rgba(15, 23, 42, 0.9);
}

.lesson-comments__submit {
  align-self: flex-end;
  font-size: 0.85rem;
}

.lesson-comments__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lesson-comments__item {
  padding: 0.5rem 0;
  border-top: 1px solid rgba(30, 64, 175, 0.6);
}

.lesson-comments__item:first-child {
  border-top: none;
}

.lesson-comments__meta {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 0.2rem;
}

.lesson-comments__text {
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.95);
}

/* Responsivo módulo */
@media (min-width: 900px) {
  .module-header__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

@media (min-width: 1100px) {
  .module-header__title {
    font-size: 1.8rem;
  }
}

/* ========= HEADER ÁREA DO ALUNO / PERFIL ========= */

.site-header__user-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header__user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.98),
    rgba(3, 15, 30, 0.98)
  );
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: var(--shadow-soft);
}

.site-header__user-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.95);
}

.site-header__profile-link {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--cor-primaria);
  opacity: 0.92;
}

.site-header__profile-link:hover {
  opacity: 1;
  text-decoration: underline;
}
