/* Canlı destek penceresi (dahili) */
.lc { position: fixed; right: 20px; bottom: 20px; z-index: 9990; font-family: 'Poppins', sans-serif; }
.lc-toggle { width: 60px; height: 60px; border-radius: 50%; border: 0; background: #1e64ff; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px rgba(30,100,255,.38); position: relative; transition: transform .15s; }
.lc-toggle:hover { transform: scale(1.05); }
.lc-toggle svg { width: 27px; height: 27px; }
.lc-dot { position: absolute; right: 4px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: #94a3b8; border: 2px solid #fff; }
.lc.is-online .lc-dot { background: #22c55e; }
.lc-badge { position: absolute; left: -4px; top: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.lc-panel { position: absolute; right: 0; bottom: 74px; width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 120px); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(15,23,42,.22); display: flex; flex-direction: column; overflow: hidden; }
.lc-panel[hidden] { display: none; }
.lc-head { background: linear-gradient(135deg, #1e64ff, #1747c9); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lc-head strong { display: block; font-size: 15px; }
.lc-head small { font-size: 12px; opacity: .9; }
.lc-close { background: rgba(255,255,255,.18); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.lc-body { flex: 1; overflow-y: auto; padding: 14px; background: #f5f7fc; display: flex; flex-direction: column; gap: 8px; }
.lc-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.lc-msg small { display: block; font-size: 10.5px; opacity: .65; margin-top: 3px; }
.lc-msg.is-visitor { align-self: flex-end; background: #1e64ff; color: #fff; border-bottom-right-radius: 4px; }
.lc-msg.is-staff { align-self: flex-start; background: #fff; color: #1f2937; border: 1px solid #e5e9f2; border-bottom-left-radius: 4px; }
.lc-msg.is-system { align-self: center; background: transparent; color: #64748b; font-size: 12px; text-align: center; max-width: 100%; }
.lc-start { padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; border-top: 1px solid #eef1f7; }
.lc-start input[type=text], .lc-start input[type=email], .lc-start input[type=tel], .lc-start textarea, .lc-compose textarea { width: 100%; box-sizing: border-box; border: 1px solid #dbe2ef; border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 13.5px; resize: none; outline: none; }
.lc-start input:focus, .lc-start textarea:focus, .lc-compose textarea:focus { border-color: #1e64ff; box-shadow: 0 0 0 3px rgba(30,100,255,.12); }
.lc-intro { margin: 0 0 2px; font-size: 13px; color: #475569; line-height: 1.5; }
.lc-kvkk { display: flex; gap: 7px; font-size: 11.5px; color: #64748b; line-height: 1.45; align-items: flex-start; }
.lc-kvkk a { color: #1e64ff; }
.lc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lc-err { margin: 0; color: #dc2626; font-size: 12.5px; }
.lc-btn { border: 0; background: #1e64ff; color: #fff; font: inherit; font-weight: 600; font-size: 14px; padding: 11px; border-radius: 10px; cursor: pointer; }
.lc-btn:disabled { opacity: .6; }
.lc-compose { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eef1f7; background: #fff; align-items: flex-end; }
.lc-compose textarea { max-height: 110px; }
.lc-compose button { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; border: 0; background: #1e64ff; color: #fff; display: grid; place-items: center; cursor: pointer; }
.lc-compose button svg { width: 19px; height: 19px; }
.lc-wa { position: fixed; right: 20px; bottom: 20px; z-index: 9989; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37,211,102,.4); }
.lc-wa svg { width: 30px; height: 30px; }
.lc-wa.has-chat { bottom: 92px; }
@media (max-width: 560px) {
    .lc { right: 14px; bottom: 14px; }
    .lc.is-open .lc-toggle { display: none; }
    .lc-panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; bottom: 0; }
    .lc-wa { right: 14px; bottom: 14px; }
    .lc-wa.has-chat { bottom: 84px; }
}

/* hidden özniteliği flex düzenini ezsin */
.lc-panel [hidden] { display: none !important; }
.lc-body[hidden] + .lc-start { flex: 1 1 auto; border-top: 0; }
