/* CXH — CX Horizon Services AI assistant widget */

#nova-launcher{
  position:fixed;bottom:24px;right:24px;z-index:9998;
  display:flex;align-items:center;gap:10px;
  background:var(--crimson,#a30404);color:#fff;
  border:none;cursor:pointer;
  padding:14px 18px 14px 16px;border-radius:999px;
  font-family:inherit;font-size:14px;font-weight:600;letter-spacing:-.005em;
  box-shadow:0 10px 32px rgba(163,4,4,.28), 0 2px 6px rgba(4,9,12,.10);
  transition:transform .15s, box-shadow .15s, background .15s;
}
#nova-launcher:hover{background:#590707;transform:translateY(-2px);box-shadow:0 14px 38px rgba(163,4,4,.35), 0 3px 8px rgba(4,9,12,.12)}
#nova-launcher .nl-dot{width:8px;height:8px;border-radius:50%;background:#7dffb0;box-shadow:0 0 0 3px rgba(125,255,176,.24);animation:nl-pulse 2s ease-in-out infinite}
@keyframes nl-pulse{0%,100%{opacity:1}50%{opacity:.55}}
#nova-launcher.nl-hidden{display:none}

#nova-panel{
  position:fixed;bottom:24px;right:24px;z-index:9999;
  width:400px;max-width:calc(100vw - 32px);
  height:600px;max-height:calc(100vh - 48px);
  background:#fff;border-radius:16px;
  box-shadow:0 24px 64px rgba(4,9,12,.22), 0 4px 12px rgba(4,9,12,.10);
  display:none;flex-direction:column;overflow:hidden;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Helvetica,Arial,sans-serif;
  transform-origin:bottom right;
  animation:nova-in .18s ease-out;
}
#nova-panel.nova-open{display:flex}
@keyframes nova-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}

.nova-header{
  background:#04090c;color:#fff;padding:16px 18px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nova-header .nh-left{display:flex;align-items:center;gap:12px;min-width:0}
.nova-header .nh-avatar{
  width:36px;height:36px;border-radius:50%;
  background:linear-gradient(135deg,#a30404 0%,#590707 100%);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;font-size:15px;letter-spacing:.02em;
  flex-shrink:0;
}
.nova-header .nh-title{font-weight:700;font-size:15px;letter-spacing:-.01em;margin:0}
.nova-header .nh-sub{font-size:11px;color:rgba(255,255,255,.55);margin:2px 0 0;letter-spacing:.02em}
.nova-header .nh-close{
  background:transparent;border:none;color:rgba(255,255,255,.6);
  cursor:pointer;padding:6px;font-size:20px;line-height:1;border-radius:6px;
  transition:background .12s, color .12s;
}
.nova-header .nh-close:hover{background:rgba(255,255,255,.08);color:#fff}

.nova-body{
  flex:1;overflow-y:auto;padding:20px 18px;
  background:#f7f5f2;
  display:flex;flex-direction:column;gap:14px;
  scroll-behavior:smooth;
}
.nova-msg{max-width:82%;padding:11px 14px;border-radius:14px;font-size:14px;line-height:1.55;word-wrap:break-word;letter-spacing:-.003em}
.nova-msg.user{align-self:flex-end;background:#04090c;color:#fff;border-bottom-right-radius:6px}
.nova-msg.assistant{align-self:flex-start;background:#fff;color:#04090c;border-bottom-left-radius:6px;border:1px solid rgba(205,199,189,.65)}
.nova-msg.assistant a{color:#a30404;font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.nova-msg.assistant a:hover{color:#590707}
.nova-msg.thinking{align-self:flex-start;background:#fff;color:rgba(4,9,12,.55);font-style:italic;font-size:13px;border:1px solid rgba(205,199,189,.65);border-bottom-left-radius:6px}
.nova-msg.thinking::after{content:"";display:inline-block;width:4px;height:4px;border-radius:50%;background:currentColor;animation:nova-dot 1.4s infinite;margin-left:2px}
@keyframes nova-dot{0%,60%,100%{opacity:.2}30%{opacity:1}}
.nova-error{align-self:center;font-size:12px;color:#a30404;background:rgba(163,4,4,.06);padding:8px 12px;border-radius:8px;text-align:center;max-width:90%}

.nova-footer{
  padding:14px 16px 16px;background:#fff;
  border-top:1px solid rgba(205,199,189,.65);
}
.nova-input-row{display:flex;gap:8px;align-items:flex-end}
.nova-input{
  flex:1;border:1px solid rgba(205,199,189,.85);border-radius:10px;
  padding:10px 12px;font-size:14px;font-family:inherit;color:#04090c;
  resize:none;line-height:1.4;max-height:120px;min-height:40px;
  transition:border-color .12s, box-shadow .12s;
  outline:none;
}
.nova-input:focus{border-color:#a30404;box-shadow:0 0 0 3px rgba(163,4,4,.09)}
.nova-send{
  background:#a30404;color:#fff;border:none;cursor:pointer;
  padding:0;width:40px;height:40px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  transition:background .12s, transform .1s;
  flex-shrink:0;
}
.nova-send:hover:not(:disabled){background:#590707;transform:translateY(-1px)}
.nova-send:disabled{background:rgba(4,9,12,.15);cursor:not-allowed}
.nova-send svg{width:18px;height:18px}
.nova-disclaimer{font-size:10.5px;color:rgba(4,9,12,.42);margin:10px 0 0;text-align:center;letter-spacing:.005em}

@media (max-width: 560px){
  #nova-panel{
    width:100vw;max-width:100vw;height:100vh;max-height:100vh;
    bottom:0;right:0;border-radius:0;
  }
  #nova-launcher{bottom:16px;right:16px;padding:12px 16px 12px 14px;font-size:13px}
}
