/* ============ TEVIANT — AI chat widget ============ */
.tvc, .tvc *{box-sizing:border-box}
.tvc{--g:#769a07;--gb:#a7cd2b;--o:#c8801c;--bg:#0e120b;--srf:#151a10;--srf2:#1c2214;
  --ink:#edf0e6;--soft:#c1c8b4;--muted:#878f78;--line:#2a331f;
  --ff:'Inter',-apple-system,'Segoe UI',sans-serif;--fd:'Oswald','Inter',sans-serif;
  position:fixed;z-index:99999;right:22px;bottom:22px;font-family:var(--ff)}

/* launcher bubble */
.tvc-bubble{width:60px;height:60px;border-radius:50%;cursor:pointer;border:1px solid #3c5210;
  background:linear-gradient(180deg,#a8d033,#6f9207);color:#0c1004;display:grid;place-items:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -3px 8px rgba(0,0,0,.3),0 8px 22px rgba(0,0,0,.5);
  transition:transform .2s}
.tvc-bubble:hover{transform:translateY(-3px) scale(1.04)}
.tvc-bubble svg{width:30px;height:30px}
.tvc-bubble::after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid var(--gb);
  opacity:0;animation:tvc-pulse 2.6s ease-out infinite;pointer-events:none}
@keyframes tvc-pulse{0%{transform:scale(.85);opacity:.6}100%{transform:scale(1.5);opacity:0}}
.tvc-badge{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;border-radius:9px;background:var(--o);
  color:#1a0c03;font-size:11px;font-weight:800;display:grid;place-items:center;padding:0 5px;border:2px solid var(--bg)}

/* panel */
.tvc-panel{position:absolute;right:0;bottom:74px;width:370px;max-width:calc(100vw - 44px);height:560px;max-height:calc(100vh - 120px);
  background:var(--bg);border:1px solid var(--line);border-radius:16px;overflow:hidden;display:none;flex-direction:column;
  box-shadow:0 24px 60px rgba(0,0,0,.65),inset 0 1px 0 rgba(255,255,255,.05);animation:tvc-in .22s ease}
.tvc.open .tvc-panel{display:flex}
.tvc.open .tvc-bubble{transform:scale(.9);opacity:.9}
@keyframes tvc-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

.tvc-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(180deg,#1c2214,#12160d);
  border-bottom:1px solid var(--line)}
.tvc-ava{width:38px;height:38px;border-radius:10px;flex-shrink:0;display:grid;place-items:center;
  background:linear-gradient(180deg,#a8d033,#6f9207);color:#0c1004;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 2px 6px rgba(0,0,0,.4)}
.tvc-ava svg{width:22px;height:22px}
.tvc-ttl{flex:1;min-width:0}
.tvc-ttl b{font-family:var(--fd);font-weight:700;font-size:16px;text-transform:uppercase;letter-spacing:.02em;color:var(--ink);display:block;line-height:1.1}
.tvc-ttl span{font-size:11.5px;color:var(--gb);font-weight:600;display:flex;align-items:center;gap:5px}
.tvc-ttl span::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--gb);box-shadow:0 0 6px var(--gb)}
.tvc-x{background:none;border:none;color:var(--muted);cursor:pointer;font-size:22px;line-height:1;padding:4px;border-radius:6px}
.tvc-x:hover{color:var(--ink);background:rgba(255,255,255,.06)}

.tvc-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth}
.tvc-body::-webkit-scrollbar{width:8px}.tvc-body::-webkit-scrollbar-thumb{background:var(--line);border-radius:8px}

.tvc-msg{max-width:84%;font-size:14px;line-height:1.5;padding:11px 14px;border-radius:14px;white-space:pre-wrap;word-wrap:break-word}
.tvc-msg.bot{align-self:flex-start;background:var(--srf2);border:1px solid var(--line);color:var(--soft);border-bottom-left-radius:4px}
.tvc-msg.user{align-self:flex-end;background:linear-gradient(180deg,#8fb616,#6f9207);color:#0c1004;font-weight:600;border-bottom-right-radius:4px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
.tvc-msg a{color:var(--gb);font-weight:700;text-decoration:underline}
.tvc-msg.user a{color:#0c1004}

.tvc-acts{display:flex;flex-wrap:wrap;gap:7px;align-self:flex-start;max-width:92%}
.tvc-act{font-size:12.5px;font-weight:700;font-family:var(--ff);text-decoration:none;padding:8px 12px;border-radius:8px;cursor:pointer;
  border:1px solid #3c5210;color:#0c1004;background:linear-gradient(180deg,#a8d033,#7ea30c);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 2px 5px rgba(0,0,0,.4)}
.tvc-act.ghost{background:var(--srf2);color:var(--soft);border-color:var(--line)}
.tvc-act:hover{filter:brightness(1.06)}

.tvc-chips{display:flex;flex-wrap:wrap;gap:7px;padding:0 16px 10px}
.tvc-chip{font-size:12.5px;font-weight:600;color:var(--soft);background:var(--srf);border:1px solid var(--line);
  border-radius:100px;padding:8px 13px;cursor:pointer;transition:.15s;white-space:nowrap}
.tvc-chip:hover{border-color:var(--g);color:var(--gb)}

.tvc-type{align-self:flex-start;display:flex;gap:4px;padding:12px 14px;background:var(--srf2);border:1px solid var(--line);border-radius:14px;border-bottom-left-radius:4px}
.tvc-type i{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:tvc-blink 1.2s infinite}
.tvc-type i:nth-child(2){animation-delay:.2s}.tvc-type i:nth-child(3){animation-delay:.4s}
@keyframes tvc-blink{0%,60%,100%{opacity:.3}30%{opacity:1}}

.tvc-form{display:flex;flex-direction:column;gap:8px;align-self:stretch;background:var(--srf);border:1px solid var(--line);border-radius:12px;padding:12px}
.tvc-form input{width:100%;background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:10px 12px;color:var(--ink);font-family:var(--ff);font-size:14px}
.tvc-form input:focus{outline:none;border-color:var(--g)}
.tvc-form button{border:none;border-radius:8px;padding:11px;font-weight:800;font-family:var(--ff);cursor:pointer;color:#0c1004;
  background:linear-gradient(180deg,#a8d033,#6f9207);box-shadow:inset 0 1px 0 rgba(255,255,255,.4)}

.tvc-foot{border-top:1px solid var(--line);padding:10px 12px;display:flex;gap:8px;align-items:flex-end;background:var(--srf)}
.tvc-foot textarea{flex:1;resize:none;max-height:96px;min-height:24px;background:var(--bg);border:1px solid var(--line);border-radius:10px;
  padding:10px 12px;color:var(--ink);font-family:var(--ff);font-size:14px;line-height:1.4}
.tvc-foot textarea:focus{outline:none;border-color:var(--g)}
.tvc-send{width:40px;height:40px;flex-shrink:0;border:none;border-radius:10px;cursor:pointer;display:grid;place-items:center;color:#0c1004;
  background:linear-gradient(180deg,#a8d033,#6f9207);box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 2px 6px rgba(0,0,0,.4)}
.tvc-send svg{width:20px;height:20px}.tvc-send:disabled{opacity:.5;cursor:default}
.tvc-note{font-size:10.5px;color:var(--muted);text-align:center;padding:0 12px 8px;background:var(--srf)}

@media(max-width:560px){
  .tvc{right:14px;bottom:14px}
  .tvc-panel{width:calc(100vw - 20px);height:80vh;right:-4px;bottom:70px}
}
@media(prefers-reduced-motion:reduce){.tvc *{animation:none!important}}
