/* Clarys Technology — chatbot public (fără dependențe). Prefix .cb- pentru a nu intra în conflict cu site-ul. */
.cb-root{--cb-bg:#0b1020;--cb-panel:#0f1629;--cb-bd:rgba(255,255,255,.12);--cb-text:#e7eaf2;--cb-muted:#9aa4b8;--cb-blue:#3b82f6;--cb-blue2:#2563eb;--cb-cyan:#22d3ee;--cb-user:#1d4ed8;
  position:fixed;right:24px;bottom:84px;z-index:9000;font-family:'Plus Jakarta Sans',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:15px;line-height:1.5;color:var(--cb-text)}
.cb-root *{box-sizing:border-box}
.cb-launch{display:flex;align-items:center;gap:10px;height:52px;padding:0 18px 0 14px;border:0;border-radius:26px;cursor:pointer;color:#fff;font:inherit;font-weight:700;background:linear-gradient(100deg,var(--cb-blue2),var(--cb-blue));box-shadow:0 10px 30px rgba(37,99,235,.45),0 0 0 1px rgba(255,255,255,.12) inset;transition:transform .15s,box-shadow .15s}
.cb-launch:hover{transform:translateY(-2px)}
.cb-launch:focus-visible,.cb-btn:focus-visible,.cb-chip:focus-visible,.cb-close:focus-visible,.cb-input:focus-visible,.cb-field:focus-visible{outline:2px solid var(--cb-cyan);outline-offset:2px}
.cb-launch svg{width:22px;height:22px;flex:none}
.cb-panel{position:absolute;right:0;bottom:64px;width:380px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100vh - 160px);display:none;flex-direction:column;background:var(--cb-panel);border:1px solid var(--cb-bd);border-radius:18px;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.55)}
.cb-root.cb-open .cb-panel{display:flex;animation:cb-in .18s ease-out}
.cb-root.cb-open .cb-launch{display:none}
@keyframes cb-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.cb-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(100deg,#0b1730,#12224a);border-bottom:1px solid var(--cb-bd)}
.cb-avatar{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--cb-blue2),var(--cb-cyan));display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff;flex:none}
.cb-title{font-weight:800;color:#fff;font-size:15px;line-height:1.2}
.cb-sub{font-size:12px;color:var(--cb-muted);margin-top:2px}
.cb-close{margin-left:auto;width:36px;height:36px;border:0;border-radius:10px;background:rgba(255,255,255,.07);color:#fff;font-size:20px;cursor:pointer;line-height:1}
.cb-close:hover{background:rgba(255,255,255,.14)}
.cb-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth;overscroll-behavior:contain}
.cb-msg{max-width:88%;padding:10px 13px;border-radius:14px;word-wrap:break-word;overflow-wrap:anywhere;white-space:pre-line}
.cb-bot{align-self:flex-start;background:rgba(255,255,255,.06);border:1px solid var(--cb-bd);border-bottom-left-radius:4px}
.cb-user{align-self:flex-end;background:var(--cb-user);color:#fff;border-bottom-right-radius:4px}
.cb-msg a{color:var(--cb-cyan);text-decoration:underline;text-underline-offset:2px}
.cb-msg strong{color:#fff}
.cb-typing{display:inline-flex;gap:4px;align-items:center;height:20px}
.cb-typing i{width:6px;height:6px;border-radius:50%;background:var(--cb-muted);animation:cb-b 1s infinite}
.cb-typing i:nth-child(2){animation-delay:.15s}.cb-typing i:nth-child(3){animation-delay:.3s}
@keyframes cb-b{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-3px)}}
.cb-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px}
.cb-chip{border:1px solid var(--cb-bd);background:rgba(59,130,246,.12);color:#cfe0ff;border-radius:999px;padding:7px 13px;font:inherit;font-size:13.5px;cursor:pointer;transition:background .15s}
.cb-chip:hover{background:rgba(59,130,246,.28)}
.cb-form{display:flex;gap:8px;padding:12px 16px;border-top:1px solid var(--cb-bd);background:rgba(0,0,0,.18)}
.cb-input{flex:1;min-width:0;height:44px;border-radius:12px;border:1px solid var(--cb-bd);background:rgba(255,255,255,.05);color:var(--cb-text);padding:0 14px;font:inherit}
.cb-input::placeholder{color:var(--cb-muted)}
.cb-send{width:44px;height:44px;border:0;border-radius:12px;background:var(--cb-blue2);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex:none}
.cb-send:disabled{opacity:.5;cursor:not-allowed}
.cb-note{padding:0 16px 12px;font-size:11.5px;color:var(--cb-muted);text-align:center}
.cb-lead{align-self:stretch;background:rgba(255,255,255,.04);border:1px solid var(--cb-bd);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:9px}
.cb-lead h3{margin:0;font-size:14.5px;color:#fff}
.cb-field{width:100%;border-radius:10px;border:1px solid var(--cb-bd);background:rgba(255,255,255,.05);color:var(--cb-text);padding:10px 12px;font:inherit;font-size:14.5px}
textarea.cb-field{min-height:72px;resize:vertical}
.cb-field[aria-invalid="true"]{border-color:#f87171}
.cb-err{color:#fca5a5;font-size:12.5px;min-height:0}
.cb-check{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;color:var(--cb-muted)}
.cb-check input{margin-top:3px;flex:none}
.cb-check a{color:var(--cb-cyan)}
.cb-btn{height:44px;border:0;border-radius:12px;background:linear-gradient(100deg,var(--cb-blue2),var(--cb-blue));color:#fff;font:inherit;font-weight:700;cursor:pointer}
.cb-btn:disabled{opacity:.6;cursor:wait}
.cb-link{background:none;border:0;color:var(--cb-muted);font:inherit;font-size:12.5px;text-decoration:underline;cursor:pointer;padding:4px}
.cb-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.cb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (max-width:520px){
  .cb-root{right:14px;bottom:76px}
  .cb-launch span{display:none}.cb-launch{width:54px;height:54px;padding:0;justify-content:center;border-radius:50%}
  .cb-panel{position:fixed;left:8px;right:8px;bottom:8px;width:auto;max-width:none;height:calc(100dvh - 16px);max-height:none;border-radius:16px}
}
@media (prefers-reduced-motion:reduce){.cb-root.cb-open .cb-panel,.cb-typing i{animation:none}.cb-log{scroll-behavior:auto}.cb-launch{transition:none}}
.cb-chip-menu{background:transparent;border-style:dashed;color:var(--cb-muted)}
.cb-chip-menu:hover{color:#fff}
