.nx-ai-launcher,
.nx-ai-panel,
.nx-ai-panel * { box-sizing: border-box; }

.nx-ai-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(117, 255, 172, .35);
  border-radius: 999px;
  padding: 8px 17px 8px 9px;
  background: #0b2118;
  color: #effff4;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .34);
  font: 700 13px/1.2 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.nx-ai-launcher:hover { transform: translateY(-3px); border-color: #57ed91; background: #103023; }
.nx-ai-launcher:focus-visible,
.nx-ai-panel button:focus-visible,
.nx-ai-panel input:focus-visible { outline: 3px solid #d5f66c; outline-offset: 3px; }
.nx-ai-launcher-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #57ed91; color: #052112; font-weight: 900; }
.nx-ai-launcher-dot { width: 7px; height: 7px; border-radius: 50%; background: #57ed91; box-shadow: 0 0 0 5px rgba(87, 237, 145, .12); }

.nx-ai-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 9999;
  width: min(390px, calc(100vw - 28px));
  max-height: min(650px, calc(100dvh - 120px));
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid rgba(160, 226, 186, .18);
  border-radius: 20px;
  background: #081710;
  color: #effff4;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .48);
  font-family: ui-sans-serif, system-ui, sans-serif;
  transform: translateY(18px) scale(.97);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.nx-ai-panel.nx-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.nx-ai-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border-bottom: 1px solid rgba(198, 255, 218, .1); background: #0c2118; }
.nx-ai-identity { display: flex; align-items: center; gap: 11px; }
.nx-ai-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #57ed91; color: #04160c; font-weight: 900; }
.nx-ai-identity strong { display: block; font-size: 14px; }
.nx-ai-identity small { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: #9eb6a8; font-size: 11px; }
.nx-ai-identity small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #57ed91; }
.nx-ai-close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #9eb6a8; font-size: 22px; cursor: pointer; }
.nx-ai-close:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nx-ai-messages { overflow-y: auto; padding: 16px; scroll-behavior: smooth; }
.nx-ai-message { max-width: 88%; margin-bottom: 12px; padding: 11px 13px; border-radius: 14px; font-size: 13px; line-height: 1.55; white-space: pre-line; }
.nx-ai-message-assistant { border: 1px solid rgba(198, 255, 218, .1); border-radius: 4px 14px 14px; background: #10271d; color: #dbe9e0; }
.nx-ai-message-user { margin-left: auto; border-radius: 14px 4px 14px 14px; background: #57ed91; color: #052112; font-weight: 600; }
.nx-ai-typing { display: flex; gap: 4px; width: fit-content; }
.nx-ai-typing i { width: 5px; height: 5px; border-radius: 50%; background: #8fa69a; animation: nx-typing 1s infinite alternate; }
.nx-ai-typing i:nth-child(2) { animation-delay: .18s; }
.nx-ai-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes nx-typing { to { opacity: .25; transform: translateY(-3px); } }
.nx-ai-quick { display: flex; gap: 7px; overflow-x: auto; padding: 0 14px 12px; scrollbar-width: none; }
.nx-ai-quick::-webkit-scrollbar { display: none; }
.nx-ai-quick button { flex: 0 0 auto; border: 1px solid rgba(87, 237, 145, .2); border-radius: 999px; padding: 7px 10px; background: transparent; color: #b9cec1; font-size: 11px; cursor: pointer; }
.nx-ai-quick button:hover { border-color: #57ed91; color: #eafff0; }
.nx-ai-form { display: grid; grid-template-columns: 1fr 42px; gap: 8px; padding: 12px; border-top: 1px solid rgba(198, 255, 218, .1); background: #0a1c14; }
.nx-ai-form input { min-width: 0; height: 42px; border: 1px solid rgba(198, 255, 218, .13); border-radius: 11px; padding: 0 12px; background: #06110d; color: #effff4; font-size: 13px; }
.nx-ai-form input::placeholder { color: #6e8779; }
.nx-ai-form button { border: 0; border-radius: 11px; background: #57ed91; color: #052112; font-size: 18px; font-weight: 900; cursor: pointer; }
.nx-ai-disclosure { padding: 0 14px 12px; background: #0a1c14; color: #6f887a; font-size: 9px; text-align: center; }

[data-nx-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .75, .2, 1); }
[data-nx-reveal].nx-visible { opacity: 1; transform: none; }
[data-nx-tilt] { transform-style: preserve-3d; transition: transform .18s ease; position: relative; }
[data-nx-tilt]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--sheen-x, 50%) var(--sheen-y, 50%), rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s;
}
[data-nx-tilt]:hover::before {
  opacity: 1;
}

@media (max-width: 620px) {
  .nx-ai-launcher { right: 14px; bottom: 14px; padding-right: 12px; }
  .nx-ai-launcher-label { display: none; }
  .nx-ai-panel { right: 14px; bottom: 80px; max-height: calc(100dvh - 104px); }
  .nx-has-floating-wa .nx-ai-launcher { bottom: 84px; }
  .nx-has-floating-wa .nx-ai-panel { bottom: 146px; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-ai-launcher,
  .nx-ai-panel,
  [data-nx-reveal],
  [data-nx-tilt] { transition: none !important; transform: none !important; }
  [data-nx-reveal] { opacity: 1; }
  .nx-ai-typing i { animation: none; }
}

@media print {
  .nx-ai-launcher,
  .nx-ai-panel { display: none !important; }
}

/* --- GLOBAL IMMERSIVE STYLES (LOADER, PROGRESS, CUSTOM CURSOR, SPOTLIGHT) --- */
.imm-progress {
  position: fixed;
  z-index: 99999;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  pointer-events: none;
}
.imm-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #bef264);
}
.imm-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  background: #020617;
  transition: transform .85s cubic-bezier(.2, .8, .2, 1), visibility .85s;
}
.imm-loader.done {
  transform: translateY(-105%);
  visibility: hidden;
}
.imm-loader>div {
  display: grid;
  place-items: center;
  gap: 20px;
}
.imm-loader img {
  width: 120px;
  height: auto;
}
.imm-loader span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #64748b;
}
.imm-loader b {
  color: #fff;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: .8;
  letter-spacing: -.08em;
}
.imm-loader>i {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #10b981;
  transition: width .1s;
}
.imm-cursor {
  position: fixed;
  z-index: 100000;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6);
  transition: width .25s ease, height .25s ease, opacity .2s ease, transform .25s ease;
}
.imm-cursor.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* CLASSIC DESIGN (Pitch Deck only) */
.imm-cursor.imm-cursor-classic {
  border: 1px solid rgba(87, 237, 145, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(87, 237, 145, 0.15);
  font-size: 8px;
  font-weight: bold;
  letter-spacing: .1em;
  color: #effff4;
  transition: width .25s, height .25s, opacity .2s, background .25s, color .25s, transform .25s;
}
.imm-cursor.imm-cursor-classic.active {
  width: 56px;
  height: 56px;
  background: rgba(87, 237, 145, 0.15);
  border-color: #57ed91;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(87, 237, 145, 0.35);
}
.imm-cursor.imm-cursor-classic::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #57ed91;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.2s;
}
.imm-cursor.imm-cursor-classic.active::before {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

/* NEW DESIGN (All other pages) */
.imm-cursor.imm-cursor-new {
  border: none;
  background: transparent;
  box-shadow: none;
}
.imm-cursor.imm-cursor-new.active {
  width: 48px;
  height: 48px;
}
.imm-cursor-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.imm-cursor-ring-out,
.imm-cursor-ring-in,
.imm-cursor-arrow {
  transition: stroke 0.3s ease, filter 0.3s ease;
}
.imm-cursor.active .imm-cursor-ring-out,
.imm-cursor.active .imm-cursor-ring-in,
.imm-cursor.active .imm-cursor-arrow {
  stroke: url(#cursorGradHover);
  filter: drop-shadow(0 0 6px rgba(87, 237, 145, 0.7));
}

#immCursorText {
  position: absolute;
  top: 115%;
  left: 50%;
  transform: translateX(-50%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #bef264;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
#immCursorText.has-text {
  opacity: 1;
}

.imm-spotlight {
  position: fixed;
  z-index: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.04), transparent 68%);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* Trail of light particles */
.imm-cursor-trail {
  position: fixed;
  z-index: 99999;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #00f3ff 0%, rgba(0, 85, 255, 0.4) 60%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0.85;
  animation: immTrailFade 0.8s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}
.imm-cursor-trail.active {
  background: radial-gradient(circle, #bef264 0%, rgba(34, 197, 94, 0.4) 60%, transparent 100%);
}
@keyframes immTrailFade {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.15);
  }
}
@media (max-width: 780px) {
  .imm-cursor, .imm-spotlight {
    display: none !important;
  }
}
@media (pointer: fine) {
  html, body, a, button, input, select, textarea, label, [role="button"], .cursor-pointer {
    cursor: none !important;
  }
}

/* --- TRADUÇÕES E MULTI-IDIOMA --- */
html[lang="pt"] .lang-en { display: none !important; }
html[lang="pt-BR"] .lang-en { display: none !important; }
html[lang="en"] .lang-pt { display: none !important; }

/* Seletor de Idioma */
.nx-lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  margin-left: 12px;
  vertical-align: middle;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.nx-lang-selector button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer !important;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  transition: all 0.2s ease;
  line-height: 1;
}
.nx-lang-selector button.active {
  color: #57ed91;
  background: rgba(87, 237, 145, 0.15);
}
.nx-lang-selector button:hover:not(.active) {
  color: #fff;
}
/* Seletor Mobile */
.mobile-menu .nx-lang-selector,
#mobileMenu .nx-lang-selector,
#m .nx-lang-selector {
  margin: 12px 0 0 0;
  background: rgba(255, 255, 255, 0.05);
}

/* Hide legacy cursors globally */
.cursor {
  display: none !important;
}

/* 3D Cube Image Transition */
.nx-cube-container {
  perspective: 1600px;
  width: 100%;
  height: 320px;
  position: relative;
}

.nx-cube-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: 50% 50% -160px; /* half of height */
}

.nx-cube-container:hover .nx-cube-inner {
  transform: rotateX(90deg);
}

.nx-cube-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(87, 237, 145, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.nx-cube-front {
  transform: rotateX(0deg);
  background: #07100b;
}

.nx-cube-bottom {
  transform: rotateX(-90deg);
  transform-origin: 50% 50% -160px;
  background: linear-gradient(135deg, #07100b 0%, #0d2518 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
  border-color: rgba(87, 237, 145, 0.4);
}

.nx-cube-bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(87, 237, 145, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.nx-cube-back-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.nx-cube-back-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.nx-cube-back-tag {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  color: #57ed91;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(87, 237, 145, 0.1);
  border: 1px solid rgba(87, 237, 145, 0.2);
}

.nx-cube-back-desc {
  font-size: 13px;
  color: #92a99a;
  max-width: 280px;
  line-height: 1.6;
}

.nx-cube-back-cta {
  font-size: 11px;
  font-weight: 700;
  color: #07100b;
  background: #d6ff77;
  padding: 8px 16px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(214, 255, 119, 0.3);
  transition: background 0.2s, transform 0.2s;
}

.nx-cube-container:hover .nx-cube-back-cta {
  transform: translateY(-2px);
}

/* Global Floating WhatsApp Button */
.floating-wa {
  position: fixed;
  right: 26px;
  bottom: 100px; /* Posicionado acima do botão Fale Conosco */
  z-index: 9997;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
  animation: waPulse 2s infinite;
}
.floating-wa:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 20px 40px rgba(37, 211, 102, 0.5);
}
.floating-wa img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4), 0 16px 32px rgba(37, 211, 102, 0.35); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 16px 32px rgba(37, 211, 102, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 16px 32px rgba(37, 211, 102, 0.35); }
}

