/* ZeynSuperNet canlı sohbet botu widget'ı — koyu/turkuaz tema */
#zsn-chat-root { position: fixed; right: 20px; bottom: 20px; z-index: 1080; font-family: inherit; }

.zsn-chat-bubble {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #0dcaf0, #0d6efd);
    color: #fff; border: none; cursor: pointer;
    box-shadow: 0 6px 20px rgba(13, 202, 240, 0.45);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; transition: transform .2s, box-shadow .2s;
}
.zsn-chat-bubble:hover { transform: scale(1.06); box-shadow: 0 8px 26px rgba(13, 202, 240, 0.6); }
.zsn-chat-bubble .zsn-badge {
    position: absolute; top: -2px; right: -2px; width: 14px; height: 14px;
    background: #dc3545; border-radius: 50%; border: 2px solid #0b0e14;
}

.zsn-chat-panel {
    position: absolute; bottom: 74px; right: 0;
    width: 360px; max-width: calc(100vw - 40px); height: 520px; max-height: calc(100vh - 120px);
    background: #0b0e14; color: #e9ecef;
    border: 1px solid rgba(13, 202, 240, 0.25); border-radius: 16px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
    display: none; flex-direction: column; overflow: hidden;
}
#zsn-chat-root.zsn-open .zsn-chat-panel { display: flex; }

/* Sohbet öncesi lead formu ile sohbet ekranı arasında geçiş */
#zsn-chat-root:not(.zsn-ready) .zsn-chat-body,
#zsn-chat-root:not(.zsn-ready) .zsn-chat-foot { display: none; }
#zsn-chat-root.zsn-ready .zsn-lead { display: none; }

.zsn-lead { padding: 18px 16px; display: flex; flex-direction: column; gap: 11px; overflow-y: auto; }
.zsn-lead h4 { font-size: 15px; font-weight: 600; margin: 0; color: #fff; }
.zsn-lead .zsn-lead-note { font-size: 12px; color: #adb5bd; margin: 0 0 4px; }
.zsn-lead label { font-size: 12px; color: #adb5bd; margin-bottom: 4px; display: block; }
.zsn-lead input {
    width: 100%; background: rgba(255,255,255,0.06); color: #fff;
    border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 10px 12px; font-size: 14px;
}
.zsn-lead input:focus { outline: none; border-color: #0dcaf0; }
.zsn-lead input::placeholder { color: #6c757d; }
.zsn-lead .zsn-lead-err { color: #ff6b6b; font-size: 12px; min-height: 14px; }
.zsn-lead .zsn-lead-btn {
    margin-top: 2px; background: linear-gradient(135deg,#0dcaf0,#0d6efd); color: #fff;
    border: none; border-radius: 20px; padding: 11px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.zsn-lead .zsn-lead-btn:disabled { opacity: .6; cursor: default; }
.zsn-hp-lead { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.zsn-chat-header {
    background: linear-gradient(135deg, rgba(13,202,240,0.18), rgba(13,110,253,0.12));
    padding: 14px 16px; display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid rgba(13, 202, 240, 0.2);
}
.zsn-chat-header .zsn-ava { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#0dcaf0,#0d6efd); display:flex; align-items:center; justify-content:center; color:#fff; }
.zsn-chat-header .zsn-title { font-weight: 600; font-size: 15px; }
.zsn-chat-header .zsn-sub { font-size: 11px; color: #adb5bd; }
.zsn-chat-header .zsn-close { margin-left: auto; background: none; border: none; color: #adb5bd; font-size: 20px; cursor: pointer; line-height: 1; }

.zsn-chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.zsn-chat-body::-webkit-scrollbar { width: 6px; }
.zsn-chat-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.zsn-msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.zsn-msg.zsn-bot { align-self: flex-start; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-bottom-left-radius: 4px; }
.zsn-msg.zsn-user { align-self: flex-end; background: linear-gradient(135deg,#0dcaf0,#0d6efd); color: #fff; border-bottom-right-radius: 4px; }
.zsn-msg a { color: #0dcaf0; }

.zsn-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: rgba(255,255,255,0.06); border-radius: 14px; }
.zsn-typing span { width: 7px; height: 7px; background: #0dcaf0; border-radius: 50%; opacity: .5; animation: zsn-blink 1.2s infinite; }
.zsn-typing span:nth-child(2) { animation-delay: .2s; }
.zsn-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes zsn-blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.zsn-chat-foot { padding: 10px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; gap: 8px; }
.zsn-chat-foot textarea {
    flex: 1; resize: none; background: rgba(255,255,255,0.06); color: #fff;
    border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 9px 14px; font-size: 14px; max-height: 90px;
}
.zsn-chat-foot textarea:focus { outline: none; border-color: #0dcaf0; }
.zsn-chat-foot textarea::placeholder { color: #6c757d; }
.zsn-chat-send { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; border: none; background: linear-gradient(135deg,#0dcaf0,#0d6efd); color: #fff; cursor: pointer; font-size: 16px; }
.zsn-chat-send:disabled { opacity: .5; cursor: default; }

.zsn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 576px) {
    #zsn-chat-root { right: 14px; bottom: 14px; }
    .zsn-chat-panel { width: calc(100vw - 24px); height: calc(100vh - 90px); bottom: 72px; right: -2px; }
}

/* Sayfa yönlendirme butonları (bot mesajının altında) */
.zsn-actions { display: flex; flex-wrap: wrap; gap: 7px; align-self: flex-start; max-width: 90%; margin-top: -2px; }
.zsn-action-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(13, 202, 240, 0.12);
    border: 1px solid rgba(13, 202, 240, 0.45);
    color: #0dcaf0; text-decoration: none;
    padding: 7px 13px; border-radius: 16px; font-size: 12.5px; font-weight: 600;
    transition: background .15s, transform .15s;
}
.zsn-action-btn::before { content: "\2192"; opacity: .8; }
.zsn-action-btn:hover { background: rgba(13, 202, 240, 0.25); color: #fff; transform: translateY(-1px); }
