/* =========================================
   1. RESET E GLOBAIS
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%; /* Importante para o footer */
}

body {
  background: #050509;
  color: #f5f5f5;
  font-family: system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

/* Conteúdo Principal (Empurra o footer pra baixo) */
.page-content {
  flex: 1;
  padding-top: 80px; /* Espaço do Menu Fixo */
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}

/* =========================================
   2. FUNDO E PARTÍCULAS
   ========================================= */
#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at top, #1a1a1f 0, #050509 50%, #000 100%);
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: floatUp linear infinite;
  opacity: 0.8;
}

@keyframes floatUp {
  from { transform: translateY(100vh); }
  to { transform: translateY(-10vh); }
}

/* =========================================
   3. NAVBAR E BOTÕES NEON (O QUE VOCÊ PEDIU)
   ========================================= */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
}

.logo-main {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: #ff2d55;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav a.link-simples {
  color: #ccc;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a.link-simples:hover {
  color: #fff;
}

/* --- ESTILO PADRÃO DOS BOTÕES (CARRINHO, LOGIN, COMPRAR) --- */
.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 38px; /* Altura fixa */
  padding: 0 20px;
  gap: 8px;
  
  background: rgba(255, 0, 51, 0.1); /* Fundo avermelhado leve */
  border: 1px solid #ff0033;
  color: #fff;
  border-radius: 50px; /* Redondinho */
  
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-neon:hover {
  background: #ff0033;
  box-shadow: 0 0 20px rgba(255, 0, 51, 0.4); /* Glow Effect */
  transform: translateY(-2px);
  color: #fff;
}

.btn-neon i {
  font-size: 1rem;
}

/* Badge do Carrinho (Bolinha com número) */
.btn-neon .badge {
  background: #fff;
  color: #ff0033;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Botão "Comprar Agora" (Destaque Sólido Opcional) 
   Se quiser que ele seja preenchido, adicione a classe .btn-solid junto */
.btn-solid {
  background: #ff0033;
  color: white;
}
.btn-solid:hover {
  background: #c40028;
  box-shadow: 0 0 25px rgba(255, 0, 51, 0.6);
}

/* =========================================
   4. HERO & CAROUSEL (HOME)
   ========================================= */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 5rem;
  position: relative;
}

/* Texto Hero */
.hero-text {
  flex: 1;
  max-width: 600px;
  opacity: 0;
  animation: slideInLeft 1.2s ease forwards;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-text h1 span { color: #ff0000; }
.hero-text p { font-size: 1.2rem; color: #ccc; line-height: 1.6; }

/* Carrossel Hero */
.hero-carousel {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 450px; 
  max-width: 480px;
}

.hero-carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.2));
}
.hero-carousel img.active { opacity: 1; z-index: 1; }

@keyframes slideInLeft { to { opacity: 1; transform: translateX(0); } }

/* =========================================
   5. SEÇÕES (BENEFÍCIOS & PRODUTOS)
   ========================================= */
.cx-beneficios, .cx-produtos {
  margin-top: 100px;
  text-align: center;
  padding: 20px;
}

.cx-title, .cx-produtos-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.cx-title span, .cx-produtos-title span { color: #ff2d55; }

.cx-line {
  width: 80px; height: 4px; background: #ff2d55; 
  margin: 10px auto 50px; border-radius: 10px;
}

/* Cards Benefícios */
.cx-cards {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 25px;
}
.cx-card {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 45, 85, 0.15);
  width: 260px; padding: 30px 20px;
  border-radius: 16px; transition: 0.3s;
}
.cx-card:hover {
  transform: translateY(-5px); border-color: #ff2d55;
  box-shadow: 0 10px 30px rgba(255, 45, 85, 0.2);
}
.cx-icon { font-size: 30px; color: #ff2d55; margin-bottom: 15px; }

/* Cards Produtos (Grid) */
.produtos-wrapper {
  max-width: 1200px; margin: 0 auto;
}
.categoria-titulo {
  font-size: 2rem; font-weight: 800; margin: 50px 0 30px;
  border-left: 4px solid #ff0033; padding-left: 15px; text-align: left;
}
.produtos-grid {
  display: flex; flex-wrap: wrap; gap: 25px; justify-content: center;
}
.produto-card {
  background: #0f0f0f; border: 1px solid #222;
  border-radius: 16px; width: 280px; overflow: hidden;
  transition: 0.3s; display: flex; flex-direction: column;
}
.produto-card:hover {
  transform: translateY(-5px); border-color: #ff0033;
  box-shadow: 0 0 20px rgba(255, 0, 51, 0.15);
}
.produto-card img {
  width: 100%; height: 180px; object-fit: cover; border-bottom: 1px solid #222;
}
.card-info { padding: 20px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.card-info h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card-info p { color: #bbb; font-size: 0.9rem; margin-bottom: 15px; flex: 1; }

.produto-btn {
  background: #ff0033; color: white; padding: 10px;
  border-radius: 8px; font-weight: bold; width: 100%; display: block;
}
.produto-btn:hover { background: #c40028; }

/* =========================================
   6. PÁGINAS INTERNAS (FAQ, AUTH, CHECKOUT)
   ========================================= */
/* Auth (Login/Register) */
.auth { max-width: 400px; margin: 100px auto; padding: 20px; }
.auth-form input {
  width: 100%; padding: 12px; margin-bottom: 15px;
  background: #111; border: 1px solid #333; color: #fff; border-radius: 8px;
}
.auth-form button {
  width: 100%; padding: 12px; background: #ff0033; border: none;
  color: white; border-radius: 8px; font-weight: bold; cursor: pointer;
}

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; padding: 20px; }
.faq-item {
  background: rgba(255,255,255,0.03); margin-bottom: 15px;
  padding: 15px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
}
.faq-item:hover { border-color: #ff0033; }
.faq-question { font-weight: bold; color: #ff2d55; }
.faq-answer { display: none; margin-top: 10px; color: #ccc; line-height: 1.5; }
.show-answer { display: block !important; }

/* =========================================
   7. FOOTER
   ========================================= */
.footer {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  padding: 30px 0;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto; /* Garante que fique no fundo */
}

/* =========================================
   8. RESPONSIVIDADE
   ========================================= */
@media (max-width: 900px) {
  .hero-container { flex-direction: column-reverse; text-align: center; padding-top: 120px; }
  .hero-carousel { width: 100%; height: 300px; }
  .topbar { padding: 0 1rem; }
  .nav { gap: 10px; }
  .nav a.link-simples { display: none; } /* Esconde links de texto no mobile */
  .btn-neon span:not(.badge) { display: none; } /* Esconde texto dos botões no mobile, deixa só icone */
}

/* =========================================
   FIX: ESTILOS DA HOME (Index.ejs)
   ========================================= */

/* 1. Container dos Produtos na Home */
.cx-produtos-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Isso obriga a quebrar linha */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 2. O Card da Home (Isso limita o tamanho da imagem gigante) */
.cx-produto-card {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid #222;
  border-radius: 16px;
  
  width: 280px; /* <--- AQUI ESTÁ A CORREÇÃO (Tamanho Fixo) */
  
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.cx-produto-card:hover {
  transform: translateY(-5px);
  border-color: #ff0033;
  box-shadow: 0 0 25px rgba(255, 0, 51, 0.2);
}

/* 3. Imagem dentro do Card */
.cx-produto-card img {
  width: 100%;
  height: 180px; /* Altura fixa para ficarem iguais */
  object-fit: cover;
  border-bottom: 1px solid #222;
}

/* 4. Texto e Botão */
.cx-produto-info {
  padding: 20px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cx-produto-info h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #fff;
  font-weight: 700;
}

.status {
  font-size: 0.85rem;
  color: #bbb;
  margin-bottom: 15px;
}

.status .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background-color: #00ff00;
  border-radius: 50%;
  margin-right: 5px;
  box-shadow: 0 0 5px #00ff00;
}

.cx-btn {
  background: #ff0033;
  color: white;
  padding: 10px 0;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-top: auto; /* Empurra o botão para o fundo */
  transition: 0.2s;
}

.cx-btn:hover {
  background: #c40028;
  box-shadow: 0 0 15px rgba(255, 0, 51, 0.4);
}

/* 3. Imagem dentro do Card (CORRIGIDA) */
.cx-produto-card img {
  width: 100%;       /* Ocupa toda a largura do card */
  height: 200px;     /* Altura fixa para todos ficarem alinhados */
  
  /* O SEGREDO ESTÁ AQUI: */
  object-fit: cover; /* 'cover' corta o excesso para preencher. 'contain' mostra inteira com bordas pretas. */
  object-position: center; /* Centraliza a imagem */
  
  border-bottom: 1px solid #222;
  background-color: 
  #000; /* Fundo preto caso a imagem seja PNG transparente */
}

/* =========================================
   ESTILOS DO PAINEL (Painel.ejs)
   ========================================= */

.painel-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 20px 60px;
  min-height: 80vh;
  color: #fff;
}

.painel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid #222;
  padding-bottom: 20px;
}

.user-welcome h1 { font-size: 2rem; font-weight: 800; margin-bottom: 5px;}
.user-welcome span { color: #ff0033; }
.user-email { color: #888; font-size: 0.9rem; }

.btn-logout {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}
.btn-logout:hover { background: #ff0033; border-color: #ff0033; }

/* Grid de Status */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.stat-card {
  background: rgba(20, 20, 20, 0.6);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #222;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: #ff0033;
}

.stat-icon { font-size: 2rem; color: #333; position: absolute; top: 20px; right: 20px; }
.stat-value { font-size: 2.5rem; font-weight: 800; margin: 10px 0; line-height: 1; }
.stat-label { color: #888; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

/* Tabela de Histórico */
.historico-section {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 25px;
}

.historico-section h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-left: 4px solid #ff0033;
  padding-left: 15px;
  color: #fff;
}

.table-responsive { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; min-width: 600px; }

th {
  text-align: left;
  padding: 15px 20px;
  color: #666;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #222;
}

td {
  padding: 18px 20px;
  border-bottom: 1px solid #1a1a1a;
  color: #ddd;
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* Classes Utilitárias do Painel */
.row-pendente { background: rgba(255, 204, 0, 0.05) !important; }
.text-pendente { color: #ffcc00; font-weight: bold; text-transform: uppercase; font-size: 0.85rem; }
.text-aprovado { color: #00ff88; font-weight: bold; text-transform: uppercase; font-size: 0.85rem; }

.link-pagar {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.link-pagar span { border-bottom: 1px dashed #ffcc00; }
.link-pagar i { font-size: 0.8rem; color: #ffcc00; }

/* =========================================
   CLASSES AUXILIARES DO PAINEL (FIX VSCODE)
   ========================================= */

/* Substitui style="display:flex..." */
.flex-align {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Substitui o style do container do ícone */
.icon-wrapper {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Substitui style="color:#ccc" */
.text-muted {
  color: #ccc;
}

/* Substitui o style da fonte monoespaçada */
.text-mono {
  font-family: monospace;
  font-size: 1rem;
}

/* Cores de ícones */
.icon-red { color: #ff0033; }

/* Botão de Excluir Pedido */
.btn-trash {
  background: transparent;
  border: 1px solid #444;
  color: #666;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  margin-left: 10px;
}

.btn-trash:hover {
  border-color: #ff3333;
  color: #ff3333;
  background: rgba(255, 51, 51, 0.1);
}

/* Botão de Download Pequeno (Painel) */
.btn-download-sm {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid #00ff88;
  color: #00ff88;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  transition: 0.2s;
}

.btn-download-sm:hover {
  background: #00ff88;
  color: #000;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

/* Botão Discord Pequeno (Painel) */
.btn-discord-sm {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(88, 101, 242, 0.1); /* Roxo transparente */
  border: 1px solid #5865F2;
  color: #5865F2;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  transition: 0.2s;
}

.btn-discord-sm:hover {
  background: #5865F2;
  color: #fff;
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.4);
}

/* ADMIN EXTRAS */
.form-prod input:focus, .form-prod select:focus {
    border-color: #ff0033;
    outline: none;
}

/* =========================================
   ESTILOS DO ADMIN (Admin.ejs)
   ========================================= */

.admin-wrapper { 
  max-width: 1200px; 
  margin: 100px auto 60px; 
  padding: 20px; 
  color: #fff; 
}

.stats-row { 
  display: flex; 
  gap: 20px; 
  margin-bottom: 40px; 
  flex-wrap: wrap; 
}

.stat-box { 
  background: rgba(20, 20, 20, 0.6); 
  border: 1px solid #333; 
  padding: 20px; 
  flex: 1; 
  border-radius: 12px; 
  text-align: center; 
  backdrop-filter: blur(5px);
  min-width: 200px;
}

.stat-box h3 { 
  font-size: 2rem; 
  color: #00ff88; 
  margin-bottom: 5px; 
}

.stat-box p { 
  color: #888; 
  font-size: 0.8rem; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  font-weight: 700;
}

/* Abas */
.tabs { 
  display: flex; 
  gap: 10px; 
  margin-bottom: 20px; 
  border-bottom: 1px solid #333; 
  padding-bottom: 10px; 
}

.tab-btn { 
  background: none; 
  border: none; 
  color: #888; 
  font-size: 1.1rem; 
  padding: 10px 20px; 
  cursor: pointer; 
  font-weight: bold; 
  transition: 0.3s; 
}

.tab-btn:hover { color: #fff; }
.tab-btn.active { color: #fff; border-bottom: 2px solid #ff0033; }

.tab-content { display: none; animation: fadeIn 0.3s; }
.tab-content.active { display: block; }

/* Tabelas Admin */
.admin-table-box { 
  background: #111; 
  border-radius: 12px; 
  border: 1px solid #222; 
  overflow: hidden; 
  overflow-x: auto; 
}

/* Botões do Admin */
.btn-mini { 
  padding: 6px 10px; 
  border-radius: 6px; 
  text-decoration: none; 
  color: #fff; 
  font-size: 0.9rem; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  transition: 0.2s;
}

.btn-green { background: rgba(0, 255, 136, 0.15); color: #00ff88; border: 1px solid #00ff88; }
.btn-green:hover { background: #00ff88; color: #000; }

.btn-red { background: rgba(255, 51, 51, 0.15); color: #ff3333; border: 1px solid #ff3333; }
.btn-red:hover { background: #ff3333; color: #fff; }

/* Formulário de Produto */
.form-prod { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 15px; 
  background: #111; 
  padding: 25px; 
  border-radius: 12px; 
  margin-bottom: 30px; 
  border: 1px solid #222; 
}

.form-prod input, .form-prod select { 
  background: #0a0a0a; 
  border: 1px solid #333; 
  color: #fff; 
  padding: 12px; 
  border-radius: 8px; 
  width: 100%; 
}

.form-full { grid-column: span 2; }

.btn-create { 
  background: #ff0033; 
  color: #fff; 
  border: none; 
  padding: 12px; 
  border-radius: 8px; 
  cursor: pointer; 
  font-weight: bold; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
}
.btn-create:hover { background: #c40028; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   ESTILOS DA PÁGINA DE PRODUTOS (Produtos.ejs)
   ========================================= */

.produtos-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 20px 60px;
  color: #fff;
  min-height: 80vh;
  text-align: center;
}

.categoria-section {
  margin-bottom: 60px;
}

.categoria-titulo {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 30px;
  color: #fff;
  text-transform: uppercase;
  display: inline-block;
  border-bottom: 3px solid #ff0033;
  padding-bottom: 5px;
}

/* Grid Inteligente */
.produtos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.produto-card {
  background: #0f0f0f;
  border: 1px solid #222;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  width: 300px; 
  max-width: 100%;
  position: relative;
}

.produto-card:hover {
  transform: translateY(-7px);
  border-color: #ff0033;
  box-shadow: 0 10px 20px rgba(255, 0, 51, 0.1);
}

.produto-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #222;
}

.card-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #fff;
}

.card-info p {
  font-size: 0.95rem;
  color: #bbb;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Status do Cheat (Bolinha) */
.prod-status {
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: 20px;
}

.produto-btn {
  width: 100%;
  background: #ff0033;
  color: #fff;
  padding: 12px 0;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-top: auto; /* Empurra pro fundo */
}

.produto-btn:hover { background: #c40028; }

/* =========================================
   CLASSES DE STATUS (Para remover erros do VS Code)
   ========================================= */

/* Cores de Texto e Borda */
.status-green { color: #00ff88; border-color: rgba(0, 255, 136, 0.3) !important; }
.status-yellow { color: #ffcc00; border-color: rgba(255, 204, 0, 0.3) !important; }
.status-red { color: #ff3333; border-color: rgba(255, 51, 51, 0.3) !important; }

/* Bolinhas (Dots) */
.dot-green { background-color: #00ff88; box-shadow: 0 0 5px #00ff88; }
.dot-yellow { background-color: #ffcc00; box-shadow: 0 0 5px #ffcc00; }
.dot-red { background-color: #ff3333; box-shadow: 0 0 5px #ff3333; }

/* Ajustes finos */
.prod-status { border: 1px solid transparent; } /* Borda base */

/* =========================================
   ESTILOS DO PAINEL ADMIN (Limpo)
   ========================================= */

.admin-wrapper { 
  max-width: 1200px; 
  margin: 100px auto 60px; 
  padding: 20px; 
  color: #fff; 
}

/* Estatísticas do Topo */
.stats-row { 
  display: flex; 
  gap: 20px; 
  margin-bottom: 40px; 
  flex-wrap: wrap; 
}

.stat-box { 
  background: #111; 
  border: 1px solid #222; 
  padding: 20px; 
  flex: 1; 
  border-radius: 12px; 
  text-align: center; 
  min-width: 200px;
}

.stat-box h3 { 
  font-size: 2rem; 
  color: #00ff88; 
  margin-bottom: 5px; 
}

.stat-box p { 
  color: #888; 
  font-size: 0.8rem; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  font-weight: 700;
}

/* Abas de Navegação */
.tabs { 
  display: flex; 
  gap: 10px; 
  margin-bottom: 20px; 
  border-bottom: 1px solid #333; 
  padding-bottom: 10px; 
}

.tab-btn { 
  background: none; 
  border: none; 
  color: #888; 
  font-size: 1.1rem; 
  padding: 10px 20px; 
  cursor: pointer; 
  font-weight: bold; 
  transition: 0.3s; 
}

.tab-btn:hover { color: #fff; }
.tab-btn.active { color: #fff; border-bottom: 2px solid #ff0033; }

.tab-content { display: none; animation: fadeIn 0.3s; }
.tab-content.active { display: block; }

/* Tabelas e Caixas */
.admin-table-box { 
  background: #111; 
  border-radius: 12px; 
  border: 1px solid #222; 
  overflow: hidden; 
  overflow-x: auto; 
}

table { width: 100%; border-collapse: collapse; min-width: 700px; }
th { background: #0a0a0a; text-align: left; padding: 15px; color: #888; font-size: 0.8rem; text-transform: uppercase; }
td { padding: 15px; border-bottom: 1px solid #222; color: #ccc; vertical-align: middle; }
tr:hover { background: #161616; }

/* Botões Pequenos */
.btn-mini { 
  padding: 6px 10px; 
  border-radius: 6px; 
  text-decoration: none; 
  color: #fff; 
  font-size: 0.9rem; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  transition: 0.2s;
  margin-right: 5px;
}

.btn-green { background: rgba(0, 255, 136, 0.15); color: #00ff88; border: 1px solid #00ff88; }
.btn-green:hover { background: #00ff88; color: #000; }

.btn-blue { background: rgba(0, 136, 255, 0.15); color: #0088ff; border: 1px solid #0088ff; }
.btn-blue:hover { background: #0088ff; color: #fff; }

.btn-red { background: rgba(255, 51, 51, 0.15); color: #ff3333; border: 1px solid #ff3333; }
.btn-red:hover { background: #ff3333; color: #fff; }

/* Formulário Criar Produto */
.form-prod { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 15px; 
  background: #111; 
  padding: 25px; 
  border-radius: 12px; 
  margin-bottom: 30px; 
  border: 1px solid #222; 
}

.form-prod input { 
  background: #0a0a0a; 
  border: 1px solid #333; 
  color: #fff; 
  padding: 12px; 
  border-radius: 8px; 
  width: 100%; 
}

.form-full { grid-column: span 2; }

.btn-create { 
  background: #ff0033; 
  color: #fff; 
  border: none; 
  padding: 12px; 
  border-radius: 8px; 
  cursor: pointer; 
  font-weight: bold; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
}
.btn-create:hover { background: #c40028; }

/* Utilitários */
.admin-prod-img { width: 40px; height: 40px; border-radius: 5px; object-fit: cover; }
.empty-message { text-align: center; padding: 20px; color: #666; }
.actions-cell { display: flex; align-items: center; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.text-gold { color: #ffcc00 !important; }

/* =========================================
   ESTILOS DE FORMULÁRIOS (Admin/Edição)
   ========================================= */

.edit-wrapper { 
  max-width: 800px; 
  margin: 120px auto; 
  padding: 20px; 
  color: #fff; 
}

.edit-box {
  background: #111;
  border: 1px solid #222;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.edit-header {
  text-align: center; 
  margin-bottom: 30px;
  border-bottom: 1px solid #222; 
  padding-bottom: 20px;
}

.edit-header h1 { font-size: 2rem; font-weight: 800; color: #fff; }
.edit-header span { color: #ff0033; }

/* Grid de 2 Colunas */
.form-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 20px; 
}

/* Ocupa a linha inteira */
.form-full { grid-column: span 2; }

/* Inputs e Labels */
.form-group { margin-bottom: 5px; }
.form-group label { display: block; margin-bottom: 8px; color: #888; font-size: 0.9rem; font-weight: 600; }

.form-group input, .form-group select {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #333;
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  transition: 0.3s;
}

.form-group input:focus {
  border-color: #ff0033;
  outline: none;
  box-shadow: 0 0 10px rgba(255, 0, 51, 0.1);
}

.form-group input[readonly] {
  background: #161616; color: #555; cursor: not-allowed; border-color: #222;
}

/* Botões */
.btn-save {
  width: 100%; padding: 15px; background: #ff0033; color: #fff; border: none; border-radius: 8px;
  font-weight: 800; font-size: 1.1rem; cursor: pointer; margin-top: 10px; transition: 0.3s; text-transform: uppercase;
}
.btn-save:hover { background: #c40028; }

.btn-cancel {
  display: block; text-align: center; margin-top: 20px; color: #666; text-decoration: none; font-size: 0.9rem; transition: 0.3s;
}
.btn-cancel:hover { color: #fff; }

/* Responsivo */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: span 1; }
}

/* Cores de Texto Utilitárias */
.text-gold { color: #ffcc00 !important; }
.text-white { color: #ffffff !important; }

/* Garante o tamanho do gráfico */
.chart-container {
  position: relative; 
  height: 300px; 
  width: 100%;
  background: #111;
  border: 1px solid #222;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 40px;
}

/* BARRA DE FILTROS DO GRÁFICO */
.chart-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  background: #161616;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #333;
  margin-bottom: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-size: 0.75rem;
  color: #888;
  font-weight: bold;
  text-transform: uppercase;
}

/* Estilo dos Inputs e Selects na barra */
.chart-select, .chart-date {
  background: #0a0a0a;
  color: #fff;
  border: 1px solid #444;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
}

.chart-select:focus, .chart-date:focus {
  border-color: #ff0033;
}

/* Botão Filtrar */
.btn-filter {
  background: #fff;
  color: #000;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  height: 36px;
  align-self: flex-end; /* Alinha com os inputs */
  transition: 0.2s;
}

.btn-filter:hover {
  background: #ccc;
}

/* Esconde os inputs de data por padrão */
.hidden { display: none !important; }

/* =========================================
   ESTILOS DE AUTENTICAÇÃO (Login/Register/Forgot)
   ========================================= */

.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh; /* Centraliza na altura */
  padding: 20px;
}

.auth-box {
  background: #0f0f0f;
  border: 1px solid #222;
  padding: 40px 30px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px; /* Largura máxima ideal */
  text-align: center;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.auth-box h1, .auth-box h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.auth-box p {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

/* Inputs do Auth */
.auth-input {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  background: #050505;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.auth-input:focus {
  border-color: #ff0033;
  box-shadow: 0 0 10px rgba(255, 0, 51, 0.1);
}

/* Botão do Auth */
.auth-btn {
  width: 100%;
  padding: 14px;
  background: #ff0033;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

.auth-btn:hover {
  background: #c40028;
  box-shadow: 0 0 20px rgba(255, 0, 51, 0.4);
}

/* Links do Auth */
.auth-link {
  display: block;
  margin-top: 20px;
  color: #666;
  font-size: 0.9rem;
  text-decoration: none;
}

.auth-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* =========================================
   ESTILOS DE AUTENTICAÇÃO (Login, Registro, Recuperar Senha)
   ========================================= */

.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh; /* Ocupa a altura da tela para centralizar */
  padding: 20px;
}

.auth-box {
  background: #0f0f0f;
  border: 1px solid #222;
  padding: 40px 30px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.auth-box h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.auth-box p {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 30px;
  line-height: 1.4;
}

/* Inputs */
.auth-input {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  background: #050505;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.auth-input:focus {
  border-color: #ff0033;
}

/* Botão Principal */
.auth-btn {
  width: 100%;
  padding: 14px;
  background: #ff0033;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

.auth-btn:hover {
  background: #c40028;
}

/* Links de rodapé do card */
.auth-footer-link {
  display: block;
  margin-top: 20px;
  color: #666;
  font-size: 0.9rem;
  text-decoration: none;
}

.auth-footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Avatar no Admin */
.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #333;
}

/* =========================================
   WIDGET DE SUPORTE (CHAT)
   ========================================= */

/* O Botão Flutuante */
.support-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #ff0033;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 0, 51, 0.6);
  z-index: 9999;
  border: none;
  transition: 0.3s;
  animation: pulseBtn 2s infinite;
}

.support-btn:hover {
  transform: scale(1.1);
  background: #c40028;
}

.support-btn i {
  transition: 0.3s;
}

/* A Janelinha do Chat */
.support-box {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 300px;
  background: #111;
  border: 1px solid #333;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  z-index: 9998;
  
  /* Começa escondido e pequeno */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Quando ativo (Aberto) */
.support-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Cabeçalho do Chat */
.sb-header {
  background: #ff0033;
  padding: 20px;
  text-align: center;
  color: #fff;
}
.sb-header h3 { font-size: 1.2rem; margin: 0; font-weight: 800; }
.sb-header p { font-size: 0.85rem; margin: 5px 0 0; opacity: 0.9; }

/* Corpo do Chat */
.sb-body {
  padding: 20px;
}

.sb-msg {
  background: #222;
  padding: 12px;
  border-radius: 10px;
  border-bottom-left-radius: 0;
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 20px;
  border-left: 3px solid #ff0033;
}

/* Botões de Contato */
.sb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: 0.2s;
  border: none;
  cursor: pointer;
}

.btn-wpp { background: #25D366; color: #fff; }
.btn-wpp:hover { background: #1ebc57; box-shadow: 0 0 10px rgba(37, 211, 102, 0.4); }

.btn-dc { background: #5865F2; color: #fff; }
.btn-dc:hover { background: #4752c4; box-shadow: 0 0 10px rgba(88, 101, 242, 0.4); }

@keyframes pulseBtn {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(255, 0, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 51, 0); }
}

.text-pendente { color: #ffcc00 !important; }
.text-aprovado { color: #00ff88 !important; }
.font-large { font-size: 1.2rem; padding-top: 10px; }

/* =========================================
   ESTILOS DO PAINEL (Painel.ejs)
   ========================================= */

.painel-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 20px 60px;
  min-height: 80vh;
  color: #fff;
}

/* Cabeçalho */
.painel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid #333;
  padding-bottom: 20px;
}

.user-welcome h1 { font-size: 2rem; font-weight: 800; }
.user-welcome span { color: #ff0033; }
.user-email { color: #888; font-size: 0.9rem; margin-top: 5px; }

.btn-logout {
  background: #222;
  border: 1px solid #444;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-logout:hover { background: #ff0033; border-color: #ff0033; }

/* Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.stat-card {
  background: linear-gradient(145deg, #111, #0a0a0a);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #222;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: #ff0033;
}

.stat-icon { font-size: 2rem; color: #333; position: absolute; top: 20px; right: 20px; }
.stat-value { font-size: 2.2rem; font-weight: 800; margin: 10px 0; }
.stat-label { color: #999; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

/* Tabela */
.historico-section {
  background: #0a0a0a; border: 1px solid #222; border-radius: 16px; padding: 25px;
}
.historico-section h2 {
  font-size: 1.4rem; margin-bottom: 20px; border-left: 4px solid #ff0033; padding-left: 15px; color: #fff;
}

.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th { text-align: left; padding: 15px 20px; color: #666; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #222; }
td { padding: 18px 20px; border-bottom: 1px solid #1a1a1a; color: #ddd; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* Classes Utilitárias (Substituem o style inline) */
.row-pendente { background: rgba(255, 204, 0, 0.05) !important; }
.text-pendente { color: #ffcc00 !important; }
.text-aprovado { color: #00ff88 !important; }
.flex-align { display: flex; align-items: center; gap: 12px; }
.icon-wrapper { background: rgba(255,255,255,0.05); padding: 8px; border-radius: 8px; }
.icon-red { color: #ff0033; }
.text-muted { color: #ccc; }
.text-mono { font-family: monospace; font-size: 1rem; }

/* Links e Botões da Tabela */
.link-pagar { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.link-pagar span { border-bottom: 1px dashed #ffcc00; }
.link-pagar i { font-size: 0.8rem; color: #ffcc00; }

.btn-trash { 
  background: none; border: 1px solid #444; color: #666; 
  width: 30px; height: 30px; border-radius: 6px; 
  display: flex; align-items: center; justify-content: center; 
  cursor: pointer; margin-left: 10px; transition: 0.2s;
}
.btn-trash:hover { border-color: #ff3333; color: #ff3333; background: rgba(255, 51, 51, 0.1); }

.btn-download-sm {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 255, 136, 0.1); border: 1px solid #00ff88; color: #00ff88;
  padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: bold;
  text-transform: uppercase; text-decoration: none; transition: 0.2s;
}
.btn-download-sm:hover { background: #00ff88; color: #000; }

.btn-discord-sm {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(88, 101, 242, 0.1); border: 1px solid #5865F2; color: #5865F2;
  padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: bold;
  text-transform: uppercase; text-decoration: none; transition: 0.2s;
}
.btn-discord-sm:hover { background: #5865F2; color: #fff; }

/* === ESTILOS CORRIGIDOS DO ADMIN === */

/* Chat */
.chat-container {
  display: flex; height: 500px; background: #111; border: 1px solid #333; 
  border-radius: 12px; overflow: hidden; margin-top: 20px;
}
.chat-sidebar { width: 30%; border-right: 1px solid #333; overflow-y: auto; background: #0f0f0f; }
.chat-main { width: 70%; display: flex; flex-direction: column; background: #000; }

.ticket-item { padding: 15px; border-bottom: 1px solid #222; cursor: pointer; position: relative; transition: 0.2s; }
.ticket-item:hover { background: #1a1a1a; }

/* Status Dot dinâmico */
.status-dot { width: 8px; height: 8px; border-radius: 50%; position: absolute; top: 15px; right: 15px; }
.status-dot.aberto { background: #00ff88; }
.status-dot.fechado { background: #666; }

.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 70%; padding: 10px 15px; border-radius: 10px; font-size: 0.9rem; line-height: 1.4; }
.msg.admin { align-self: flex-end; background: #ff0033; color: #fff; }
.msg.cliente { align-self: flex-start; background: #222; color: #ccc; }
.msg img { max-width: 100%; border-radius: 5px; margin-top: 5px; }

.chat-input-area { padding: 15px; border-top: 1px solid #333; display: flex; gap: 10px; align-items: center; }
.chat-input { flex: 1; padding: 10px; background: #1a1a1a; border: 1px solid #333; border-radius: 6px; color: #fff; outline: none; }

.hidden { display: none !important; }
.flex { display: flex; }

/* Texto de tickets vazios */
.empty-tickets { padding: 20px; text-align: center; color: #666; }

/* CSS PARA COPIAR NO TOPO DO ADMIN.EJS */
.badge-status { padding: 4px 8px; border-radius: 4px; font-weight: bold; font-size: 0.8rem; text-transform: uppercase; }
.status-on { background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid #22c55e; } /* Verde */
.status-att { background: rgba(234,179,8,0.1); color: #eab308; border: 1px solid #eab308; } /* Amarelo */
.status-off { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid #ef4444; } /* Vermelho */

/* Estilo Base da Pílula */
.badge-status {
    padding: 4px 12px;
    border-radius: 50px; /* Borda arredondada igual da print */
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* Verde - Indetectado */
.status-on {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

/* Amarelo - Atualizando */
.status-att {
    background-color: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid #facc15;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.2);
    animation: pulse 2s infinite;
}

/* Vermelho - Manutenção */
.status-off {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}