/* Destek / iletisim: sag altta sade hap seklinde "Sohbet" dugmesi (solda yesil cevrimici noktasi, kosede okunmamis sayisi)
   ve dugmenin ustunde acilan mesaj penceresi. Mor-altin tema, canli altin tonlari. */
.msg-fab{position:fixed;right:18px;bottom:18px;z-index:71;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 18px 0 14px;border-radius:999px;cursor:pointer;
 border:1.5px solid #ffd54a;background:linear-gradient(180deg,#3a2160,#1c0f30);color:#ffe27a;font:800 14.5px system-ui,Arial;letter-spacing:.02em;
 box-shadow:0 6px 18px rgba(0,0,0,.5),0 0 0 3px rgba(255,213,74,.12),0 0 16px rgba(255,200,40,.28);transition:transform .15s,box-shadow .15s}
.msg-fab:hover,.msg-fab:focus-visible,.msg-fab[aria-expanded=true]{outline:none;transform:translateY(-1px);border-color:#ffe98a;box-shadow:0 8px 20px rgba(0,0,0,.55),0 0 0 3px rgba(255,213,74,.35),0 0 22px rgba(255,210,60,.55)}
.msg-fab .mf-dot{flex:none;width:9px;height:9px;border-radius:50%;background:#35e07a;box-shadow:0 0 0 2px rgba(53,224,122,.25),0 0 8px #35e07a;animation:mfDot 2s ease-in-out infinite}
@keyframes mfDot{50%{box-shadow:0 0 0 4px rgba(53,224,122,.08),0 0 4px #35e07a}}
.msg-fab .mf-l{color:#ffe27a;text-shadow:0 0 10px rgba(255,214,70,.45)}
.msg-fab.has-new{border-color:#fff1a8}
.msg-fab svg{flex:none;width:20px;height:20px;fill:none;stroke-linecap:round;stroke-linejoin:round}
.msg-fab .mf-b{fill:rgba(255,226,122,.2);stroke:#ffe27a;stroke-width:1.8}
.msg-fab .mf-h{stroke:#fff6cc;stroke-width:1.8}.msg-fab .mf-e{fill:#ffe27a}
.msg-badge{position:absolute;top:-7px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:99px;box-sizing:border-box;display:grid;place-items:center;
 background:#e0243c;border:2px solid #1a0f2a;color:#fff;font:800 11px/1 system-ui,Arial;box-shadow:0 2px 6px rgba(0,0,0,.5)}
.msg-badge[hidden]{display:none}
.msg-pop{position:fixed;right:18px;bottom:86px;z-index:90;display:flex;flex-direction:column;width:min(380px,calc(100vw - 24px));max-height:min(620px,calc(100vh - 100px));
 border-radius:16px;border:1px solid rgba(233,196,106,.6);border-top:2px solid #e9c46a;background:linear-gradient(170deg,#1f1234,#0e0a16 70%);color:#efe4ff;
 box-shadow:0 0 0 4px #0d0915,0 22px 50px rgba(0,0,0,.65),0 0 30px rgba(110,50,190,.3);font:14px/1.45 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;animation:msgIn .22s ease;overflow:hidden}
.msg-pop[hidden]{display:none}
@keyframes msgIn{from{opacity:0;transform:translateY(12px) scale(.97)}}
.msg-head{display:flex;align-items:center;gap:8px;padding:12px 12px 10px 14px;border-bottom:1px solid rgba(233,196,106,.25);background:rgba(20,12,32,.7)}
.msg-title{flex:1;min-width:0}.msg-title strong{display:block;color:#f6dc94;font:700 16px Cinzel,Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.msg-title small{color:#a998c2;font-size:12px}
.msg-x,.msg-back{flex-shrink:0;width:32px;height:32px;border-radius:8px;border:1px solid rgba(233,196,106,.5);background:rgba(20,12,4,.8);color:#f6dc94;cursor:pointer;font-size:15px}
.msg-back{font-size:22px;line-height:1}
.msg-lead{margin:10px 14px 0;color:#cbbbe2;font-size:13px}
.msg-empty{margin:18px;color:#a998c2;text-align:center}
.msg-list{flex:1;overflow:auto;padding:8px;display:grid;gap:6px;align-content:start}
.msg-titem{display:grid;gap:3px;width:100%;padding:10px 12px;border-radius:12px;border:1px solid rgba(190,145,255,.25);background:rgba(166,107,255,.07);color:#efe4ff;font:inherit;text-align:left;cursor:pointer}
.msg-titem:hover,.msg-titem:focus-visible{border-color:#e9c46a;outline:none}
.msg-titem.unread{border-color:#e9c46a;box-shadow:inset 3px 0 0 #e0243c}
.msg-trow{display:flex;justify-content:space-between;gap:8px}.msg-trow b{color:#fff}
.msg-tlast{color:#cbbbe2;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.msg-titem time{color:#8e7d9d;font-size:11.5px}
.msg-st{flex-shrink:0;padding:1px 8px;border-radius:99px;font:700 11px system-ui,Arial;border:1px solid}
.msg-st.s-yeni{color:#f6dc94;border-color:#c58f2c}.msg-st.s-cevaplandi{color:#9fd0ff;border-color:#4a8fd6}.msg-st.s-cozuldu{color:#a6f5c6;border-color:#3ecf7a}
.msg-newbtn{margin:8px 12px 12px}
.msg-thread{flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:8px;min-height:120px}
.msg-bub{max-width:85%;padding:8px 11px;border-radius:14px;border:1px solid rgba(190,145,255,.25)}
.msg-bub p{margin:2px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.msg-bub.me{align-self:flex-end;background:linear-gradient(160deg,#4a2a7a,#2e1a4c);border-bottom-right-radius:4px}
.msg-bub.them{align-self:flex-start;background:linear-gradient(160deg,#3a2a12,#22160a);border-color:rgba(233,196,106,.45);border-bottom-left-radius:4px}
.msg-who{display:block;color:#f6dc94;font-weight:700;font-size:11.5px}.msg-bub.me .msg-who{color:#d6c0ff}
.msg-bub time{display:block;color:#8e7d9d;font-size:11px;text-align:right}
.msg-img img{display:block;max-width:100%;max-height:160px;margin-top:4px;border-radius:8px;border:1px solid rgba(233,196,106,.35)}
.msg-form{display:grid;gap:8px;padding:10px 12px 12px;border-top:1px solid rgba(233,196,106,.18)}
.msg-form label{display:grid;gap:4px;color:#d6c8ea;font-size:12.5px;font-weight:600}
.msg-form select,.msg-form input:not([type=file]),.msg-form textarea{width:100%;box-sizing:border-box;padding:9px 11px;border-radius:10px;border:1px solid rgba(190,145,255,.45);background:rgba(12,8,20,.9);color:#efe4ff;font:14px system-ui,Arial}
.msg-form textarea{resize:vertical;min-height:52px}
.msg-form :is(select,input,textarea):focus{outline:2px solid #e9c46a;outline-offset:1px}
.msg-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.msg-file{position:relative;cursor:pointer}.msg-file input{position:absolute;opacity:0;width:1px;height:1px}
.msg-file span{display:block;padding:7px 10px;border-radius:10px;border:1px dashed rgba(233,196,106,.45);color:#cbbbe2;font-weight:500;font-size:12.5px}
.msg-file:focus-within span{outline:2px solid #e9c46a}
.msg-send{justify-self:end}
.msg-status{margin:0;min-height:1em;font-size:13px;color:#cbbbe2}.msg-status.ok{color:#a6f5c6}.msg-status.err{color:#ff9d9d}
.msg-done{display:grid;justify-items:center;gap:6px;padding:28px 18px;text-align:center}
.msg-done b{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:rgba(62,207,122,.18);border:2px solid #3ecf7a;color:#a6f5c6;font-size:26px}
.msg-done p{margin:6px 0 0;color:#fff;font-weight:700}.msg-done small{color:#a998c2}
.msg-bot:empty{display:none}
@media(max-width:620px){
 .msg-fab{right:14px;bottom:14px;height:40px;padding:0 14px 0 12px;font-size:13.5px;gap:7px}.msg-fab svg{width:18px;height:18px}
 .msg-pop{right:8px;left:8px;bottom:72px;width:auto;max-height:calc(100vh - 84px)}
 .msg-two{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.msg-fab .mf-dot,.msg-pop{animation:none}}
@media print{.msg-fab,.msg-pop{display:none}}


/* Karsilama ve hazir konu dugmeleri */
.msg-home{flex:1;overflow:auto;padding:14px 12px;display:flex;flex-direction:column;gap:10px;min-height:150px}
.msg-botb{position:relative;font-size:14.5px}
.msg-blink{display:inline-block;margin-top:6px;color:#f6dc94;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.msg-quick{display:flex;flex-direction:column;align-items:flex-end;gap:7px}
.msg-qbtn{max-width:88%;padding:8px 15px;border-radius:999px;border:1px solid rgba(233,196,106,.7);background:linear-gradient(160deg,rgba(74,42,122,.75),rgba(30,18,50,.9));color:#f6e7bf;font:600 13.5px/1.25 inherit;text-align:right;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.msg-qbtn:hover,.msg-qbtn:focus-visible{border-color:#f6dc94;background:linear-gradient(160deg,#6a3fb0,#3a2066);transform:translateX(-2px);outline:none}
.msg-hfoot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;padding:8px 12px 12px;border-top:1px solid rgba(233,196,106,.18)}
.msg-link{border:0;background:none;color:#d6c0ff;font:600 12.5px inherit;cursor:pointer;padding:4px 2px;text-decoration:underline;text-underline-offset:3px}
.msg-link:hover{color:#f6dc94}
/* Ilk giriste karsilama onizlemesi */
.msg-tease{position:fixed;z-index:9998;display:flex;align-items:flex-start;gap:4px;max-width:min(260px,calc(100vw - 24px));padding:10px 8px 10px 13px;border-radius:14px 14px 4px 14px;border:1px solid rgba(233,196,106,.6);background:linear-gradient(160deg,#2e1a4c,#160d24);box-shadow:0 10px 28px rgba(0,0,0,.5);animation:msgTease .35s ease-out}
.msg-tease-t{border:0;background:none;color:#f6e7bf;font:600 13.5px/1.35 inherit;text-align:left;cursor:pointer;padding:0}
.msg-tease-x{flex:0 0 auto;border:0;background:none;color:#a998c2;font-size:13px;cursor:pointer;padding:0 4px;line-height:1}
.msg-tease-x:hover{color:#f6dc94}
@keyframes msgTease{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:620px){.msg-tease{max-width:min(220px,calc(100vw - 24px))}.msg-tease-t{font-size:13px}}
@media(prefers-reduced-motion:reduce){.msg-tease{animation:none}}
@media print{.msg-tease{display:none}}
