/* =========================================================
   NÓMOS — Chat de suporte (olho flutuante + painel "Aurora" de vidro escuro)
   Só aparece no Admin da empresa, depois do login. Tudo escopado em .nsc-* (não toca em nenhuma outra tela).
   ========================================================= */
.nsc-root{ position: fixed; right: 0; bottom: 0; z-index: 1100; font-family: "Inter", system-ui, sans-serif; }
.nsc-root[hidden]{ display: none !important; }
.nsc-root *{ box-sizing: border-box; }

@keyframes nsc-sheen{ 0%,55%{ transform: translateX(-160%) skewX(-18deg); } 100%{ transform: translateX(320%) skewX(-18deg); } }
@keyframes nsc-blink{ 0%,91%,100%{ transform: scaleY(0); } 94%{ transform: scaleY(1); } }
@keyframes nsc-ring{ 0%{ transform: scale(.9); opacity: .55; } 100%{ transform: scale(1.7); opacity: 0; } }
@keyframes nsc-dot{ 0%,60%,100%{ transform: translateY(0); opacity: .4; } 30%{ transform: translateY(-4px); opacity: 1; } }
@keyframes nsc-pop{ from{ opacity: 0; transform: translateY(10px) scale(.96); } to{ opacity: 1; transform: none; } }
@keyframes nsc-breathe{ 0%,100%{ box-shadow: 0 0 0 0 rgba(34,224,150,.45); } 50%{ box-shadow: 0 0 0 9px rgba(34,224,150,0); } }
@keyframes nsc-badge{ 0%,100%{ box-shadow: 0 0 0 0 rgba(255,93,108,.55); } 50%{ box-shadow: 0 0 0 8px rgba(255,93,108,0); } }
@keyframes nsc-driftA{ 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(70px,50px) scale(1.25); } }
@keyframes nsc-driftB{ 0%,100%{ transform: translate(0,0) scale(1.1); } 50%{ transform: translate(-80px,-40px) scale(.9); } }

/* ---------- botão: o olho ---------- */
.nsc-eye-btn{
  position: fixed; right: 28px; bottom: 24px; width: 72px; height: 72px; padding: 0; border: 0;
  background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.nsc-eye-btn:focus-visible, .nsc-close:focus-visible, .nsc-send:focus-visible{ outline: 2px solid #5dffc4; outline-offset: 3px; }
.nsc-ring{ position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(34,224,150,.7); animation: nsc-ring 2.8s ease-out infinite; pointer-events: none; }
.nsc-ring--2{ border-color: rgba(34,224,150,.5); animation-delay: 1.4s; }
.nsc-orb{
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(160deg, rgba(20,64,160,.78), rgba(8,32,96,.7));
  border: 1px solid rgba(255,255,255,.4);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), 0 14px 30px rgba(0,0,0,.38), 0 0 34px rgba(34,224,150,.32);
  transition: transform .25s cubic-bezier(.2,.9,.25,1.2);
}
.nsc-eye-btn:hover .nsc-orb{ transform: scale(1.06); }
.nsc-eye-btn:active .nsc-orb{ transform: scale(.96); }
.nsc-eye{
  position: absolute; inset: 9px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 36% 26%, #ffffff 0%, #eef3f4 38%, #b4c1c6 100%);
  box-shadow: inset 0 -7px 12px rgba(0,0,0,.28), inset 0 5px 8px rgba(255,255,255,.95);
}
.nsc-pupil{
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: radial-gradient(circle, #02130c 0 27%, #22e096 30%, #0f8a62 64%, #063f2e 100%);
  box-shadow: 0 0 14px rgba(34,224,150,.7); transition: transform .14s ease-out; will-change: transform;
}
.nsc-pupil::after{ content: ""; position: absolute; left: 8px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.9); }
.nsc-lid{ position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(#c9d4d8, #9fb0b6); transform-origin: 50% 0; transform: scaleY(0); animation: nsc-blink 5.5s infinite; }
.nsc-badge{
  position: absolute; right: -3px; top: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: #ff5d6c; color: #fff; font: 600 12px/1 "Inter", system-ui, sans-serif; display: grid; place-items: center;
  border: 2px solid #fff; animation: nsc-badge 2s infinite;
}
.nsc-badge[hidden]{ display: none; }

/* ---------- painel ---------- */
.nsc-panel{
  position: fixed; right: 28px; bottom: 108px; width: min(384px, calc(100vw - 24px)); height: min(556px, calc(100vh - 128px)); min-height: 340px;
  transform-origin: 100% 100%; opacity: 0; transform: scale(.7) translateY(24px); pointer-events: none; visibility: hidden;
  transition: opacity .3s ease, transform .42s cubic-bezier(.2,.9,.25,1.1), visibility 0s linear .42s;
}
.nsc-panel.is-open{ opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.nsc-glass{
  position: absolute; inset: 0; border-radius: 30px; overflow: hidden; color: #fff;
  background:
    linear-gradient(155deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.06) 45%, rgba(255,255,255,.12) 100%),
    linear-gradient(160deg, rgba(14,52,140,.86), rgba(7,28,84,.92));
  -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(255,255,255,.1), inset 0 0 40px rgba(255,255,255,.04), 0 40px 80px rgba(7,21,39,.45), 0 8px 24px rgba(7,21,39,.3);
}
.nsc-blob{ position: absolute; border-radius: 50%; pointer-events: none; filter: blur(28px); }
.nsc-blob--a{ left: -70px; top: -60px; width: 260px; height: 260px; background: radial-gradient(circle, #2f7bff 0%, rgba(47,123,255,0) 70%); opacity: .55; animation: nsc-driftA 16s ease-in-out infinite; }
.nsc-blob--b{ right: -70px; bottom: 40px; width: 280px; height: 280px; background: radial-gradient(circle, #2dd4bf 0%, rgba(45,212,191,0) 70%); opacity: .45; animation: nsc-driftB 20s ease-in-out infinite; }
.nsc-sheen{ position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.2), rgba(255,255,255,0)); animation: nsc-sheen 7s ease-in-out infinite; pointer-events: none; }
.nsc-inner{ position: relative; height: 100%; display: flex; flex-direction: column; }

.nsc-head{ display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.nsc-live{ width: 12px; height: 12px; border-radius: 50%; background: #22e096; animation: nsc-breathe 2.4s infinite; flex: none; }
.nsc-head-txt{ flex: 1; min-width: 0; }
.nsc-title{ font: 700 17px/1.2 "Space Grotesk", "Inter", sans-serif; letter-spacing: .2px; margin: 0; }
.nsc-sub{ font-size: 12px; color: rgba(255,255,255,.68); margin-top: 1px; }
.nsc-close{ width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; flex: none; }
.nsc-close:hover{ background: rgba(255,255,255,.2); }

.nsc-chips{ padding: 10px 20px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.nsc-chip{ font-size: 11px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.82); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nsc-msgs{ flex: 1; overflow-y: auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none; overscroll-behavior: contain; }
.nsc-msgs::-webkit-scrollbar{ width: 0; }
.nsc-dia{ align-self: center; font-size: 11px; color: rgba(255,255,255,.55); padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.07); margin: 4px 0; }
.nsc-msg{ max-width: 82%; display: flex; flex-direction: column; gap: 3px; }
.nsc-msg--anim{ animation: nsc-pop .35s cubic-bezier(.2,.8,.2,1) both; }
.nsc-msg--eu{ align-self: flex-end; align-items: flex-end; }
.nsc-msg--suporte{ align-self: flex-start; align-items: flex-start; }
.nsc-bolha{ padding: 10px 14px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.nsc-msg--eu .nsc-bolha{
  border-radius: 20px 20px 6px 20px;
  background: linear-gradient(160deg, rgba(34,224,150,.55), rgba(19,160,115,.45));
  border: 1px solid rgba(160,255,215,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 20px rgba(10,120,80,.3);
}
.nsc-msg--suporte .nsc-bolha{
  border-radius: 20px 20px 20px 6px;
  background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.nsc-msg--local .nsc-bolha{ opacity: .9; }
.nsc-hora{ font-size: 10.5px; color: rgba(255,255,255,.5); padding: 0 6px; }
.nsc-rotulo{ font-size: 10.5px; letter-spacing: .02em; color: rgba(255,255,255,.62); padding: 0 6px; }
.nsc-msg--ia .nsc-bolha{ border-color: rgba(190,200,255,.34); background: linear-gradient(160deg, rgba(190,200,255,.18), rgba(255,255,255,.07)); }
.nsc-pontos{ display: flex; gap: 5px; align-items: center; padding: 13px 16px; }
.nsc-pontos i{ width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.75); animation: nsc-pulo 1.1s ease-in-out infinite; }
.nsc-pontos i:nth-child(2){ animation-delay: .15s; }
.nsc-pontos i:nth-child(3){ animation-delay: .3s; }
@keyframes nsc-pulo{ 0%,60%,100%{ opacity: .35; transform: translateY(0); } 30%{ opacity: 1; transform: translateY(-3px); } }
.nsc-msg--pendente .nsc-bolha{ opacity: .6; }
.nsc-msg--falhou .nsc-bolha{ border-color: rgba(255,120,130,.7); }
.nsc-erro{ font-size: 11px; color: #ff9aa4; padding: 0 6px; background: none; border: 0; cursor: pointer; text-align: right; font-family: inherit; }
.nsc-erro:hover{ text-decoration: underline; }
.nsc-vazio{ margin: auto; font-size: 12.5px; color: rgba(255,255,255,.55); text-align: center; padding: 0 10px; }

/* menu de opções (respostas prontas) */
.nsc-opts{ display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; padding: 2px 0 4px; }
.nsc-opt{ font: 500 13px/1.25 "Inter", system-ui, sans-serif; color: #fff; text-align: left; padding: 9px 14px; border-radius: 999px; cursor: pointer; background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.08)); border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); transition: background .2s, border-color .2s, transform .15s; }
.nsc-opt:hover{ background: linear-gradient(160deg, rgba(74,240,176,.38), rgba(20,178,124,.22)); border-color: rgba(160,255,215,.6); }
.nsc-opt:active{ transform: scale(.97); }
.nsc-opt:focus-visible{ outline: 2px solid rgba(160,255,215,.9); outline-offset: 2px; }

.nsc-form{ padding: 12px 16px 18px; }
.nsc-caixa{ display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 26px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -6px 14px rgba(0,0,0,.12); }
.nsc-input{ flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: 400 14px/1.4 "Inter", system-ui, sans-serif; padding: 11px 0; resize: none; max-height: 96px; outline: none; }
.nsc-input::placeholder{ color: rgba(255,255,255,.55); }
.nsc-send{ width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(190,255,230,.6); background: linear-gradient(160deg, #4af0b0, #14b27c); color: #032; cursor: pointer; display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 16px rgba(20,178,124,.45); flex: none; padding: 0; }
.nsc-send:disabled{ opacity: .45; cursor: default; }
.nsc-aviso{ font-size: 11px; color: #ff9aa4; padding: 6px 6px 0; min-height: 0; }
.nsc-aviso--info{ color: rgba(255,255,255,.62); }   /* aviso informativo (ex.: conversa encerrada) — sem tom de erro */
.nsc-aviso[hidden]{ display: none; }

/* pausa tudo quando a aba não está visível / usuário pede menos movimento */
.nsc-root.nsc-pausado *, .nsc-root.nsc-pausado *::before, .nsc-root.nsc-pausado *::after{ animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce){
  .nsc-root *, .nsc-root *::before, .nsc-root *::after{ animation: none !important; transition-duration: .001ms !important; }
  .nsc-lid{ transform: scaleY(0) !important; }
}
@media (max-width: 520px){
  .nsc-eye-btn{ right: 14px; bottom: 14px; width: 62px; height: 62px; }
  .nsc-eye{ inset: 8px; }
  .nsc-pupil{ width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  .nsc-panel{ right: 12px; bottom: 88px; height: min(556px, calc(100vh - 104px)); }
}
@media print{ .nsc-root{ display: none !important; } }
