body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Scrollbar sutil en dark */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #121212;
}

::-webkit-scrollbar-thumb {
  background: #2b2b2b;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #121212;
}
/* Lanzador lateral (botón fijo) */
.stk-bot-launcher{
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: #121212;
  color: #fff;
  border: none;
  border-radius: 10px 0 0 10px;
  padding: 12px 10px;
  cursor: pointer;
  z-index: 98;
  box-shadow: -2px 0 8px rgba(0,0,0,0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .9rem;
}
.stk-bot-launcher:hover{ background:#1e40af; padding-right:14px; }
.stk-bot-launcher-icon{ font-size:1.1rem }

/* Contenedor que tu JS muestra/oculta con .hidden */
#chat-window{
  position: fixed;
  inset: 0;
  z-index: 99;
}

/* Overlay visual (NO bloquea clics) */
.stk-bot-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 100;
  pointer-events: none;
}

/* Panel lateral */
.stk-bot-sidebar{
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  max-width: 100%;
  height: 100%;
  background: #0b1220;
  border-left: 1px solid #1f2937;
  box-shadow: -5px 0 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  z-index: 101;
  animation: stkSlideIn .22s ease-out;
}
@keyframes stkSlideIn{
  from{ transform: translateX(12px); opacity:.95 }
  to{ transform: translateX(0); opacity:1 }
}

/* Header */
.stk-bot-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px;
  background:#0f172a;
  border-bottom:1px solid #1f2937;
}
.stk-bot-title{ display:flex; align-items:center; gap:8px; color:#e5e7eb; }
.stk-bot-title .dot{
  width:10px; height:10px; border-radius:999px; background:#22c55e;
  box-shadow:0 0 0 3px rgba(34,197,94,0.18);
}
.stk-bot-close{
  background:transparent; border:none; color:#9ca3af; cursor:pointer;
  padding:4px; border-radius:6px; display:flex; align-items:center; justify-content:center;
}
.stk-bot-close:hover{ background:rgba(255,255,255,0.08); color:#fff; }

/* Área de mensajes */
.stk-bot-body{
  flex:1; overflow:auto; padding:16px;
  background:#0b1220; color:#e5e7eb;
  display:flex; flex-direction:column; gap:12px;
  border-top: 1px solid transparent;
}

/* Composer */
.stk-bot-composer{
  padding:12px; border-top:1px solid #1f2937; background:#0c1426;
  display:flex; align-items:center; gap:8px;
}
.stk-bot-input, #chat-input{
  flex:1;
  height:44px; min-height:44px; max-height:44px;
  padding:10px 14px;
  border-radius:8px;
  border:1px solid #1f2937;
  background:#0f172a;
  color:#e5e7eb;
  outline:none;
  font-size:.95rem;
}
.stk-bot-input::placeholder{ color:#94a3b8; opacity:1; }
.stk-bot-send, #chat-send{
  height:44px; padding:0 16px; border-radius:8px;
  background:#1d4ed8; color:#fff; font-weight:600;
  border:1px solid #20416e; cursor:pointer;
}
.stk-bot-send:disabled{ opacity:.6; cursor:not-allowed; }

/* Mensajes */
.chat-message{
  padding:12px;
  border-radius:12px;
  max-width:85%;
  word-wrap:break-word;
}
.chat-message.user{
  background: var(--blue);
  color:#fff;
  align-self:flex-end;
  border-bottom-right-radius:4px;
}
.chat-message.bot{
  background: var(--panel-2);
  border:1px solid var(--bdr);
  align-self:flex-start;
  border-bottom-left-radius:4px;
}

/* Scrollbar del área de mensajes */
.stk-bot-body::-webkit-scrollbar{ width:6px; }
.stk-bot-body::-webkit-scrollbar-thumb{ background:#1f2937; border-radius:3px; }

/* Ocultar todo cuando tiene .hidden */
#chat-window.hidden{ display:none !important; }

/* Responsive */
@media (max-width: 768px){
  .stk-bot-sidebar{ width:100%; }
  .stk-bot-launcher{
    right:12px; top:auto; bottom:20px;
    transform:none;
    border-radius:10px;
  }
}
.backlink{
  color:#cbd5e1;
  text-decoration:none;
  font-size:0.9rem;
}
.backlink:hover{
  color:#ffffff;
}
.sep{
  width:1px;
  height:24px;
  background:#555353;
  margin:0 8px;
}
