/* style.css - Correção de Layout Gemini */

:root {
  --bg-body: #131314;
  --bg-sidebar: #1e1f20;
  --bg-input: #282a2c;
  --text-primary: #e3e3e3;
  --text-secondary: #9aa0a6;
  --hover-color: #37393b;
  --accent-color: #4285f4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  display: flex;
  height: 100vh; /* Altura fixa da tela */
  overflow: hidden; /* Nada de scroll na janela principal */
}

/* --- SIDEBAR (Barra Lateral) --- */
.sidebar {
  width: 280px;
  background-color: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  padding: 20px 15px;
  transition: transform 0.3s ease;
  z-index: 100;
  flex-shrink: 0; /* Impede a sidebar de encolher */
}

@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    height: 100%;
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
}

.top-sidebar {
  margin-bottom: 30px;
}

.menu-btn,
#mobile-menu-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
}
.menu-btn:hover {
  background-color: var(--hover-color);
}

.new-chat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #1a1a1c;
  border: 1px solid #444746;
  color: var(--text-secondary);
  padding: 10px 15px;
  border-radius: 20px;
  margin-top: 20px;
  cursor: pointer;
  width: 140px;
  transition: 0.2s;
}
.new-chat-btn:hover {
  background-color: var(--hover-color);
  color: var(--text-primary);
}

.history-list {
  flex: 1;
  overflow-y: auto;
}
.history-title {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding-left: 10px;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-radius: 20px;
  cursor: pointer;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-item:hover {
  background-color: var(--hover-color);
}

/* --- MAIN CONTENT (Área Principal) --- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%; /* Ocupa 100% da altura disponível */
}

.mobile-header {
  display: none;
  padding: 15px;
  align-items: center;
  gap: 15px;
}
@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }
}

/* --- ÁREA DE CHAT (Onde a mágica do scroll acontece) --- */
.chat-container {
  flex: 1; /* Ocupa todo o espaço sobrando acima do input */
  overflow-y: auto; /* Habilita scroll SÓ AQUI */
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centraliza as mensagens na tela */
  scroll-behavior: smooth;
  width: 100%;
}

/* Container interno das mensagens para limitar a largura (Igual Gemini) */
.chat-container > div {
  width: 100%;
  max-width: 850px; /* Largura máxima "confortável" para leitura */
  margin-bottom: 20px; /* Espaço entre mensagens */
}

/* Imagens dentro do chat */
.chat-container img {
  max-width: 100%;
  max-height: 400px; /* Impede a imagem de ficar gigante na vertical */
  object-fit: contain; /* Ajusta sem distorcer */
  border-radius: 12px;
  background-color: #000;
  display: block;
  margin-top: 10px;
}

.welcome-message {
  text-align: center;
  margin-top: 10vh;
}
.welcome-message h1 {
  font-size: 56px;
  background: linear-gradient(90deg, #4285f4, #9b72cb, #d96570);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- INPUT AREA (Fixa embaixo) --- */
.input-area {
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-body);
  flex-shrink: 0; /* Impede o input de ser esmagado */
}

.input-box {
  width: 100%;
  max-width: 850px; /* Mesma largura do chat */
  background-color: var(--bg-input);
  border-radius: 30px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: 0.2s;
}

.input-box:focus-within {
  background-color: #35363a; /* Highlight sutil ao digitar */
}

.input-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 16px;
  padding: 5px 0;
}

.icon {
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
}
.icon:hover {
  background-color: var(--hover-color);
}
.send-btn {
  color: var(--accent-color);
}

.disclaimer {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 10px;
  text-align: center;
}

/* --- MODAL (Visualizador) --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  animation: zoom 0.3s;
}
@keyframes zoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* --- Avatar da Misty --- */
.ai-avatar {
  width: 38px; /* Tamanho fixo */
  height: 38px;
  border-radius: 50%; /* Deixa redondo */
  object-fit: cover; /* Garante que a img não estique */
  flex-shrink: 0; /* Impede que a imagem esmague se o texto for grande */
  border: 1px solid #444746; /* Borda sutil para destacar do fundo escuro */
}

/* --- Cartão de Boas-Vindas da Misty --- */
.misty-greeting-card {
  display: inline-flex; /* Ajusta ao tamanho do conteúdo */
  align-items: center; /* Centraliza verticalmente foto e texto */
  gap: 20px; /* Espaço entre a foto e o texto */
  background-color: #1e1f20; /* Fundo levemente mais claro que o site */
  padding: 20px 30px;
  border-radius: 24px;
  border: 1px solid #444746;
  margin-top: 15vh; /* Distância do topo */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Sombra suave */
}

.greeting-avatar {
  width: 80px; /* Foto maior que a do chat */
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #4285f4; /* Borda azul para destaque */
}

.greeting-text {
  text-align: left; /* Garante que o texto alinhe a esquerda */
}

.greeting-text h2 {
  font-size: 24px;
  background: linear-gradient(90deg, #4285f4, #9b72cb); /* Gradiente no nome */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
}

.greeting-text p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* --- TELA DE LOGIN --- */
.login-body {
  background-color: var(--bg-body);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-card {
  background-color: var(--bg-sidebar);
  padding: 40px;
  border-radius: 24px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  border: 1px solid #444746;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.login-card h2 {
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 500;
}

.login-input-group {
  margin-bottom: 15px;
  text-align: left;
}

.login-input-group label {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 5px;
}

.login-input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background-color: var(--bg-input);
  border: 1px solid transparent;
  color: white;
  outline: none;
  transition: 0.2s;
}

.login-input:focus {
  border-color: var(--accent-color);
  background-color: #303134;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  border-radius: 20px;
  border: none;
  background-color: var(--accent-color);
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.toggle-link {
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
}

.toggle-link span {
  color: var(--accent-color);
  text-decoration: underline;
}

.error-msg {
  color: #ff8b8b;
  font-size: 13px;
  margin-bottom: 15px;
  display: none; /* Oculto por padrão */
}

/* --- Botão de Rolls --- */
.rolls-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: #1e1f20;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #444746;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
  margin-right: 10px; /* Espaço do input */
}

.rolls-badge:hover {
  background-color: #303134;
}

/* Estado Ativo (Selecionado) */
.rolls-badge.active {
  background-color: rgba(66, 133, 244, 0.2);
  border-color: #4285f4;
  color: #8ab4f8;
  box-shadow: 0 0 10px rgba(66, 133, 244, 0.2);
}

/* --- Aviso Central de Modo Pedido --- */
.mode-warning {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.85);
  color: #e3e3e3;
  padding: 15px 25px;
  border-radius: 50px;
  border: 1px solid #ff8b8b;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0; /* Invisível por padrão */
  pointer-events: none; /* Não atrapalha cliques */
  transition: opacity 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.mode-warning.visible {
  opacity: 1;
}

/* --- ESTILO DOS CARDS (TICKETS) DE PEDIDOS --- */

/* Grade que organiza os cards lado a lado */
.orders-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(280px, 1fr)
  ); /* Cria colunas automáticas */
  gap: 25px;
  padding-top: 20px;
}

/* O Cartão (Ticket) em si */
.order-card {
  background-color: #1e1f20;
  border: 1px solid #444746;
  border-radius: 16px;
  overflow: hidden; /* Garante que nada saia do card */
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.order-card:hover {
  transform: translateY(-5px); /* Efeito de levantar ao passar o mouse */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
  border-color: #4285f4;
}

/* Cabeçalho do Card (Nome e Status) */
.order-header {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #252628;
  border-bottom: 1px solid #303134;
}

.order-user {
  font-weight: bold;
  color: #e3e3e3;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-badge {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 8px;
  background-color: #fbbc04; /* Amarelo para pendente */
  color: #000;
}

/* A IMAGEM CONTROLADA */
.order-img {
  width: 100%;
  height: 180px; /* Altura FIXA (O segredo para não estourar) */
  object-fit: cover; /* Corta a imagem para caber sem esticar */
  object-position: center;
  cursor: pointer;
  transition: opacity 0.2s;
  display: block; /* Remove espaços brancos fantasmas */
}

.order-img:hover {
  opacity: 0.8;
}

/* Corpo do Card (Texto e Botão) */
.order-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1; /* Ocupa o resto do espaço */
  gap: 10px;
}

.order-prompt {
  font-size: 13px;
  color: #9aa0a6;
  background: #131314;
  padding: 10px;
  border-radius: 8px;
  height: 80px; /* Altura fixa pro texto */
  overflow-y: auto; /* Scroll se o texto for grande */
  margin-bottom: 10px;
}

.btn-download {
  text-decoration: none;
  background-color: #4285f4;
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: auto; /* Empurra o botão pro final */
}

.btn-download:hover {
  background-color: #3367d6;
}

/* --- ABAS DO ADMIN --- */
.tabs-container {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid #303134;
  padding-bottom: 15px;
}

.tab-btn {
  background: transparent;
  border: 1px solid #444746;
  color: #9aa0a6;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.tab-btn:hover {
  background-color: #303134;
  color: #e3e3e3;
}

/* Estado Ativo (Aba Selecionada) */
.tab-btn.active {
  background-color: #4285f4;
  border-color: #4285f4;
  color: white;
  font-weight: bold;
}

/* Botão de Finalizar (Aparece no Card) */
.btn-finish {
  background-color: #34a853; /* Verde */
  color: white;
  border: none;
  padding: 10px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  width: 100%;
  transition: 0.2s;
}
.btn-finish:hover {
  opacity: 0.9;
}

/* Imagem final entregue pela Misty no Chat */
.chat-img-final {
  max-width: 100%;
  border-radius: 12px;
  border: 2px solid #4285f4; /* Borda azul para destacar que é a entrega */
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
  cursor: pointer;
  transition: transform 0.2s;
}
.chat-img-final:hover {
  transform: scale(1.02);
}

/* --- GALERIA DE ARTES --- */

/* --- GALERIA ESTILO "MEUS ITENS" --- */

.gallery-container {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 40px; /* Mais espaço nas bordas */
  width: 100%;
}

.gallery-title {
  font-size: 24px;
  font-weight: 600;
  color: #e3e3e3;
  margin-bottom: 25px;
}

.gallery-grid {
  display: grid;
  /* Cria colunas automáticas de no mínimo 150px (tamanho tipo ícone) */
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px; /* Espaço entre os itens */
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1; /* FORÇA SER QUADRADO */
  border-radius: 20px; /* Bordas bem arredondadas igual ao exemplo */
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background-color: #000;
  transition: transform 0.2s, border-color 0.2s;
}

.gallery-item:hover {
  transform: scale(1.03);
  border-color: #4285f4; /* Borda azul ao passar o mouse */
  z-index: 2;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Preenche o quadrado sem distorcer */
  display: block;
}

/* Overlay que aparece ao passar o mouse (Opção de baixar) */
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0; /* Invisível por padrão */
  height: 50%;
  transition: opacity 0.2s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1; /* Aparece ao passar o mouse */
}

.btn-download-icon {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: 0.2s;
}

.btn-download-icon:hover {
  background-color: #4285f4;
}

/* --- TELA DA LOJA --- */
.store-container {
  text-align: center; /* Centraliza titulos e subtitulos */
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto; /* Centraliza a div na tela */
}

.store-title {
  font-size: 28px;
  margin-bottom: 10px;
  color: white;
}
.store-subtitle {
  color: #9aa0a6;
  margin-bottom: 40px;
}

/* Grid de Planos */
.plans-grid {
  display: flex;
  justify-content: center; /* Centraliza os cards horizontalmente */
  flex-wrap: wrap; /* Quebra linha se a tela for pequena */
  gap: 20px;
  margin-top: 30px;
}

.plan-avatar {
  width: 80px; /* Tamanho controlado (ajuste se quiser maior) */
  height: 80px;
  object-fit: contain; /* Não distorce a imagem */
  margin-bottom: 15px; /* Espaço entre a imagem e o título */
  filter: drop-shadow(
    0 4px 6px rgba(0, 0, 0, 0.2)
  ); /* Sombra leve atrás do PNG */
}

.plan-card {
  background: #1e1f20;
  border: 2px solid #444746;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-8px);
  border-color: #fbbc04; /* Amarelo Ouro */
  background: #252628;
}

/* Destaque (Plano do Meio) */
.plan-card.featured {
  border-color: #4285f4;
  background: linear-gradient(180deg, #1e1f20 0%, #2a2b30 100%);
  box-shadow: 0 0 20px rgba(66, 133, 244, 0.2);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #4285f4;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
}

.plan-icon {
  font-size: 40px;
  margin-bottom: 15px;
}
.plan-card h3 {
  font-size: 20px;
  color: #e3e3e3;
  margin-bottom: 10px;
}
.plan-price {
  font-size: 32px;
  font-weight: bold;
  color: white;
  margin-bottom: 5px;
}
.plan-rolls {
  color: #fbbc04;
  font-weight: bold;
  font-size: 16px;
}

/* Tela de Pix */
.qr-container {
  background: white;
  padding: 15px;
  border-radius: 15px;
  display: inline-block;
  margin: 20px 0;
}
.qr-image {
  width: 220px;
  height: 220px;
}

.copy-area {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.copy-area input {
  flex: 1;
  background: #282a2c;
  border: 1px solid #444746;
  color: #ccc;
  padding: 10px;
  border-radius: 8px;
  outline: none;
}
.btn-copy {
  background: #4285f4;
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.status-waiting {
  color: #fbbc04;
  font-size: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-cancel {
  background: transparent;
  color: #9aa0a6;
  border: 1px solid #444746;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
}
.btn-cancel:hover {
  color: white;
  border-color: white;
}

/* Animação girando */
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* --- VIGNETTE (Borda Escura) --- */
.vignette-overlay {
  position: fixed;
  inset: 0; /* Cobre a tela toda */
  z-index: -5; /* Fica ACIMA do background 3D (-10), mas ABAIXO do login */
  pointer-events: none; /* Deixa clicar através dela */

  /* Gradiente: Transparente no meio (0%) -> Preto nas pontas (100%) */
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.1) 0%,
    #000 100%
  );
}

/* --- BACKGROUND TOONA STYLE (CSS Puro) --- */

.bg-wrapper {
  position: absolute;
  inset: 0; /* Ocupa tudo (top, left, right, bottom: 0) */
  z-index: -10;
  overflow: hidden;
  pointer-events: none; /* Mouse ignora */
  background-color: #000; /* Fundo preto base */
}

/* O "plano" 3D inclinado */
.bg-perspective {
  position: relative;
  width: 95rem;
  height: 100%;
  opacity: 1;

  /* MUDANÇA AQUI: */
  /* 1. rotateZ mudei de -35deg para 35deg (positivo) */
  /* 2. Ajustei o translate X para -25% para centralizar melhor a inversão */
  transform: translate(-25%, -30%) rotateX(-50deg) rotateZ(35deg) scale(1.15);

  transform-style: preserve-3d;
  transition: opacity 0.3s ease-in-out;
}

/* Responsividade para telas grandes */
@media (min-width: 1536px) {
  .bg-perspective {
    /* MUDANÇA AQUI TAMBÉM (rotateZ positivo) */
    transform: translate(25%, -20%) rotateX(-50deg) rotateZ(35deg) scale(2.1);
  }
}

/* A grade de imagens */
.bg-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr); /* 8 Colunas */
  gap: 1.5rem; /* gap-6 do Tailwind (~24px) */
  position: absolute;
  inset: 0;
}

/* As imagens individuais */
.bg-item {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.3); /* contrast-130 do Tailwind */
  border-radius: 8px; /* Opcional, para ficar bonito */

  /* Configuração da Animação usando Variáveis */
  animation: oscillate var(--oscillate-duration, 30s) ease-in-out infinite
    alternate;
  will-change: transform; /* Otimiza a performance */
}

/* A Animação de Oscilação (Sobe e Desce) */
@keyframes oscillate {
  0% {
    transform: translateY(0);
  }
  100% {
    /* Usa a variável --oscillate-amplitude definida no HTML */
    transform: translateY(var(--oscillate-amplitude, -50px));
  }
}

/* --- LANDING PAGE / HOME (Estilo Toona) --- */

/* Fundo com "Blobs" de luz (Efeito Toona) */
.landing-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  background-color: #050505; /* Fundo quase preto */
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px); /* O desfoque que cria a luz */
  opacity: 0.4;
  animation: floatBlob 10s infinite alternate;
}

/* Cores das luzes baseadas no Toona */
.blob-1 {
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: #4285f4;
}
.blob-2 {
  bottom: 10%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: #9b72cb;
}
.blob-3 {
  top: 40%;
  right: 10%;
  width: 250px;
  height: 250px;
  background: #d96570;
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, -20px);
  }
}

/* --- NAVBAR (Barra de Navegação) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 1000;
  backdrop-filter: blur(10px); /* Efeito de vidro */
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-links a {
  color: #9aa0a6;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  transition: 0.3s;
}
.nav-links a:hover {
  color: white;
}

.nav-auth {
  display: flex;
  gap: 15px;
}

.btn-nav {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s;
}

.btn-ghost {
  background: transparent;
  color: white;
  border: 1px solid #444746;
}
.btn-ghost:hover {
  background: #303134;
}

.btn-fill {
  background: #e3e3e3; /* Branco Toona */
  color: black;
  border: none;
}
.btn-fill:hover {
  opacity: 0.9;
}

/* --- HERO SECTION (Onde fica o Slider) --- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centraliza horizontalmente */
  justify-content: center; /* Centraliza verticalmente */
  width: 100%; /* Ocupa a largura total da tela */
  min-height: 100vh;
  padding-top: 100px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 56px; /* Aumentei um pouco o título */
  font-weight: 700;
  background: linear-gradient(90deg, #fff, #9aa0a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.hero-subtitle {
  color: #9aa0a6;
  margin-bottom: 50px;
  font-size: 20px;
  max-width: 700px;
  line-height: 1.6;
}

/* --- ESTILO DO SLIDER (Integrado) --- */
.comparison-slider {
  position: relative;
  width: 90%;
  max-width: 900px; /* Largura máxima para não ficar gigante */
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  user-select: none;
}

.img-after-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.comparison-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.img-before-container {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 3px solid #fff; /* Linha divisória branca */
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
}
.img-before-container img {
  width: auto;
  max-width: none;
}

/* Etiquetas Antes/Depois */
.slider-label {
  position: absolute;
  top: 20px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  pointer-events: none;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.lbl-before {
  left: 20px;
  z-index: 3;
}
.lbl-after {
  right: 20px;
  z-index: 1;
}

/* O Botão do meio */
.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background-color: white;
  border-radius: 50%;
  z-index: 4;
  cursor: col-resize;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.slider-handle::after {
  content: "";
  width: 20px;
  height: 2px;
  background: #333;
  transform: rotate(90deg);
}

/* Setas de Navegação Internas */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  margin: 0 10px;
}
.nav-arrow:hover {
  background: white;
  color: black;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
.nav-left {
  left: 0;
}
.nav-right {
  right: 0;
}

/* Cards Financeiros */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.kpi-card {
  background: linear-gradient(135deg, #2a2d3e 0%, #232530 100%);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #3f4255;
  position: relative;
  overflow: hidden;
}
.kpi-card::after {
  /* Efeito de brilho */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
}
.kpi-title {
  font-size: 14px;
  color: #a0a0b0;
  margin-bottom: 10px;
}
.kpi-value {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
}
.kpi-icon {
  float: right;
  font-size: 30px;
  opacity: 0.2;
}

/* Cores específicas */
.card-purple .kpi-value {
  color: #bb86fc;
}
.card-green .kpi-value {
  color: #03dac6;
}
.card-blue .kpi-value {
  color: #4285f4;
}

/* Container do Gráfico */
.chart-wrapper {
  background: #232530;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #3f4255;
  height: 400px;
  position: relative;
}

/* --- ANIMAÇÃO DE PREÇO (PULSO) --- */

@keyframes pulse-scale {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(66, 133, 244, 0));
  }
  50% {
    transform: scale(1.1); /* Aumenta 10% */
    /* Adiciona um brilho azulado ao redor */
    filter: drop-shadow(0 0 20px rgba(244, 66, 66, 0.527));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(66, 133, 244, 0));
  }
}

.price-anim {
  font-size: 72px; /* Maior que o título normal */
  font-weight: 900;

  /* Gradiente Neon da sua marca */
  background: linear-gradient(90deg, #f44242, #ff0000, #970a18);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  display: inline-block; /* Necessário para a animação funcionar */
  animation: pulse-scale 2s infinite ease-in-out; /* Velocidade do pulso */
  margin: 10px 0 40px 0;
}

/* --- RODAPÉ (FOOTER) --- */
.site-footer {
  width: 100%;
  padding: 30px 40px;
  background-color: rgba(0, 0, 0, 0.6); /* Fundo escuro transparente */
  backdrop-filter: blur(10px); /* Efeito de vidro */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 50px; /* Garante espaço do conteúdo de cima */
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: #9aa0a6;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #9aa0a6;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Ajuste para telas maiores (PC): Coloca texto na esq. e links na dir. */
@media (min-width: 768px) {
  .footer-content {
    display: grid;
    /* Cria 3 colunas: 1 parte livre, Tamanho automático (meio), 1 parte livre */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
  }

  /* Força o Texto de Copyright a ficar na coluna do MEIO (2) */
  .footer-content p {
    grid-column: 2;
    text-align: center;
    margin: 0;
    white-space: nowrap; /* Garante que fique numa linha só */
  }

  /* Força os Links a ficarem na coluna da DIREITA (3) */
  .footer-links {
    grid-column: 3;
    justify-self: end; /* Empurra para o canto direito */
  }
}

/* --- PÁGINA DE TERMOS DE USO --- */

.legal-page-container {
  width: 100%;
  max-width: 800px; /* Largura de leitura confortável */
  margin: 0 auto;
  padding: 60px 20px;
}

.legal-header {
  text-align: center;
  margin-bottom: 50px;
}

.legal-header h1 {
  font-size: 36px;
  color: white;
  margin-bottom: 10px;
}

.legal-header p {
  color: #9aa0a6;
  font-size: 14px;
}

.legal-content {
  background-color: #1e1f20;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #444746;
  color: #e3e3e3;
  line-height: 1.8; /* Espaçamento bom para leitura */
  font-size: 16px;
}

.legal-content h2 {
  color: #4285f4; /* Azul da marca */
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 22px;
  border-bottom: 1px solid #303134;
  padding-bottom: 10px;
}

.legal-content p,
.legal-content li {
  margin-bottom: 15px;
  color: #d0d0d0;
}

.legal-content strong {
  color: white;
}

.legal-content hr {
  border: 0;
  height: 1px;
  background: #303134;
  margin: 30px 0;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.bullet-list li {
  list-style-type: disc;
  margin-left: 20px;
}

/* Tags de destaque (IMPORTANTE) */
.highlight-tag {
  background-color: #fbbc04;
  color: black;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 10px;
  font-weight: bold;
}

.highlight-tag.red {
  background-color: #ff4444;
  color: white;
}

/* Caixa de Aviso (Reembolso) */
.warning-box {
  background-color: rgba(255, 68, 68, 0.1);
  border-left: 4px solid #ff4444;
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}
.warning-box ul {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Botão de Voltar Flutuante */
.back-btn-floating {
  position: fixed;
  top: 30px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9aa0a6;
  text-decoration: none;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
  z-index: 100;
}

.back-btn-floating:hover {
  background: white;
  color: black;
}
