/* index.css - Estilos Gerais e Temas do EthicsPlay (Netflix Style - Preto e Azul) */

:root {
  /* Cores Temáticas */
  --bg-main: #08090c;         /* Preto de fundo super escuro */
  --bg-surface: #121620;      /* Azul escuro/grafite de superfície */
  --bg-card: #181d2a;         /* Fundo de cards e containers */
  --bg-card-hover: #21283a;   /* Hover de cards */
  
  --primary: #2B5F8A;         /* Azul corporativo */
  --primary-glow: rgba(43, 95, 138, 0.35);
  --primary-light: #415c9b;   /* Azul claro para hover/foco */
  
  --accent: #F2A64A;          /* Laranja/Dourado para medalhas e destaque */
  --accent-glow: rgba(242, 166, 74, 0.3);
  
  /* Estados */
  --success: #16A34A;
  --success-glow: rgba(22, 163, 74, 0.25);
  --error: #DC2626;
  --error-glow: rgba(220, 38, 38, 0.25);
  --warning: #F59E0B;
  
  /* Tons de Cinza/Texto */
  --text-main: #F8FAFC;       /* Off-white */
  --text-muted: #94A3B8;      /* Cinza médio */
  --text-dim: #64748B;        /* Cinza escuro */
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  
  /* Fontes */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Public Sans', sans-serif;
  
  /* Layout e Transições */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 20px var(--primary-glow);
}

/* Reset e Estrutura Básica */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.dark-mode {
  background-color: var(--bg-main);
  color: var(--text-main);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

/* SPA Navigation Views Hide/Show */
.view-section {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.view-section.active {
  display: block;
  opacity: 1;
}

.hidden {
  display: none !important;
}

/* Utilidades e Textos */
.small-text { font-size: 0.85rem; color: var(--text-muted); }
.text-center { text-align: center; }
.bold { font-weight: 700; }
.category-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background-color: rgba(17, 76, 212, 0.15);
  border: 1px solid rgba(17, 76, 212, 0.3);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* ─── BOTÕES CUSTOMIZADOS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  user-select: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  box-shadow: 0 0 15px rgba(76, 130, 255, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--accent);
  color: var(--bg-main);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: #fcae59;
  box-shadow: 0 0 15px rgba(242, 166, 74, 0.4);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-outline {
  border: 1.5px solid var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-main);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-muted);
}

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

.btn-full {
  width: 100%;
}

.btn-danger {
  border-color: var(--error);
  color: var(--error);
}

.btn-danger:hover {
  background-color: var(--error);
  color: #fff;
  border-color: var(--error);
}

/* ─── TOAST SYSTEM ─── */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
  width: 100%;
  pointer-events: none;
}

.toast {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateX(0);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.toast-message {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.toast-close {
  color: var(--text-dim);
  cursor: pointer;
}

.toast-close:hover { color: var(--text-main); }


/* ─── GLOBAL HEADER (GLASS NAV) ─── */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1000;
  background-color: rgba(8, 9, 12, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}

.glass-nav.scrolled {
  background-color: #08090c;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--text-main);
  transition: transform 0.2s ease;
}

.logo-text span {
  color: var(--primary-light);
}

.logo-text:hover {
  text-decoration: none;
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--text-main);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--text-main);
  font-weight: 700;
  border-bottom-color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Caixa de Busca */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.search-box input {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.5rem 1rem 0.5rem 2.2rem;
  border-radius: 50px;
  font-size: 0.88rem;
  width: 240px;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  width: 320px;
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-light);
  box-shadow: 0 0 10px rgba(17, 76, 212, 0.2);
}

/* Menu de Perfil */
.user-profile-menu {
  position: relative;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.profile-trigger:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  object-fit: cover;
}

.chevron-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.profile-trigger:hover .chevron-icon {
  color: var(--text-main);
}

.profile-dropdown {
  position: absolute;
  top: 45px;
  right: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 220px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  animation: slideDownMenu 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-dropdown.show {
  display: flex;
}

.dropdown-header {
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.dropdown-header span:first-child {
  font-weight: 700;
  font-size: 0.95rem;
}

.dropdown-divider {
  margin: 0;
}

.profile-dropdown a {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-dropdown a i {
  width: 16px;
  height: 16px;
}

.profile-dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  text-decoration: none;
}

.profile-dropdown a.logout-link:hover {
  background-color: rgba(220, 38, 38, 0.1);
  color: #ff6b6b;
}

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


/* ─── TELA DE LOGIN (ESTILO CINEMATOGRÁFICO) ─── */
#view-login {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(8, 9, 12, 0.8), rgba(8, 9, 12, 0.95)), 
              url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1472&auto=format&fit=crop') no-repeat center center;
  background-size: cover;
  z-index: -1;
  filter: blur(4px);
}

.login-card-container {
  width: 100%;
  max-width: 450px;
}

.login-card {
  background-color: rgba(18, 22, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  padding: 3.5rem 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.login-logo {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.login-logo span { color: var(--primary-light); }

.login-card h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
}

.input-group {
  margin-bottom: 1.25rem;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

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

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-dim);
  width: 18px;
  height: 18px;
}

.input-wrapper input {
  width: 100%;
  background-color: rgba(8, 9, 12, 0.6);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem 0.75rem 2.7rem;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(17, 76, 212, 0.3);
  background-color: rgba(8, 9, 12, 0.8);
}

.login-card button[type="submit"] {
  margin-top: 1.5rem;
  padding: 0.85rem;
  font-size: 1rem;
}

.login-footer {
  margin-top: 2rem;
}

.login-footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.login-footer a {
  font-weight: 700;
  color: var(--text-main);
}

.login-footer a:hover {
  text-decoration: underline;
  color: var(--primary-light);
}

.terms-text {
  font-size: 0.75rem !important;
  color: var(--text-dim) !important;
  line-height: 1.4;
}


/* ─── DASHBOARD / BROWSE ─── */
#view-browse {
  padding-top: 0; /* Começa debaixo do nav */
}

/* Banner de Destaque */
.hero-banner {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 0 4rem;
  overflow: hidden;
  background: linear-gradient(to right, #08090c 20%, transparent 80%),
              url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?q=80&w=1471&auto=format&fit=crop') no-repeat center center;
  background-size: cover;
}

.hero-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--bg-main) 0%, transparent 15%, transparent 85%, rgba(8, 9, 12, 0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  background-color: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 15px var(--primary-glow);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-buttons .btn {
  padding: 0.8rem 1.75rem;
  font-size: 1rem;
}

/* Fileiras (Carousels) */
.rows-container {
  padding: 0 4rem 4rem 4rem;
  margin-top: -80px; /* Sobrepõe o banner levemente */
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.carousel-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.row-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-left: 0.25rem;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  group-hover: opacity 1;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0.25rem 2rem 0.25rem; /* Padding inferior evita cortar a sombra */
  width: 100%;
  -ms-overflow-style: none; /* IE e Edge */
  scrollbar-width: none;    /* Firefox */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari e Opera */
}

/* Botões do Carrossel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateY(-10px); /* Ajusta para compensar o padding inferior */
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(8, 9, 12, 0.8);
  border: 1px solid var(--border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  opacity: 0;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.carousel-wrapper:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary-light);
  color: #fff;
  scale: 1.1;
}

.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

/* Cards Individuais (Estilo Netflix Zoom) */
.card-item {
  flex: 0 0 280px; /* Largura fixa */
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.2s ease;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(17, 76, 212, 0.25);
  border-color: rgba(17, 76, 212, 0.4);
  background-color: var(--bg-card-hover);
}

.card-media {
  position: relative;
  height: 150px;
  background-color: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-item:hover .card-media img {
  transform: scale(1.08);
}

.card-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(18, 22, 32, 0.9) 0%, transparent 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.card-item:hover .card-media-overlay {
  opacity: 1;
}

.play-hover-btn {
  background-color: var(--primary);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 15px rgba(17, 76, 212, 0.5);
  transform: scale(0.8);
  transition: var(--transition);
}

.card-item:hover .play-hover-btn {
  transform: scale(1);
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  /* Truncamento de 2 linhas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
}

.lesson-duration {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.progress-pill {
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  background-color: var(--primary-glow);
  color: var(--primary-light);
  border-radius: 50px;
  font-weight: 700;
}

/* Card Barra de Progresso Interna (para Continuar Assistindo) */
.card-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  width: 100%;
}

.card-progress-fill {
  height: 100%;
  background-color: var(--primary);
  width: 0%;
  box-shadow: 0 0 8px var(--primary-light);
}


/* ─── RESULTADOS DA BUSCA ─── */
.search-results-container {
  padding: 5rem 4rem 2rem 4rem;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.3s ease;
}

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.search-results-header h2 {
  font-family: var(--font-display);
}

.search-results-header h2 span {
  color: var(--primary-light);
}

.search-grid {
  display: grid;
  grid-template-cols: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ─── PLAYER IMERSIVO / WATCH ─── */
#view-watch {
  padding-top: 70px;
  height: calc(100vh - 70px);
  background-color: #030406;
}

.watch-container {
  display: grid;
  grid-template-columns: 1fr 350px; /* Player à esquerda, lista de aulas à direita */
  height: 100%;
  overflow: hidden;
}

.watch-main-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 1.5rem 2.5rem;
}

.watch-navigation-back {
  margin-bottom: 1rem;
}

/* Player de Vídeo Customizado */
.video-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-player-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Painel de Controles Customizados */
.player-controls-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 40%, transparent 70%, rgba(0,0,0,0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-player-wrapper:hover .player-controls-overlay {
  opacity: 1;
}

.play-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(17, 76, 212, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 30px rgba(17, 76, 212, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.play-center-btn:hover {
  background-color: var(--primary);
  scale: 1.1;
}

.play-center-btn i {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.player-bottom-panel {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Barra de Progresso do Player */
.progress-bar-container {
  width: 100%;
  height: 6px;
  padding: 10px 0;
  cursor: pointer;
}

.progress-bar-bg {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  width: 100%;
  border-radius: 10px;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--primary);
  width: 0%;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 10px var(--primary-light);
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.progress-bar-container:hover .progress-bar-fill::after {
  opacity: 1;
}

.progress-bar-container:hover .progress-bar-bg {
  height: 8px;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.control-btn {
  color: var(--text-main);
  opacity: 0.85;
  transition: var(--transition-fast);
}

.control-btn:hover {
  color: var(--primary-light);
  opacity: 1;
  scale: 1.1;
}

.control-btn i {
  width: 22px;
  height: 22px;
}

/* Controle Volume */
.volume-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.volume-slider {
  width: 80px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  outline: none;
  transition: var(--transition);
  accent-color: var(--primary-light);
}

.volume-slider:hover {
  height: 6px;
}

.time-display {
  font-size: 0.85rem;
  color: var(--text-muted);
  user-select: none;
}

/* Spinner e Mock */
.video-mock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
}

.video-mock-overlay .mock-icon {
  width: 60px;
  height: 60px;
  color: var(--primary);
}

.simulated-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Cartão de Informações da Aula */
.lesson-info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
  padding: 2rem;
}

.lesson-info-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.lesson-info-header h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.lesson-info-header .subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.lesson-tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.tab-btn {
  padding: 0.75rem 0.25rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
}

.tab-content {
  line-height: 1.6;
  font-size: 0.98rem;
  color: #d1d8e6;
  animation: fadeIn 0.3s ease;
}

.summary-box {
  background-color: rgba(242, 166, 74, 0.05);
  border: 1px solid rgba(242, 166, 74, 0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.summary-box h4 {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* Sidebar de Aulas (Grade curricular) */
.watch-sidebar {
  border-left: 1px solid var(--border);
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.sidebar-header .progress-txt {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.accordion-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  color: var(--text-main);
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid transparent;
  transition: var(--transition-fast);
}

.accordion-trigger:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.accordion-trigger.active {
  border-bottom-color: var(--border);
}

.accordion-title-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.accordion-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.accordion-trigger.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  flex-direction: column;
}

.accordion-content.show {
  display: flex;
}

.lesson-list-item {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: var(--transition-fast);
}

.lesson-list-item:last-child {
  border-bottom: none;
}

.lesson-list-item:hover {
  background-color: var(--bg-card-hover);
}

.lesson-list-item.active {
  background-color: var(--primary-glow);
  border-left: 3px solid var(--primary);
}

.lesson-meta-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.status-icon {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.status-icon.completed { color: var(--success); }
.status-icon.in-progress { color: var(--primary-light); }
.status-icon.unstarted { color: var(--text-dim); }

.lesson-title-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
}

.lesson-list-item.active .lesson-title-text {
  font-weight: 700;
  color: #fff;
}

.lesson-meta-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lesson-duration-badge {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Botão Quiz do Módulo na Lista de Aulas */
.quiz-list-item {
  margin-top: 0.25rem;
  background-color: rgba(242, 166, 74, 0.04);
  border-top: 1px solid rgba(242, 166, 74, 0.1);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quiz-list-item:hover {
  background-color: rgba(242, 166, 74, 0.1);
}

.quiz-list-item i {
  width: 16px;
  height: 16px;
}

.quiz-list-item.passed {
  color: var(--success);
  background-color: rgba(22, 163, 74, 0.04);
  border-top-color: rgba(22, 163, 74, 0.1);
}

.quiz-list-item.passed:hover {
  background-color: rgba(22, 163, 74, 0.08);
}


/* ─── SISTEMA DE QUIZ INTERATIVO ─── */
#view-quiz {
  padding-top: 70px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #101625 0%, #08090c 100%);
}

.quiz-container {
  width: 100%;
  max-width: 750px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
}

.quiz-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background-color: var(--accent-glow);
  color: var(--accent);
  border: 1.5px solid rgba(242, 166, 74, 0.25);
  font-size: 0.7rem;
  font-weight: 850;
  border-radius: 4px;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.quiz-header h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.close-quiz {
  color: var(--text-dim);
}

.close-quiz:hover {
  color: var(--text-main);
}

/* Barra de Progresso do Quiz */
.quiz-progress-bar {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  width: 100%;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background-color: var(--accent);
  width: 0%;
  transition: width 0.4s cubic-bezier(0.1, 0.8, 0.25, 1);
  box-shadow: 0 0 10px rgba(242, 166, 74, 0.5);
}

/* Painel de Questões */
.quiz-body-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: slideInLeft 0.35s ease;
}

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

.quiz-question-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.quiz-question-text {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 0.5rem;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem;
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.option-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--primary-light);
}

.option-card.selected {
  border-color: var(--primary);
  background-color: var(--primary-glow);
}

.option-card.correct {
  border-color: var(--success);
  background-color: var(--success-glow);
}

.option-card.incorrect {
  border-color: var(--error);
  background-color: var(--error-glow);
}

.option-card.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.option-card.disabled.correct {
  opacity: 1; /* Mantém a resposta correta destacada e nítida */
}

.option-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.option-card.selected .option-marker {
  border-color: var(--primary-light);
  background-color: var(--primary);
  color: #fff;
}

.option-card.correct .option-marker {
  border-color: var(--success);
  background-color: var(--success);
  color: #fff;
}

.option-card.incorrect .option-marker {
  border-color: var(--error);
  background-color: var(--error);
  color: #fff;
}

.option-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e2e8f0;
}

/* Caixa de Explicação pós-resposta */
.quiz-feedback-box {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  animation: slideDown 0.3s cubic-bezier(0.1, 0.8, 0.25, 1);
  background-color: rgba(22, 163, 74, 0.05);
  border: 1px solid rgba(22, 163, 74, 0.15);
}

.quiz-feedback-box.incorrect-feedback {
  background-color: rgba(220, 38, 38, 0.05);
  border-color: rgba(220, 38, 38, 0.15);
}

.feedback-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feedback-header .success-icon { color: var(--success); }
.feedback-header .error-icon { color: var(--error); }

#feedback-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.quiz-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.quiz-actions button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

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

/* Painel de Resultados do Quiz */
.quiz-result-panel {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.result-icon-container {
  margin-bottom: 0.5rem;
}

.trophy-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  animation: pulseGold 2s infinite ease-in-out;
}

.trophy-wrapper i {
  width: 45px;
  height: 45px;
}

.quiz-result-panel.passed .trophy-wrapper {
  color: var(--accent);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.quiz-result-panel.failed .trophy-wrapper {
  color: var(--text-dim);
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
}

@keyframes pulseGold {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(242, 166, 74, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 20px 10px rgba(242, 166, 74, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(242, 166, 74, 0); }
}

.quiz-result-panel h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
}

.quiz-result-panel.failed h1 {
  color: var(--text-main);
}

.result-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.5;
}

.result-stats {
  display: flex;
  gap: 2rem;
  margin: 1rem 0;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.quiz-result-panel.passed .stat-card:first-child .stat-value {
  color: var(--success);
}

.quiz-result-panel.failed .stat-card:first-child .stat-value {
  color: var(--error);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Badge Desbloqueado */
.unlocked-badge-card {
  background: linear-gradient(rgba(17, 76, 212, 0.06), rgba(17, 76, 212, 0.12));
  border: 1.5px dashed var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 500px;
  animation: glowBorder 1.5s infinite alternate ease-in-out;
}

@keyframes glowBorder {
  from { border-color: rgba(76, 130, 255, 0.4); box-shadow: 0 0 10px rgba(17,76,212,0.1); }
  to { border-color: rgba(76, 130, 255, 0.8); box-shadow: 0 0 20px rgba(17,76,212,0.3); }
}

.badge-award-label {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--primary-light);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.badge-award-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-align: left;
}

.badge-award-row img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(242, 166, 74, 0.3));
}

.badge-award-row h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.badge-award-row p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.result-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Confetti Canvas */
.confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}


/* ─── PERFIL E DASHBOARD DE PROGRESSO ─── */
#view-profile {
  padding-top: 100px;
  padding-bottom: 4rem;
}

.profile-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.profile-card-hero {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-md);
}

.profile-hero-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.avatar-edit-container {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-light);
  background-color: var(--bg-card);
}

.avatar-edit-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-change-avatar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(8, 9, 12, 0.75);
  color: #fff;
  padding: 0.25rem 0;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.avatar-edit-container:hover .btn-change-avatar {
  background-color: var(--primary);
}

.profile-hero-left h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}

.profile-hero-left .email {
  color: var(--text-muted);
  margin-top: 0.15rem;
  margin-bottom: 0.75rem;
}

.role-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-glow);
  border: 1px solid rgba(242, 166, 74, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
}

/* Círculo de Progresso SVG */
.progress-ring-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.4s ease;
}

.progress-ring-txt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#profile-progress-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.progress-ring-txt .small-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Estatísticas Grid */
.profile-stats-row {
  display: grid;
  grid-template-cols: repeat(3, 1fr);
  gap: 1.5rem;
}

.p-stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.p-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-stat-icon.blue { background-color: rgba(17,76,212,0.1); color: var(--primary-light); }
.p-stat-icon.orange { background-color: var(--accent-glow); color: var(--accent); }
.p-stat-icon.green { background-color: rgba(22,163,74,0.1); color: var(--success); }

.p-stat-icon i {
  width: 24px;
  height: 24px;
}

.p-stat-info {
  display: flex;
  flex-direction: column;
}

.p-stat-info .val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.p-stat-info .lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Prateleira de Conquistas */
.badges-shelf-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  margin-bottom: 2rem;
}

.badges-grid {
  display: grid;
  grid-template-cols: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.badge-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.badge-item.locked {
  opacity: 0.4;
  filter: grayscale(1);
}

.badge-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-light);
}

.badge-item:not(.locked):hover {
  box-shadow: 0 5px 15px rgba(242, 166, 74, 0.15);
  border-color: rgba(242, 166, 74, 0.3);
}

.badge-item-icon {
  width: 60px;
  height: 60px;
  position: relative;
}

.badge-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lock-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(8, 9, 12, 0.75);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid var(--border-light);
}

.lock-overlay i {
  width: 16px;
  height: 16px;
}

.badge-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.badge-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Zona de Configurações */
.danger-zone-container {
  border: 1px solid rgba(220, 38, 38, 0.25);
  background-color: rgba(220, 38, 38, 0.02);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.danger-zone-container h3 {
  color: #ff6b6b;
  font-family: var(--font-display);
  margin-bottom: 1rem;
}

.danger-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.danger-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.danger-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* Modal Genérico */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.btn-close-modal {
  color: var(--text-dim);
}

.btn-close-modal:hover { color: var(--text-main); }

.avatar-grid {
  display: grid;
  grid-template-cols: repeat(4, 1fr);
  gap: 1rem;
}

.avatar-option {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  background-color: var(--bg-card);
  transition: var(--transition-fast);
}

.avatar-option:hover {
  border-color: var(--primary-light);
  transform: scale(1.05);
}

/* ─── GLOBAL FOOTER ─── */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background-color: #050608;
  padding: 3rem 0;
  text-align: center;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ─── RESPONSIVIDADE (MEDIA QUERIES) ─── */
@media (max-width: 1024px) {
  .header-container { padding: 0 1.5rem; }
  .watch-container {
    grid-template-columns: 1fr;
    height: auto;
    overflow-y: auto;
  }
  .watch-sidebar {
    border-left: none;
    border-top: 1px solid var(--border);
    height: auto;
  }
  #view-watch {
    height: auto;
    overflow: visible;
  }
  .profile-stats-row {
    grid-template-cols: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 0 2rem;
    height: 55vh;
  }
  .hero-title { font-size: 2.5rem; }
  .hero-description { font-size: 0.95rem; }
  .rows-container {
    padding: 0 2rem 2rem 2rem;
    margin-top: -30px;
  }
  .profile-card-hero {
    flex-direction: column;
    text-align: center;
  }
  .profile-hero-left {
    flex-direction: column;
    gap: 1rem;
  }
  .danger-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .login-card {
    padding: 2.5rem 1.5rem;
  }
  .nav-links {
    display: none; /* Simplificação mobile */
  }
  .search-box input {
    width: 160px;
  }
  .search-box input:focus {
    width: 200px;
  }
}
