/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }

/* VARIÁVEIS */
:root {
  --gold: #D4AF6A;
  --gold-dark: #B88A32;
  --background: #000;
  --card: #111;
  --card-secondary: #181818;
  --border: #333;
  --text: #fff;
  --light: #ccc;
  --shadow: 0 15px 35px rgba(0,0,0,0.45);
  --radius: 22px;
}

/* LIGHT MODE */
body.light-mode {
  --background: #ffffff;
  --card: #f9f9f9;
  --card-secondary: #f0f0f0;
  --border: #ddd;
  --text: #000000;
  --light: #555555;
}

/* BODY */
body {
  font-family: "Cormorant Garamond", serif;
  background: var(--background);
  color: var(--text);
}

/* PAGE */
.page {
  width: min(1700px, 96vw);
  min-height: 100vh;
  margin: auto;
  display: flex;
  flex-direction: column;
}

/* HERO */
.hero { text-align: center; padding: 14px 0 10px; }
.luxe-title {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  font-family: "Playfair Display", serif; font-size: 50px; color: var(--text);
}
.luxe-diamond { width: 24px; height: 24px; flex-shrink: 0; }
.hero h2 { margin-top: 10px; font-size: 26px; font-weight: 600; color: var(--text); }
.hero-description { max-width: 1200px; margin: 10px auto 0; font-size: 18px; color: var(--light); }

/* MAIN LAYOUT */
.main-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

/* CHAT */
.chat-panel {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--card-secondary);
  border-bottom: 1px solid var(--border);
}
.chat-header h3 { font-size: 26px; color: var(--text); }
.chat-header p { font-size: 16px; color: var(--light); }

/* STATUS ONLINE */
.online {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card-secondary);
  border: 1px solid var(--border);
  font-size: 16px;
  color: var(--light);
}
.online span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #32CD32; /* verde claro */
  box-shadow: 0 0 8px rgba(50, 205, 50, 0.7);
}

/* MENSAGENS */
.messages {
  flex: 1;
  padding: 8px 12px;
  background: #050505;
  overflow-y: auto;
}
.message {
  display: block;
  width: fit-content;
  max-width: 88%;
  margin-bottom: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 20px;   /* fonte maior */
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.message.user {
  margin-left: auto;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-weight: 600;
}
.message.support {
  margin-right: auto;
  background: var(--card-secondary);
  border: 1px solid var(--border);
  color: var(--text);
}

/* CHAT INPUT */
.chat-input {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card-secondary);
  border-top: 1px solid var(--border);
}
.chat-input input {
  flex: 1;
  height: 50px;
  padding: 0 20px;
  border: 2px solid #444;
  border-radius: 16px;
  background: #111;
  color: var(--text);
  font-size: 18px;
}
.chat-input button {
  width: 120px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* SIDEBAR / EBOOK */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.ebook-card-link { text-decoration: none; color: inherit; }
.ebook-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ebook-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}
.ebook-cover {
  display: block;
  width: 220px;
  height: 320px;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 10px;
}
.badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(212,175,106,0.12);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 2px;
}
.ebook-card h3 { font-size: 24px; margin-bottom: 12px; }
.ebook-card p { font-size: 16px; color: var(--light); }
.ebook-button {
  margin-top: 18px;
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  font-family: "Playfair Display", serif;
  font-size: 19px;
  display: flex;              /* centraliza texto */
  justify-content: center;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ebook-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.20);
}
.ebook-button:active { transform: scale(0.98); }

/* FOOTER */
footer {
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  color: var(--light);
}
footer nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
footer nav a {
  color: var(--light);
  text-decoration: none;
  font-size: 16px;
}
footer nav a:hover { color: var(--gold); }
footer p { font-size: 16px; color: var(--light); }

/* EXTRA SECTION */
.extra-section {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 0;
  padding: 10px 0;
  background: var(--background);
  color: var(--text);
  flex-wrap: wrap;
}
.box-red, .box-blue {
  flex: 1 1 300px;
  padding: 20px;
  margin: 0;
  border-radius: 16px;
  background-color: var(--card-secondary);
  box-shadow: var(--shadow);
}
.box-red h3, .box-blue h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--gold);
}
.box-red ul { list-style: none; padding-left: 24px; }
.box-red li { margin-bottom: 8px; font-size: 16px; color: var(--text); }
.box-red li::before { content: "✦ "; color: var(--gold); margin-right: 6px; }

/* FEEDBACK BUTTON */
.feedback-button {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 24px;
  border-radius: 16px;
  font-family: "Playfair Display", serif;
  font-size: 18px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feedback-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.20);
}
.feedback-button:active { transform: scale(0.98); }

/* ARTICLES */
.articles-area { text-align: center; margin: 30px 0; }
.articles-button {
  background-color: var(--gold);
  color: #000;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}
.articles-button:hover { background-color: var(--gold-dark); color: #fff; }

/* NOSCRIPT */
.noscript {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 12px;
  background: #8B0000;
  color: #fff;
  text-align: center;
  z-index: 9999;
}

/* BOTÃO LIGHT/DARK MODE */
.theme-toggle {
  padding: 10px 24px;
  border: none;
  border-radius: 24px;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}
.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.theme-toggle:active {
  transform: scale(0.96);
}

/* LIGHT MODE */
body.light-mode {
  background-color: #ffffff;   /* fundo sempre branco */
  color: #000000;              /* texto sempre preto */
}

/* Painel do chat */
body.light-mode .chat-panel {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
}

/* Cabeçalho e área de input */
body.light-mode .chat-header,
body.light-mode .chat-input {
  background-color: #f0f0f0;
  border-color: #ddd;
}

/* Área de mensagens */
body.light-mode .messages {
  background-color: #ffffff;
  color: #000000;
}

/* Input do usuário */
body.light-mode .chat-input input {
  background-color: #ffffff;   /* fundo branco no Light Mode */
  color: #000000;              /* texto preto */
  border: 2px solid #ddd;
}

/* Botão enviar */
body.light-mode .chat-input button {
  background: linear-gradient(135deg, #D4AF6A, #B88A32);
  color: #fff;
}

/* Card do eBook */
body.light-mode .ebook-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  color: #000000;
}
body.light-mode .ebook-card p {
  color: #555555;
}

/* Footer */
body.light-mode footer {
  color: #555555;
}
body.light-mode footer nav a {
  color: #555555;
}

/* HELPERS */
.hidden { display: none !important; }