.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #1e2838;
  height: 56px;
  display: flex;
  align-items: center;
}
.topnav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.topnav-brand {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 3px;
  color: #d4a520;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.topnav-brand:hover { color: #f5d76e; }
.topnav-links {
  display: flex;
  gap: 24px;
  flex: 1;
  min-width: 0;
}
.topnav-link {
  font-size: 14px;
  color: #b8c0cc;
  text-decoration: none;
  transition: color 150ms;
  padding: 8px 4px;
  white-space: nowrap;
}
.topnav-link:hover { color: #d4a520; }
.topnav-cta-wrap {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
#sherlock-auth-header {
  flex-shrink: 0;
  white-space: nowrap;
}
.topnav-cta {
  display: inline-block;
  padding: 8px 16px;
  background: #d4a520;
  color: #0a0a0a;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  transition: background 150ms;
  white-space: nowrap;
}
.topnav-cta:hover { background: #f5d76e; }

body { padding-top: 56px !important; }

@media (max-width: 1280px) {
  .topnav-inner { gap: 20px; }
  .topnav-links { gap: 18px; }
}

@media (max-width: 1024px) {
  .topnav-inner { gap: 14px; }
  .topnav-links { gap: 12px; }
  .topnav-link { font-size: 13px; }
  #sherlock-auth-header { font-size: 12px; }
}

@media (max-width: 900px) {
  .topnav-links { display: none; }
  .topnav-inner { gap: 12px; }
}

@media (max-width: 768px) {
  .topnav-cta { padding: 6px 12px; font-size: 12px; }
  #sherlock-auth-header { font-size: 11px; padding: 3px 8px; }
}

@media (max-width: 480px) {
  .topnav-inner { padding: 0 12px; }
  .topnav-brand { display: none; }
  .topnav-cta { padding: 5px 8px; font-size: 11px; }
  .cta-nao-assinante { font-size: 0; }
  .cta-nao-assinante::before { content: "Assinar"; font-size: 11px; }
  #sherlock-auth-header { font-size: 11px !important; }
}

/* ===== BANNER BETA (permanente) ===== */
.beta-banner {
  background: linear-gradient(90deg, rgba(212,165,32,0.15), rgba(212,165,32,0.08));
  border-bottom: 1px solid rgba(212,165,32,0.3);
  color: #d4a520;
  font-size: 12px;
  text-align: center;
  padding: 7px 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.beta-banner a {
  color: #f5d76e;
  text-decoration: underline;
  margin-left: 8px;
}
.beta-banner a:hover { color: #fff; }

/* ===== Esconde botão "+ Créditos" durante BETA ===== */
.auth-comprar-btn,
.btn-comprar-creditos,
#sherlock-comprar-creditos { display: none !important; }
.auth-saldo[title="Seu saldo de créditos"] { display: none !important; }

/* ===== MODAL BETA (primeiro login) ===== */
.beta-modal-bg {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.beta-modal-bg.show { display: flex; }
.beta-modal {
  background: #14181f;
  border: 1px solid #d4a520;
  border-radius: 8px;
  padding: 32px 28px;
  max-width: 540px;
  width: 100%;
  color: #e0e0e0;
  max-height: 90vh;
  overflow-y: auto;
}
.beta-modal h2 {
  color: #d4a520;
  font-size: 16px;
  letter-spacing: 2px;
  margin: 0 0 16px;
  text-transform: uppercase;
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.beta-modal h3 {
  color: #d4a520;
  font-size: 13px;
  letter-spacing: 1.5px;
  margin: 20px 0 8px;
  text-transform: uppercase;
}
.beta-modal p {
  font-size: 14px;
  line-height: 1.6;
  color: #b8c0cc;
  margin: 0 0 12px;
}
.beta-modal ul {
  font-size: 14px;
  line-height: 1.7;
  color: #b8c0cc;
  padding-left: 20px;
  margin: 0 0 12px;
}
.beta-modal-acoes {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}
.beta-modal-acoes button {
  padding: 11px 28px;
  background: #d4a520;
  color: #0a0a0a;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.beta-modal-acoes button:hover { background: #f5d76e; }
.beta-modal-acoes button:disabled { opacity: 0.5; cursor: wait; }
