:root{
--pci-night:#07111f;
--pci-night-2:#0d1b2d;
--pci-panel:#101f33;
--pci-blue:#13b8ff;
--pci-blue-2:#0077ff;
--pci-cyan:#63dcff;
--pci-text:#f6fbff;
--pci-muted:#a9bdd0;
--pci-line:rgba(113,211,255,.18);
}
.pci-inline-panel{max-width:760px;margin:24px auto}
.pci-chat-wrap{
width:100%;
border:1px solid var(--pci-line);
border-radius:24px;
background:linear-gradient(160deg,var(--pci-night-2),var(--pci-night));
box-shadow:0 24px 70px rgba(0,8,20,.36),0 0 0 1px rgba(35,190,255,.05) inset;
overflow:hidden;
color:var(--pci-text);
}
.pci-chat-shell{display:flex;flex-direction:column;background:linear-gradient(165deg,#0f2034 0%,#07111f 100%)}
.pci-chat-hero{
position:relative;
display:flex;
justify-content:space-between;
gap:18px;
padding:24px 24px 20px;
overflow:hidden;
background:
radial-gradient(circle at 85% 20%,rgba(19,184,255,.20),transparent 34%),
linear-gradient(135deg,#081522 0%,#102942 100%);
color:#fff;
}
.pci-chat-hero:after{
content:"";position:absolute;right:-50px;bottom:-100px;width:220px;height:220px;border-radius:50%;
background:radial-gradient(circle,rgba(28,190,255,.18),transparent 66%);pointer-events:none
}
.pci-kicker{display:inline-flex;align-items:center;padding:6px 11px;border:1px solid rgba(99,220,255,.28);border-radius:999px;background:rgba(15,170,255,.10);color:#bcecff;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.pci-chat-hero h3{margin:10px 0 8px;font-size:28px;line-height:1.12;color:#fff;text-shadow:0 2px 20px rgba(21,184,255,.15)}
.pci-chat-hero p{margin:0;color:#c7d8e8;line-height:1.45}
.pci-chat-hero-side{display:flex;flex-direction:column;align-items:flex-end;gap:10px;text-align:right;z-index:1}
.pci-live-pill{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid rgba(99,220,255,.20);border-radius:999px;background:rgba(0,0,0,.20);font-size:13px;color:#d8f4ff}
.pci-live-dot{width:9px;height:9px;border-radius:50%;background:#34e58a;box-shadow:0 0 14px rgba(52,229,138,.8);flex:0 0 auto}
.pci-mini-points{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#b9ccdd}
.pci-chat-header{
display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 18px;
border-bottom:1px solid var(--pci-line);
background:linear-gradient(135deg,rgba(10,24,40,.98),rgba(15,42,67,.98));
}
.pci-chat-title-row{display:flex;align-items:center;gap:12px;min-width:0}
.pci-avatar-badge{
width:48px;height:48px;flex:0 0 auto;border-radius:16px;display:flex;align-items:center;justify-content:center;
background:radial-gradient(circle at 50% 45%,rgba(29,187,255,.24),rgba(5,13,23,.82));
border:1px solid rgba(65,203,255,.28);box-shadow:0 10px 24px rgba(0,0,0,.28),0 0 20px rgba(19,184,255,.12) inset;overflow:visible
}
.pci-avatar-badge img{display:block;width:42px;height:48px;object-fit:contain;filter:drop-shadow(0 5px 8px rgba(0,0,0,.5))}
.pci-chat-title-row strong{display:block;color:#fff;font-size:17px;line-height:1.3}
.pci-subtitle{margin-top:3px;color:var(--pci-muted);font-size:12.5px;line-height:1.4}
.pci-close-chat{appearance:none;border:1px solid rgba(255,255,255,.12);width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.07);color:#fff;font-size:22px;line-height:1;cursor:pointer;flex:0 0 auto;transition:.2s ease}
.pci-close-chat:hover,.pci-close-chat:focus-visible{background:rgba(19,184,255,.18);border-color:rgba(99,220,255,.32);transform:rotate(5deg)}
.pci-chat-body{
min-height:180px;overflow:auto;padding:18px;
background:
radial-gradient(circle at 80% 0%,rgba(0,126,255,.08),transparent 35%),
linear-gradient(180deg,#0b1726 0%,#091320 100%);
}
.pci-message{display:flex;flex-direction:column;margin-bottom:14px}
.pci-message.pci-visitor{align-items:flex-end}.pci-message.pci-admin{align-items:flex-start}
.pci-bubble{max-width:82%;padding:12px 14px;border-radius:17px;word-break:break-word;line-height:1.45;box-shadow:0 8px 18px rgba(0,0,0,.16)}
.pci-visitor .pci-bubble{background:linear-gradient(135deg,#008cff,#0067dc);color:#fff;border-bottom-right-radius:6px}
.pci-admin .pci-bubble{background:linear-gradient(145deg,#172b42,#12243a);color:#ecf8ff;border:1px solid rgba(99,220,255,.12);border-bottom-left-radius:6px}
.pci-time{margin-top:5px;color:#718ba3;font-size:11px}
.pci-empty{padding:28px 18px;text-align:center;color:#8fa8bd;font-size:14px;line-height:1.45}
.pci-empty strong,.pci-empty span{display:block}.pci-empty strong{color:#e8f7ff;font-size:15px;margin-top:4px}.pci-empty-icon{height:80px;margin:0 auto 8px;display:flex;align-items:center;justify-content:center}
.pci-empty-icon img{width:62px;height:80px;object-fit:contain;filter:drop-shadow(0 10px 14px rgba(0,0,0,.4)) drop-shadow(0 0 12px rgba(19,184,255,.18))}
.pci-chat-form{padding:16px 18px 18px;background:linear-gradient(180deg,#0d1b2b,#091522);border-top:1px solid var(--pci-line)}
.pci-field{display:block}.pci-field span{display:block;margin-bottom:6px;color:#b9ccdd;font-size:13px;font-weight:700}
.pci-chat-form textarea{display:block;width:100%;min-height:120px;box-sizing:border-box;border:1px solid rgba(89,199,255,.22);border-radius:16px;background:#07111d;padding:14px 15px;font:inherit;color:#f4fbff;resize:vertical;box-shadow:0 0 0 1px rgba(255,255,255,.015) inset;transition:.2s ease}
.pci-chat-form textarea::placeholder{color:#6f879b}.pci-chat-form textarea:focus{outline:none;border-color:#24baff;box-shadow:0 0 0 3px rgba(36,186,255,.13),0 12px 28px rgba(0,0,0,.16)}
.pci-note{margin-top:11px;color:#7f98ad;font-size:12px;line-height:1.45}.pci-actions{display:block;margin-top:12px}
.pci-send-button{appearance:none;display:block;width:100%;min-height:52px;box-sizing:border-box;border:1px solid rgba(99,220,255,.30);border-radius:15px;background:linear-gradient(135deg,#008df5 0%,#005ed4 100%);color:#fff;padding:14px 18px;font-weight:800;cursor:pointer;text-align:center;box-shadow:0 13px 28px rgba(0,105,225,.25),0 1px 0 rgba(255,255,255,.20) inset;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.pci-send-button:hover,.pci-send-button:focus-visible{transform:translateY(-1px);box-shadow:0 17px 34px rgba(0,105,225,.32);filter:brightness(1.05)}
.pci-status{margin-top:10px;color:#83d9ff;font-size:13px} .pci-floating-launcher{position:fixed;right:18px;bottom:18px;z-index:999999}
.pci-floating-button{
position:relative;width:72px;height:78px;padding:0;border:0;border-radius:24px;display:inline-flex;align-items:center;justify-content:center;
background:radial-gradient(circle at 50% 42%,rgba(31,190,255,.24),rgba(4,12,22,.88) 68%);
color:#fff;box-shadow:0 17px 38px rgba(0,0,0,.34),0 0 0 1px rgba(87,213,255,.22) inset,0 0 28px rgba(0,145,255,.16);
cursor:pointer;overflow:visible;transition:transform .22s ease,filter .22s ease,box-shadow .22s ease
}
.pci-floating-button:hover,.pci-floating-button:focus-visible{transform:translateY(-3px) scale(1.035);filter:brightness(1.07);box-shadow:0 20px 44px rgba(0,0,0,.38),0 0 0 1px rgba(87,213,255,.35) inset,0 0 34px rgba(0,145,255,.24)}
.pci-floating-icon{display:block;width:65px;height:76px;line-height:1;pointer-events:none}
.pci-floating-icon img{display:block;width:65px;height:76px;object-fit:contain;filter:drop-shadow(0 9px 10px rgba(0,0,0,.50))}
.pci-floating-text{display:none!important}
.pci-floating-panel[hidden]{display:none!important}
.pci-floating-panel{position:fixed;right:18px;bottom:108px;width:min(400px,calc(100vw - 24px));z-index:999998;transform-origin:bottom right;animation:pciPanelIn .28s cubic-bezier(.2,.8,.2,1)}
.pci-is-floating{height:auto;max-height:calc(100vh - 122px);max-height:calc(100dvh - 122px);border-radius:22px}
.pci-is-floating .pci-chat-shell{max-height:calc(100vh - 122px);max-height:calc(100dvh - 122px);overflow:hidden}.pci-is-floating .pci-chat-hero{display:none}.pci-is-floating .pci-chat-header{padding:14px 16px}.pci-is-floating .pci-chat-body{flex:1 1 auto;min-height:120px;max-height:270px;padding:14px 16px}.pci-is-floating .pci-chat-form{flex:0 0 auto;padding:14px 16px 16px}.pci-is-floating .pci-chat-form textarea{min-height:78px}
.pci-chat-body::-webkit-scrollbar{width:9px}.pci-chat-body::-webkit-scrollbar-thumb{background:#25425c;border-radius:999px;border:2px solid #0b1726}
.pci-honeypot{position:absolute!important;left:-9999px!important;opacity:0!important;pointer-events:none!important;height:0!important;width:0!important}
.pci-floating-badge{position:absolute;top:-5px;right:-5px;min-width:23px;height:23px;padding:0 6px;border:2px solid #07111f;border-radius:999px;background:#ff3f55;color:#fff;font-size:11px;font-weight:800;line-height:19px;text-align:center;box-shadow:0 8px 18px rgba(255,63,85,.40)}
.pci-floating-button.pci-has-unread{animation:pciPulse 1.8s ease-in-out infinite}.pci-message-pop .pci-bubble{animation:pciPop .9s ease-out}
@keyframes pciPanelIn{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes pciPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
@keyframes pciPop{0%{transform:scale(.96);box-shadow:0 0 0 rgba(31,122,236,0)}40%{transform:scale(1.01);box-shadow:0 12px 24px rgba(31,178,255,.22)}100%{transform:scale(1);box-shadow:0 0 0 rgba(31,122,236,0)}}
@media(max-width:760px){.pci-chat-hero{flex-direction:column;align-items:flex-start}.pci-chat-hero-side{align-items:flex-start;text-align:left}.pci-bubble{max-width:90%}}
@media(max-width:560px){
.pci-floating-launcher{right:10px;bottom:10px}.pci-floating-button{width:64px;height:70px;border-radius:21px}.pci-floating-icon,.pci-floating-icon img{width:58px;height:68px}
.pci-floating-panel{left:10px;right:10px;width:auto;bottom:92px}.pci-is-floating{max-height:calc(100vh - 106px);max-height:calc(100dvh - 106px)}.pci-is-floating .pci-chat-shell{max-height:calc(100vh - 106px);max-height:calc(100dvh - 106px)}.pci-is-floating .pci-chat-body{max-height:225px}
}
@media(prefers-reduced-motion:reduce){.pci-floating-button,.pci-floating-panel,.pci-message-pop .pci-bubble{animation:none!important;transition:none!important}}