/* Variáveis de Cores e Padrões */
:root {
  /* Cores Base da Identidade Visual */
  --bg-main: #0b0b0b;
  --bg-header-footer: #2c2c2c;
  --navy: #003e65;
  --gold: #daae00;
  --white: #f9f9f9;
  --gray-light: #4d4d4d;
  --font-main: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-title: "Boboli Autumn Winter", "Segoe UI", serif;

  /* Paleta de Cores de Textos (Reutilizável) */
  --text-primary: var(--white);
  --text-secondary: var(--gray-light);
  --text-tertiary: var(--navy);
  --text-quaternary: var(--gold);
  --text-dark-black: #111111;

  /* Paleta de Cores de Status e Alertas (Reutilizável) */
  --success: #22c55e; /* Verde - Sucesso/Afirmativo */
  --warning: #f97316; /* Laranja - Alerta/Atenção */
  --danger: #ef4444; /* Vermelho - Erro/Crítico */
  --info: #a855f7; /* Lilás - Informação Genérica */
}

@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap");

/* Registro da Fonte Institucional */
@font-face {
  font-family: "Boboli Autumn Winter";
  src: url("../font/Boboli-Autumn-Winter.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

body {
  background-color: var(--bg-main);
  color: var(--white);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

p {
  text-align: justify;
}

/* Aplicando a fonte institucional EXCLUSIVAMENTE nos H1 */
h1,
.hero-content h1 {
  font-family: var(--font-title);
  letter-spacing: 1px;
}

/* H2 e H3 voltam a usar a fonte principal do sistema */
h2,
h3,
.titulo-liga {
  font-family: var(--font-main);
}

.ubuntu-font {
  font-family: "Ubuntu", sans-serif !important;
}

/* Header Fixo */
.main-header {
  background-color: var(--bg-header-footer);
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo a {
  color: var(--gold);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.site-logo {
  max-height: 45px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  line-height: 1;
}

.nav-menu a:hover {
  color: var(--gold);
}

/* Fix para os links do dropdown inteligente não herdarem uppercase na navbar pública */
.nav-menu .profile-dropdown-menu a {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
}

.mobile-toggle {
  display: none;
  background: var(--gold);
  border: none;
  color: var(--bg-main);
  font-size: 1.5rem;
  padding: 5px 15px;
  cursor: pointer;
  border-radius: 4px;
}

/* Dropdown de Idiomas (Bandeiras) Público */
.lang-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.lang-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.lang-dropdown-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 5px;
  background-color: var(--bg-header-footer);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  flex-direction: column;
  gap: 15px;
  z-index: 1001;
  min-width: 120px;
}

.lang-dropdown:hover .lang-dropdown-menu {
  display: flex;
}

/* Criação do quadro fantasma (ponte invisível) para não perder o hover */
.lang-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
}

.lang-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.2s;
}

.lang-dropdown-menu a:hover {
  opacity: 1 !important;
  color: var(--gold) !important;
  transform: translateX(3px);
}

/* Telas Cheias e Blocos */
main {
  margin-top: 80px; /* Compensar o header fixo */
}

/* Uso do DVH para precisão em mobiles como Edge/Safari */
.hero-fullscreen {
  min-height: calc(100dvh - 80px);
  display: flex;
  align-items: center;
  padding: 0 10%;
  background: radial-gradient(
    circle at center,
    var(--bg-header-footer) 0%,
    var(--bg-main) 100%
  );
}

.hero-content {
  max-width: 800px;
  text-align: left;
}

.hero-content h3 {
  color: #c3c3c3;
  font-weight: 300;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.hero-content h3.light {
  color: var(--white) !important;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--gold);
}

.content-block {
  padding: 100px 5%;
  min-height: 50vh;
}

.bg-darker {
  background-color: rgba(0, 0, 0, 0.15);
}

/* --- SESSÃO PADRÃO (REUTILIZÁVEL) --- */
.liga-section-dark {
  background-color: var(--bg-header-footer);
  padding: 80px 5%;
  font-family: var(--font-main);
  color: #cccccc;
}

.container-liga {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.titulo-liga {
  margin-bottom: 2rem;
  line-height: 1.2;
}

.titulo-fino {
  font-weight: 300;
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--gold);
}

.titulo-forte {
  font-weight: 700;
  font-size: 2.2rem;
  text-transform: uppercase;
  color: var(--white);
}

.container-liga p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.container-liga p:last-child {
  margin-bottom: 0;
}

.container-liga strong {
  font-weight: 600;
  color: var(--white);
}

/* --- SESSÃO PADRÃO (VERSÃO CLARA) --- */
.liga-section-light {
  background-color: var(--gray-light);
  padding: 80px 5%;
  font-family: var(--font-main);
  color: #4a4a4a; /* Cinza escuro para conforto visual */
}

.liga-section-light .titulo-forte {
  color: var(--bg-main);
}
.liga-section-light strong {
  color: var(--bg-main);
}

/* --- CONTADOR REGRESSIVO --- */
.countdown-wrapper {
  background-color: transparent; /* Fundo invisível para integrar ao gradiente da capa */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 0;
  font-family: var(--font-main);
  width: 100%;
}

.time-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.time-number {
  color: var(--white);
  font-size: 5rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 2px;
}

.time-separator {
  color: var(--white);
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 0.9;
  margin: 0 10px;
  transform: translateY(-5px);
}

.time-label {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 400;
  margin-top: 15px;
  letter-spacing: 1px;
}

/* Tamanhos Alternativos (Para usar em diferentes áreas) */
.countdown-small .time-number {
  font-size: 3rem;
}
.countdown-small .time-separator {
  font-size: 2.5rem;
  margin: 0 5px;
  transform: translateY(-2px);
}
.countdown-small .time-label {
  font-size: 0.8rem;
  margin-top: 10px;
}
.countdown-small .time-section {
  min-width: 50px;
}

.countdown-large .time-number {
  font-size: 7rem;
}
.countdown-large .time-separator {
  font-size: 6.5rem;
  margin: 0 15px;
  transform: translateY(-10px);
}
.countdown-large .time-label {
  font-size: 1.2rem;
}
.countdown-large .time-section {
  min-width: 110px;
}

/* --- BARRA DE BUSCA PÚBLICA (Membros, Mentorias) --- */
.public-search-form {
  position: relative;
  max-width: 600px;
}

.public-search-input {
  width: 100%;
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.public-search-input:focus {
  border-color: var(--gold);
}

.public-search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  background: var(--gold);
  border: none;
  border-radius: 4px;
  padding: 0 20px;
  color: var(--navy);
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.public-search-btn:hover {
  transform: scale(0.98);
}

.public-search-clear {
  color: #ef4444;
  text-decoration: none;
  font-size: 0.85rem;
  background: rgba(239, 68, 68, 0.1);
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 1rem;
  transition: background 0.2s ease;
}

.public-search-clear:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* --- SESSÕES DO PERFIL (CATEGORIAS E AÇÕES) --- */
.category-thumbs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}
.cat-thumb {
  width: 160px;
  text-align: center;
  transition: transform 0.3s ease;
}
.cat-thumb:hover {
  transform: translateY(-5px);
}
.action-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}
.action-card {
  background: var(--bg-header-footer);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
  display: block;
  position: relative;
}
.action-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.action-card h3 {
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
}
.action-card p {
  font-size: 1rem;
  color: #aaa;
}

/* --- Ícones com Tooltip (Substituindo nomes de Curso/Ebooks) --- */
.action-card .card-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 15px;
  display: block;
}
.action-card .card-name {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gold);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.action-card .card-name::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--gold) transparent;
}
.action-card:hover .card-name {
  opacity: 1;
  visibility: visible;
  bottom: 25px; /* Sobe a label de forma suave para dentro ou beirada do card */
}

/* --- GRID DE MEMBROS (MOSAICO CLEAN) --- */
.members-grid {
  display: grid;
  /* No Desktop, os perfis ficam maiores e o navegador decide quantos cabem */
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 40px 30px; /* Mais espaço vertical para o tooltip não encostar na linha de cima */
  justify-content: center;
}

.member-card {
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.member-card a {
  display: block;
  text-decoration: none;
  position: relative; /* Necessário para ancorar o tooltip */
}

.member-card:hover {
  transform: scale(1.1);
}

/* O Círculo da Foto */
.profile-circle {
  width: 100%;
  aspect-ratio: 1 / 1; /* Garante que será um círculo perfeito sempre */
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--navy);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.member-card:hover .profile-circle {
  border-color: var(--gold);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* --- TOOLTIP MODERNO (ANIMAÇÃO PREMIUM) --- */
.modern-tooltip {
  position: absolute;
  bottom: -45px; /* Fica posicionado abaixo da foto */
  left: 50%;
  transform: translateX(-50%) translateY(15px); /* Começa um pouco mais pra baixo */
  background-color: var(--gold);
  color: var(--navy);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  /* A curva cubic-bezier dá aquele efeito elástico de rebatida super moderno */
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  pointer-events: none; /* Impede que o mouse "empaque" em cima do texto */
  line-height: 1.2; /* Correção: Reset do line-height para evitar espaços no texto quebrado */
  text-align: center;
}

/* A setinha do balão apontando para a foto */
.modern-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--gold) transparent;
}

.modern-tooltip small {
  display: block;
  margin-top: 2px;
}

/* O que acontece quando o mouse passa em cima */
.member-card:hover .modern-tooltip,
.has-tooltip:hover .modern-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0); /* Sobe pro lugar exato */
}

/* Tooltip posicionado para CIMA */
.has-tooltip.tooltip-top .modern-tooltip {
  bottom: auto;
  top: -45px;
  transform: translateX(-50%) translateY(-10px);
}

.has-tooltip.tooltip-top .modern-tooltip::before {
  top: auto;
  bottom: -6px;
  border-width: 6px 6px 0 6px;
  border-color: var(--gold) transparent transparent transparent;
}

.has-tooltip.tooltip-top:hover .modern-tooltip {
  transform: translateX(-50%) translateY(0);
}

/* Wrapper genérico para Tooltips em qualquer lugar */
.has-tooltip {
  position: relative;
  display: inline-block;
}

/* --- HELPER: THUMB REDONDO PADRONIZADO PÚBLICO --- */
.public-thumb-helper {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  background-color: var(--bg-header-footer);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.public-thumb-helper:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  border-color: var(--white);
}

/* Vídeo Responsivo */
/* --- VÍDEO RESPONSIVO (PROPORÇÃO 16:9) --- */
.video-wrapper {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  border: 2px solid var(--navy);
  padding: 5px;
  border-radius: 8px;
  overflow: hidden; /* Garante que nada vaze do container */
}

/* Força o iframe do YouTube a respeitar as regras matemáticas */
.video-wrapper iframe {
  width: 100%;
  height: auto; /* Anula o height="500" que vem do HTML */
  aspect-ratio: 16 / 9; /* A mágica: Trava a proporção em HD perfeito */
  display: block;
  border-radius: 4px; /* Arredonda o vídeo para combinar com a borda externa */
}

/* Footer */
.liga-footer {
  background-color: #06080b;
  color: #e0e0e0;
  padding: 60px 5% 20px 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.student-dashboard-body {
  background-color: #0d1117;
  color: var(--white);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: visible !important;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left {
  max-width: 55%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 20px;
}

.footer-left p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.footer-left strong {
  color: var(--gold);
  font-weight: 600;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.footer-cta {
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0 0 40px 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.footer-contact a {
  color: #d1d1d1;
  text-decoration: none;
  font-size: 1rem;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-logo img {
  max-width: 140px;
  height: auto;
  display: block;
}

.footer-rights {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #a0a0a0;
}

.footer-rights-text {
  color: var(--gold) !important;
  /* font-weight: bold; */ /* Deixei sem negrito para não competir com o logo, mas pode ser ativado se quiser mais destaque */
}

/* Responsividade (Sidebar Flutuante) */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%; /* Escondido por padrão na esquerda */
    width: 250px;
    height: 100dvh;
    background-color: var(--bg-main);
    flex-direction: column;
    align-items: stretch;
    padding-top: 80px;
    transition: left 0.3s ease;
    border-right: 2px solid var(--gold);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    width: 100%;
  }

  .nav-menu ul li {
    width: 100%;
    text-align: left;
  }

  .nav-menu ul li a {
    display: block;
    padding: 16px 20px; /* 16px de espaço idêntico no topo e na base */
    border-bottom: 1px solid var(--bg-header-footer);
    line-height: 1; /* Anula o 1.6 do body, centralizando o texto perfeitamente na sua própria caixa */
  }

  .lang-dropdown {
    margin-left: 0;
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .lang-dropdown-menu {
    display: flex;
    position: absolute;
    box-shadow: none;
    border: none;
    padding: 15px 0 0 10px;
    background: transparent;
    margin-top: 0;
  }
  .lang-dropdown-toggle span {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
  .titulo-fino {
    font-size: 1.4rem;
  }
  .titulo-forte {
    font-size: 1.8rem;
  }
  .container-liga p {
    font-size: 1rem;
  }
  .footer-container {
    flex-direction: column;
    gap: 50px;
  }
  .footer-left,
  .footer-right {
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
  }
  .footer-left {
    padding-bottom: 0;
  }
  .members-grid {
    /* A mágica do Mobile: Trava matematicamente em 4 colunas exatas */
    grid-template-columns: repeat(4, 1fr);
    gap: 15px; /* Reduz o espaço para caber as 4 na tela do celular */
  }

  .profile-circle {
    border-width: 2px; /* Borda mais fina e delicada no mobile */
  }

  /* Ocultamos o tooltip no celular porque telas Touch não têm "mouse hover" */
  .modern-tooltip {
    display: none !important;
  }

  /* Ajuste do Cronômetro para o Mobile */
  .time-number,
  .countdown-large .time-number {
    font-size: 3rem;
  }
  .time-separator,
  .countdown-large .time-separator {
    font-size: 2.5rem;
    margin: 0 5px;
    transform: translateY(-2px);
  }
  .time-label,
  .countdown-large .time-label {
    font-size: 0.8rem;
    margin-top: 10px;
  }
  .time-section,
  .countdown-large .time-section {
    min-width: 50px;
  }

  /* Correção do Layout da Silhueta no Mobile */
  .member-hero {
    flex-direction: column;
    background-attachment: scroll !important; /* Desliga o paralax no mobile para corrigir o esticamento bizarro no iOS */
    padding-top: 40px !important;
  }
  .member-hero .hero-content {
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
  }
  .member-hero .hero-content h3,
  .member-hero .hero-content h1,
  .member-hero .hero-content p {
    text-align: center;
  }
  .member-social-links {
    bottom: 20px;
    right: 5%;
  }
  .silhouette-img {
    max-height: 55dvh; /* Garante que a silhueta caiba na tela sem esticar */
  }
}

/* --- CSS EXCLUSIVO DA IMAGEM DO HERO --- */
.member-hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* Faz as colunas irem do topo ao chão da section */
  overflow: hidden;
  padding-bottom: 0 !important; /* Força a silhueta a colar no chão */
  background-size: cover !important;
  background-position: center top !important;
  background-attachment: fixed !important; /* Mantém o paralax perfeito no Desktop */
  position: relative;
}

.member-hero .hero-content {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  z-index: 2;
}

.member-hero .hero-content p {
  color: var(--gold);
}

.member-hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-width: 300px;
  z-index: 1;
}

.silhouette-img {
  display: block;
  max-height: 85dvh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  will-change: transform;
}

/* Estilo para a foto normal de fallback */
.standard-profile-img {
  max-width: 400px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--bg-header-footer);
  margin: auto 0; /* Centraliza a foto quadrada no meio caso não haja silhueta */
}

/* Seção de Skills */
.skills-section {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
  align-items: center;
}

.skills-title {
  flex: 1;
  min-width: 300px;
}

.skills-title h3 {
  color: var(--gold);
  font-weight: 300;
}

.skills-bars {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--bg-main);
  font-weight: bold;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--bg-header-footer);
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: var(--gold);
  border-radius: 10px;
}

/* --- MODAL DE LOGIN PÚBLICO --- */
.public-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.public-modal-overlay.active {
  display: flex;
}

.public-modal-content,
.public-modal-box {
  background-color: var(--bg-main);
  border: 1px solid var(--navy);
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.public-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.public-modal-close:hover {
  color: var(--gold);
}

.public-form-group {
  margin-bottom: 1.25rem;
}

.public-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.public-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
  color-scheme: dark;
}

.public-form-control:focus {
  border-color: var(--gold);
}

textarea.public-form-control {
  resize: vertical;
  scrollbar-width: none;
}

textarea.public-form-control::-webkit-scrollbar {
  display: none;
}

.public-modal-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* --- AUTH PAGES (Login, Recuperação) --- */
.auth-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--bg-main);
  background-image:
    linear-gradient(rgba(11, 11, 11, 0.8), rgba(11, 11, 11, 0.95)),
    url("../images/logo-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.auth-box {
  background-color: rgba(44, 44, 44, 0.85);
  backdrop-filter: blur(12px);
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  width: 100%;
  max-width: 400px;
  text-align: center;
  border: 1px solid rgba(218, 174, 0, 0.2);
}

.auth-box h1 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 2rem;
  letter-spacing: 2px;
}

.auth-box p {
  color: #aaa;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.auth-form-group {
  margin-bottom: 20px;
  text-align: left;
}

.auth-form-group label {
  display: block;
  color: var(--gold);
  margin-bottom: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-form-group input {
  width: 100%;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--white);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.auth-form-group input:focus {
  outline: none;
  border-color: var(--gold);
}

.btn-auth {
  width: 100%;
  padding: 15px;
  background-color: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  margin-top: 10px;
  display: inline-block;
  box-sizing: border-box;
  text-decoration: none;
}

.btn-auth:hover {
  background-color: #e0ac10;
  transform: translateY(-2px);
}

.auth-alert {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.auth-alert.error {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.3);
}

/* --- CARDS DE EVENTOS (DOC EVOLUTION) --- */
.evt-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 500px));
  justify-content: center;
  gap: 30px;
  width: 100%;
  margin-top: 40px;
}

.evt-card-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: row;
  color: var(--white);
  background-color: var(--bg-header-footer);
  min-height: 250px;
  height: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.evt-card-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.evt-left-panel {
  flex: 1;
  background-color: #1c1c1c;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Alinha o conteúdo no topo */
  text-align: left;
}

.evt-left-panel h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.evt-left-panel h1 span.yellow {
  color: var(--gold);
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.3rem;
}
.evt-left-panel h1 span.white {
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 1.1rem;
}

.evt-event-info {
  margin-top: 15px;
  margin-bottom: 20px;
}
.evt-info-text {
  font-size: 0.9rem;
  font-weight: 400;
  margin: 4px 0;
  color: #e0e0e0;
}

.evt-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 0 15px 0;
}

.evt-features-list {
  margin-bottom: 20px;
  flex-grow: 1; /* Ocupa o espaço restante e empurra o botão para baixo */
}

.evt-feature-item {
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 300;
  margin: 2px 0;
  margin-bottom: 0 !important;
  color: #ccc;
}

.evt-inscricao-button {
  background-color: #ff7f1f;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s;
  width: 100%; /* Garante preenchimento total no rodapé do painel */
}
.evt-inscricao-button:hover {
  background-color: #e66a16;
}

.evt-right-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.evt-main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .evt-cards-grid {
    grid-template-columns: 1fr;
  }

  .evt-card-container {
    flex-direction: column-reverse;
  }
  .evt-left-panel,
  .evt-right-panel {
    width: 100%;
  }
  .evt-right-panel {
    aspect-ratio: 16/9;
  }
}

.auth-remember {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
  gap: 8px;
}

.auth-remember label {
  color: #aaaaaa;
  font-size: 0.9rem;
  cursor: pointer;
}

.auth-remember input {
  accent-color: var(--gold);
}

.auth-link {
  color: #aaaaaa;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
  margin-top: 20px;
  display: block;
}

.auth-link span,
.auth-link:hover {
  color: var(--gold);
}

/* --- MULTI-STEP AUTH (CADASTRO DE ALUNOS) --- */
.step-panel {
  display: none;
  animation: modalFadeIn 0.4s ease;
}
.step-panel.active {
  display: block;
}
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
.otp-inputs input {
  width: 45px;
  height: 50px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: var(--gold);
}
.otp-inputs input:focus {
  border-color: var(--gold);
  outline: none;
}

/* --- PERFIL DO MEMBRO PÚBLICO --- */
.member-social-links {
  display: flex;
  gap: 15px;
  position: absolute;
  bottom: 30px;
  right: 5%;
  z-index: 10;
}

.social-icon-link {
  color: var(--gold);
  transition: transform 0.2s;
}

.social-icon-link:hover {
  transform: scale(1.1);
}

.presentation-content {
  max-width: 800px;
  margin: 0 auto 40px;
  color: #ccc;
  text-align: left;
  line-height: 1.8;
  font-size: 1.05rem;
}

.presentation-content p,
.presentation-content li {
  margin-bottom: 1rem;
}
.presentation-content ul,
.presentation-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
  text-align: left;
}
.presentation-content a {
  color: var(--gold);
  text-decoration: underline;
}
.presentation-content strong {
  color: var(--white);
}

.text-center {
  text-align: center;
}
.mt-50 {
  margin-top: 50px;
}

/* --- PAINEL DO ALUNO E EAD --- */

.student-header {
  background-color: var(--bg-header-footer);
  padding: 15px 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.student-header.gold-border {
  border-bottom: 2px solid var(--gold);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  padding: 30px 3%;
  align-items: start; /* Impede os cards de se esticarem verticalmente */
}

.course-card {
  border-radius: 8px;
  overflow: hidden;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  aspect-ratio: 9 / 16;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.course-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  border-color: var(--gold);
  z-index: 2;
}

.course-thumb-vertical {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: block;
  transition:
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.3s;
}

.course-card:hover .course-thumb-vertical {
  transform: scale(1.1);
}

.course-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px 15px 15px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.4s ease;
}

.course-card:hover .course-info-overlay {
  background: rgba(0, 0, 0, 0.75);
}

.course-title {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 5px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.course-instructor {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.course-title,
.course-instructor,
.course-progress-bar,
.course-progress-text,
.course-card-icon {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.course-card:hover .course-title,
.course-card:hover .course-instructor,
.course-card:hover .course-progress-bar,
.course-card:hover .course-progress-text,
.course-card:hover .course-card-icon {
  opacity: 1;
  transform: translateY(0);
}

.course-metrics {
  margin-top: 10px;
  font-size: 0.75rem;
  color: #ccc;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  transition:
    background 0.3s ease,
    padding 0.3s ease;
}

.course-card:hover .course-metrics {
  background: transparent;
  padding: 0;
}

.see-all-card {
  background: var(--bg-header-footer);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: bold;
}
.see-all-card div {
  transition: transform 0.2s;
}
.see-all-card:hover div {
  transform: scale(1.1);
}

.btn-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(5px);
}
.btn-fav:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.8);
}
.btn-fav.active {
  color: var(--danger);
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.2);
}
.btn-fav.active svg {
  fill: var(--danger);
}

.student-btn {
  background: var(--gold);
  color: var(--navy);
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.student-btn:hover {
  background: #e0ac10;
}

.filter-bar {
  padding: 20px 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    to bottom,
    rgba(44, 44, 44, 0.5) 0%,
    rgba(11, 11, 11, 0) 100%
  );
}

body.ead-body {
  background-color: var(--bg-main);
  color: var(--white);
  font-family: var(--font-main);
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.ead-layout {
  display: flex;
  height: 100vh;
  width: 100%;
}

.ead-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-top: 0 !important;
}
.ead-main::-webkit-scrollbar {
  display: none;
}

.ead-header-title {
  display: none;
  color: var(--white);
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  flex: 1;
  margin: 0 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ead-header-user {
  display: none;
  font-size: 0.85rem;
  color: var(--gold);
}
@media (min-width: 901px) {
  .ead-header-title {
    display: block;
  }
  .ead-header-user {
    display: inline;
  }
}

.ead-header {
  background: var(--bg-header-footer);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  position: sticky;
  top: 0;
}

.ead-back-btn {
  color: #aaa;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.ead-back-btn:hover {
  color: var(--gold);
}

.ead-video-container {
  background: #000;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 70vh;
  max-width: calc(70vh * 16 / 9);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ead-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.ead-lesson-info {
  padding: 30px 5%;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.ead-lesson-title {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 10px;
}

.ead-lesson-desc {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
}

.ead-sidebar {
  width: 350px;
  background: var(--bg-header-footer);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ead-sidebar::-webkit-scrollbar {
  display: none;
}

.ead-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ead-sidebar-title {
  font-size: 1.1rem;
  color: var(--gold);
  margin: 0;
}

.ead-sidebar-content {
  flex: 1;
  overflow-y: auto;
}

.ead-module {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ead-module-header {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 0.95rem;
  color: #ddd;
  transition: background 0.2s;
}

.ead-module-header:hover {
  background: rgba(0, 0, 0, 0.4);
  color: var(--gold);
}

.ead-module-list {
  display: flex;
  flex-direction: column;
}

.ead-lesson-link {
  padding: 12px 20px 12px 30px;
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ead-lesson-link:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
}

.ead-lesson-link.active {
  background: rgba(218, 174, 0, 0.1);
  color: var(--gold);
  border-left-color: var(--gold);
}

.ead-materials {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ead-material-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  margin-right: 10px;
  margin-bottom: 10px;
  border: 1px solid transparent;
  transition: background 0.2s;
}

.ead-material-link:hover {
  background: rgba(218, 174, 0, 0.2);
  color: var(--gold);
}

.ead-material-link.is-downloaded {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.3);
}

.ead-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

@media (max-width: 900px) {
  body.ead-body {
    overflow: auto;
  }
  .ead-sidebar {
    position: fixed;
    right: -350px;
    top: 0;
    height: 100vh;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }
  .ead-sidebar.active {
    right: 0;
  }
  .ead-mobile-toggle {
    display: block;
  }
  .ead-video-container {
    max-height: 40vh;
  }
  .ead-layout {
    flex-direction: column;
    height: auto;
    display: block;
  }
  .ead-main {
    overflow: visible;
  }
}

/* --- COMPONENTES GENÉRICOS (BOTÕES EAD) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 0.375rem;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.5;
}
.btn:active {
  transform: scale(0.98);
}
.btn-secondary {
  background-color: transparent;
  color: var(--admin-text-light, #aaa);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}
.btn-outline-danger {
  background-color: transparent;
  color: var(--danger, #ef4444);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-outline-danger:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger, #ef4444);
}
.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

/* --- EAD PROGRESS AND STATUS --- */
button.btn-complete-lesson {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}
button.btn-complete-lesson:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}
button.btn-complete-lesson.is-completed {
  border-color: var(--success);
  color: var(--success);
}
button.btn-complete-lesson.is-completed:hover {
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.icon-check {
  fill: none;
  stroke: currentColor;
}
.ead-lesson-link.is-completed .icon-check {
  fill: var(--success);
  stroke: var(--success);
}
.ead-lesson-link.is-completed .icon-check polyline {
  stroke: var(--bg-main);
}
.course-progress-bar {
  margin-top: 10px;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}
.course-progress-fill {
  height: 100%;
  background: var(--success);
  transition: width 0.5s ease;
}
.course-progress-text {
  font-size: 0.75rem;
  color: #ccc;
  margin-top: 4px;
  text-align: right;
}
.ead-sidebar-progress {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}
.ead-sidebar-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 5px;
  color: #ccc;
}
.ead-sidebar-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.ead-sidebar-progress-fill {
  height: 100%;
  background: var(--success);
  transition: width 0.5s ease;
}
.ead-empty-state {
  padding: 100px 5%;
  text-align: center;
}
.ead-empty-state h1 {
  color: var(--gold);
  margin-bottom: 20px;
}
.ead-empty-state p {
  color: #aaa;
}

/* --- EAD CAROUSEL --- */
.ead-carousel-section {
  margin-bottom: 30px;
}
.ead-carousel-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ead-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 15px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(0, 0, 0, 0.3);
  align-items: flex-start; /* Impede os cards do carrossel de se esticarem */
}
.ead-carousel::-webkit-scrollbar {
  height: 6px;
}
.ead-carousel::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}
.ead-carousel-item {
  flex: 0 0 180px;
  min-width: 180px;
  height: auto;
}

/* --- FORM GRIDS --- */
.form-row-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
}
.form-row-1-1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
@media (max-width: 768px) {
  .form-row-2-1,
  .form-row-1-1 {
    grid-template-columns: 1fr;
  }
}

/* --- PROFILE AVATAR --- */
.profile-avatar-group {
  text-align: center;
  margin-bottom: 30px;
}
.profile-avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  margin-bottom: 15px;
  background-color: var(--bg-header-footer);
}
.profile-avatar-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* --- GRID DE CARDS (PERFIL DO ALUNO) --- */
.ead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.ead-card {
  background: var(--bg-header-footer);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
}
.ead-card-title {
  color: var(--white);
  margin: 0 0 20px;
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

/* --- DROPDOWN DO PERFIL DO ALUNO --- */
.student-profile-dropdown {
  position: relative;
}
.profile-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 5px;
  border-radius: 20px;
  transition: background 0.2s;
}
.profile-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
}
.profile-trigger img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  background-color: var(--white);
}
.profile-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--bg-header-footer);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  min-width: 240px;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.2s ease;
}
.profile-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 15px;
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--bg-header-footer) transparent;
}
/* Ponte magnética para evitar que o mouse escape ao descer para o menu */
.profile-dropdown-menu::after {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
}

.student-profile-dropdown:hover .profile-dropdown-menu,
.student-profile-dropdown:focus-within .profile-dropdown-menu {
  display: flex;
}
.profile-dropdown-menu a {
  color: var(--white);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold);
}
.profile-dropdown-menu a.danger:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

/* --- STUDENT NOTIFICATIONS --- */
.student-notif-dropdown {
  position: relative;
  margin-right: 10px;
}
.notif-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  transition: background 0.2s;
  position: relative;
}
.notif-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}
.notif-trigger .notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-header-footer);
}
.student-notif-dropdown .notif-dropdown-menu {
  display: none;
  position: absolute;
  right: -10px;
  top: 100%;
  background: var(--bg-header-footer);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-width: 280px;
  flex-direction: column;
  margin-top: 10px;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.2s ease;
  overflow: hidden;
}
.student-notif-dropdown .notif-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 20px;
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--bg-header-footer) transparent;
}
.student-notif-dropdown .notif-header {
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 0.95rem;
}
.student-notif-dropdown .notif-list {
  max-height: 250px;
  overflow-y: auto;
}
.student-notif-dropdown .notif-item {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s;
}
.student-notif-dropdown .notif-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.student-notif-dropdown .notif-item-title {
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
}
.student-notif-dropdown .notif-item-date {
  font-size: 0.7rem;
  color: #888;
}
.student-notif-dropdown .notif-view-all {
  display: block;
  padding: 10px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  color: var(--gold);
  font-weight: bold;
  text-decoration: none;
  font-size: 0.85rem;
}
.student-notif-dropdown .notif-view-all:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* --- COMENTÁRIOS EAD --- */
.ead-comments-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ead-comment-form {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  align-items: flex-start;
}
.ead-comment-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(218, 174, 0);
  border-radius: 8px;
  padding: 15px;
  color: var(--white);
  font-family: var(--font-main);
  resize: vertical;
  min-height: 50px;
}
.ead-comment-input:focus {
  outline: none;
  border-color: var(--gold);
}

#comments-list {
  display: flex;
  flex-direction: column;
}

/* Container principal do card de comentário (Adaptado para o Dark Mode do EAD) */
.card-comments {
  display: flex;
  background: rgba(155, 149, 121, 0.219);
  border: 1px solid rgba(218, 174, 0, 0.219);
  border-radius: 22px;
  padding: 18px 20px;
  width: 100%;
  max-width: 800px;
  margin-bottom: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  box-sizing: border-box;
  gap: 14px;
}
.avatar-container {
  flex-shrink: 0;
}
.avatar-borda {
  background: linear-gradient(
    45deg,
    var(--gold) 0%,
    #e6683c 50%,
    var(--danger) 100%
  );
  padding: 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}
.avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--bg-header-footer);
  object-fit: cover;
  background: var(--bg-main);
}
.conteudo-card {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cabecalho-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.nome-usuario {
  font-weight: 600;
  color: var(--white);
  font-size: 15px;
}
.tempo-postagem {
  color: #888;
  font-size: 13px;
}
.comentario-texto {
  margin: 0 0 14px 0;
  font-size: 15px;
  color: #ccc;
  line-height: 1.4;
  text-align: left;
}
.rodape-card {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: #888;
  font-weight: 500;
}

/* Estilo exclusivo para o card do Membro/Autor do Curso */
.card-comments-member {
  background: rgba(218, 174, 0, 0.1);
  border-color: rgba(218, 174, 0, 0.3);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.card-comments-member .nome-usuario {
  color: var(--gold);
}
.card-comments-member .avatar-borda {
  background: linear-gradient(45deg, var(--gold) 0%, #fff 100%);
}

/* Botão de reportar fixo no topo-direito de cada card */
.btn-report-corner {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.2);
  padding: 2px;
  line-height: 1;
  border-radius: 4px;
  transition:
    color 0.2s,
    transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-report-corner:hover {
  color: var(--warning);
  transform: scale(1.2);
}
.btn-report-pulsing {
  animation: reportPulse 1.4s ease-in-out infinite;
  color: var(--warning) !important;
}
@keyframes reportPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.25);
  }
}

/* --- STUDENT NOTIFICATIONS --- */
.student-notif-dropdown {
  position: relative;
  margin-right: 10px;
}
.notif-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  transition: background 0.2s;
  position: relative;
}
.notif-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}
.notif-trigger .notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-header-footer);
}
.student-notif-dropdown .notif-dropdown-menu {
  display: none;
  position: absolute;
  right: -10px;
  top: 100%;
  background: var(--bg-header-footer);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-width: 280px;
  flex-direction: column;
  margin-top: 10px;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.2s ease;
  overflow: hidden;
}
.student-notif-dropdown .notif-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 20px;
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--bg-header-footer) transparent;
}
.student-notif-dropdown .notif-header {
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 0.95rem;
}
.student-notif-dropdown .notif-list {
  max-height: 250px;
  overflow-y: auto;
}
.student-notif-dropdown .notif-item {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s;
}
.student-notif-dropdown .notif-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.student-notif-dropdown .notif-item-title {
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
}
.student-notif-dropdown .notif-item-date {
  font-size: 0.7rem;
  color: #888;
}
.student-notif-dropdown .notif-view-all {
  display: block;
  padding: 10px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  color: var(--gold);
  font-weight: bold;
  text-decoration: none;
  font-size: 0.85rem;
}
.student-notif-dropdown .notif-view-all:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* --- COMENTÁRIOS EAD --- */
.ead-comments-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ead-comment-form {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  align-items: flex-start;
}
.ead-comment-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(218, 174, 0);
  border-radius: 8px;
  padding: 15px;
  color: var(--white);
  font-family: var(--font-main);
  resize: vertical;
  min-height: 50px;
}
.ead-comment-input:focus {
  outline: none;
  border-color: var(--gold);
}

#comments-list {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .card-comments {
    padding: 14px 15px;
    gap: 12px;
    border-radius: 18px;
    margin-bottom: 12px;
  }
  .card-comments[style*="margin-left: 40px"] {
    margin-left: 15px !important;
    padding-left: 10px !important;
    max-width: calc(100% - 15px) !important;
  }
  .card-comments .avatar-borda {
    width: 40px;
    height: 40px;
  }
  .card-comments .avatar-img {
    width: 36px;
    height: 36px;
  }
  .card-comments .cabecalho-card {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .card-comments .nome-usuario {
    font-size: 14px;
    word-break: break-word;
  }
  .card-comments .tempo-postagem {
    font-size: 11px;
  }
  .card-comments .comentario-texto {
    font-size: 14px;
    margin: 0 0 10px 0;
  }
  .card-comments .rodape-card {
    font-size: 12px;
    flex-wrap: wrap;
  }
}

/*
----------------------
Desenvolvimento: *Hansmiller Toledo* por *Miller's Tech* (hansmiller.com.br | millers.com.br)
Última atualização: 11/06/2026
----------------------
*/
/* =========================================================
   ESTILOS MIGRADOS (INLINE FIXES & ANIMATIONS)
   ========================================================= */

/* Cookie Banner */
#cookieBanner {
  position: fixed !important;
  bottom: 25px !important;
  left: 25px !important;
  width: 380px !important;
  max-width: calc(100% - 50px) !important;
  border-radius: 16px !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7) !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  padding: 25px !important;
  background: #111 !important;
  border: 1px solid rgba(218, 174, 0, 0.3) !important;
  z-index: 10000 !important;
  transition:
    transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    opacity 0.5s ease !important;
  transform: translateY(150%) scale(0.9) !important;
  opacity: 0 !important;
}
#cookieBanner.show {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
}
#cookieBanner .cookie-banner-text {
  width: 100% !important;
  text-align: left !important;
  margin-bottom: 20px !important;
  font-size: 0.9rem !important;
  color: #bbb !important;
  line-height: 1.5 !important;
}
#cookieBanner .cookie-banner-text h4 {
  color: var(--gold) !important;
  margin-bottom: 8px !important;
  font-size: 1.1rem !important;
}
#cookieBanner .cookie-banner-actions {
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  gap: 10px !important;
}
#cookieBanner button {
  flex: 1 !important;
  margin: 0 !important;
  border-radius: 8px !important;
  padding: 12px 10px !important;
  font-weight: bold !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  border: none !important;
}
#cookieBanner .btn-cookie-reject {
  background: #333 !important;
  color: #fff !important;
}
#cookieBanner .btn-cookie-accept {
  background: #a7f3d0 !important;
  color: #064e3b !important;
  box-shadow: 0 0 15px rgba(167, 243, 208, 0.4) !important;
}

/* Profile presentation content */
.presentation-content strong,
.presentation-content b {
  color: #000 !important;
}

/* EAD Dashboard tags and carousel */
.course-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(218, 174, 0, 0.15);
  color: var(--gold);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  margin: 5px;
}
.ead-carousel::-webkit-scrollbar {
  display: none;
}
.ead-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.ead-carousel:active {
  cursor: grabbing;
}

/* EAD Lesson Modals and Toggles */
.autoplay-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.autoplay-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: bold;
  color: #aaa;
  letter-spacing: 0.5px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #444;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--gold);
}
input:focus + .slider {
  box-shadow: 0 0 1px var(--gold);
}
input:checked + .slider:before {
  transform: translateX(14px);
}
@keyframes starPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3) rotate(-15deg);
  }
  100% {
    transform: scale(1);
  }
}
.star-rating.active {
  animation: starPop 0.3s ease;
  transform-origin: center;
}
.modal-share {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.modal-share-content {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}
.modal-share-close {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  color: #aaa;
}
.modal-share-close:hover {
  color: var(--white);
}
.modal-share-input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--gold);
  margin: 20px 0;
  font-family: monospace;
  font-size: 0.95rem;
  text-align: center;
}

/* --- MOBILE PROFILE DROPDOWN MENU FIX --- */
@media (max-width: 768px) {
  .nav-menu .student-profile-dropdown {
    flex-direction: column !important;
    width: 100%;
  }
  .nav-menu .student-profile-dropdown .profile-trigger {
    justify-content: center;
    padding: 20px 0;
    border-bottom: none !important;
    width: 100%;
  }
  .nav-menu .student-profile-dropdown .profile-trigger img {
    width: 64px !important;
    height: 64px !important;
    border-width: 3px !important;
  }
  .nav-menu .student-profile-dropdown .profile-trigger span {
    display: none !important;
  }
  .nav-menu .profile-dropdown-menu {
    position: static !important;
    width: 100%;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 20px 20px 20px !important;
    background: transparent !important;
  }
  .nav-menu .profile-dropdown-menu::before,
  .nav-menu .profile-dropdown-menu::after {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .nav-menu .student-profile-dropdown .profile-dropdown-menu {
    flex-direction: column !important;
  }
}

/* ========================================================
   FASE 2: EAD AVANÇADO (PLAYER)
   ======================================================== */

/* MODO TEATRO */
.theater-mode .ead-layout {
  flex-direction: column !important;
}

.theater-mode .ead-main {
  max-width: 100% !important;
  width: 100% !important;
  flex: none !important;
}

.theater-mode .ead-sidebar {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto;
  border-left: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  height: auto !important;
}

.theater-mode .ead-video-container {
  max-height: 85vh !important;
  max-width: calc(85vh * 16 / 9) !important;
  width: 100%;
}

.theater-mode .ead-lesson-info {
  max-width: 100%;
  padding: 30px 2%;
}

/* MINI-PLAYER (PiP) */
.floating-miniplayer {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  width: 350px !important;
  height: 197px !important; /* 16:9 aspect ratio */
  z-index: 99999 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  animation: slideUpPiP 0.3s ease-out forwards;
  transition: all 0.3s ease;
}

@keyframes slideUpPiP {
  from {
    transform: translateY(150%) scale(0.5);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.floating-miniplayer iframe {
  width: 100% !important;
  height: 100% !important;
  border-radius: 12px !important;
  pointer-events: none; /* Evita scrolls acidentais dentro do iframe no PiP */
}

/* Permite interagir quando houver hover */
.floating-miniplayer:hover iframe {
  pointer-events: auto;
}

/* Botão de Fechar do PiP */
.pip-close-btn {
  display: none;
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 999999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.floating-miniplayer:hover .pip-close-btn {
  display: flex;
}

/* Toolbar Extra (Teclas e Atalhos UI) */
.ead-player-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 10px;
  padding: 10px 5%;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.theater-mode .ead-player-toolbar {
  max-width: 100%;
  padding: 10px 2%;
}

.player-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.player-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.player-btn svg {
  width: 16px;
  height: 16px;
}

/* EMOJI REACTION POP ANIMATION (INSTAGRAM STYLE) */
@keyframes emojiPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.45) rotate(-12deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.btn-rx {
  transition:
    transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background 0.2s,
    border-color 0.2s !important;
}

.btn-rx:active,
.btn-rx.emoji-pop {
  animation: emojiPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* FLOATING EMOJI EXPLOSION EFFECT */
.floating-like {
  position: absolute;
  font-size: 22px;
  pointer-events: none;
  animation: floatUp 1.4s cubic-bezier(0.17, 0.67, 0.83, 1.39) forwards;
  opacity: 0;
  z-index: 9999;
}

@keyframes floatUp {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(var(--scale));
    opacity: 0;
  }
}

/* FIX: Card Comments & Nested Reply Overflow Bounds */
.card-comments {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

.card-comments .card-comments {
  margin-left: 20px !important;
  width: auto !important;
  max-width: calc(100% - 20px) !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .card-comments {
    grid-template-columns: 40px 1fr auto !important;
    grid-template-rows: auto auto auto auto auto !important;
    gap: 6px 8px !important;
    padding: 12px !important;
  }

  /* Coluna 1: Avatar (Linhas 1 a 3 no Mobile) */
  .card-comments > div:nth-child(1) {
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
  }

  /* Coluna 2: Nome (Linha 1), Badge (Linha 2), Data (Linha 3) */
  .card-comments > div:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .card-comments > div:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  .card-comments > div:nth-child(4) {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  /* Botão Reportar: Canto Superior Direito (Linha 1, Coluna 3) */
  .card-comments > div:nth-child(6) {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  /* Texto do Comentário: Ocupa toda a largura da linha 4 */
  .card-comments > div:nth-child(5) {
    grid-column: 1 / span 3 !important;
    grid-row: 4 !important;
    margin-top: 4px !important;
    padding-right: 0 !important;
  }

  /* Emojis de Reação: Linha 5, à esquerda */
  .card-comments > div:nth-child(7) {
    grid-column: 1 / span 2 !important;
    grid-row: 5 !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }

  /* Botão Responder: Linha 5, à direita */
  .card-comments > div:nth-child(8) {
    grid-column: 3 !important;
    grid-row: 5 !important;
    justify-content: flex-end !important;
  }

  /* Threads de Respostas e Caixa de Resposta: Linha 6, Largura Total */
  .card-comments > div:nth-child(9) {
    grid-column: 1 / span 3 !important;
    grid-row: 6 !important;
  }

  /* Cards de Resposta no Mobile */
  .card-comments .card-comments {
    margin-left: 10px !important;
    width: auto !important;
    max-width: calc(100% - 10px) !important;
    padding: 10px !important;
  }

  /* Badge de Ofensiva (Streak) no Mobile */
  .student-streak-badge {
    padding: 3px 8px !important;
    font-size: 0.75rem !important;
    gap: 3px !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 480px) {
  .student-streak-badge {
    padding: 2px 6px !important;
    font-size: 0.7rem !important;
  }

  .ead-header,
  .student-header {
    padding: 8px 10px !important;
  }

  .ead-header > div,
  .student-header > div {
    gap: 6px !important;
  }

  /* Notificação Popup Responsivo no Mobile */
  .student-notif-dropdown .notif-dropdown-menu {
    position: fixed !important;
    top: 60px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    min-width: unset !important;
    max-width: calc(100vw - 20px) !important;
    box-sizing: border-box !important;
  }

  .student-notif-dropdown .notif-dropdown-menu::before {
    display: none !important;
  }

  /* Catálogo de Cursos no Mobile: 2 Cards Lado a Lado */
  .courses-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 15px 3% !important;
  }
}
@ k e y f r a m e s   s p i n   {   f r o m   {   t r a n s f o r m :   r o t a t e ( 0 d e g ) ;   }   t o   {   t r a n s f o r m :   r o t a t e ( 3 6 0 d e g ) ;   }   }  
 