.landing-neural-guide * {
  box-sizing: border-box;
}

/* Landing page uses a global custom cursor (body { cursor: none; }).
   Force native cursor visibility inside widget interaction zone. */
.landing-neural-guide,
.landing-neural-guide * {
  cursor: auto !important;
}

.landing-neural-guide {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10050;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.landing-neural-guide > * {
  pointer-events: auto;
}

body.has-sticky-cta .landing-neural-guide {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.neural-teaser {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(320px, calc(100vw - 110px));
  padding: 10px 14px 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(56, 232, 255, 0.28);
  background: linear-gradient(135deg, rgba(9, 14, 28, 0.96), rgba(20, 12, 40, 0.94));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 32px rgba(155, 108, 255, 0.22);
  color: #eaf2ff;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.neural-teaser.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.neural-teaser.is-dismissed {
  display: none;
}

.neural-teaser-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #38e8ff, #9b6cff);
  color: #070a12;
  font-size: 15px;
}

.neural-teaser-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.neural-teaser-copy span {
  display: block;
  font-size: 11px;
  color: #a8b7d1;
  line-height: 1.35;
}

.neural-launcher-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.neural-launcher-label {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #eaf2ff;
  background: rgba(7, 10, 18, 0.88);
  border: 1px solid rgba(56, 232, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}

.landing-neural-guide.is-hint-visible .neural-launcher-label,
.landing-neural-guide:hover .neural-launcher-label {
  opacity: 1;
  transform: translateX(0);
}

.neural-launcher {
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 22px;
  background: radial-gradient(circle at 30% 30%, #38e8ff 0%, #0b1c35 45%, #070a12 100%);
  box-shadow: 0 0 0 1px rgba(56, 232, 255, 0.45), 0 0 36px rgba(56, 232, 255, 0.42), 0 20px 50px rgba(0, 0, 0, 0.5);
  color: #eaf2ff;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease;
  font-size: 1.35rem;
}

.landing-neural-guide.is-hint-visible .neural-launcher,
.neural-launcher.is-attention {
  animation: neural-launcher-glow 2.4s ease-in-out infinite;
}

@keyframes neural-launcher-glow {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(56, 232, 255, 0.45), 0 0 36px rgba(56, 232, 255, 0.42), 0 20px 50px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(155, 108, 255, 0.55), 0 0 52px rgba(56, 232, 255, 0.55), 0 22px 56px rgba(0, 0, 0, 0.55);
    transform: translateY(-2px) scale(1.03);
  }
}

.neural-launcher::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  border: 1px solid rgba(155, 108, 255, 0.35);
  animation: neural-pulse 8s ease-in-out infinite;
}

.neural-launcher:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(56, 232, 255, 0.5), 0 0 36px rgba(56, 232, 255, 0.45), 0 18px 45px rgba(0, 0, 0, 0.55);
}

@keyframes neural-pulse {
  0%,
  100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.neural-launcher-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #36e6a5;
  box-shadow: 0 0 10px #36e6a5;
}

.neural-panel {
  position: absolute;
  right: 0;
  bottom: 88px;
  width: min(420px, calc(100vw - 28px));
  height: min(680px, calc(100vh - 130px));
  border-radius: 20px;
  border: 1px solid rgba(56, 232, 255, 0.24);
  background: linear-gradient(160deg, rgba(9, 14, 28, 0.97), rgba(7, 10, 18, 0.98));
  backdrop-filter: blur(12px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55), 0 0 38px rgba(155, 108, 255, 0.2);
  display: none;
  overflow: hidden;
}

.neural-panel.open {
  display: flex;
  flex-direction: column;
  animation: neural-panel-open 220ms ease-out;
}

@keyframes neural-panel-open {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.neural-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(56, 232, 255, 0.18);
  background: linear-gradient(90deg, rgba(56, 232, 255, 0.08), rgba(155, 108, 255, 0.12));
}

.neural-title {
  font-size: 13px;
  color: #eaf2ff;
  font-weight: 700;
}

.neural-subtitle {
  color: #a8b7d1;
  font-size: 11px;
}

.neural-close {
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #eaf2ff;
  cursor: pointer;
}

.neural-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(56, 232, 255, 0.1);
}

.neural-chip {
  border: 1px solid rgba(56, 232, 255, 0.3);
  background: rgba(56, 232, 255, 0.08);
  color: #eaf2ff;
  border-radius: 999px;
  font-size: 11px;
  padding: 6px 10px;
  cursor: pointer;
}

.neural-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.neural-msg {
  max-width: 88%;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  border-radius: 12px;
  white-space: pre-wrap;
}

.neural-msg.user {
  align-self: flex-end;
  background: rgba(56, 232, 255, 0.14);
  border: 1px solid rgba(56, 232, 255, 0.3);
  color: #eaf2ff;
}

.neural-msg.assistant {
  align-self: flex-start;
  background: rgba(155, 108, 255, 0.1);
  border: 1px solid rgba(155, 108, 255, 0.32);
  color: #eaf2ff;
}

.neural-msg.rtl {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

.neural-input-wrap {
  border-top: 1px solid rgba(56, 232, 255, 0.14);
  padding: 10px;
  display: flex;
  gap: 8px;
}

.neural-input {
  flex: 1;
  border: 1px solid rgba(56, 232, 255, 0.3);
  background: rgba(7, 10, 18, 0.75);
  color: #eaf2ff;
  border-radius: 12px;
  padding: 10px 11px;
  font-size: 12px;
}

.neural-input,
.neural-input:focus {
  cursor: text !important;
  caret-color: #eaf2ff;
}

.neural-send {
  border: 0;
  width: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #38e8ff, #9b6cff);
  color: #070a12;
  cursor: pointer;
  font-weight: 700;
}

.neural-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(155, 108, 255, 0.32);
  background: rgba(155, 108, 255, 0.1);
}

.neural-typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #cdb6ff;
  animation: neural-typing-bounce 1.2s infinite ease-in-out;
}

.neural-typing span:nth-child(2) { animation-delay: 0.15s; }
.neural-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes neural-typing-bounce {
  0%, 70%, 100% { transform: translateY(0); opacity: 0.55; }
  35% { transform: translateY(-4px); opacity: 1; }
}

.neural-trust {
  font-size: 10px;
  color: #a8b7d1;
  padding: 0 12px 10px;
}

.neural-ctas {
  display: flex;
  gap: 8px;
  padding: 0 10px 10px;
}

.neural-cta {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  border-radius: 10px;
  padding: 8px 6px;
  border: 1px solid rgba(56, 232, 255, 0.28);
  color: #eaf2ff;
  background: rgba(56, 232, 255, 0.08);
}

.neural-cta.primary {
  color: #070a12;
  border-color: transparent;
  background: linear-gradient(135deg, #38e8ff, #9b6cff);
  font-weight: 600;
}

@media (max-width: 680px) {
  .landing-neural-guide {
    right: 12px;
    bottom: 14px;
  }

  body.has-sticky-cta .landing-neural-guide {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .neural-launcher-label {
    display: none;
  }

  .neural-teaser {
    max-width: calc(100vw - 88px);
  }

  .neural-panel {
    right: -4px;
    width: calc(100vw - 16px);
    height: calc(100vh - 92px);
    bottom: 78px;
  }
}
