/* EMRT AI chat bubble */
.nova-chat{position:fixed;right:20px;bottom:20px;z-index:250;font-family:'Inter Tight',system-ui,sans-serif}
.nc-launch{display:flex;align-items:center;gap:12px;height:56px;padding:0 22px 0 16px;border-radius:99px;cursor:pointer;color:var(--fg);font:500 15px/1 'Inter Tight',sans-serif;
  /* a dark base under the glass keeps the label readable even over the bright finale glow */
  background:linear-gradient(160deg,rgba(255,255,255,.12),rgba(255,255,255,.04)),rgba(10,10,16,.62);border:1px solid rgba(255,255,255,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 20px 50px -18px rgba(0,0,0,.8),0 0 40px -10px rgba(124,247,255,.35);
  transition:translate .5s var(--ease)} /* no backdrop blur: it re-blurred the moving nova every frame; the tint carries it */
.nc-launch:hover{translate:0 -3px}
.nc-orb{position:relative;width:26px;height:26px;border-radius:50%;background:radial-gradient(circle at 50% 50%,#fff 0 18%,var(--ice) 40%,var(--vio) 70%,transparent 72%);box-shadow:0 0 18px 3px rgba(124,247,255,.45)}
.nc-orb::after{content:"";position:absolute;right:-1px;top:-1px;width:9px;height:9px;border-radius:50%;background:#6CFFB0;border:2px solid #111}
/* The breathing halo is its own layer and only fades and grows. A pulsing box-shadow had to be repainted
   on every frame, and this button is on screen all the time, so it slowed scrolling everywhere. */
.nc-orb::before{content:"";position:absolute;inset:-12px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle closest-side,transparent 52%,rgba(165,143,255,.5) 62%,rgba(165,143,255,0) 100%);opacity:0;animation:ncPulse 2.6s ease-in-out infinite}
@keyframes ncPulse{50%{opacity:1;transform:scale(1.12)}}
.nova-chat.open .nc-launch{opacity:0;pointer-events:none;translate:0 10px}

.nc-panel{position:absolute;right:0;bottom:0;width:min(400px,calc(100vw - 40px));height:min(620px,calc(100svh - 40px));display:flex;flex-direction:column;border-radius:24px;overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 40px 100px -20px rgba(0,0,0,.9),0 0 60px -20px rgba(165,143,255,.4);
  /* no backdrop blur here either: on a phone the open panel covers the screen, and re-blurring the moving
     nova behind all of it each frame made typing stutter. The deeper tint looks the same. */
  background:linear-gradient(170deg,rgba(28,26,44,.95),rgba(10,10,18,.97));
  transform-origin:100% 100%;opacity:0;visibility:hidden;scale:.92;translate:0 16px;transition:opacity .35s,scale .5s var(--ease),translate .5s var(--ease),visibility 0s .5s}
.nova-chat.open .nc-panel{opacity:1;visibility:visible;scale:1;translate:0 0;transition:opacity .35s,scale .5s var(--ease),translate .5s var(--ease),visibility 0s}

.nc-head{display:flex;align-items:center;gap:12px;padding:16px 16px 14px 18px;border-bottom:1px solid var(--line)}
.nc-head .nc-orb{width:34px;height:34px;flex:none}
.nc-title{flex:1;min-width:0}
.nc-title b{display:block;font-size:15px;font-weight:600}
.nc-title span{display:flex;align-items:center;gap:6px;font:400 10.5px/1.4 'JetBrains Mono',monospace;letter-spacing:.06em;text-transform:uppercase;color:var(--dim)}
.nc-title span::before{content:"";width:6px;height:6px;border-radius:50%;background:#6CFFB0;box-shadow:0 0 8px #6CFFB0}
.nc-x{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--fg);font-size:18px;line-height:1;cursor:pointer;display:grid;place-items:center}
.nc-x:hover{background:rgba(255,255,255,.1)}

.nc-msgs{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:18px 16px 8px;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.15) transparent}
.nc-msg{unicode-bidi:plaintext;max-width:86%;padding:11px 14px;border-radius:18px;font-size:14.5px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;animation:ncIn .45s var(--ease) both}
.nc-msg.bot{align-self:flex-start;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-bottom-left-radius:6px;color:#E6E6EE}
.nc-msg.user{align-self:flex-end;background:linear-gradient(135deg,#ECEBFF,#D9F9FF);color:#0A0A12;border-bottom-right-radius:6px}
.nc-msg[dir=rtl]{text-align:right}
.nc-msg.bot[dir=rtl]{border-bottom-left-radius:18px;border-bottom-right-radius:6px}
@keyframes ncIn{from{opacity:0;transform:translateY(8px)}}
.nc-typing{display:inline-flex;gap:4px;padding:4px 0}
.nc-typing i{width:6px;height:6px;border-radius:50%;background:var(--ice);opacity:.4;animation:ncDot 1.2s ease-in-out infinite}
.nc-typing i:nth-child(2){animation-delay:.15s}.nc-typing i:nth-child(3){animation-delay:.3s}
@keyframes ncDot{30%{transform:translateY(-4px);opacity:1}}
.nc-handoff{align-self:flex-start;display:inline-flex;align-items:center;gap:10px;margin:2px 0 6px;padding:11px 18px;border-radius:99px;background:#25D366;color:#04210F;font-weight:600;font-size:14px;text-decoration:none;box-shadow:0 10px 30px -10px rgba(37,211,102,.6);animation:ncIn .45s var(--ease) both}
.nc-handoff:hover{filter:brightness(1.08)}
.nc-handoff .wa-ico{width:18px;height:18px}

.nc-chips{display:flex;gap:6px;flex-wrap:wrap;padding:4px 16px 10px}
.nc-chips button{padding:8px 12px;border-radius:99px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);color:#D6D6E2;font:500 12.5px/1 'Inter Tight',sans-serif;cursor:pointer;transition:background .3s,border-color .3s}
.nc-chips button:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.3)}

.nc-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px 12px;border-top:1px solid var(--line)}
.nc-input{flex:1;resize:none;max-height:120px;min-height:44px;padding:12px 14px;border-radius:16px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.25);color:var(--fg);font:400 14.5px/1.4 'Inter Tight','IBM Plex Sans Arabic',sans-serif;outline:none}
.nc-input:focus{border-color:rgba(124,247,255,.45)}
.nc-send{width:44px;height:44px;flex:none;border-radius:50%;border:0;background:var(--fg);color:#000;font-size:18px;cursor:pointer;display:grid;place-items:center;transition:background .3s,opacity .3s}
.nc-send:hover{background:var(--ice)}
.nc-send:disabled{opacity:.35;cursor:default}
.nc-foot{padding:0 16px 10px;font:400 9.5px/1.3 'JetBrains Mono',monospace;letter-spacing:.05em;text-transform:uppercase;color:#5d5d6a;text-align:center}

@media (max-width:820px){
  .nova-chat{right:12px;bottom:12px}
  .nc-launch{height:52px;padding:0 18px 0 14px}
  .nc-panel{position:fixed;inset:auto 8px 8px 8px;width:auto;height:min(640px,calc(100svh - 16px))}
}
