.alperen-chat{position:fixed;z-index:950;right:18px;bottom:14px;width:126px;height:168px;font-family:var(--sans,'Manrope',sans-serif);pointer-events:none}
.alperen-chat-launch{position:absolute;right:0;bottom:0;width:112px;height:150px;padding:0;border:0;background:transparent;color:inherit;cursor:pointer;pointer-events:auto;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.alperen-chat-character{position:absolute;inset:0;display:block}
.alperen-chat-character img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 12px 14px rgba(0,0,0,.58));transition:opacity .18s ease,transform .24s cubic-bezier(.2,.8,.2,1),filter .24s ease;pointer-events:none}
.alperen-chat-wave{opacity:0;transform:translateY(3px) scale(.985)}
.alperen-chat-launch:hover .alperen-chat-idle,.alperen-chat-launch:focus-visible .alperen-chat-idle,.alperen-chat-launch[aria-expanded="true"] .alperen-chat-idle{opacity:0;transform:translateY(2px) scale(.99)}
.alperen-chat-launch:hover .alperen-chat-wave,.alperen-chat-launch:focus-visible .alperen-chat-wave,.alperen-chat-launch[aria-expanded="true"] .alperen-chat-wave{opacity:1;transform:none;filter:drop-shadow(0 14px 17px rgba(0,0,0,.62)) drop-shadow(0 0 10px rgba(0,231,255,.2))}
.alperen-chat-launch:focus-visible{outline:2px solid var(--gold2,#86f8ff);outline-offset:4px;border-radius:20px}
.alperen-chat-bubble{position:absolute;right:72px;bottom:122px;width:max-content;max-width:165px;padding:.62rem .78rem;border:1px solid rgba(0,231,255,.34);border-radius:14px 14px 4px 14px;background:rgba(8,18,30,.96);color:#eefdff;font-size:.69rem;font-weight:800;line-height:1.3;letter-spacing:.01em;box-shadow:0 12px 34px rgba(0,0,0,.42),0 0 20px rgba(0,231,255,.08);pointer-events:auto;cursor:pointer;transition:transform .2s ease,border-color .2s ease,background .2s ease}
.alperen-chat-bubble::after{content:'';position:absolute;right:9px;bottom:-7px;width:12px;height:12px;border-right:1px solid rgba(0,231,255,.34);border-bottom:1px solid rgba(0,231,255,.34);background:rgba(8,18,30,.96);transform:rotate(45deg)}
.alperen-chat-bubble:hover,.alperen-chat-bubble:focus-visible{transform:translateY(-2px);border-color:var(--gold2,#86f8ff);background:#0d2132}
.alperen-chat-panel{position:fixed;z-index:949;right:22px;bottom:166px;display:flex;width:min(380px,calc(100vw - 28px));height:min(560px,calc(100dvh - 190px));min-height:390px;flex-direction:column;border:1px solid rgba(0,231,255,.25);border-radius:22px;background:linear-gradient(155deg,rgba(9,20,33,.985),rgba(5,11,20,.995));color:#effcff;box-shadow:0 30px 90px rgba(0,0,0,.7),0 0 45px rgba(0,231,255,.08);overflow:hidden;opacity:0;visibility:hidden;transform:translateY(14px) scale(.97);transform-origin:bottom right;transition:opacity .2s ease,visibility .2s ease,transform .24s cubic-bezier(.2,.8,.2,1)}
.alperen-chat-panel.is-open{opacity:1;visibility:visible;transform:none}
.alperen-chat-head{display:flex;align-items:center;gap:.72rem;padding:.9rem 1rem;border-bottom:1px solid rgba(0,231,255,.12);background:rgba(0,231,255,.035)}
.alperen-chat-avatar{width:38px;height:38px;flex:none;border:1px solid rgba(0,231,255,.25);border-radius:12px;background:radial-gradient(circle at 50% 65%,rgba(157,108,255,.16),transparent 68%);object-fit:contain;object-position:center bottom}
.alperen-chat-title{min-width:0;flex:1}
.alperen-chat-title strong{display:block;font-size:.78rem;line-height:1.3}
.alperen-chat-title span{display:flex;align-items:center;gap:.42rem;margin-top:.16rem;color:#7f9cad;font:700 .54rem var(--mono,'Space Mono',monospace);letter-spacing:.06em}
.alperen-chat-title span::before{content:'';width:6px;height:6px;border-radius:50%;background:#39ffb0;box-shadow:0 0 10px #39ffb0}
.alperen-chat-close{display:grid;width:44px;height:44px;flex:none;place-items:center;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:#0e1925;color:#a9c0ce;cursor:pointer;font-size:1.25rem;line-height:1;transition:border-color .18s,color .18s,background .18s}
.alperen-chat-close:hover,.alperen-chat-close:focus-visible{border-color:rgba(0,231,255,.4);background:#132438;color:#fff}
.alperen-chat-messages{display:flex;min-height:0;flex:1;flex-direction:column;gap:.7rem;padding:1rem;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(0,231,255,.35) transparent}
.alperen-chat-message{max-width:86%;padding:.72rem .82rem;border-radius:14px;color:#dbeaf2;font-size:.75rem;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.alperen-chat-message.is-assistant{align-self:flex-start;border:1px solid rgba(0,231,255,.13);border-bottom-left-radius:4px;background:#0d1b29}
.alperen-chat-message.is-user{align-self:flex-end;border:1px solid rgba(157,108,255,.24);border-bottom-right-radius:4px;background:linear-gradient(135deg,rgba(0,231,255,.13),rgba(157,108,255,.18));color:#f2fbff}
.alperen-chat-message.is-error{border-color:rgba(255,108,126,.28);background:rgba(255,80,105,.09);color:#ffbdc7}
.alperen-chat-typing{display:inline-flex;align-items:center;gap:5px;min-width:58px}
.alperen-chat-typing i{width:6px;height:6px;border-radius:50%;background:#86f8ff;animation:alperen-chat-dot 1s ease-in-out infinite}
.alperen-chat-typing i:nth-child(2){animation-delay:.14s}.alperen-chat-typing i:nth-child(3){animation-delay:.28s}
@keyframes alperen-chat-dot{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}
.alperen-chat-form{display:flex;align-items:flex-end;gap:.55rem;padding:.8rem;border-top:1px solid rgba(0,231,255,.11);background:rgba(4,10,18,.86)}
.alperen-chat-input{width:100%;min-height:46px;max-height:112px;resize:none;overflow-y:hidden;padding:.74rem .82rem;border:1px solid rgba(255,255,255,.1);border-radius:13px;background:#0b1622;color:#effcff;font:500 16px/1.45 var(--sans,'Manrope',sans-serif);outline:0}
.alperen-chat-input::placeholder{color:#648093}.alperen-chat-input:focus{border-color:rgba(0,231,255,.5);box-shadow:0 0 0 3px rgba(0,231,255,.07)}
.alperen-chat-send{display:grid;width:46px;height:46px;flex:none;place-items:center;border:1px solid rgba(0,231,255,.36);border-radius:13px;background:linear-gradient(135deg,rgba(0,231,255,.18),rgba(157,108,255,.2));color:#eefdff;cursor:pointer;touch-action:manipulation;transition:transform .18s ease,filter .18s ease}
.alperen-chat-send:hover,.alperen-chat-send:focus-visible{transform:translateY(-2px);filter:brightness(1.16)}
.alperen-chat-send:disabled{cursor:wait;opacity:.45;transform:none}
.alperen-chat-send svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.alperen-chat-note{padding:0 .9rem .72rem;background:rgba(4,10,18,.86);color:#587184;font:500 .52rem/1.4 var(--mono,'Space Mono',monospace);text-align:center}
.alperen-chat-note a{color:#78a9bd;text-underline-offset:2px}.alperen-chat-note a:hover{color:#bcefff}
@media(max-width:620px){.alperen-chat{right:8px;bottom:8px;width:100px;height:132px}.alperen-chat-launch{width:88px;height:120px}.alperen-chat-bubble{right:58px;bottom:101px;max-width:148px;font-size:.63rem}.alperen-chat-panel{right:10px;bottom:128px;width:calc(100vw - 20px);height:min(540px,calc(100dvh - 145px));min-height:360px;border-radius:18px}.alperen-chat-message{font-size:.72rem}}
@media(prefers-reduced-motion:reduce){.alperen-chat-character img,.alperen-chat-bubble,.alperen-chat-panel,.alperen-chat-send{transition:none}.alperen-chat-typing i{animation:none}}
