/* ==========================================================================
   DESIGN SYSTEM & ESTILOS BASE - SECRET LEVEL RÉPLICA
   ========================================================================== */

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

body {
  background: #000;
  color: #fff;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ocultar barras de rolagem globais */
::-webkit-scrollbar {
  display: none;
}

html {
  scrollbar-width: none;
  scroll-behavior: smooth;
}

/* ==========================================================================
   CABEÇALHO (MAIN HEADER)
   ========================================================================== */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center; /* Centraliza a logo horizontalmente no cabeçalho */
  align-items: center;
  padding: 24px 48px;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  transition: transform 0.3s ease, background 0.3s ease, opacity 0.4s ease, visibility 0.4s ease;
}

body.hide-header-logo .main-header {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Logo */
.logo-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centraliza o título e subtítulo entre si */
  text-align: center;
  gap: 4px;
}

.logo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 56px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  line-height: 0.95;
  transition: color 0.3s ease;
}

.logo-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 15px; /* Aumentado em 50% (de 10px para 15px) */
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
  transition: color 0.3s ease;
}

.logo-link:hover .logo-title {
  color: #e5ff00; /* Amarelo neon do Secret Level */
}

.logo-link:hover .logo-subtitle {
  color: #ffffff;
}

/* Menu Central (Header Nav) */
.nav-menu {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 20px;
  transition: color 0.3s, background-color 0.3s, transform 0.2s;
  text-transform: uppercase;
}

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

.nav-link.active {
  color: #000;
  background: #fff;
  transform: scale(1.05);
}

/* Botão Get In Touch */
.btn-get-in-touch {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 8px 24px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 1.5px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-get-in-touch:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-1px);
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.btn-get-in-touch:hover .arrow-icon {
  transform: translateX(3px);
}

/* ==========================================================================
   MENU LATERAL DE MINIATURAS (THUMBNAIL SIDEBAR)
   ========================================================================== */

.thumbnail-sidebar {
  position: fixed;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  pointer-events: auto;
}

.thumbnail-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 80vh;
  padding-right: 20px; /* Margem para hover */
}

/* Thumbnail Item */
.thumb-item {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 2px;
  text-align: left;
  transition: transform 0.3s ease, opacity 0.3s ease;
  width: fit-content;
}

/* Preview de Vídeo */
.thumb-preview {
  position: relative;
  width: 64px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #111;
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.thumb-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* Rótulo da Miniatura */
.thumb-label {
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0;
  transform: translateX(-15px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  white-space: nowrap;
}

/* Efeitos de Hover no Item */
.thumb-item:hover {
  transform: translateX(4px);
}

.thumb-item:hover .thumb-preview {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.thumb-item:hover .thumb-preview video {
  opacity: 1;
}

.thumb-item:hover .thumb-label {
  opacity: 1;
  transform: translateX(0);
}

/* Estado Ativo (Quadro Atual) */
.thumb-item.active {
  transform: translateX(8px);
}

.thumb-item.active .thumb-preview {
  border-color: #e5ff00; /* Amarelo neon do Secret Level */
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(229, 255, 0, 0.4);
}

.thumb-item.active .thumb-preview video {
  opacity: 1;
}

.thumb-item.active .thumb-label {
  opacity: 1;
  transform: translateX(0);
  color: #e5ff00;
}

/* ==========================================================================
   CONTEINER DE SLIDES COM SCROLL SNAP
   ========================================================================== */

.slides-container {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  perspective: 1500px;
  background: #000;
}

/* Slide Section */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  padding-left: 200px;
  padding-right: 64px;
  box-sizing: border-box;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform-origin: 50% 50% -50vh;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  transform: rotateX(0deg) translateZ(0);
}

/* Animações de Transição 3D Rotate 90 Graus */
.slide.rotate-out-next {
  animation: rotateOutNext 0.8s cubic-bezier(0.7, 0, 0.3, 1) both;
  z-index: 1;
}

.slide.rotate-in-next {
  animation: rotateInNext 0.8s cubic-bezier(0.7, 0, 0.3, 1) both;
  z-index: 3;
}

.slide.rotate-out-prev {
  animation: rotateOutPrev 0.8s cubic-bezier(0.7, 0, 0.3, 1) both;
  z-index: 1;
}

.slide.rotate-in-prev {
  animation: rotateInPrev 0.8s cubic-bezier(0.7, 0, 0.3, 1) both;
  z-index: 3;
}

@keyframes rotateOutNext {
  from {
    transform: rotateX(0deg) translateZ(0);
    opacity: 1;
  }
  to {
    transform: rotateX(-90deg) translateZ(0);
    opacity: 0;
  }
}

@keyframes rotateInNext {
  from {
    transform: rotateX(90deg) translateZ(0);
    opacity: 0;
  }
  to {
    transform: rotateX(0deg) translateZ(0);
    opacity: 1;
  }
}

@keyframes rotateOutPrev {
  from {
    transform: rotateX(0deg) translateZ(0);
    opacity: 1;
  }
  to {
    transform: rotateX(90deg) translateZ(0);
    opacity: 0;
  }
}

@keyframes rotateInPrev {
  from {
    transform: rotateX(-90deg) translateZ(0);
    opacity: 0;
  }
  to {
    transform: rotateX(0deg) translateZ(0);
    opacity: 1;
  }
}

/* Background de Vídeo */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Máscara de Degradê (Overlay) */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   CONTEÚDO DO SLIDE & ANIMAÇÕES
   ========================================================================== */

.slide-content {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 850px;
  width: 100%;
  
  /* Estados para animação de revelação */
  opacity: 0;
  transform: translateY(60px);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
}

/* Revelar conteúdo quando a seção estiver ativa */
.slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}

/* Subtítulos */
.slide-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 18px; /* Aumentado em ~30% de 14px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* Títulos Cinematográficos Grandes */
.slide-title {
  font-family: 'Outfit', sans-serif;
  font-size: 92px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -2px;
  margin-bottom: 32px;
  text-transform: uppercase;
  word-wrap: break-word;
}

/* Ações / Botões */
.slide-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Estilo Base dos Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 14px 32px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-transform: uppercase;
  text-decoration: none;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-primary:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover .arrow-icon {
  transform: translateX(4px);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

/* ==========================================================================
   TEMAS DE FONTES POR QUADRO
   ========================================================================== */

/* Todos os quadros agora herdam o estilo do slide final por padrão (Outfit Extra Bold) */

/* ==========================================================================
   ESTRUTURA DO QUADRO FINAL (QR CODE & CONTATO)
   ========================================================================== */

.final-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  width: 100%;
}

.final-message {
  flex: 1;
}

.slide-text,
.final-text {
  font-family: 'Outfit', sans-serif;
  font-size: 21px; /* Aumentado em ~20% de 17px */
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  max-width: 520px;
}

/* Cartão do QR Code */
.qr-code-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
}

.qr-code-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
}

.qr-code-container {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-caption {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2.5px;
  margin-top: 20px;
  text-transform: uppercase;
}

/* ==========================================================================
   DESIGN RESPONSIVO (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 992px) {
  
  /* Ajuste das seções para centralizar o conteúdo verticalmente e horizontalmente */
  .slide {
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 90px; /* Espaço de segurança para o menu de miniaturas horizontal */
    align-items: center; /* Centraliza verticalmente no meio da página */
    justify-content: center;
  }

  /* Ajuste de foco do vídeo do Slide 6 (Mudança de cidade) para a esquerda no mobile */
  #slide-6 .video-background video {
    object-position: 30% center;
  }

  
  .slide-content {
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .slide-title {
    font-size: 48px !important; /* Forçar tamanho em mobile */
    margin-bottom: 24px;
    line-height: 0.95;
    letter-spacing: -1px !important;
  }

  /* Todos os quadros compartilham o mesmo tamanho e espaçamento no mobile */

  .slide-subtitle {
    font-size: 16px; /* Aumentado em ~30% de 12px */
    letter-spacing: 2px;
    margin-bottom: 8px;
  }
  
  .slide-actions {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 10px;
  }
  
  /* Cabeçalho Simplificado */
  .main-header {
    padding: 16px 24px;
  }

  .logo-title {
    font-size: 36px; /* Ajuste para não quebrar a largura da tela em celulares */
  }

  .logo-subtitle {
    font-size: 11px; /* Ajustado proporcionalmente no mobile */
  }
  
  .nav-menu {
    display: none; /* Esconder menu de topo em mobile */
  }

  .btn-get-in-touch {
    padding: 6px 16px;
    font-size: 10px;
  }

  /* Transformação do Menu Lateral em Barra Horizontal Inferior */
  .thumbnail-sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    transform: none;
    width: 100%;
    max-height: none;
    padding: 16px 20px 24px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 75%, transparent 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .thumbnail-menu {
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    padding-right: 0;
    padding-bottom: 4px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x overflow;
  }

  /* Ocultar rótulos no mobile */
  .thumb-label {
    display: none !important;
  }

  .thumb-item {
    padding: 0;
    transform: none !important;
  }

  .thumb-preview {
    width: 48px;
    height: 32px;
  }

  .thumb-item.active .thumb-preview {
    transform: scale(1.1);
  }

  /* Quadro Final Responsivo */
  #slide-9 .slide-content {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    width: 100%;
    padding: 10px 8px 10px 0;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }

  #slide-9 .slide-content::-webkit-scrollbar {
    width: 4px;
  }

  #slide-9 .slide-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
  }

  .final-container {
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
  }

  .slide-text,
  .final-text {
    max-width: 100%;
    font-size: 17px; /* Aumentado em ~20% de 14px */
    margin-bottom: 24px;
  }

  .qr-code-card {
    padding: 24px;
    width: 100%;
    max-width: 280px;
  }

  .qr-code-container {
    width: 160px;
    height: 160px;
    padding: 12px;
  }

  .qr-caption {
    font-size: 8px;
    margin-top: 14px;
    letter-spacing: 2px;
  }
}

/* ==========================================================================
   TELA DE BLOQUEIO (AUTH OVERLAY)
   ========================================================================== */

/* ==========================================================================
   TELA DE BLOQUEIO (AUTH OVERLAY)
   ========================================================================== */

#auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 9999; /* Garante que fica em cima de tudo */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  visibility: visible;
  opacity: 1;
}

#auth-overlay.unlocked {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
  visibility: hidden;
}

/* Formulário de Acesso Centralizado com Glassmorphism */
.auth-card {
  position: relative; /* Para comportar o avatar flutuante posicionado de forma absoluta */
  margin-top: 75px; /* Compensa a foto flutuante na parte superior */
  width: 90%;
  max-width: 480px;
  padding: 48px;
  border-radius: 24px;
  background: rgba(20, 20, 20, 0.65); /* Fundo escuro translúcido para contraste */
  backdrop-filter: blur(20px); /* Desfoca o fundo da personagem apenas sob o card */
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
  animation: slideInUpAuth 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  text-align: center;
}

/* Foto Flutuante Centralizada */
.auth-avatar-wrapper {
  position: absolute;
  top: -75px; /* Metade da altura (150px) para sobrepor exatamente a borda superior */
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  background: #141414;
}

.auth-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-title {
  font-family: 'Outfit', sans-serif;
  font-size: 42px; /* De volta ao tamanho grande e de destaque */
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  color: #fff;
  margin-top: 90px; /* Dá espaço para limpar a foto flutuante absoluta acima do card */
  margin-bottom: 8px;
  text-transform: uppercase;
  text-align: center;
}

.auth-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #e5ff00; /* Amarelo neon para destaque */
  text-transform: uppercase;
  margin-bottom: 40px; /* Espaço até os campos do formulário */
  text-align: center;
}

#auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

.input-group input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 20px;
  border-radius: 12px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Custom password input styling */
.input-group input[type="password"] {
  letter-spacing: 8px;
  text-align: center;
  font-size: 20px;
}

.auth-error {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #ff3366;
  text-shadow: 0 0 10px rgba(255, 51, 102, 0.2);
  text-align: center;
  min-height: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-error.visible {
  opacity: 1;
}

.auth-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

/* keyframes de Entrada Animada */
@keyframes slideInUpAuth {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 576px) {
  .auth-card {
    padding: 32px 24px;
    border-radius: 16px;
    margin: 60px 16px 16px 16px; /* Aumenta a margem superior no mobile para não cortar o avatar */
    max-width: 380px;
  }

  .auth-avatar-wrapper {
    width: 120px;
    height: 120px;
    top: -60px; /* Metade do tamanho do avatar menor do mobile */
    border-width: 3px;
  }
  
  .auth-title {
    font-size: 32px;
    letter-spacing: -1px;
    margin-top: 70px; /* Espaço ajustado no mobile */
  }

  .auth-subtitle {
    margin-bottom: 24px;
  }
}

/* Esconder conteúdo principal enquanto estiver bloqueado para evitar vazamento no iOS */
body.locked .slides-container,
body.locked .main-header,
body.locked .thumbnail-sidebar {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Transição suave de opacidade e visibilidade para cross-fade ao desbloquear */
.slides-container,
.main-header,
.thumbnail-sidebar {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Botão discreto para alterar o nome de visitante */
.logout-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  transition: color 0.3s ease;
  vertical-align: middle;
  padding: 0;
  display: inline-block;
}

.logout-link:hover {
  color: #e5ff00; /* Amarelo neon ao passar o mouse */
}

/* ==========================================================================
   MODAL DE ALTERAÇÃO DE NOME (POP-UP)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 10000; /* Garante que fique acima de tudo, inclusive do cabeçalho */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 90%;
  max-width: 400px;
  padding: 32px;
  border-radius: 20px;
  background: rgba(25, 25, 25, 0.85); /* Fundo escuro translúcido */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 850;
  color: #fff;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.modal-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

/* Ações do Modal centralizadas */
.modal-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.modal-actions .btn {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 8px;
  min-height: auto;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hover específico para os botões dos modals (Alterar Nome e Sair) */
.modal-actions .btn-secondary:hover {
  border-color: #E5FF03;
  color: #E5FF03;
  background: rgba(229, 255, 3, 0.05);
}

.modal-actions .btn-primary:hover {
  background: #E5FF03;
  color: #000;
  border-color: #E5FF03;
  box-shadow: 0 8px 20px rgba(229, 255, 3, 0.25);
  transform: translateY(-2px);
}

/* ==========================================================================
   DETALHES DO EVENTO (SLIDE 9 - CELEBRAÇÃO & CONFRATERNIZAÇÃO)
   ========================================================================== */
.event-date-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 850;
  color: #E5FF01;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  width: 100%;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-details {
  display: flex;
  flex-direction: row;
  gap: 32px;
  margin-top: 16px;
  width: 100%;
}

.detail-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.detail-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #e5ff00; /* Amarelo neon */
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-venue {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.detail-address {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.event-note {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 24px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 16px;
  text-align: left;
  width: 100%;
}

.note-highlight {
  color: #e5ff00; /* Amarelo neon para destaque */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

/* Responsividade dos Detalhes do Evento */
@media (max-width: 768px) {
  .event-date-badge {
    font-size: 16px;
    margin-top: 28px;
    padding-top: 20px;
    text-align: center;
  }

  .event-details {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
    margin-top: 16px;
    padding-top: 0;
  }
  
  .detail-item {
    align-items: center;
    text-align: center;
  }
  
  .detail-venue {
    font-size: 15px;
  }

  .detail-address {
    font-size: 12px;
  }

  .event-note {
    text-align: center;
    font-size: 13px;
    margin-top: 20px;
  }
}

/* ==========================================================================
   PRÉ-CARREGADOR (PRELOADER SCREEN)
   ========================================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 100000; /* Preloader fica acima de tudo, inclusive do modal de nome */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.preloader-title {
  font-family: 'Outfit', sans-serif;
  font-size: 56px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin: 0;
  line-height: 1;
}

.preloader-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.preloader-text {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: pulseText 1.5s infinite ease-in-out;
}

.preloader-bar-bg {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar {
  width: 100%;
  height: 100%;
  background: #e5ff00; /* Amarelo neon da identidade visual */
  transform: translateX(-100%);
  animation: loadProgress 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.preloader-suggestion {
  display: none; /* Oculto no desktop por padrão */
}

@keyframes pulseText {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes loadProgress {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes rotatePhone {
  0%, 100% {
    transform: rotate(0deg);
  }
  40%, 60% {
    transform: rotate(90deg);
  }
}

/* Responsividade do Preloader */
@media (max-width: 768px) {
  .preloader-title {
    font-size: 36px;
    letter-spacing: -1px;
  }
  
  .preloader-bar-bg {
    width: 140px;
  }

  .preloader-suggestion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
    padding: 0 16px;
    max-width: 300px;
    box-sizing: border-box;
  }

  .preloader-suggestion p {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    margin: 0;
    text-align: center;
  }

  .suggestion-icon {
    color: #e5ff00; /* Amarelo neon */
    animation: rotatePhone 4s ease-in-out infinite;
  }
}

/* ==========================================================================
   CONTROLE DE ÁUDIO FLUTUANTE (CANTO INFERIOR DIREITO)
   ========================================================================== */
.audio-control-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999; /* Fica acima dos slides e controles, mas abaixo do modal de nome */
  transition: opacity 0.8s ease, visibility 0.8s;
}

/* Oculta o botão de som se o site estiver bloqueado (fundo preto) para manter o mistério */
body.locked .audio-control-container {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.audio-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.65); /* Fundo escuro translúcido */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, border-color 0.3s;
  outline: none;
  padding: 0;
}

.audio-btn:hover {
  transform: scale(1.08);
  background: rgba(30, 30, 30, 0.85);
  border-color: #e5ff00; /* Destaque amarelo neon no hover */
}

/* Estado Ativo: Equalizador Animado */
.audio-btn .equalizer-icon {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 16px;
  height: 16px;
}

.eq-bar {
  width: 3px;
  height: 100%;
  background-color: #fff;
  border-radius: 1px;
  transform-origin: bottom;
}

.eq-bar-1 {
  animation: bounceBar 1.2s ease-in-out infinite alternate;
}

.eq-bar-2 {
  animation: bounceBar 0.8s ease-in-out infinite alternate;
  animation-delay: 0.15s;
}

.eq-bar-3 {
  animation: bounceBar 1s ease-in-out infinite alternate;
  animation-delay: 0.3s;
}

/* Estado Pausado: Oculta Equalizador, Mostra Ícone Play */
.audio-btn .play-icon {
  display: none;
  color: #fff;
}

.audio-btn.paused .play-icon {
  display: block;
}

.audio-btn.paused .equalizer-icon {
  display: none;
}

@keyframes bounceBar {
  0 {
    transform: scaleY(0.2);
  }
  100% {
    transform: scaleY(1);
  }
}

/* Responsividade do Controle de Som */
@media (max-width: 768px) {
  .audio-control-container {
    bottom: 24px;
    right: 24px;
  }

  .audio-btn {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   SETAS DE NAVEGAÇÃO VERTICAL (DIREITA)
   ========================================================================== */
.vertical-nav-arrows {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999; /* Fica acima dos slides e controles */
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Oculta as setas se o site estiver bloqueado */
body.locked .vertical-nav-arrows {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nav-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.65); /* Fundo escuro translúcido */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, border-color 0.3s, color 0.3s;
  outline: none;
  padding: 0;
}

.nav-arrow-btn:hover {
  background: rgba(30, 30, 30, 0.85);
  border-color: #e5ff00; /* Destaque amarelo neon */
  color: #e5ff00;
  transform: scale(1.08);
}

.nav-arrow-btn:active {
  transform: scale(0.95);
}

/* Estado desabilitado (primeiro e último slide) */
.nav-arrow-btn.disabled {
  opacity: 0.2;
  pointer-events: none;
  cursor: default;
  border-color: rgba(255, 255, 255, 0.05);
}

/* Responsividade das Setas */
@media (max-width: 768px) {
  .vertical-nav-arrows {
    right: 16px;
    gap: 8px;
  }

  .nav-arrow-btn {
    width: 36px;
    height: 36px;
  }
}

/* ==========================================================================
   DIREÇÃO DINÂMICA DO TEXTO DO SLIDE 0 (PORTRAIT VS LANDSCAPE)
   ========================================================================== */
.direction-abaixo {
  display: none;
}

.direction-ao-lado {
  display: inline;
}

/* Quando estiver em modo Retrato (Vertical) em mobile ou tablets */
@media (max-width: 992px) and (orientation: portrait) {
  .direction-ao-lado {
    display: none;
  }
  
  .direction-abaixo {
    display: inline;
  }
}

/* ==========================================================================
   BOTÃO DE LOGOUT DO PORTAL (CANTO SUPERIOR DIREITO)
   ========================================================================== */
.portal-logout-btn {
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 9999; /* Fica acima de tudo, inclusive dos slides */
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 20, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  outline: none;
}

.portal-logout-btn:hover {
  background: rgba(30, 30, 30, 0.75);
  border-color: rgba(229, 255, 3, 0.4); /* Leve borda amarela neon */
  color: #E5FF03; /* Texto/ícone amarelo neon de saída */
  transform: scale(1.02);
}

.portal-logout-btn:active {
  transform: scale(0.98);
}

/* Oculta o botão de logout se o site estiver bloqueado */
body.locked .portal-logout-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Responsividade do Botão de Logout */
@media (max-width: 768px) {
  .portal-logout-btn {
    top: 16px;
    right: 16px;
    padding: 6px 10px;
    font-size: 11px;
  }
}
