/* =========================================================
   BALU AGENT WIDGET — Floating AI Assistant
   Adaptado do FloatingAiAssistant React → vanilla CSS
   Cores Balu, avatar animado, gate de captura, chat
   ========================================================= */

.balu-widget-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  font-family: var(--font-sans, "Inter", -apple-system, sans-serif);
  pointer-events: none;
}
.balu-widget-root * { pointer-events: auto; box-sizing: border-box; }
.balu-widget-root.hidden { display: none; }

/* ---------- Trigger button (avatar Balu pulsando) ---------- */
.balu-widget-trigger {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  background: radial-gradient(circle at 30% 30%, #6B8FFF 0%, #4576FF 50%, #1E4FCC 100%);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.5s ease;
  box-shadow:
    0 0 0 0 rgba(69, 118, 255, 0.55),
    0 8px 28px rgba(69, 118, 255, 0.45),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  animation: balu-trigger-pulse 2.6s ease-in-out infinite;
}
.balu-widget-trigger:hover {
  transform: scale(1.08) rotate(-4deg);
  box-shadow:
    0 0 0 6px rgba(69, 118, 255, 0.15),
    0 14px 40px rgba(69, 118, 255, 0.65),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
}
.balu-widget-root.open .balu-widget-trigger {
  transform: scale(0.92) rotate(90deg);
  animation: none;
}
@keyframes balu-trigger-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(69, 118, 255, 0.55),
      0 8px 28px rgba(69, 118, 255, 0.45),
      inset 0 2px 4px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow:
      0 0 0 12px rgba(69, 118, 255, 0),
      0 8px 28px rgba(69, 118, 255, 0.45),
      inset 0 2px 4px rgba(255, 255, 255, 0.3);
  }
}

/* Halo glow externo permanente */
.balu-widget-trigger::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69,118,255,0.30), transparent 70%);
  filter: blur(14px);
  z-index: -1;
  opacity: 0.7;
  animation: balu-halo-shift 4s ease-in-out infinite alternate;
}
@keyframes balu-halo-shift {
  0%   { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0.95; transform: scale(1.1); }
}

/* Avatar SVG dentro do trigger — efeito 3D no glyph U+sorriso da Balu */
.balu-trigger-avatar {
  width: 36px;
  height: 36px;
  color: #fff;
  /* Triple drop-shadow: depth interna + glow azul + highlight */
  filter:
    drop-shadow(0 2px 0 rgba(0,0,0,0.18))
    drop-shadow(0 0 6px rgba(107,143,255,0.55))
    drop-shadow(0 -1px 0 rgba(255,255,255,0.18));
  transition: opacity 0.3s ease, transform 0.5s var(--ease-spring, cubic-bezier(0.16,1,0.3,1));
}
.balu-trigger-avatar .balu-u-body,
.balu-panel-avatar .balu-u-body {
  stroke-width: 2.2;
}
.balu-trigger-avatar .balu-u-smile {
  transform-origin: 12px 20px;
  transition: transform 0.5s ease;
}
/* Quando agente está "falando", sorriso oscila */
.balu-widget-root.speaking .balu-trigger-avatar .balu-u-smile {
  animation: balu-smile-bob 0.6s ease-in-out infinite alternate;
}
@keyframes balu-smile-bob {
  0%   { transform: scaleY(1) translateY(0); }
  100% { transform: scaleY(1.15) translateY(-0.5px); }
}
.balu-widget-root.open .balu-trigger-close {
  display: block;
}
.balu-trigger-close {
  display: none;
  width: 24px;
  height: 24px;
  color: #fff;
}
.balu-widget-root.open .balu-trigger-avatar { display: none; }

/* Speaking state — anel brilhante extra quando agente está respondendo */
.balu-widget-root.speaking .balu-widget-trigger::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(107, 143, 255, 0.85);
  animation: balu-speaking-ring 0.8s ease-out infinite;
}
@keyframes balu-speaking-ring {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Greeting bubble que aparece junto com trigger */
.balu-widget-hint {
  position: absolute;
  right: 76px;
  bottom: 12px;
  padding: 10px 14px;
  background: linear-gradient(145deg, rgba(15,19,32,0.95), rgba(15,19,32,0.85));
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  font-size: 13px;
  color: #F5F7FA;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateX(8px) scale(0.96);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.balu-widget-root.visible:not(.open) .balu-widget-hint {
  opacity: 1;
  transform: translateX(0) scale(1);
  animation: balu-hint-bob 4s ease-in-out infinite 2s;
}
.balu-widget-hint::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 18px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-right: 1px solid rgba(255,255,255,0.10);
  border-top: 1px solid rgba(255,255,255,0.10);
  transform: rotate(45deg);
}
@keyframes balu-hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ---------- Painel do chat ---------- */
.balu-widget-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 560px;
  max-height: calc(100vh - 140px);
  background: linear-gradient(180deg, rgba(22, 28, 48, 0.95), rgba(15, 19, 32, 0.97));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    inset 0 1px 1px rgba(255,255,255,0.10),
    0 0 0 1px rgba(69,118,255,0.10);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  color: #F5F7FA;
}
.balu-widget-root.open .balu-widget-panel {
  display: flex;
  animation: balu-pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes balu-pop-in {
  0%   { opacity: 0; transform: scale(0.85) translateY(20px); }
  100% { opacity: 1; transform: scale(1)    translateY(0); }
}

.balu-widget-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 20% 0%, rgba(69,118,255,0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Header ---------- */
.balu-panel-header {
  position: relative;
  z-index: 2;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.balu-panel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #6B8FFF, #4576FF 60%, #1E4FCC);
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 4px 12px rgba(69,118,255,0.3);
}
.balu-panel-avatar svg {
  width: 24px;
  height: 24px;
  color: #fff;
  filter:
    drop-shadow(0 1px 0 rgba(0,0,0,0.20))
    drop-shadow(0 0 4px rgba(107,143,255,0.4));
}
.balu-panel-avatar::after {
  content: "";
  position: absolute;
  right: -1px; bottom: -1px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid #161C30;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: balu-online-pulse 2s ease-in-out infinite;
}
@keyframes balu-online-pulse {
  0%,100% { box-shadow: 0 0 8px rgba(34,197,94,0.4); }
  50%     { box-shadow: 0 0 14px rgba(34,197,94,0.9); }
}
.balu-panel-head-info {
  flex: 1;
  min-width: 0;
}
.balu-panel-head-info .name {
  font-size: 14px;
  font-weight: 600;
  color: #F5F7FA;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.balu-panel-head-info .status {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #8E97AE;
}
.balu-panel-close {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #C8CFDD;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.balu-panel-close:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
  transform: rotate(90deg);
}

/* ---------- Body (gate ou chat) ---------- */
.balu-panel-body {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- Gate form ---------- */
.balu-gate {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.balu-gate-intro {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.balu-gate-intro h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #F5F7FA;
  margin: 0;
}
.balu-gate-intro p {
  font-size: 13px;
  color: #C8CFDD;
  line-height: 1.45;
  margin: 0;
}
.balu-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.balu-field label {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8E97AE;
}
.balu-field input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  color: #F5F7FA;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
}
.balu-field input:focus {
  border-color: rgba(69,118,255,0.5);
  background: rgba(69,118,255,0.06);
  box-shadow: 0 0 0 3px rgba(69,118,255,0.12);
}
.balu-field input::placeholder { color: #5F6883; }
.balu-field-error {
  font-size: 11.5px;
  color: #FF6B6B;
  margin-top: 2px;
  display: none;
}
.balu-field.error .balu-field-error { display: block; }
.balu-field.error input { border-color: rgba(255,107,107,0.6); }

.balu-gate-submit {
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(145deg, #4576FF, #6B8FFF);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.005em;
  cursor: pointer;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.10) inset,
    0 8px 20px rgba(69,118,255,0.40);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.balu-gate-submit svg { width: 14px; height: 14px; flex-shrink: 0; }
.balu-gate-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 12px 28px rgba(69,118,255,0.55);
}
.balu-gate-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.balu-gate-privacy {
  font-size: 11px;
  color: #6F7991;
  line-height: 1.45;
  margin-top: 4px;
  text-align: center;
}
.balu-gate-privacy a { color: #6B8FFF; text-decoration: underline; }

/* ---------- Chat messages ---------- */
.balu-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.10) transparent;
}
.balu-messages::-webkit-scrollbar { width: 6px; }
.balu-messages::-webkit-scrollbar-track { background: transparent; }
.balu-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

.balu-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  letter-spacing: -0.003em;
  word-wrap: break-word;
  animation: balu-msg-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes balu-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.balu-msg.agent {
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  color: #F5F7FA;
  border-bottom-left-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}
/* Markdown elementos dentro de mensagem do agent */
.balu-msg.agent p { margin: 0 0 8px; }
.balu-msg.agent p:last-child { margin-bottom: 0; }
.balu-msg.agent strong { color: #FFFFFF; font-weight: 600; }
.balu-msg.agent em { font-style: italic; color: #DCE3F0; }
.balu-msg.agent code {
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", monospace;
  font-size: 0.9em;
  color: #B8C5DE;
}
.balu-msg.agent ul,
.balu-msg.agent ol {
  margin: 4px 0 8px;
  padding-left: 22px;
}
.balu-msg.agent ul:last-child,
.balu-msg.agent ol:last-child { margin-bottom: 0; }
.balu-msg.agent li {
  margin-bottom: 4px;
  padding-left: 2px;
}
.balu-msg.agent li::marker { color: rgba(107,143,255,0.85); }
.balu-msg.agent ul { list-style: disc; }
.balu-msg.agent ol { list-style: decimal; }
.balu-msg.agent blockquote {
  margin: 6px 0;
  padding: 4px 12px;
  border-left: 2px solid rgba(107,143,255,0.50);
  color: #C8CFDD;
  font-style: italic;
}
.balu-msg.user {
  align-self: flex-end;
  background: linear-gradient(145deg, #4576FF, #6B8FFF);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 12px rgba(69,118,255,0.25);
}
.balu-msg.system {
  align-self: center;
  max-width: 90%;
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.10);
  color: #8E97AE;
  font-size: 11.5px;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Typing indicator */
.balu-typing {
  align-self: flex-start;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  border-bottom-left-radius: 6px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.balu-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6B8FFF;
  opacity: 0.5;
  animation: balu-typing-bounce 1.2s ease-in-out infinite;
}
.balu-typing span:nth-child(2) { animation-delay: 0.15s; }
.balu-typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes balu-typing-bounce {
  0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* CTA inline (link Calendly etc.) */
.balu-msg a.balu-cta {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 14px;
  background: linear-gradient(145deg, #4576FF, #6B8FFF);
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.balu-msg a.balu-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(69,118,255,0.4);
}

/* ---------- Input area ---------- */
.balu-input-area {
  position: relative;
  z-index: 2;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(7,10,18,0.40);
}
.balu-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 8px;
  transition: all 0.3s ease;
}
.balu-input-wrap:focus-within {
  border-color: rgba(69,118,255,0.40);
  background: rgba(69,118,255,0.04);
  box-shadow: 0 0 0 3px rgba(69,118,255,0.10);
}
.balu-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: #F5F7FA;
  font-size: 13.5px;
  font-family: inherit;
  line-height: 1.45;
  max-height: 100px;
  min-height: 28px;
  padding: 4px 6px;
}
.balu-input::placeholder { color: #5F6883; }
.balu-send {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #4576FF, #6B8FFF);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 10px rgba(69,118,255,0.30);
}
.balu-send:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(69,118,255,0.50);
}
.balu-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.balu-send svg { width: 16px; height: 16px; }

.balu-input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 10.5px;
  color: #5F6883;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.08em;
}
.balu-input-footer .ok { color: #22C55E; }
.balu-input-footer .err { color: #FF6B6B; }

/* Mobile adjustments */
@media (max-width: 540px) {
  .balu-widget-root { bottom: 16px; right: 16px; }
  .balu-widget-panel {
    width: calc(100vw - 32px);
    right: 0;
    bottom: 76px;
    height: calc(100vh - 120px);
    max-height: 600px;
  }
  .balu-widget-hint { display: none; }
  .balu-widget-trigger { width: 56px; height: 56px; }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .balu-widget-trigger,
  .balu-widget-trigger::before,
  .balu-panel-avatar::after,
  .balu-widget-hint,
  .balu-typing span,
  .balu-msg { animation: none !important; }
  .balu-widget-trigger:hover { transform: scale(1.05); }
}

/* ============ Refinamentos UX widget (streaming, quick replies, copy, etc) ============ */

/* Wrap p/ mensagem + botão copiar */
.balu-msg-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  max-width: 82%;
}
.balu-msg-wrap.user { align-self: flex-end; align-items: flex-end; }
.balu-msg-wrap.agent { align-self: flex-start; }
.balu-msg-wrap .balu-msg { max-width: 100%; }

/* Botão copiar (aparece on hover) */
.balu-msg-copy {
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #8E97AE;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}
.balu-msg-wrap:hover .balu-msg-copy { opacity: 1; }
.balu-msg-copy:hover { background: rgba(255,255,255,0.08); color: #fff; }
.balu-msg-copy.copied { background: rgba(125,216,183,0.20); color: #7DD8B7; border-color: rgba(125,216,183,0.30); }
.balu-msg-copy.copied::after { content: " Copiado"; }

/* Markdown headings inline */
.balu-msg.agent h3.balu-md-h1,
.balu-msg.agent h4.balu-md-h2,
.balu-msg.agent h5.balu-md-h3,
.balu-msg.agent h6.balu-md-h4 {
  font-family: inherit;
  font-weight: 700;
  color: #fff;
  margin: 8px 0 4px;
  line-height: 1.25;
}
.balu-msg.agent .balu-md-h1 { font-size: 1.15em; }
.balu-msg.agent .balu-md-h2 { font-size: 1.05em; }
.balu-msg.agent .balu-md-h3 { font-size: 1em; color: #DCE3F0; }
.balu-msg.agent .balu-md-h4 { font-size: 0.95em; color: #C8CFDD; }

/* Links nas respostas */
.balu-msg.agent a {
  color: #6B8FFF;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.balu-msg.agent a:hover { color: #8DABFF; text-decoration-thickness: 2px; }

/* Typing label "Balu está digitando…" */
.balu-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  align-self: flex-start;
  color: #8E97AE;
  font-size: 12px;
}
.balu-typing-dots {
  display: inline-flex;
  gap: 3px;
}
.balu-typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6B8FFF;
  animation: balu-typing-bounce 1.2s ease-in-out infinite;
}
.balu-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.balu-typing-dots span:nth-child(3) { animation-delay: 0.30s; }
.balu-typing-label { font-style: italic; opacity: 0.8; }

/* Quick replies (chips clicáveis após resposta do agent) */
.balu-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 4px 0;
  align-self: flex-start;
  max-width: 100%;
  animation: balu-qr-in 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes balu-qr-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.balu-quick-reply {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: linear-gradient(145deg, rgba(69,118,255,0.15), rgba(69,118,255,0.06));
  border: 1px solid rgba(107,143,255,0.30);
  color: #B8C5DE;
  font-size: 12.5px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
  font-family: inherit;
  font-weight: 500;
}
.balu-quick-reply:hover {
  background: linear-gradient(145deg, rgba(69,118,255,0.25), rgba(69,118,255,0.12));
  border-color: rgba(107,143,255,0.50);
  color: #fff;
  transform: translateY(-1px);
}
.balu-quick-reply:active { transform: translateY(0); }
.balu-quick-reply-icon { font-size: 13px; }

/* Banner "continuar conversa anterior" */
.balu-continue-banner {
  align-self: stretch;
  margin: 0 0 8px;
  padding: 10px 14px;
  background: rgba(125,216,183,0.08);
  border: 1px solid rgba(125,216,183,0.20);
  border-radius: 12px;
  font-size: 12px;
  color: #C8CFDD;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.balu-continue-reset {
  background: transparent;
  border: none;
  color: #7DD8B7;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  padding: 0;
}
.balu-continue-reset:hover { color: #A2E5C9; }

/* Header status off-hours visual */
.balu-panel-head-info .status.off-hours { color: #FFB36B; }
.balu-panel-head-info .status.off-hours::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: #FFB36B;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
