/* Reset e Variáveis de Cor */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
:root {
  --bg-dark: #000000;
  --bg-light-dark: #111111;
  --yellow: #ffd700;
  --text-light: #ffffff;
  --text-gray: #aaaaaa;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 215, 0, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}
.yellow {
  color: var(--yellow);
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(17, 17, 17, 0.8), #000000),
    url("../assets/images/fundo-hero.jpg"); /* Adiciona uma foto de fundo depois */
  background-size: cover;
  background-position: center;
  position: relative;
  padding-top: 80px;
}
.hero h1 {
  font-size: 3rem;
  letter-spacing: 4px;
  margin-bottom: 10px;
}
.hero h2 {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text-gray);
  margin-bottom: 20px;
}
.hero .subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  color: #888;
}
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #555;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

/* --- ESTRUTURA GLOBAL E SECÇÕES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.dark-section {
  background-color: var(--bg-dark);
  padding: 100px 0;
}
.light-dark-section {
  background-color: var(--bg-light-dark);
  padding: 100px 0;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}
.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 50px;
  font-size: 1.1rem;
}
.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.text-destaque {
  font-size: 1.2rem;
  color: var(--yellow);
  margin-bottom: 15px;
  font-weight: 300;
}

/* Objetivos e Listas */
.objetivos-box,
.governanca-box {
  background-color: #151515;
  padding: 40px;
  border-left: 4px solid var(--yellow);
  border-radius: 4px;
}
ul {
  list-style: none;
  margin-top: 20px;
}
ul li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #ccc;
}
.check-list li::before {
  content: "✓";
  color: var(--yellow);
  margin-right: 10px;
  font-weight: bold;
}
.destaque-gov {
  margin-top: 20px;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--yellow);
}

/* Cards Eixos */
.axes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.axis-card {
  background-color: #0a0a0a;
  border: 1px solid #333;
  padding: 40px 30px;
  text-align: center;
  transition: 0.3s;
  border-radius: 4px;
}
.axis-card:hover {
  border-color: var(--yellow);
  transform: translateY(-10px);
}
.eixo-num {
  display: block;
  font-size: 0.8rem;
  color: var(--yellow);
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.axis-card h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.axis-card p {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 20px;
}
.axis-card hr {
  border: 0;
  border-top: 1px solid #333;
  margin-bottom: 20px;
}
.axis-card i {
  font-size: 0.85rem;
  color: #666;
}

/* Condução */
.center-text {
  text-align: center;
}
.conductors h2 {
  font-size: 2rem;
  margin: 30px 0 10px;
}
.conductors p {
  color: var(--text-gray);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* Autores */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}
.author-card {
  background-color: #111;
  border: 1px solid #222;
  text-align: center;
  padding-bottom: 20px;
  transition: 0.4s;
  border-radius: 4px;
  overflow: hidden;
}
.author-card:hover {
  border-color: #555;
}
.author-image {
  width: 100%;
  height: 250px;
  background-color: #222;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
}
.author-card h4 {
  margin: 15px 0 5px;
  font-size: 1.2rem;
}
.author-card p {
  padding: 0 15px;
  font-size: 0.85rem;
  color: #777;
}

.center-btn {
  text-align: center;
  margin-top: 40px;
}
.btn-inscrever-large {
  background-color: var(--yellow);
  color: #000;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1.2rem;
  text-transform: uppercase;
  transition: 0.3s;
  display: inline-block;
}
.btn-inscrever-large:hover {
  background-color: #e6c200;
  transform: scale(1.02);
}

footer {
  text-align: center;
  padding: 40px;
  background-color: #050505;
  color: #444;
  font-size: 0.9rem;
  border-top: 1px solid #111;
}
/* --- ÁREA DE VENDA DO LIVRO --- */
.align-center {
  align-items: center;
}

/* Simulação da capa do livro (placeholder) */
.book-placeholder {
  width: 100%;
  max-width: 350px;
  height: 500px;
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  border: 2px solid #333;
  border-left: 15px solid #0a0a0a; /* Simula a lombada do livro */
  border-radius: 4px 10px 10px 4px;
  box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  margin: 0 auto;
  transition: transform 0.5s;
}
.book-placeholder:hover {
  transform: perspective(1000px) rotateY(-10deg) scale(1.02);
}
.book-placeholder h4 {
  color: var(--yellow);
  font-size: 2.5rem;
  letter-spacing: 5px;
  margin-bottom: 20px;
}
.book-placeholder p {
  color: #fff;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 2px;
}

/* Detalhes de Venda */
.yellow-tag {
  background-color: rgba(255, 215, 0, 0.1);
  color: var(--yellow);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 1px;
}
.book-sales-info h3 {
  font-size: 2.5rem;
  margin: 15px 0;
}
.book-desc {
  color: #aaa;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.price-box {
  background-color: #0a0a0a;
  border: 1px solid #333;
  padding: 25px;
  border-radius: 8px;
  margin: 30px 0;
  border-left: 4px solid var(--yellow);
}
.old-price {
  text-decoration: line-through;
  color: #666;
  font-size: 0.9rem;
}
.current-price {
  font-size: 3rem;
  color: #fff;
  margin: 5px 0;
}
.parcelamento {
  color: var(--yellow);
  font-size: 0.9rem;
}

.btn-comprar-livro {
  display: inline-block;
  background-color: var(--yellow);
  color: #000;
  padding: 18px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  transition: 0.3s;
}
.btn-comprar-livro:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

/* --- FOOTER COMPLETO --- */
.main-footer {
  background-color: #050505;
  border-top: 1px solid #1a1a1a;
  padding-top: 80px;
}

@media (max-width: 900px) {
  .main-footer {
    padding-top: 40px;
  }
  .footer-grid {
    gap: 20px;
    margin-bottom: 30px;
  }
}

@media (max-width: 600px) {
  .main-footer {
    padding-top: 25px;
    padding-bottom: 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 15px;
  }
  .footer-col {
    padding: 0 0 10px 0;
    text-align: center;
  }
  .footer-col h4 {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  .footer-about {
    font-size: 0.85rem;
    margin-top: 10px;
  }
  .footer-col ul li {
    margin-bottom: 7px;
  }
  .footer-col ul li a,
  .contact-info {
    font-size: 0.85rem;
  }
  .social-links {
    gap: 8px;
    margin-top: 10px;
  }
  .social-links a {
    font-size: 0.85rem;
    padding: 4px 10px;
  }
  .footer-bottom {
    font-size: 0.75rem;
    padding: 8px 0;
    gap: 3px;
  }
  .developer-credit {
    font-size: 0.7rem !important;
    margin-top: 2px;
  }
}

@media (max-width: 400px) {
  .footer-bottom {
    font-size: 0.65rem;
    padding: 5px 0;
  }
  .footer-col h4 {
    font-size: 0.95rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 25px;
  letter-spacing: 1px;
  position: relative;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 30px;
  height: 2px;
  background-color: var(--yellow);
}
.footer-about {
  color: #777;
  font-size: 0.9rem;
  margin-top: 20px;
  line-height: 1.8;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a,
.contact-info {
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}
.footer-col ul li a:hover {
  color: var(--yellow);
  padding-left: 5px;
}
.social-links {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}
.social-links a {
  color: var(--yellow);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  border: 1px solid #333;
  padding: 5px 15px;
  border-radius: 4px;
  transition: 0.3s;
}
.social-links a:hover {
  background-color: var(--yellow);
  color: #000;
}
.footer-bottom {
  border-top: 1px solid #111;
  padding: 25px 0;
  text-align: center;
  color: #555;
  font-size: 0.85rem;
}
/* --- ESTILOS PARA AS IMAGENS REAIS --- */

/* Estilo do Logotipo */
.logo-img {
  max-height: 40px; /* Controla a altura do logo. Aumenta ou diminui conforme precisares */
  width: auto;
  display: block;
}

/* Estilo da Foto Real do Livro */
.book-real-img {
  width: 100%;
  max-width: 400px; /* Largura máxima para não ficar enorme em ecrãs grandes */
  height: auto;
  border-radius: 4px; /* Arredonda os cantos muito suavemente */
  box-shadow: 15px 20px 40px rgba(0, 0, 0, 0.8); /* Mantém o sombreado 3D premium */
  transition: transform 0.5s ease; /* Prepara a animação do hover */
}

/* O efeito do livro a mexer quando passas o rato por cima */
.book-real-img:hover {
  transform: perspective(1000px) rotateY(-5deg) scale(1.03);
}

/* --- OPÇÕES DE PACOTES DE VENDA --- */
.pricing-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
}

/* Estilo Base da Opção */
.price-option {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid #222; /* Borda padrão escura */
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

/* Esconde o rádio original para usarmos o card todo como botão */
.price-option input[type="radio"] {
  display: none;
}

/* ESTADO SELECIONADO (A MÁGICA) */
.price-option.active {
  border-color: var(--yellow);
  background: rgba(255, 215, 0, 0.05);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
  transform: scale(1.02);
}

/* Indicador visual interno (opcional: um check dourado) */
.price-option.active::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 15px;
  color: var(--yellow);
  font-weight: bold;
  font-size: 1.2rem;
}

.option-details .qtd {
  display: block;
  font-weight: 700;
  color: #fff;
}

.option-details .valor {
  color: var(--yellow);
  font-size: 1.3rem;
  font-weight: 800;
}

.tag-desconto {
  background-color: var(--yellow);
  color: #000;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 900;
  letter-spacing: 1px;
}
/* --- SISTEMA DE CARRINHO DE COMPRAS --- */

/* Botão Flutuante */
.cart-floating-icon {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--text-light);
  color: #000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: transform 0.3s;
}
.cart-floating-icon:hover {
  transform: scale(1.1);
}
#cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 50%;
}

/* Aba Lateral (Sidebar) */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px; /* Começa escondido fora do ecrã */
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: #111;
  z-index: 1002;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transition: right 0.4s ease;
  border-left: 2px solid var(--yellow);
}
.cart-sidebar.open {
  right: 0; /* Quando ganha a classe 'open', desliza para a tela */
}

/* Fundo Escuro (Overlay) */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  display: none;
  backdrop-filter: blur(3px);
}
.cart-overlay.open {
  display: block;
}

/* Elementos Internos do Carrinho */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #333;
}
.cart-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--yellow);
}
#close-cart {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}
.cart-item {
  background-color: #1a1a1a;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 4px;
  border: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-item-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: #fff;
}
.cart-item-info p {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 5px;
}
.cart-item-remove {
  color: #ff4d4d;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
  background: none;
  border: none;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #333;
  background-color: #0a0a0a;
}
.cart-total {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  color: #fff;
}
.btn-finalizar-compra {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: var(--yellow);
  color: #000;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s;
  letter-spacing: 1px;
}
.btn-finalizar-compra:hover {
  background-color: #e6c200;
  transform: scale(1.02);
}
/* --- POPUP DE CONFIRMAÇÃO --- */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}
.custom-modal-overlay.show {
  display: flex; /* Mostra o popup */
}

.custom-modal {
  background-color: #111;
  border: 1px solid #333;
  border-top: 4px solid var(--yellow);
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}
.custom-modal h4 {
  color: var(--yellow);
  margin-bottom: 10px;
  font-size: 1.2rem;
  letter-spacing: 1px;
}
.custom-modal p {
  color: #ccc;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}
.modal-buttons button {
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  width: 50%;
}

.btn-cancel {
  background-color: #333;
  color: #fff;
}
.btn-cancel:hover {
  background-color: #555;
}
.btn-confirm {
  background-color: #ff4d4d;
  color: #fff;
}
.btn-confirm:hover {
  background-color: #e60000;
}
/* --- PÁGINA DE INSCRIÇÃO (CHECKOUT COAUTOR) --- */
.bg-dark {
  background-color: #050505;
}
.form-section {
  padding: 120px 0 60px 0;
  display: flex;
  justify-content: center;
}

.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  background-color: #0a0a0a;
  border: 1px solid #222;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.form-info {
  padding: 40px;
  background: linear-gradient(135deg, #111 0%, #000 100%);
  border-right: 1px solid #222;
}
.form-info h2 {
  color: var(--yellow);
  font-size: 2rem;
  margin-bottom: 10px;
}
.regras-box {
  background-color: #151515;
  padding: 25px;
  border-left: 3px solid var(--yellow);
  border-radius: 4px;
  margin-top: 30px;
}
.regras-box h4 {
  margin-bottom: 15px;
  color: #fff;
}

.form-box {
  padding: 40px;
}
.form-box h3 {
  margin-bottom: 25px;
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #ccc;
  font-weight: 600;
}
.form-group input[type="text"],
.form-group textarea,
.form-group select,
.form-group input[type="file"] {
  width: 100%;
  padding: 14px;
  background-color: #151515;
  border: 1px solid #333;
  color: #fff;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--yellow);
  background-color: #1a1a1a;
}
.form-group textarea {
  height: 120px;
  resize: vertical;
}

.error-message {
  color: #ff4d4d;
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}
.payment-info {
  background-color: rgba(255, 215, 0, 0.05);
  padding: 15px;
  border-left: 3px solid var(--yellow);
  margin-top: 10px;
  font-size: 0.9rem;
  display: none;
  color: #ddd;
}

/* Ajuste para telemóveis */
@media (max-width: 768px) {
  .form-wrapper {
    grid-template-columns: 1fr;
  }
  .form-info {
    border-right: none;
    border-bottom: 1px solid #222;
  }
}
/* --- ESTILOS ESPECÍFICOS DO LOGIN --- */
.login-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
}

.login-container {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.login-box {
  background: #0a0a0a;
  border: 1px solid #222;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-top: 4px solid var(--yellow);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-top: 10px;
  letter-spacing: 1px;
}

.login-header p {
  color: #666;
  font-size: 0.9rem;
}

.error-alert {
  background: rgba(255, 77, 77, 0.1);
  color: #ff4d4d;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 77, 77, 0.2);
  margin-bottom: 20px;
  text-align: center;
  font-size: 0.85rem;
}

.btn-login {
  width: 100%;
  padding: 15px;
  background-color: var(--yellow);
  border: none;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.3s;
  margin-top: 10px;
}

.btn-login:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Reutilizando as classes form-group e labels que já tens */
.login-box label {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
  font-weight: 600;
  font-size: 0.85rem;
}

.login-box input {
  width: 100%;
  padding: 12px;
  background: #151515;
  border: 1px solid #333;
  color: #fff;
  border-radius: 4px;
  margin-bottom: 15px;
}

.login-box input:focus {
  border-color: var(--yellow);
  outline: none;
}
/* --- DASHBOARD ADMINISTRATIVO --- */
.admin-main {
  padding: 120px 0 60px;
  min-height: 100vh;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid #222;
  padding-bottom: 20px;
}

.btn-logout {
  color: #ff4d4d;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.8rem;
  border: 1px solid #ff4d4d;
  padding: 8px 15px;
  border-radius: 4px;
  transition: 0.3s;
}
.btn-logout:hover {
  background: #ff4d4d;
  color: #fff;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.stat-card {
  background: #0a0a0a;
  border: 1px solid #222;
  padding: 25px;
  border-radius: 8px;
}
.stat-label {
  font-size: 0.75rem;
  color: #666;
  font-weight: 700;
  letter-spacing: 1px;
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 10px 0;
}
.stat-bar {
  background: #222;
  height: 4px;
  border-radius: 2px;
  margin-top: 10px;
}
.stat-progress {
  background: var(--yellow);
  height: 100%;
  border-radius: 2px;
}

/* Tabela Premium */
.table-container {
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 8px;
  overflow: hidden;
}
.table-header {
  padding: 20px;
  border-bottom: 1px solid #222;
  background: #111;
}
.premium-table {
  width: 100%;
  border-collapse: collapse;
}
.premium-table th {
  background: #111;
  color: var(--yellow);
  text-align: left;
  padding: 15px;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.premium-table td {
  padding: 15px;
  border-bottom: 1px solid #151515;
  vertical-align: middle;
  font-size: 0.9rem;
}
.premium-table tr:hover {
  background: #0f0f0f;
}

.admin-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid #222;
}
.author-info strong {
  display: block;
  color: #fff;
}
.author-info span {
  font-size: 0.75rem;
  color: #555;
}
.bio-preview {
  color: #888;
  line-height: 1.4;
}

.badge {
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
}
.badge-pago {
  background: rgba(0, 255, 100, 0.1);
  color: #00ff64;
  border: 1px solid rgba(0, 255, 100, 0.2);
}

.btn-action {
  font-size: 0.75rem;
  color: var(--yellow);
  text-decoration: none;
  border: 1px solid var(--yellow);
  padding: 6px 12px;
  border-radius: 4px;
  transition: 0.3s;
}
.btn-action:hover {
  background: var(--yellow);
  color: #000;
}
.checkout-section {
  padding: 120px 0;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
}
.checkout-card {
  background: #0a0a0a;
  border: 1px solid #222;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.checkout-card h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #888;
}
.summary-item.total {
  font-weight: 700;
  color: #fff;
  font-size: 1.2rem;
  margin-top: 15px;
}
.sticky {
  position: sticky;
  top: 100px;
}

.shipping-item label {
  display: flex;
  align-items: center;
  background: #111;
  border: 1px solid #333;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.3s;
}
.shipping-item label:hover {
  border-color: var(--yellow);
}
.shipping-item input {
  margin-right: 15px;
}
.shipping-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.shipping-details strong {
  font-size: 0.9rem;
  color: #fff;
}
.shipping-details span {
  font-size: 0.75rem;
  color: #666;
}
.shipping-item .price {
  font-weight: 700;
  color: var(--yellow);
}

@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}
/* --- LAYOUT GLOBAL DO CHECKOUT --- */
.checkout-section {
  padding: 120px 0 80px;
  background-color: #050505;
  min-height: 100vh;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px; /* Coluna larga para formulário, estreita para resumo */
  gap: 30px;
  align-items: start;
}

/* --- CHECKOUT REDESIGN --- */
.checkout-section {
  padding: 100px 0;
  background: #050505;
  color: #fff;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
}

.checkout-card {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  padding: 35px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.checkout-card h3 {
  font-size: 0.9rem;
  color: var(--yellow);
  letter-spacing: 2px;
  margin-bottom: 25px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.checkout-card h3::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--yellow);
  margin-right: 10px;
}

/* Inputs Refinados */
.form-group label {
  display: block;
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 8px;
  font-weight: 700;
}
.form-group input {
  width: 100%;
  background: #151515;
  border: 1px solid #222;
  padding: 15px;
  color: #fff;
  border-radius: 6px;
  transition: 0.3s;
}
.form-group input:focus {
  border-color: var(--yellow);
  background: #1a1a1a;
  outline: none;
}

/* Shipping Items (Baseado no seu print) */
.shipping-item label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  border: 1px solid #222;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.shipping-item label:hover {
  border-color: var(--yellow);
  background: #151515;
}
.shipping-item input[type="radio"]:checked + label {
  border-color: var(--yellow);
  background: rgba(255, 215, 0, 0.05);
}

/* Sidebar de Resumo */
.summary-box {
  background: #111;
  padding: 30px;
  border-radius: 12px;
  border-top: 4px solid var(--yellow);
}
.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: #888;
  font-size: 0.9rem;
}
.summary-total {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #222;
  display: flex;
  justify-content: space-between;
  font-size: 1.4rem;
  font-weight: 700;
}
.nav-auth {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cart-badge {
  background: var(--yellow);
  color: #000;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  vertical-align: top;
  margin-left: -10px;
  font-weight: bold;
}
.btn-yellow-small {
  background: var(--yellow);
  color: #000;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}
.btn-yellow-small:hover {
  transform: scale(1.05);
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .footer-bottom {
    font-size: 0.8rem;
    padding: 15px 0;
  }
  .container {
    padding: 0 8px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    max-height: 30px;
  }
  .footer-bottom {
    font-size: 0.7rem;
    padding: 10px 0;
  }
  .footer-col h4 {
    font-size: 1rem;
  }
}

.yellow-link:hover {
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Espaçamento extra para o conteúdo não subir */
body {
  padding-top: 80px; /* Ajuste conforme a altura do seu header */
}
/* --- ÁREA DO CLIENTE (DASHBOARD) --- */
.customer-dashboard {
  padding: 100px 0;
  background: #050505;
  color: #fff;
  min-height: 90vh;
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 350px; /* Lista de pedidos larga, sidebar estreita */
  gap: 30px;
}

/* Cabeçalho do Dashboard */
.db-header {
  grid-column: 1 / -1; /* Ocupa as duas colunas */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1a1a1a;
}

/* Cartões de Pedido */
.order-card {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.order-card:hover {
  border-color: #ffd700;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.order-id {
  font-size: 0.7rem;
  color: #666;
  letter-spacing: 1px;
  display: block;
}
.order-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-top: 5px;
  display: block;
}

/* Badges de Status */
.status-badge {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.status-pago {
  background: rgba(0, 200, 83, 0.1);
  color: #00c853;
}
.status-pendente {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
}

/* Seção de Rastreio */
.tracking-box {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #1a1a1a;
}
.tracking-label {
  font-size: 0.7rem;
  color: #666;
  margin-bottom: 8px;
  display: block;
}
.tracking-code {
  background: #151515;
  color: #ffd700;
  padding: 10px 15px;
  border-radius: 6px;
  font-family: monospace;
  font-weight: bold;
  display: inline-block;
}

/* Sidebar com Dados */
.sidebar-card {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  padding: 25px;
  border-radius: 12px;
}
.sidebar-card h4 {
  color: #ffd700;
  font-size: 0.8rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.sidebar-data {
  color: #888;
  font-size: 0.85rem;
  line-height: 1.6;
}
/* Efeito de Brilho Suave no Fundo */
body {
  background: radial-gradient(circle at top right, #121212, #050505);
  overflow-x: hidden;
}

/* Cartões com Efeito "Flutuante" e Glassmorphism */
.order-card,
.checkout-card,
.sidebar-card {
  background: rgba(13, 13, 13, 0.7) !important;
  backdrop-filter: blur(10px); /* Borra o fundo atrás do card */
  border: 1px solid rgba(255, 215, 0, 0.1) !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.order-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 215, 0, 0.5) !important;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(255, 215, 0, 0.1);
}

/* Botões com Brilho Pulsante */
.btn-inscrever-large {
  position: relative;
  overflow: hidden;
  transition: 0.4s;
  z-index: 1;
}

.btn-inscrever-large::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.btn-inscrever-large:hover::after {
  left: 100%;
}

/* Animação para o Badge do Carrinho */
.cart-badge {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--yellow);
  }
  100% {
    transform: scale(1);
  }
}
/* --- EFEITO DE PROFUNDIDADE (GLOW) --- */

/* --- ANIMAÇÃO FLUTUANTE PARA A CAPA DO LIVRO --- */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.book-real-img {
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.8));
}

/* --- GLASSMORPHISM NOS CARDS --- */
.axis-card,
.price-option,
.login-box,
.checkout-card {
  background: rgba(15, 15, 15, 0.6) !important;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 215, 0, 0.1) !important;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.axis-card:hover {
  background: rgba(20, 20, 20, 0.8) !important;
  border-color: #ffd700 !important;
  transform: translateY(-15px) scale(1.03) !important;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(255, 215, 0, 0.1);
}

/* --- REVELAÇÃO DE TEXTO (TEXT SHINE) --- */
.yellow {
  background: linear-gradient(90deg, #ffd700, #fff, #ffd700);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}
/* SUB-NAV DO ADMIN */
.admin-sub-nav {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  padding: 15px 0;
  position: sticky;
  top: 70px; /* Abaixo do seu header principal */
  z-index: 900;
}

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

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  transition: 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--yellow);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* TABELA PREMIUM */
.premium-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(20, 20, 20, 0.5);
  border-radius: 10px;
  overflow: hidden;
}

.premium-table th {
  background: #111;
  color: #555;
  text-align: left;
  padding: 15px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.premium-table td {
  padding: 15px;
  border-bottom: 1px solid #111;
  color: #ccc;
  font-size: 0.85rem;
}

/* STATUS DOTS */
.status-dot {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}
.status-dot.pago {
  background: #00c853;
  box-shadow: 0 0 10px #00c853;
}
.status-dot.pendente {
  background: #ffd700;
}

/* USERS GRID */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.user-mini-card {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.user-avatar {
  width: 50px;
  height: 50px;
  background: var(--yellow);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.2rem;
}
.stat-card {
  background: #0d0d0d;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #1a1a1a;
}
.stat-card h3 {
  font-size: 1.8rem;
  margin: 10px 0;
  color: #fff;
}
.stat-card small {
  color: #666;
  letter-spacing: 1px;
}
.order-card-admin {
  background: #0d0d0d;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #1a1a1a;
  margin-bottom: 20px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: center;
}
.rastreio-form {
  display: flex;
  gap: 10px;
}
.rastreio-form input {
  flex: 1;
  background: #000;
  border: 1px solid #222;
  color: #ffd700;
  padding: 10px;
  border-radius: 5px;
}
.toast-success {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #00c853;
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  font-weight: bold;
  animation: fadeOut 4s forwards;
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
/* --- ADMIN DASHBOARD THEME --- */
.admin-body {
  background: #000;
  color: #fff;
  font-family: "Montserrat", sans-serif;
}

.admin-header-nav {
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
}

.admin-badge {
  background: #ffd700;
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 900;
  margin-right: 10px;
}

.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 30px 0;
  margin-top: 20px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
}

.stat-box.yellow-border {
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}
.stat-box small {
  color: #666;
  font-size: 0.7rem;
  letter-spacing: 2px;
}
.stat-box h3 {
  font-size: 1.8rem;
  margin-top: 10px;
  color: #fff;
}

.view-title {
  font-size: 2rem;
  margin: 40px 0;
  font-weight: 700;
}
.view-title .dot {
  color: #ffd700;
}

/* Cards do Admin */
.admin-card {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 25px;
  transition: 0.3s;
}

.shipping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.address-details {
  background: #000;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  font-size: 0.8rem;
  color: #888;
  line-height: 1.6;
}

.rastreio-form-inline {
  display: flex;
  gap: 10px;
}
.rastreio-form-inline input {
  flex: 1;
  background: #111;
  border: 1px solid #333;
  color: #ffd700;
  padding: 8px;
  border-radius: 5px;
  font-size: 0.8rem;
}

.rastreio-form-inline button {
  background: #ffd700;
  color: #000;
  border: none;
  padding: 0 15px;
  border-radius: 5px;
  font-weight: 900;
  cursor: pointer;
}

/* Tabelas e Listas */
.premium-admin-table {
  width: 100%;
  border-collapse: collapse;
}
.premium-admin-table th {
  background: #111;
  padding: 15px;
  text-align: left;
  font-size: 0.7rem;
  color: #444;
}
.premium-admin-table td {
  padding: 15px;
  border-bottom: 1px solid #151515;
  font-size: 0.85rem;
}

.status-pill {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
}
.status-pill.pago {
  background: rgba(0, 200, 83, 0.1);
  color: #00c853;
}
/* --- EMPTY STATE DESIGN --- */
.empty-state-container {
  text-align: center;
  padding: 80px 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  margin-top: 20px;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  filter: grayscale(1) opacity(0.3);
}

.empty-state-container h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.empty-state-container p {
  color: #666;
  max-width: 400px;
  margin: 0 auto 30px auto;
  font-size: 0.9rem;
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-outline-yellow {
  border: 1px solid var(--yellow);
  color: var(--yellow);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 800;
  transition: 0.3s;
}

.btn-outline-yellow:hover {
  background: var(--yellow);
  color: #000;
}

.btn-refresh {
  background: transparent;
  border: 1px solid #333;
  color: #888;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.75rem;
}
/* --- ADMIN DASHBOARD EXCLUSIVE --- */
.admin-body {
  background: #000;
  color: #fff;
}

.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.stat-box {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  padding: 25px;
  border-radius: 15px;
  transition: 0.3s;
}
.stat-box.yellow-border {
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}
.stat-box small {
  color: #666;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.stat-box h3 {
  font-size: 2rem;
  margin: 10px 0;
  color: #fff;
}

.view-title {
  font-size: 2.2rem;
  margin-bottom: 30px;
  font-weight: 700;
}
.view-title .dot {
  color: #ffd700;
}

/* Empty State */
.empty-state-container {
  text-align: center;
  padding: 100px 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed #333;
  border-radius: 20px;
}
.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.2;
}
.btn-refresh {
  background: transparent;
  border: 1px solid #444;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  transition: 0.3s;
}
.btn-refresh:hover {
  border-color: #ffd700;
  color: #ffd700;
}

/* Shipping Grid */
.shipping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}
.admin-card {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  padding: 25px;
  border-radius: 12px;
  transition: 0.3s;
}
.admin-card:hover {
  border-color: #ffd700;
  transform: translateY(-5px);
}
.card-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #444;
  margin-bottom: 15px;
}
.id {
  font-family: monospace;
}
.address-details {
  background: #000;
  padding: 15px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #888;
  margin: 15px 0;
  border-left: 3px solid #ffd700;
}

/* Usuarios Grid */
.users-grid-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.user-mini-card {
  display: flex;
  align-items: center;
  gap: 15px;
}
.avatar-admin {
  width: 50px;
  height: 50px;
  background: #ffd700;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
}

/* Toast */
.admin-toast-success {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ffd700;
  color: #000;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 900;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
/* --- STATUS E BOTÕES DE BLOQUEIO --- */
.user-blocked {
  opacity: 0.6;
  filter: grayscale(0.5);
  border-color: #ff4d4d !important;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.status-indicator.ativo {
  background: #00c853;
  box-shadow: 0 0 10px #00c853;
}
.status-indicator.bloqueado {
  background: #ff4d4d;
  box-shadow: 0 0 10px #ff4d4d;
}

.u-actions-row {
  margin-top: 15px;
  border-top: 1px solid #1a1a1a;
  padding-top: 15px;
}

.btn-block-user,
.btn-unblock-user {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid transparent;
}

.btn-block-user {
  background: rgba(255, 77, 77, 0.1);
  color: #ff4d4d;
  border-color: rgba(255, 77, 77, 0.2);
}
.btn-block-user:hover {
  background: #ff4d4d;
  color: #fff;
}

.btn-unblock-user {
  background: rgba(0, 200, 83, 0.1);
  color: #00c853;
  border-color: rgba(0, 200, 83, 0.2);
}
.btn-unblock-user:hover {
  background: #00c853;
  color: #fff;
}
/* --- SEÇÃO CONDUTORES --- */
.conductors-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.conductors-photo-box {
  position: relative;
  max-width: 600px; /* Ajuste conforme o tamanho da sua foto */
  width: 100%;
  border-radius: 20px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), transparent);
}

.conductors-img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  display: block;
  filter: brightness(0.9) contrast(1.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transition: transform 0.5s ease;
}

/* Efeito de brilho atrás da foto */
.photo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.1) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

.conductors-photo-box:hover .conductors-img {
  transform: scale(1.02);
  filter: brightness(1);
}

.conducted-by {
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: #666;
  margin-bottom: 10px;
}

.conductors-names {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 10px;
}

.conductors-titles {
  font-size: 1rem;
  color: var(--text-gray);
  letter-spacing: 1px;
}

/* Ajuste Responsivo */
@media (max-width: 768px) {
  .conductors-names {
    font-size: 1.6rem;
  }
  .conductors-photo-box {
    max-width: 100%;
  }
}
/* --- GRID DE AUTORES PREMIUM --- */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  transition: all 0.5s ease;
}

/* Esconde autores após o 6º inicialmente */
.author-hidden {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

/* Card de Autor Style */
.author-card {
  background: rgba(20, 20, 20, 0.5);
  border: 1px solid rgba(255, 215, 0, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
}

.author-card:hover {
  border-color: var(--yellow);
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.author-image-wrapper {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.author-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: 0.5s ease;
}

.author-card:hover .author-img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.author-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, #000, transparent);
}

.author-info {
  padding: 20px;
  text-align: center;
}

.author-info h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.author-info p {
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Botão Ver Todos */
.btn-outline-yellow {
  background: transparent;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  padding: 15px 40px;
  border-radius: 5px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}

.btn-outline-yellow:hover {
  background: var(--yellow);
  color: #000;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}
/* --- ESTILOS DA ABA DE COAUTORES NO ADMIN --- */
.mini-list-admin {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}

.mini-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #111;
}

.avatar-mini {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--yellow);
}

.item-info strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
}

.item-info span {
  font-size: 0.7rem;
  color: #666;
}
/* --- POPUP (MODAL) DE COAUTORES --- */
.modal-autor-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.modal-autor-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-autor-box {
  background: #0a0a0a;
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  width: 90%;
  max-width: 850px;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.modal-autor-overlay.active .modal-autor-box {
  transform: translateY(0) scale(1);
}

.modal-autor-fechar {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}
.modal-autor-fechar:hover {
  background: var(--yellow);
  color: #000;
}

.modal-autor-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* Foto menor, Texto maior */
}

#modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
  filter: grayscale(100%);
}

.modal-autor-text {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#modal-nome {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 5px;
  line-height: 1.1;
}
#modal-cargo {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.modal-bio-texto {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.8;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 15px;
}
.modal-bio-texto::-webkit-scrollbar {
  width: 5px;
}
.modal-bio-texto::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border-radius: 10px;
}

/* Responsividade do Popup */
@media (max-width: 768px) {
  .modal-autor-content {
    grid-template-columns: 1fr;
  }
  #modal-img {
    min-height: 250px;
    height: 250px;
    object-position: top;
  }
  .modal-autor-text {
    padding: 25px;
  }
  #modal-nome {
    font-size: 1.6rem;
  }
}
/* Botão Flutuante WhatsApp */
.whatsapp-floating-icon {
  position: fixed;
  bottom: 30px;
  left: 30px; /* Lado oposto ao carrinho */
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-floating-icon:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: #fff;
}

/* Animação de pulso suave */
@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Ajuste para mobile (não ficar em cima de outros elementos se a tela for pequena) */
@media (max-width: 768px) {
  .whatsapp-floating-icon {
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
  }
}
/* =======================================================
   RESPONSIVIDADE GLOBAL (ADICIONAR AO FIM DO ARQUIVO)
   ======================================================= */

/* --- TABLETS (992px ou menos) --- */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .grid-2-cols {
    grid-template-columns: 1fr; /* Transforma 2 colunas em 1 */
    gap: 30px;
    text-align: center;
  }

  .objetivos-box,
  .governanca-box {
    border-left: none;
    border-top: 4px solid var(--yellow);
    padding: 20px;
  }

  /* Checkout e Dashboard */
  .checkout-grid,
  .dashboard-container,
  .admin-grid {
    grid-template-columns: 1fr !important;
  }

  .sticky {
    position: static; /* O resumo deixa de seguir a tela no mobile */
    margin-top: 20px;
  }

  .stats-dashboard {
    grid-template-columns: 1fr;
  }
}

/* --- SMARTPHONES (768px ou menos) --- */
@media (max-width: 768px) {
  .dark-section,
  .light-dark-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero {
    height: auto;
    padding: 120px 20px 60px;
  }

  .hero h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  /* Ajuste das fotos dos condutores e livro */
  .conductors-photo-box,
  .book-placeholder,
  .book-real-img {
    max-width: 100%;
  }

  .current-price {
    font-size: 2.2rem;
  }

  /* Floating Icons (WhatsApp e Carrinho) */
  .cart-floating-icon,
  .whatsapp-floating-icon {
    width: 50px;
    height: 50px;
    bottom: 20px;
  }

  .cart-floating-icon {
    right: 20px;
  }
  .whatsapp-floating-icon {
    left: 20px;
  }

  /* Tabela de Dados (Admin/Dashboard) */
  .table-container {
    overflow-x: auto; /* Permite arrastar a tabela pro lado se não couber */
  }

  .premium-table,
  .premium-admin-table {
    min-width: 600px;
  }
}

/* --- CELULARES PEQUENOS (480px ou menos) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .btn-inscrever-large,
  .btn-comprar-livro {
    padding: 15px 20px;
    font-size: 1rem;
    width: 100%;
  }

  .price-option {
    padding: 15px;
    flex-direction: column;
    text-align: center;
  }

  .price-option.active::after {
    top: 5px;
    right: 10px;
  }

  /* Ajuste do Modal de Autor */
  .modal-autor-box {
    width: 95%;
  }

  #modal-nome {
    font-size: 1.4rem;
  }
}
/* =======================================================
   REVISÃO DEFINITIVA: HEADER E BOTÕES MOBILE
======================================================= */

@media (max-width: 992px) {
    /* 1. HEADER: Logo na Esquerda, Menu na Direita */
    .main-header {
        height: 65px !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
    }

    .header-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important; /* SEPARA OS DOIS */
        align-items: center !important;
        box-sizing: border-box !important;
    }

    /* Reset de margens que podem estar "empurrando" os itens */
    .logo-link, .menu-toggle {
        margin: 0 !important;
        position: static !important;
    }

    .logo-img {
        max-height: 30px !important;
    }

    /* 2. BOTÕES FLUTUANTES: Mesma Altura, Lados Opostos */
    
    /* WhatsApp na Esquerda */
    .whatsapp-floating-icon {
        position: fixed !important;
        bottom: 20px !important;
        left: 20px !important; /* Fixado na esquerda */
        right: auto !important; /* Garante que não use a regra da direita */
        width: 55px !important;
        height: 55px !important;
        z-index: 9999 !important;
        display: flex !important;
    }

    /* Carrinho na Direita */
    .cart-floating-icon {
        position: fixed !important;
        bottom: 20px !important; /* MESMA ALTURA DO WHATSAPP */
        right: 20px !important; /* Fixado na direita */
        left: auto !important;
        width: 55px !important;
        height: 55px !important;
        z-index: 9999 !important;
        display: flex !important;
    }

    /* Ajuste do contador do carrinho */
    #cart-count {
        top: -5px !important;
        right: -5px !important;
        padding: 2px 6px !important;
    }
}

/* Ajustes Extras para Celulares Pequenos */
@media (max-width: 480px) {
    .main-header { height: 60px !important; }
    .logo-img { max-height: 25px !important; }
    
    /* Faz o carrinho ocupar a tela toda ao abrir */
    .cart-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Bloqueia qualquer movimento lateral da tela */
html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
}

/* Ajuste para telas muito pequenas (iPhone SE / etc) */
@media (max-width: 480px) {
    .main-header {
        height: 60px !important;
    }
    
    .logo-img {
        max-height: 28px !important;
    }

    /* Sidebar do carrinho ocupa a tela toda para melhor UX */
    .cart-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Garante que o conteúdo do footer não quebre a largura */
    .main-footer .container {
        padding: 0 15px !important;
        overflow-x: hidden !important;
    }
}

/* Correção de transbordamento horizontal */
