:root {
  --primary: #ff6600;       /* Laranja */
  --primary-hover: #e65c00; /* Laranja Escuro */
  --bg: #121212;            /* Preto Fundo */
  --surface: #1e1e1e;       /* Cinza Escuro (Cards) */
  --text: #e5e7eb;          /* Cinza Claro (Texto) */
  --text-dark: #ffffff;     /* Branco (Títulos) */
  --border: #333333;        /* Bordas Escuras */
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* --- Layout --- */
#dashboard {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

#landing {
  width: 100%;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  background: var(--surface);
  padding: 20px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

h1, h2, h3 {
  color: var(--text-dark);
  margin-top: 0;
  font-weight: 600;
}

/* --- Seções e Cards --- */
section {
  background: var(--surface);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  border: 1px solid var(--border);
}

/* --- Formulários --- */
input, select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #2d2d2d;
  font-size: 15px;
  box-sizing: border-box;
  transition: all 0.2s;
  color: var(--text-dark);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  background: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
}

/* --- Botões --- */
button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.1s, background-color 0.2s;
}

button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* Botões de Equipe (Estilo Outline) */
#teamSection {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#teamSection button {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

#teamSection button:hover,
#teamSection button.active {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(255, 102, 0, 0.1);
  box-shadow: 0 0 0 1px var(--primary);
}

/* --- Listas --- */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

li:last-child {
  border-bottom: none;
}

.robot-thumb {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 1px solid var(--border);
}

.member-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 1px solid var(--border);
}

/* --- Grid de Categorias --- */
.robots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

/* --- Carrossel de Equipes (Infinito) --- */
.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  /* Efeito de fade nas bordas para ficar elegante */
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.carousel-track {
  display: flex;
  width: max-content; /* Largura baseada no conteúdo */
  gap: 50px;          /* Espaço entre as equipes */
  animation: scroll 30s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused; /* Para o carrossel se passar o mouse */
}

.team-public-card {
  flex: 0 0 auto; /* Impede que o card encolha */
  width: 160px;
  text-align: center;
}

.team-public-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin-bottom: 10px;
  background-color: #333; /* Fundo caso imagem falhe ou seja transparente */
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Move metade (o tamanho do conjunto original) */
}

.category-card {
  background: var(--surface);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.category-card:hover {
  transform: translateY(-2px);
}

.category-card h3 {
  font-size: 1.1rem;
  border-bottom: 2px solid var(--bg);
  padding-bottom: 15px;
  margin-bottom: 15px;
  color: var(--primary);
}

/* --- Modais --- */
[id$="Modal"] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6); /* Backdrop escuro */
  display: none; /* Controlado pelo JS */
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  z-index: 100;
}

/* Conteúdo do Modal (assumindo que é a div filha direta) */
[id$="Modal"] > div {
  background: var(--surface);
  padding: 40px;
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Mensagens de Feedback */
#loginMessage, #memberMessage, #robotMessage {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.5rem;
}

/* --- Landing Page Customizada --- */
.landing-hero {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 20px;
}

.landing-logo {
  max-width: 100%;
  height: 120px; /* Ajuste a altura conforme necessário */
  margin-bottom: 20px;
}

.landing-hero p {
  font-size: 1.2rem;
  color: #9ca3af;
  margin-bottom: 30px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  margin-left: 10px;
}

.btn-outline:hover {
  background: rgba(255, 102, 0, 0.1);
}

.landing-banner {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow);
}

.landing-content {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.landing-content p {
  color: #d1d5db;
  line-height: 1.8;
  margin-bottom: 15px;
}

.landing-wide {
  width: 100%;
  max-width: 1400px; /* Permite ficar bem largo */
  margin: 60px auto;
  padding: 0 40px;   /* Espaçamento lateral */
  box-sizing: border-box;
}

/* --- Patrocinadores --- */
.landing-sponsors {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.landing-sponsors h3 {
  margin-bottom: 40px;
  opacity: 0.8;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sponsors-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.sponsors-list img {
  height: 80px; /* Altura aumentada */
  opacity: 0.5;
  transition: all 0.3s ease;
  filter: grayscale(100%); /* Deixa preto e branco */
}

.sponsors-list img:hover {
  opacity: 1;
  filter: grayscale(0%); /* Volta a cor original no hover */
  transform: scale(1.1);
}

/* --- Pagamentos --- */
.payment-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #2d2d2d;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.payment-item input {
  width: 20px;
  margin: 0 15px 0 0;
}

/* --- Toasts (Notificações) --- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 15px 25px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease-out forwards;
  min-width: 250px;
  display: flex;
  align-items: center;
}

.toast.success { background-color: #22c55e; border-left: 5px solid #15803d; }
.toast.error { background-color: #ef4444; border-left: 5px solid #b91c1c; }
.toast.warning { background-color: #f59e0b; border-left: 5px solid #b45309; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- Loading Overlay --- */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 102, 0, 0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Payment Modal Styles --- */
.payment-modal-box {
  background: var(--surface);
  padding: 40px;
  border-radius: 16px;
  width: 90%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalSlide 0.3s ease-out;
}

.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

.payment-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--border);
}

.payment-tab {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;
}

.payment-tab:hover {
  background: rgba(255, 102, 0, 0.05);
  transform: none;
}

.payment-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(255, 102, 0, 0.1);
}

.payment-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.payment-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mercado Pago Card Payment Brick Customization */
#cardPaymentBrick_container {
  margin-top: 20px;
}

/* Override Mercado Pago styles to match dark theme */
#cardPaymentBrick_container iframe {
  border-radius: 8px;
}
