/* Jebat Tech AI chat widget — self-contained, prefixed .jtc- */
.jtc-root{--jtc-bg:#0B1230;--jtc-bg2:#070A16;--jtc-teal:#2BBE9B;--jtc-blue:#3B4CFF;--jtc-violet:#7C3AED;--jtc-text:#E6EBF5;--jtc-muted:#C9D1E3;--jtc-line:rgba(255,255,255,.08);
  position:fixed;right:24px;bottom:96px;z-index:9990;font-family:inherit;font-size:15px;line-height:1.5;color:var(--jtc-text)}
.jtc-root *,.jtc-root *::before,.jtc-root *::after{box-sizing:border-box}
.jtc-launcher{width:58px;height:58px;border-radius:50%;border:1px solid rgba(255,255,255,.14);cursor:pointer;display:grid;place-items:center;color:#fff;
  background:linear-gradient(135deg,var(--jtc-blue),var(--jtc-teal));box-shadow:0 10px 30px rgba(43,190,155,.35),0 0 0 6px rgba(43,190,155,.08);transition:transform .2s ease,box-shadow .2s ease;position:relative}
.jtc-launcher:hover{transform:translateY(-2px) scale(1.04);box-shadow:0 14px 36px rgba(43,190,155,.45),0 0 0 8px rgba(43,190,155,.1)}
.jtc-launcher:focus-visible,.jtc-panel button:focus-visible,.jtc-panel textarea:focus-visible,.jtc-panel a:focus-visible{outline:2px solid var(--jtc-teal);outline-offset:2px}
.jtc-launcher svg{width:26px;height:26px}
.jtc-launcher .jtc-dot{position:absolute;top:4px;right:4px;width:12px;height:12px;border-radius:50%;background:#fff;border:3px solid var(--jtc-teal)}
.jtc-root.jtc-open .jtc-dot{display:none}
.jtc-panel{position:absolute;right:0;bottom:72px;width:380px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100vh - 190px);display:flex;flex-direction:column;overflow:hidden;
  background:linear-gradient(180deg,rgba(11,18,48,.97),rgba(7,10,22,.97));border:1px solid var(--jtc-line);border-radius:20px;
  box-shadow:0 30px 80px rgba(0,0,0,.55),0 0 0 1px rgba(59,76,255,.12),0 0 60px rgba(43,190,155,.08);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
  opacity:0;transform:translateY(12px) scale(.98);pointer-events:none;visibility:hidden;transition:opacity .22s ease,transform .22s ease,visibility 0s linear .22s}
.jtc-root.jtc-open .jtc-panel{opacity:1;transform:none;pointer-events:auto;visibility:visible;transition:opacity .22s ease,transform .22s ease}
.jtc-head{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--jtc-line);background:linear-gradient(90deg,rgba(59,76,255,.14),rgba(43,190,155,.1))}
.jtc-avatar{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,var(--jtc-blue),var(--jtc-violet));flex:none}
.jtc-avatar svg{width:20px;height:20px;color:#fff}
.jtc-title{font-weight:700;font-size:15px;color:#fff;margin:0;letter-spacing:.01em}
.jtc-sub{font-size:12px;color:var(--jtc-muted);display:flex;align-items:center;gap:6px;margin:0}
.jtc-sub::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--jtc-teal);box-shadow:0 0 8px var(--jtc-teal)}
.jtc-close{margin-left:auto;background:transparent;border:0;color:var(--jtc-muted);cursor:pointer;padding:6px;border-radius:8px;display:grid;place-items:center}
.jtc-close:hover{background:rgba(255,255,255,.06);color:#fff}
.jtc-close svg{width:18px;height:18px}
.jtc-list{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.15) transparent;overscroll-behavior:contain}
.jtc-msg{max-width:86%;padding:10px 13px;border-radius:14px;word-wrap:break-word;overflow-wrap:anywhere;font-size:14.5px}
.jtc-msg p{margin:0 0 6px}.jtc-msg p:last-child{margin-bottom:0}
.jtc-msg ul,.jtc-msg ol{margin:4px 0 6px;padding-left:20px}.jtc-msg li{margin:2px 0}
.jtc-msg a{color:#7FE3C9;text-decoration:underline;text-underline-offset:2px}
.jtc-msg code{font-family:ui-monospace,Menlo,monospace;font-size:.9em;background:rgba(255,255,255,.08);padding:1px 5px;border-radius:5px}
.jtc-bot{align-self:flex-start;background:rgba(255,255,255,.05);border:1px solid var(--jtc-line);color:var(--jtc-text);border-bottom-left-radius:4px}
.jtc-user{align-self:flex-end;background:linear-gradient(135deg,#1d2a8f,#1f7f6b);color:#fff;border-bottom-right-radius:4px}
.jtc-err{align-self:center;background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.35);color:#FECACA;font-size:13px;text-align:center}
.jtc-err button{margin-left:6px;background:none;border:0;color:#fff;text-decoration:underline;cursor:pointer;font:inherit}
.jtc-cites{margin-top:6px;font-size:12px;color:var(--jtc-muted)}
.jtc-typing{align-self:flex-start;display:flex;gap:5px;padding:12px 14px;background:rgba(255,255,255,.05);border:1px solid var(--jtc-line);border-radius:14px;border-bottom-left-radius:4px}
.jtc-typing span{width:7px;height:7px;border-radius:50%;background:var(--jtc-teal);animation:jtc-bounce 1.2s infinite ease-in-out}
.jtc-typing span:nth-child(2){animation-delay:.15s}.jtc-typing span:nth-child(3){animation-delay:.3s}
@keyframes jtc-bounce{0%,80%,100%{transform:translateY(0);opacity:.45}40%{transform:translateY(-5px);opacity:1}}
.jtc-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 10px}
.jtc-chip{background:rgba(43,190,155,.08);border:1px solid rgba(43,190,155,.35);color:#BFF3E4;border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;cursor:pointer;transition:background .15s}
.jtc-chip:hover{background:rgba(43,190,155,.18);color:#fff}
.jtc-form{display:flex;gap:8px;align-items:flex-end;padding:12px;border-top:1px solid var(--jtc-line);background:rgba(7,10,22,.6)}
.jtc-input{flex:1;resize:none;min-height:42px;max-height:120px;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:#fff;font:inherit;font-size:14.5px;line-height:1.4}
.jtc-input::placeholder{color:#8f9ab3}
.jtc-input:focus{border-color:rgba(43,190,155,.6);outline:none}
.jtc-send{flex:none;width:42px;height:42px;border-radius:12px;border:0;cursor:pointer;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--jtc-blue),var(--jtc-teal))}
.jtc-send:disabled{opacity:.45;cursor:not-allowed}
.jtc-send svg{width:18px;height:18px}
.jtc-foot{font-size:11px;color:#8f9ab3;text-align:center;padding:0 12px 10px;background:rgba(7,10,22,.6)}
.jtc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:479px){
  .jtc-root{right:16px;bottom:88px}
  .jtc-root.jtc-open{inset:0;right:0;bottom:0}
  .jtc-root.jtc-open .jtc-launcher{display:none}
  .jtc-panel{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;border-radius:0;bottom:0}
  .jtc-head{padding-top:max(14px,env(safe-area-inset-top))}
  .jtc-form{padding-bottom:max(12px,env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){
  .jtc-launcher,.jtc-panel,.jtc-chip{transition:none!important}
  .jtc-launcher:hover{transform:none}
  .jtc-typing span{animation:none;opacity:.8}
}
