.kz-support-chat-fab {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 10055;
    width: 3.4rem;
    height: 3.4rem;
    border: 0;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2ec7ff, #1496e6);
    color: #0e2742;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    animation: kzFabIn 0.28s ease-out;
}
.kz-support-chat-fab:hover { filter: brightness(1.05); }
.kz-support-chat-fab__badge {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0e2742;
}
.kz-support-chat-fab__badge.is-hidden { display: none !important; }
@keyframes kzFabIn {
    from { opacity: 0; transform: scale(0.85) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.kz-support-chat {
    --kz-vvh: 100dvh;
    --kz-vv-top: 0px;
    position: fixed;
    top: var(--kz-vv-top);
    left: 0;
    right: 0;
    height: var(--kz-vvh);
    bottom: auto;
    z-index: 10060;
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
    background: rgba(4, 12, 22, 0.35);
    box-sizing: border-box;
}
.kz-support-chat.is-open { display: flex; }
.kz-support-chat__panel {
    width: min(100%, 380px);
    height: min(72vh, 620px);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(180deg, #12324f 0%, #0e2742 55%, #0b1f35 100%);
    border: 1px solid rgba(46, 199, 255, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    animation: kzSupportIn 0.28s ease-out;
}
@keyframes kzSupportIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.kz-support-chat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: rgba(0, 0, 0, 0.22);
    border-bottom: 1px solid rgba(46, 199, 255, 0.18);
    flex-shrink: 0;
}
.kz-support-chat__head-actions { display: flex; gap: 0.35rem; }
.kz-support-chat__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #f8fafc;
    min-width: 0;
}
.kz-support-chat__brand strong { display: block; font-size: 0.95rem; }
.kz-support-chat__brand small { color: #2ec7ff; font-size: 0.72rem; }
.kz-support-chat__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
    flex-shrink: 0;
}
.kz-support-chat__dot.is-offline {
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.18);
}
.kz-support-chat__close,
.kz-support-chat__icon-btn {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.kz-support-chat__icon-btn { font-size: 1.1rem; font-weight: 700; }
.kz-support-chat__meta {
    padding: 0.45rem 1rem;
    font-size: 0.72rem;
    color: rgba(226, 232, 240, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}
.kz-support-chat__banner {
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
    line-height: 1.35;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}
.kz-support-chat__banner.is-hidden { display: none !important; }
.kz-support-chat__banner--closed { background: rgba(239, 68, 68, 0.16); color: #fecaca; }
.kz-support-chat__banner--info { background: rgba(46, 199, 255, 0.12); color: #b8ecff; }
.kz-support-chat__msgs {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    touch-action: pan-y;
}
.kz-support-chat__bubble {
    max-width: 85%;
    padding: 0.55rem 0.75rem;
    border-radius: 0.85rem;
    font-size: 0.86rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}
.kz-support-chat__bubble--member {
    align-self: flex-end;
    background: rgba(46, 199, 255, 0.18);
    border: 1px solid rgba(46, 199, 255, 0.35);
    color: #fff7e6;
    border-bottom-right-radius: 0.25rem;
}
.kz-support-chat__bubble--staff {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border-bottom-left-radius: 0.25rem;
}
.kz-support-chat__bubble--system {
    align-self: center;
    max-width: 95%;
    text-align: center;
    background: rgba(148, 163, 184, 0.12);
    border: 1px dashed rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
    font-size: 0.78rem;
}
.kz-support-chat__time {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.65rem;
    opacity: 0.65;
}
.kz-support-chat__composer {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid rgba(46, 199, 255, 0.16);
    background: rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
}
.kz-support-chat__composer.is-locked { opacity: 0.72; }
.kz-support-chat__composer textarea {
    flex: 1;
    resize: none;
    border-radius: 0.75rem;
    border: 1px solid rgba(46, 199, 255, 0.22);
    background: rgba(8, 20, 34, 0.9);
    color: #f8fafc;
    padding: 0.65rem 0.75rem;
    font: inherit;
    max-height: 5.5rem;
}
.kz-support-chat__composer textarea:disabled { color: #94a3b8; cursor: not-allowed; }
.kz-support-chat__composer button {
    width: 2.75rem;
    border: 0;
    border-radius: 0.75rem;
    background: #2ec7ff;
    color: #0e2742;
    cursor: pointer;
    flex-shrink: 0;
}
.kz-support-chat__composer button:disabled { opacity: 0.45; cursor: not-allowed; }

body.kz-support-chat-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* Klavye açıkken üst alanı sıkıştır — mesajlara yer aç */
.kz-support-chat.is-keyboard .kz-support-chat__meta { display: none; }
.kz-support-chat.is-keyboard .kz-support-chat__brand small { display: none; }
.kz-support-chat.is-keyboard .kz-support-chat__head {
    padding: 0.55rem 0.75rem;
}
.kz-support-chat.is-keyboard .kz-support-chat__banner {
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
}
.kz-support-chat.is-keyboard .kz-support-chat__composer {
    padding: 0.55rem 0.65rem;
}
.kz-support-chat.is-keyboard .kz-support-chat__msgs {
    padding: 0.65rem 0.75rem;
}

@media (max-width: 480px) {
    .kz-support-chat {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }
    .kz-support-chat__panel {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }
    .kz-support-chat-fab { right: 0.85rem; bottom: 0.85rem; }
}
