/* === ESTILOS GLOBAIS === */
:root {
  --azul: #192A41;
  --dourado: #B49564;
  --offwhite: #F4F1EA;
  --header-h: 80px;
  /* JS pode atualizar dinamicamente */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--azul);
  color: var(--offwhite);
  font-family: 'Cinzel', serif;
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(25, 42, 65, 0.8);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px var(--dourado);
  padding: 0.25rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  font-family: 'Cinzel', serif;
  transition: background-color 0.3s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: transparent;
  background-image: linear-gradient(to bottom, #b49564, #fdeeb3, #a38554);
  -webkit-background-clip: text;
  background-clip: text;
}

.logo-img {
  height: 80px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  color: var(--offwhite);
  margin-left: 1rem;
  padding: 0.25rem 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
  text-transform: uppercase;
}

nav a:hover {
  color: var(--dourado);
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--offwhite);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--offwhite);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.btn {
  background-color: var(--dourado);
  color: var(--azul);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-family: 'Cinzel', serif;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  box-shadow: 0 0 30px var(--dourado);
  transform: scale(1.05);
}

.footer {
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid rgba(180, 149, 100, 0.2);
  font-family: 'Libre Baskerville', serif;
  position: relative;
  z-index: 2;
  color: transparent;
  background-image: linear-gradient(to bottom, #b49564, #fdeeb3, #a38554);
  -webkit-background-clip: text;
  background-clip: text;
}

.footer .company-credit {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* === ANIMAÇÕES E EFEITOS GLOBAIS === */
@keyframes gentleFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 8px var(--dourado);
  }

  50% {
    box-shadow: 0 0 20px var(--dourado);
  }
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-style: italic;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* === ESTILOS DA PÁGINA INDEX === */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--header-h) 2rem 2rem;
  /* ajustado: remove "+ 1rem" para encostar no header */
  color: var(--dourado);
  font-family: 'Cinzel', serif;
  overflow: hidden;
}

.hero-content {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero h1 span {
  display: inline-block;
  opacity: 0;
  animation: gentleFadeIn 2s ease-out forwards;
}

.hero p {
  max-width: 700px;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-family: 'Libre Baskerville', serif;
  color: var(--offwhite);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  font-style: italic;
  opacity: 0;
  animation: gentleFadeIn 1.5s ease-out forwards;
  animation-delay: 1.2s;
}

.hero .btn {
  opacity: 0;
  animation: gentleFadeIn 1.5s ease-out forwards, pulseGlow 3s infinite 2s;
  animation-delay: 1.6s;
}

.sobre-nos-section {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
  background-image: url('fundofotos.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--offwhite);
}

.sobre-nos-card {
  background-color: rgba(244, 241, 234, 0.88);
  border: 2px solid var(--dourado);
  border-radius: 12px;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  font-family: 'Libre Baskerville', serif;
  color: var(--azul);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sobre-nos-card h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--dourado);
  grid-column: 1 / -1;
}

.sobre-nos-card p {
  margin-bottom: 1.5rem;
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.8;
}

.sobre-nos-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: justify;
}

#depoimentos {
  background-image: url('fundofotos1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  border: 2px solid var(--dourado);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  font-family: 'Libre Baskerville', serif;
  color: var(--offwhite);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.depoimentos {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.depoimentos h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--dourado);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}

.step {
  background-color: rgba(244, 241, 234, 0.95);
  border: 2px solid var(--dourado);
  border-radius: 12px;
  padding: 1.5rem;
  width: 300px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  font-family: 'Libre Baskerville', serif;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  color: var(--azul);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(180, 149, 100, 0.6);
}

.step h3 {
  color: var(--azul);
  margin-bottom: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
}

.step p {
  font-style: italic;
  flex-grow: 1;
  font-size: 0.9rem;
}

/* === VÍDEO DE FUNDO === */
.video-background-container {
  position: sticky;
  /* AJUSTE: sticky dentro da .hero */
  top: 0;
  /* AJUSTE: começa no topo da .hero (que já tem padding = header) */
  left: 0;
  width: 100%;
  height: calc(100dvh - var(--header-h));
  overflow: hidden;
  z-index: 0;
  /* atrás do conteúdo da hero */
  background: #000;
  pointer-events: none;
  /* não bloqueia cliques no conteúdo */
  will-change: transform;
}

#video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(25, 42, 65, 0.5);
  z-index: 2;
}

/* === PÁGINA PLANOS === */
body.planos-body {
  background-color: var(--offwhite);
  color: var(--azul);
}

.planos-body .section-wrapper {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.planos-body .section-wrapper:first-of-type {
  padding-top: 8rem;
}

.planos-body .section-wrapper h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--azul);
}

.planos-body .subtitle {
  color: var(--azul);
}

.planos-body .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  max-width: 1050px;
  margin: 0 auto;
}

.planos-body .card {
  background-color: white;
  border: 2px solid var(--dourado);
  border-radius: 12px;
  padding: 1.5rem;
  width: 300px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.planos-body .card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(180, 149, 100, 0.6);
}

.planos-body .icone-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(180, 149, 100, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1rem;
}

.planos-body .icone-passo {
  font-size: 2rem;
  color: var(--azul);
}

.planos-body .card h3 {
  color: var(--azul);
  margin-bottom: 1rem;
  font-family: 'Cinzel', serif;
  text-align: center;
  min-height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.planos-body #funciona .card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
}

.planos-body #planos .card h3 {
  line-height: 1.2;
  flex-direction: column;
}

.planos-body .capitulo-numero {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
}

.planos-body .capitulo-nome {
  display: block;
  font-size: 1.4rem;
  font-weight: 400;
}

.planos-body .card p {
  flex-grow: 1;
  font-size: 0.9rem;
}

.planos-body .card p.plano-valor {
  flex-grow: 0;
  color: var(--azul);
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.planos-body .card .btn {
  display: block;
  margin-top: auto;
  width: 100%;
  padding: 0.75rem 1rem;
}

.soon-banner {
  position: absolute;
  top: 18px;
  right: -34px;
  background-color: var(--dourado);
  color: var(--azul);
  padding: 5px 40px;
  transform: rotate(45deg);
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1;
  text-align: center;
}

.card.unavailable .btn {
  background-color: #999;
  cursor: not-allowed;
  box-shadow: none;
}

.card.unavailable .btn:hover {
  transform: none;
}

.plano-descricao {
  text-align: left;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  flex-grow: 1;
}

.plano-descricao strong {
  font-family: 'Cinzel', serif;
  color: var(--dourado);
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.plano-descricao ul {
  list-style-type: none;
  padding-left: 0;
}

.plano-descricao ul li::before {
  content: '•';
  color: var(--dourado);
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.plano-descricao .observacao {
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* === PÁGINA GALERIA === */
.galeria {
  padding: 8rem 2rem 4rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.galeria h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: transparent;
  background-image: linear-gradient(to bottom, #b49564, #fdeeb3, #a38554);
  -webkit-background-clip: text;
  background-clip: text;
}

.galeria .subtitle {
  color: var(--offwhite);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.interactive-comparison {
  position: relative;
  overflow: hidden;
  cursor: col-resize;
  border: 2px solid var(--dourado);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  aspect-ratio: 1 / 1;
}

.interactive-comparison>div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.interactive-comparison img,
.interactive-comparison video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.comparison-after {
  width: 50%;
  overflow: hidden;
}

.comparison-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.comparison-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(25, 42, 65, 0.5);
}

/* === PÁGINA CONTATO === */
.contato {
  padding: 8rem 2rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contato h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dourado);
}

.contato .subtitle {
  color: var(--offwhite);
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: rgba(244, 241, 234, 0.1);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(180, 149, 100, 0.2);
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-info {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.contact-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--dourado);
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Libre Baskerville', serif;
  text-transform: uppercase;
}

form input,
form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--dourado);
  border-radius: 8px;
  background-color: rgba(244, 241, 234, 0.1);
  color: var(--offwhite);
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
}

form input::placeholder,
form textarea::placeholder {
  color: var(--offwhite);
  opacity: 0.7;
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

form button {
  background-color: var(--dourado);
  color: var(--azul);
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
}

form button:hover {
  box-shadow: 0 0 20px var(--dourado);
  transform: scale(1.05);
}

.follow-us {
  padding: 2rem 2rem 4rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.follow-us h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--dourado);
}

.follow-links-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.follow-links-icons a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.follow-links-icons a:hover {
  transform: scale(1.15);
}

.follow-links-icons img {
  width: 48px;
  height: 48px;
}

#form-status {
  margin-top: 1rem;
  font-family: 'Libre Baskerville', serif;
  color: var(--dourado);
  font-size: 1.1rem;
  text-align: center;
}

/* === BOTÕES FLUTUANTES === */
.floating-buttons-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1050;
}

.fab {
  width: 60px;
  height: 60px;
  background-color: var(--azul);
  border: 2px solid var(--dourado);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  background-color: var(--dourado);
}

.fab img {
  width: 32px;
  height: 32px;
}

/* === BOTÃO DE MÚSICA === */
.music-toggle-btn {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  right: 20px;
  z-index: 1002;
  background-color: rgba(25, 42, 65, 0.5);
  border: 1px solid var(--dourado);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.music-toggle-btn:hover {
  opacity: 1;
  background-color: rgba(180, 149, 100, 0.2);
}

.music-toggle-btn img {
  width: 20px;
  height: 20px;
}

/* === INTERFACE DO CHATBOT === */
.chat-container {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 350px;
  max-width: 90%;
  background-color: var(--azul);
  border: 2px solid var(--dourado);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  z-index: 1100;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-container.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.chat-header {
  background-color: rgba(180, 149, 100, 0.2);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--dourado);
}

.chat-header h3 {
  font-family: 'Cinzel', serif;
  color: var(--offwhite);
  font-size: 1.2rem;
}

.close-chat-btn {
  background: none;
  border: none;
  color: var(--offwhite);
  font-size: 1.5rem;
  cursor: pointer;
}

.chat-body {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  height: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-message {
  max-width: 80%;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-family: 'Libre Baskerville', serif;
  font-size: 0.9rem;
}

.chat-message.received {
  background-color: rgba(244, 241, 234, 0.1);
  align-self: flex-start;
}

.chat-message.sent {
  background-color: var(--dourado);
  color: var(--azul);
  align-self: flex-end;
}

.chat-footer {
  display: flex;
  padding: 0.5rem;
  border-top: 1px solid var(--dourado);
}

#chat-input {
  flex-grow: 1;
  background: none;
  border: none;
  color: var(--offwhite);
  padding: 0.5rem;
  font-family: 'Libre Baskerville', serif;
}

#chat-input:focus {
  outline: none;
}

#send-chat-btn {
  background-color: var(--dourado);
  color: var(--azul);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-family: 'Cinzel', serif;
  font-weight: bold;
  cursor: pointer;
}

/* === PÁGINA ADMIN === */
.admin-body {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background-color: #0d1117;
  color: var(--offwhite);
}

.admin-chat-layout {
  display: flex;
  width: 100%;
  height: 100%;
}

.chat-sidebar {
  width: 320px;
  background-color: #161b22;
  border-right: 1px solid rgba(180, 149, 100, 0.2);
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(180, 149, 0, 0.2);
}

.logo-admin {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dourado);
  text-align: center;
}

.chat-list {
  flex-grow: 1;
  overflow-y: auto;
}

.chat-list-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(180, 149, 100, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-list-item:hover {
  background-color: rgba(180, 149, 100, 0.05);
}

.chat-list-item.active {
  background-color: var(--azul);
  border-right: 3px solid var(--dourado);
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #6e7681;
  flex-shrink: 0;
}

.status-indicator.online {
  background-color: #238636;
}

.chat-details {
  flex-grow: 1;
  overflow: hidden;
}

.chat-user {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.chat-preview {
  font-size: 0.9rem;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-time {
  font-size: 0.8rem;
  color: #6e7681;
  flex-shrink: 0;
}

.chat-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.main-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(180, 149, 100, 0.2);
  background-color: #161b22;
}

.main-header h3 {
  font-size: 1.2rem;
}

.chat-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.chat-messages {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.no-chat-selected {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #6e7681;
}

.chat-input-area {
  padding: 1rem;
  border-top: 1px solid rgba(180, 149, 100, 0.2);
  display: flex;
  gap: 1rem;
  background-color: #161b22;
}

#admin-chat-input {
  flex-grow: 1;
  background-color: #0d1117;
  border: 1px solid rgba(180, 149, 100, 0.3);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--offwhite);
}

#admin-send-btn {
  background-color: var(--dourado);
  color: var(--azul);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-family: 'Cinzel', serif;
  font-weight: bold;
  cursor: pointer;
}

/* === PÁGINA CAMPANHA (NOVO LAYOUT DIA DOS PAIS) === */
.campaign-body-new {
  font-family: 'Libre Baskerville', serif;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.campaign-container {
  display: flex;
  width: 100vw;
  min-height: 100dvh;
}

.campaign-image-panel {
  flex-basis: 50%;
  background-image: url('senhordiadospais.png');
  background-size: cover;
  background-position: center top;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  color: white;
  text-align: center;
}

.campaign-image-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.text-overlay {
  position: relative;
  z-index: 1;
  max-width: 450px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  padding-top: 15vh;
}

.text-overlay h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.text-overlay h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.text-overlay p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.text-overlay .highlight-text {
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 2rem;
}

.campaign-details-panel {
  flex-basis: 50%;
  background-color: var(--azul);
  color: var(--offwhite);
  padding: 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.campaign-details-panel h4 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--dourado);
  font-weight: 600;
}

.campaign-details-panel h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  color: var(--offwhite);
  margin-bottom: 0.5rem;
}

.campaign-details-panel .price {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--offwhite);
  margin-bottom: 2rem;
}

.campaign-details-panel .description {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.details-section {
  font-size: 0.95rem;
  line-height: 1.6;
}

.details-section strong {
  font-family: 'Cinzel', serif;
  color: var(--dourado);
  font-size: 1rem;
}

.details-section ul {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.details-section ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.details-section ul li::before {
  content: '•';
  color: var(--dourado);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.entrega-rapida {
  font-weight: bold;
  text-align: center;
  margin-top: 2rem;
  font-family: 'Libre Baskerville', serif;
}

.cta-text {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  text-align: center;
  margin: 2rem 0 0.5rem 0;
  line-height: 1.8;
}

.cta-subtext {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 0;
  opacity: 0.9;
}

.btn-campaign {
  padding: 0.8rem 2.5rem;
  font-size: 1.1rem;
  text-align: center;
  align-self: center;
}

/* === PÁGINA DE PAGAMENTO (CONFIRMACAO) === */
.payment-section {
  padding: 8rem 2rem 4rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 5;
}

.summary-box {
  background-color: rgba(244, 241, 234, 0.1);
  border: 1px solid var(--dourado);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.summary-box h1 {
  font-size: 2rem;
  color: var(--dourado);
  margin-bottom: 0.5rem;
}

.summary-box .summary-subtitle {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--offwhite);
}

.summary-box .summary-details {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
}

.summary-box .summary-details h2 {
  font-size: 1.5rem;
  color: var(--dourado);
}

.summary-box .summary-price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--offwhite);
  margin-top: 0.5rem;
}

#payment-status {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-family: 'Libre Baskerville', serif;
  color: var(--dourado);
  min-height: 25px;
}

#payment-result-container {
  background-color: rgba(244, 241, 234, 0.1);
  border: 1px solid var(--dourado);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

#payment-result-container.hidden {
  display: none;
}

#payment-result-container h2 {
  font-size: 1.8rem;
  color: var(--dourado);
  margin-bottom: 1rem;
}

#payment-result-container p {
  font-family: 'Libre Baskerville', serif;
  margin-bottom: 1.5rem;
}

.pix-qrcode {
  margin: 0 auto 1.5rem;
  border: 4px solid var(--offwhite);
  border-radius: 8px;
  max-width: 200px;
}

.pix-code-input {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--dourado);
  color: var(--offwhite);
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* === PÁGINA DO FORMULÁRIO DE HOMENAGEM === */
.form-section {
  padding: 8rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  text-align: center;
}

.form-section h1 {
  font-size: 2.5rem;
  color: var(--dourado);
  margin-bottom: 1rem;
}

.form-subtitle {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.plano-info {
  background-color: rgba(244, 241, 234, 0.1);
  border: 1px solid var(--dourado);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.plano-info p {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
}

.plano-info h3 {
  font-size: 1.5rem;
  color: var(--dourado);
  margin-top: 0.5rem;
}

.homenagem-form {
  text-align: left;
}

.form-box {
  background-color: rgba(244, 241, 234, 0.1);
  border: 1px solid var(--dourado);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.form-box h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--dourado);
  text-align: center;
  margin-bottom: 2rem;
}

.homenagem-form .form-group {
  margin-bottom: 1.5rem;
}

.homenagem-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Libre Baskerville', serif;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.homenagem-form input[type="text"],
.homenagem-form input[type="email"],
.homenagem-form input[type="tel"],
.homenagem-form input[type="date"],
.homenagem-form textarea,
.homenagem-form input[type="file"],
.homenagem-form select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--dourado);
  border-radius: 8px;
  background-color: rgba(244, 241, 234, 0.1);
  color: var(--offwhite);
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
}

.homenagem-form hr {
  border: none;
  border-top: 1px solid rgba(180, 149, 100, 0.3);
  margin: 2rem 0;
}

.homenagem-form .btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

.select-wrapper {
  position: relative;
  display: block;
}

.select-wrapper select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2rem;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 0;
  height: 0;
  margin-top: -3px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--dourado);
  pointer-events: none;
}

.homenagem-form select option {
  background-color: var(--azul);
  color: var(--offwhite);
}

.form-instruction {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--dourado);
  background-color: rgba(0, 0, 0, 0.15);
  padding: 0.75rem;
  border-radius: 8px;
  margin: -0.5rem 0 1.5rem 0;
  text-align: center;
}

.card-preview-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.card-preview-container img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--dourado);
}

/* === PÁGINAS DE AGRADECIMENTO (OBRIGADO/SUCESSO) === */
.agradecimento-body {
  background-color: var(--azul);
  color: var(--offwhite);
}

.agradecimento-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: calc(var(--header-h) + 2rem) 2rem 2rem;
  text-align: center;
}

.agradecimento-card {
  background-color: rgba(244, 241, 234, 0.1);
  border: 1px solid var(--dourado);
  border-radius: 12px;
  padding: 3rem;
  max-width: 600px;
  animation: gentleFadeIn 1s ease-out;
}

.agradecimento-card h1 {
  font-size: 2.5rem;
  color: var(--dourado);
  margin-bottom: 1rem;
}

.agradecimento-card .subtitle {
  font-size: 1.2rem;
  color: var(--offwhite);
  margin-bottom: 2rem;
}

.agradecimento-card p {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  line-height: 1.8;
}

.icone-agradecimento {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

/* === RESPONSIVIDADE E OTIMIZAÇÕES MOBILE === */
@media (max-width: 900px) and (orientation: landscape) {
  #video-bg {
    object-fit: contain;
    background-color: #000;
  }

  .hero {
    min-height: calc(100dvh - var(--header-h));
    padding: calc(var(--header-h) + 0.5rem) 1rem 1rem;
  }

  .hero-content {
    padding-top: 0;
    gap: .6rem;
  }

  .hero h1 {
    font-size: clamp(1.2rem, 5vw, 2.2rem);
    line-height: 1.15;
  }

  .hero p {
    font-size: clamp(.8rem, 2.4vw, 1rem);
    line-height: 1.35;
    margin-bottom: .8rem;
  }

  .hero .btn {
    padding: .55rem 1.2rem;
    font-size: clamp(.8rem, 2.2vw, 1rem);
  }
}

@media (max-width: 768px) {

  /* --- Menu Hamburguer --- */
  .nav-toggle {
    display: block;
  }

  .music-toggle-btn {
    right: 70px;
    /* mantém distância do hamburguer */
    top: calc(var(--header-h) + 8px);
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(25, 42, 65, 0.95);
    flex-direction: column;
    padding: 1rem;
  }

  nav.active {
    display: flex;
  }

  nav a {
    margin: 0.5rem 0;
    font-size: 1rem;
    text-align: center;
    padding: 0.75rem 0;
  }

  /* Ajustes de Layout e Fonte para a seção Hero */
  .hero-content {
    margin-top: 0;
    padding: 1.5rem 1rem;
    justify-content: center;
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  .hero .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    text-align: center;
  }

  /* Ajuste do layout da seção "Sobre Nós" para 1 coluna */
  .sobre-nos-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sobre-nos-section {
    padding: 2rem 1rem;
  }

  .sobre-nos-card {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  .sobre-nos-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .sobre-nos-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
  }

  /* Ajuste dos cards de depoimento */
  .step {
    width: 100%;
    max-width: 350px;
    padding: 1.2rem;
    margin: 0 0.5rem;
  }

  .step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .step p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .depoimentos {
    padding: 2rem 1rem;
  }

  .depoimentos h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .steps {
    gap: 1.5rem;
  }

  /* Desativa o efeito parallax que é pesado para celulares */
  .sobre-nos-section,
  #depoimentos {
    background-attachment: scroll;
  }

  /* Ajustes para a nova página de campanha em telas menores */
  .campaign-container {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }

  .campaign-image-panel,
  .campaign-details-panel {
    flex-basis: auto;
  }

  .campaign-image-panel {
    min-height: 60vh;
  }

  .campaign-details-panel {
    padding: 2rem;
  }

  /* Ajustes gerais de fonte para mobile */
  body {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  h1,
  h2,
  h3 {
    line-height: 1.2;
  }

  /* Ajuste do header para mobile */
  header {
    padding: 0.25rem 1rem;
  }

  .logo-img {
    height: 60px;
  }

  /* Melhorias na navegação mobile */
  nav {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(180, 149, 100, 0.3);
  }

  /* Ajuste do footer para mobile */
  .footer {
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {

  /* Ajustes para telas muito pequenas */
  .hero h1 {
    font-size: 1.5rem;
    padding: 0 0.5rem;
  }

  .hero p {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  .hero .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    width: 90%;
    max-width: 280px;
  }

  .sobre-nos-card {
    padding: 1rem;
    margin: 0 0.25rem;
  }

  .sobre-nos-card h2 {
    font-size: 1.8rem;
  }

  .sobre-nos-card p {
    font-size: 0.9rem;
  }

  .step {
    padding: 1rem;
    margin: 0 0.25rem;
  }

  .depoimentos h2 {
    font-size: 1.8rem;
  }

  .step h3 {
    font-size: 1rem;
  }

  .step p {
    font-size: 0.85rem;
  }

  /* Ajuste do header para telas muito pequenas */
  .logo-img {
    height: 50px;
  }

  header {
    padding: 0.25rem 0.75rem;
  }

  .music-toggle-btn {
    right: 60px;
    top: calc(var(--header-h) + 5px);
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .video-background-container {
    background-image: url('images/fundo-mobile.jpg');
    background-size: cover;
    background-position: center;
  }

  #video-bg {
    display: none;
  }

  /* Otimizações específicas para orientação retrato */
  .hero {
    min-height: calc(100dvh - var(--header-h));
    padding: calc(var(--header-h) + 1rem) 1rem 1rem;
  }

  .hero-content {
    justify-content: flex-start;
    padding-top: 2rem;
  }
}

@supports (-webkit-touch-callout: none) {

  html,
  body {
    height: -webkit-fill-available;
  }

  .campaign-container {
    min-height: -webkit-fill-available;
  }
}

/* === ESTILOS ESPECÍFICOS PARA DISPOSITIVOS MÓVEIS === */
.mobile-device {
  /* Otimizações gerais para mobile */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.small-mobile {
  /* Otimizações para telas muito pequenas */
  font-size: 0.85rem;
}

.touch-device {
  /* Estilos específicos para dispositivos touch */
  cursor: pointer;
}

.touch-device .btn,
.touch-device nav a,
.touch-device .step,
.touch-device .sobre-nos-card {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.slow-connection {
  /* Otimizações para conexões lentas */
  background-attachment: scroll !important;
}

.slow-connection video {
  display: none;
}

.slow-connection .particle-canvas {
  display: none;
}

/* === MELHORIAS DE PERFORMANCE PARA MOBILE === */
@media (max-width: 768px) {

  /* Reduz a complexidade de animações em mobile */
  * {
    animation-duration: 0.3s !important;
    transition-duration: 0.3s !important;
  }

  /* Otimiza o scroll em mobile */
  html {
    scroll-behavior: smooth;
  }

  /* Melhora a legibilidade em mobile */
  .hero h1,
  .sobre-nos-card h2,
  .depoimentos h2 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  }

  /* Ajusta espaçamentos para melhor toque */
  .btn,
  nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Otimiza cards para mobile */
  .step,
  .sobre-nos-card {
    touch-action: pan-y;
  }

  /* Melhora a navegação mobile */
  nav.active {
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* === OTIMIZAÇÕES PARA TELAS MUITO PEQUENAS === */
@media (max-width: 480px) {
  .mobile-device {
    font-size: 0.9rem;
  }

  /* Reduz ainda mais as animações */
  .hero h1 span {
    animation-duration: 1s !important;
  }

  /* Otimiza botões para telas pequenas */
  .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  /* Melhora a legibilidade dos textos */
  .sobre-nos-card p,
  .step p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Ajusta espaçamentos para telas pequenas */
  .hero-content {
    padding: 1rem 0.5rem;
  }

  .sobre-nos-section,
  .depoimentos {
    padding: 1.5rem 0.5rem;
  }
}

/* === MELHORIAS DE ACESSIBILIDADE PARA MOBILE === */
@media (max-width: 768px) {

  /* Aumenta área de toque para elementos interativos */
  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }

  /* Melhora o contraste em mobile */
  .sobre-nos-card {
    background-color: rgba(244, 241, 234, 0.95);
  }

  .step {
    background-color: rgba(244, 241, 234, 0.98);
  }

  /* Adiciona indicadores visuais para elementos interativos */
  .btn:active,
  nav a:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  /* Melhora a visibilidade do menu mobile */
  nav.active {
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--dourado);
  }
}