/* Qurio floating AI + Back-to-top | compact premium UI */
#qurio-global-tools{position:fixed;right:20px;bottom:22px;z-index:2147483000;display:flex;flex-direction:column;align-items:flex-end;gap:11px;font-family:'Be Vietnam Pro',system-ui,sans-serif;pointer-events:none;color:#302450}
#qurio-global-tools *,#qurio-global-tools *::before,#qurio-global-tools *::after{box-sizing:border-box}
#qurio-global-tools button,#qurio-global-tools input,#qurio-global-tools form,#qurio-global-tools a,#qurio-global-tools .qg-chat-panel{pointer-events:auto;font-family:inherit}
#qurio-global-tools button{line-height:1.2}
.qg-toggle{height:52px;min-width:52px;border:1px solid #ffffffb3;border-radius:18px;padding:0 17px 0 12px;display:flex;align-items:center;justify-content:center;gap:10px;color:#fff;background:linear-gradient(135deg,#5f45da 0%,#8252ea 55%,#985af2 100%);box-shadow:0 8px 25px #6046c34a,0 2px 4px #44326a12;cursor:pointer;font-size:12px;font-weight:750;letter-spacing:.1px;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}
.qg-toggle:hover{transform:translateY(-3px);box-shadow:0 14px 32px #6046c354;filter:saturate(1.08)}
.qg-toggle:focus-visible,.qg-top:focus-visible,.qg-chat-close:focus-visible,.qg-chat-send:focus-visible{outline:3px solid #ad9aff;outline-offset:3px}
.qg-toggle-icon{width:31px;height:31px;border-radius:11px;display:grid;place-items:center;background:#ffffff2d;box-shadow:inset 0 1px 0 #ffffff40}
.qg-toggle svg,.qg-top svg,.qg-chat-close svg,.qg-chat-send svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.qg-toggle-icon svg{width:18px;height:18px}
.qg-top{width:42px;height:42px;border:1px solid #e5dcfa;border-radius:15px;background:#fff;color:#7049db;box-shadow:0 6px 19px #3b28641c;display:grid;place-items:center;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(10px) scale(.95);transition:opacity .2s,visibility .2s,transform .2s,box-shadow .2s}
.qg-top.is-visible{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.qg-top:hover{transform:translateY(-3px);box-shadow:0 9px 23px #7049db33}
.qg-chat-panel{width:min(365px,calc(100vw - 26px));height:min(515px,calc(100dvh - 110px));min-height:300px;border:1px solid #eae3f6;border-radius:23px;background:#fff;box-shadow:0 26px 75px #271b4a38,0 2px 12px #36205a10;overflow:hidden;display:flex;flex-direction:column;animation:qg-pop .23s cubic-bezier(.2,.8,.2,1);transform-origin:bottom right}
.qg-chat-panel[hidden]{display:none!important}
@keyframes qg-pop{from{transform:translateY(13px) scale(.97);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
.qg-chat-head{display:flex;align-items:center;gap:11px;padding:17px 17px 16px;background:linear-gradient(110deg,#6544d7 0%,#8656e8 74%,#996df4 100%);color:white;position:relative}
.qg-chat-head:after{content:'';position:absolute;inset:auto 0 0;height:1px;background:#ffffff25}
.qg-chat-mark{flex:none;width:39px;height:39px;display:grid;place-items:center;border-radius:14px;background:#ffffff28;box-shadow:inset 0 1px 0 #ffffff50}
.qg-chat-mark svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.qg-chat-heading{flex:1;min-width:0}
.qg-chat-heading strong{display:block;font-size:14px;font-weight:800;letter-spacing:.1px}
.qg-chat-heading small{display:block;margin-top:5px;font-size:10px;opacity:.9}
.qg-online{display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:#95f5ca;vertical-align:1px;box-shadow:0 0 0 3px #ffffff22}
.qg-chat-close{display:grid;place-items:center;flex:none;width:31px;height:31px;border:1px solid #ffffff42;border-radius:10px;background:#ffffff1e;color:#fff;cursor:pointer;transition:background .2s}
.qg-chat-close:hover{background:#ffffff38}
.qg-chat-messages{flex:1;min-height:0;padding:19px 16px;display:flex;flex-direction:column;gap:12px;overflow-y:auto;background:linear-gradient(180deg,#fbf9ff,#fff 40%);overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#e2d8fa transparent}
.qg-message{align-self:flex-start;max-width:91%;padding:12px 14px;border:1px solid #ece6f8;border-radius:16px 16px 16px 5px;background:#f5f1ff;color:#483866;font-size:11.5px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 1px 3px #271b4a08}
.qg-message.qg-user{align-self:flex-end;border-color:#7750df;background:linear-gradient(125deg,#6948de,#855aec);color:#fff;border-radius:16px 16px 5px 16px}
.qg-message.qg-system{border-color:#f4ddbd;background:#fffaf2;color:#865d25}
.qg-chat-form{flex:none;display:flex;align-items:center;gap:9px;padding:13px 14px 15px;background:#fff;border-top:1px solid #f0ecf7}
.qg-chat-input{flex:1;min-width:0;height:43px;padding:0 13px;border:1px solid #e9e3f3;border-radius:13px;background:#faf9fd;color:#382951;font-size:11.5px;outline:none;transition:border-color .2s,box-shadow .2s}
.qg-chat-input::placeholder{color:#a398b7}
.qg-chat-input:focus{border-color:#956ff0;box-shadow:0 0 0 3px #8c6bec1a;background:#fff}
.qg-chat-send{flex:none;display:grid;place-items:center;width:43px;height:43px;border:0;border-radius:13px;background:linear-gradient(145deg,#6f4ce0,#8a5cf1);color:white;box-shadow:0 4px 11px #7046db31;cursor:pointer;transition:transform .2s,box-shadow .2s}
.qg-chat-send:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 14px #7046db42}
.qg-chat-send:disabled{opacity:.5;cursor:default}
/* Keep the existing copyright layout across the whole website */
.qurio-copyright-footer{position:relative!important;clear:both!important;flex-shrink:0!important;display:block!important;margin:28px auto 16px!important;padding:0 18px!important;max-width:1100px!important;width:100%!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#25232b!important;text-align:center!important;font-family:'Be Vietnam Pro',system-ui,sans-serif!important;z-index:1!important}
.qurio-copyright-footer .qg-copyright-box{border:1px solid #e5e3ea;border-radius:21px;background:#fafafa;padding:22px 14px;line-height:1.8}
.qurio-copyright-footer .qg-copyright-title{font-size:17px;font-weight:700;color:#111;margin:0 0 8px}
.qurio-copyright-footer .qg-copyright-credit{font-size:13px;color:#6b6971;margin:0 0 6px}
.qurio-copyright-footer .qg-copyright-motto{font-size:12px;color:#77757f;margin:0}
@media(max-width:640px){#qurio-global-tools{right:12px;bottom:13px;gap:8px}.qg-toggle{height:47px;padding:0 13px 0 9px;border-radius:15px}.qg-toggle-icon{width:29px;height:29px;border-radius:9px}.qg-top{width:39px;height:39px;border-radius:13px}.qg-chat-panel{height:min(475px,calc(100dvh - 90px));border-radius:20px}.qurio-copyright-footer .qg-copyright-title{font-size:14px}}
@media(prefers-reduced-motion:reduce){#qurio-global-tools *{animation:none!important;transition:none!important}}

/* Circular premium floating widgets; original full footer remains unchanged */
#qurio-global-tools .qg-toggle {width:54px!important;min-width:54px!important;height:54px!important;border-radius:50%!important;padding:0!important;gap:0!important;box-shadow:0 9px 24px rgba(91,65,191,.35)!important}
#qurio-global-tools .qg-toggle > span:not(.qg-toggle-icon){display:none!important}
#qurio-global-tools .qg-toggle-icon{width:33px;height:33px;border-radius:50%;display:grid;place-items:center}
#qurio-global-tools .qg-top{width:44px!important;height:44px!important;border-radius:50%!important}
#qurio-global-tools .qg-chat-panel[hidden]{display:none!important}
.sidebar [data-nav="ai"],nav [data-nav="ai"]{display:none!important}
.qurio-footer-bottom .qg-copyright-only{display:flex;flex-direction:column;gap:3px;line-height:1.7;font-size:12px;color:#cbd5e1}
.qurio-footer-bottom .qg-copyright-only>span{display:block}
.qurio-footer-bottom .qg-copyright-only strong{color:#fff;font-weight:700}
@media(max-width:600px){#qurio-global-tools .qg-toggle{width:49px!important;min-width:49px!important;height:49px!important}}
