.ert-chat{position:fixed;right:18px;bottom:18px;z-index:9990;font-family:"DM Sans",system-ui,sans-serif}
.ert-chat-fab{position:relative;width:62px;height:62px;border-radius:50%;border:0;cursor:pointer;display:grid;place-items:center;color:#1a1222;background:linear-gradient(135deg,#f6dc9c,#d6b25e 55%,#b98d3e);box-shadow:0 16px 36px -10px rgba(214,178,94,.75),0 0 0 3px rgba(14,10,22,.85);transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.ert-chat-fab:hover{transform:scale(1.07) rotate(-4deg)}
.ert-chat-fab svg{width:27px;height:27px;position:absolute;transition:transform .35s cubic-bezier(.2,.7,.2,1),opacity .25s}
.ert-chat-x{opacity:0;transform:rotate(-90deg) scale(.6)}
.ert-chat[data-state=open] .ert-chat-ic{opacity:0;transform:rotate(90deg) scale(.6)}
.ert-chat[data-state=open] .ert-chat-x{opacity:1;transform:none}
.ert-chat-ring{position:absolute;inset:-6px;border-radius:50%;background:conic-gradient(#5b8def,#a066e8,#ef5b4c,#f5b83d,#38c3a8,#5b8def);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));animation:ert-spin 6s linear infinite;opacity:.9}
@keyframes ert-spin{to{transform:rotate(360deg)}}
.ert-chat[data-state=open] .ert-chat-ring{opacity:0}
.ert-chat-teaser{position:absolute;right:0;bottom:78px;width:260px;padding:16px 38px 16px 18px;border-radius:18px 18px 4px 18px;background:#fff;color:#1f1829;box-shadow:0 24px 50px -18px rgba(14,10,22,.45);font-size:14px;line-height:1.45;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(10px) scale(.96);transform-origin:bottom right;transition:all .4s cubic-bezier(.2,.7,.2,1)}
.ert-chat-teaser b{display:block;font:600 19px/1.2 "Cormorant Garamond",Georgia,serif;margin-bottom:4px}
.ert-chat.has-teaser .ert-chat-teaser{opacity:1;visibility:visible;transform:none}
.ert-chat[data-state=open] .ert-chat-teaser{display:none}
.ert-chat-tx{position:absolute;top:8px;right:8px;width:26px;height:26px;border-radius:50%;border:0;background:#f1e9db;color:#1f1829;display:grid;place-items:center;cursor:pointer;padding:0}
.ert-chat-tx svg{width:13px;height:13px}
.ert-chat-panel{position:absolute;right:0;bottom:78px;width:min(390px,calc(100vw - 24px));height:min(600px,calc(100svh - 120px));display:flex;flex-direction:column;border-radius:24px;overflow:hidden;background:#fbf8f2;box-shadow:0 40px 90px -30px rgba(14,10,22,.65),0 0 0 1px rgba(31,24,41,.08);opacity:0;visibility:hidden;transform:translateY(16px) scale(.97);transform-origin:bottom right;transition:all .4s cubic-bezier(.2,.7,.2,1)}
.ert-chat[data-state=open] .ert-chat-panel{opacity:1;visibility:visible;transform:none}
.ert-chat-head{position:relative;display:flex;align-items:center;gap:12px;padding:16px 16px 16px 18px;background:#0e0a16;color:#fff}
.ert-chat-head::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,#5b8def,#a066e8 25%,#ef5b4c 50%,#f5b83d 75%,#38c3a8)}
.ert-chat-head img{width:40px;height:40px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #d6b25e}
.ert-chat-head b{display:block;font:600 19px/1.15 "Cormorant Garamond",Georgia,serif}
.ert-chat-head small{display:flex;align-items:center;gap:6px;font-size:12px;color:rgba(255,255,255,.65)}
.ert-chat-head small i{width:7px;height:7px;border-radius:50%;background:#38c3a8}
.ert-chat-close{margin-left:auto;width:34px;height:34px;border-radius:50%;border:0;background:rgba(255,255,255,.08);color:#fff;cursor:pointer;display:grid;place-items:center;padding:0}
.ert-chat-close svg{width:16px;height:16px}
.ert-chat-log{flex:1;overflow:auto;padding:18px 16px 8px;display:flex;flex-direction:column;gap:8px;scroll-behavior:smooth}
.ert-msg{max-width:86%;padding:11px 14px;border-radius:18px;font-size:14.5px;line-height:1.5;animation:ert-pop .35s cubic-bezier(.2,.7,.2,1)}
@keyframes ert-pop{from{opacity:0;transform:translateY(8px) scale(.98)}}
.ert-msg.bot{align-self:flex-start;background:#fff;color:#1f1829;border-bottom-left-radius:6px;box-shadow:0 1px 0 rgba(31,24,41,.08)}
.ert-msg.me{align-self:flex-end;background:#2b1a45;color:#fff;border-bottom-right-radius:6px}
.ert-msg.typing{display:flex;gap:4px;padding:14px}
.ert-msg.typing i{width:7px;height:7px;border-radius:50%;background:#b8adc7;animation:ert-dot 1s infinite}
.ert-msg.typing i:nth-child(2){animation-delay:.15s}.ert-msg.typing i:nth-child(3){animation-delay:.3s}
@keyframes ert-dot{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.ert-cbtns{display:grid;gap:8px;margin-top:10px}
.ert-cbtn{display:block;text-align:center;padding:11px 14px;border-radius:999px;background:#f1e9db;color:#1f1829!important;font-weight:600;font-size:14px;text-decoration:none!important;transition:transform .2s}
.ert-cbtn:hover{transform:translateY(-1px)}
.ert-cbtn.gold{background:linear-gradient(135deg,#f6dc9c,#d6b25e);color:#1a1222!important}
.ert-chat-input{padding:10px 14px 16px;border-top:1px solid rgba(31,24,41,.07);background:#fbf8f2}
.ert-chat-input:empty{display:none}
.ert-chips{display:flex;flex-wrap:wrap;gap:8px}
.ert-chipbtn{padding:10px 14px;border-radius:999px;border:1.5px solid rgba(43,26,69,.18);background:#fff;color:#2b1a45;font:600 13.5px/1.2 "DM Sans",sans-serif;cursor:pointer;animation:ert-pop .35s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i) * 50ms);transition:all .2s}
.ert-chipbtn:hover{border-color:#d6b25e;background:#fff8e6}
.ert-cform{display:grid;gap:8px}
.ert-cform input,.ert-cform textarea{width:100%;padding:11px 13px;border-radius:12px;border:1.5px solid #e4dccd;background:#fff;font:15px/1.4 "DM Sans",sans-serif;color:#1f1829;box-sizing:border-box}
.ert-cform input:focus,.ert-cform textarea:focus{outline:0;border-color:#d6b25e;box-shadow:0 0 0 4px rgba(214,178,94,.18)}
.ert-hp{position:absolute!important;left:-9999px!important;opacity:0!important}
.ert-csend{padding:13px;border-radius:999px;border:0;cursor:pointer;background:linear-gradient(135deg,#f6dc9c,#d6b25e 55%,#b98d3e);color:#1a1222;font:700 14.5px/1 "DM Sans",sans-serif}
.ert-csend:disabled{opacity:.6}
.ert-cerr{margin:0;color:#c0392b;font-size:13px}
.ert-cerr:empty{display:none}
.ert-cfine{margin:0;font-size:11.5px;color:#685d76;text-align:center}
.ert-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (max-width:640px){
  .ert-chat{right:12px;bottom:12px}
  .ert-chat-fab{width:56px;height:56px}
  .ert-chat-panel{position:fixed;right:8px;left:8px;bottom:80px;width:auto;height:calc(100svh - 150px)}
  .ert-chat-teaser{width:230px;bottom:70px}
}
@media (prefers-reduced-motion:reduce){.ert-chat-ring{animation:none}}
