/* ===== Canlı Sohbet Widget (v3, çakışmasız class isimleri) ===== */
.lychat-widget {
  position: fixed;
  z-index: 121;
  left: calc(1rem + 52px + .6rem);
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lychat-fab {
  width: 52px; height: 52px;
  border: 1px solid rgba(179,136,255,.82);
  border-radius: 50%;
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  background: linear-gradient(135deg,#8f3cec,#ff6fa7);
  box-shadow: 0 10px 30px rgba(140,70,196,.42);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; align-items: center; justify-content: center;
  order: 2;
}
.lychat-fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 13px 36px rgba(140,70,196,.58); }

.lychat-panel-cont {
  display: none;
  width: min(320px, calc(100vw - 2rem));
  max-height: 420px;
  margin-bottom: .75rem;
  padding: .7rem;
  border: 1px solid rgba(179,136,255,.46);
  border-radius: 18px;
  background: rgba(25,20,37,.98);
  box-shadow: 0 20px 55px rgba(0,0,0,.42);
  backdrop-filter: blur(15px);
  flex-direction: column;
  order: 1;
}
.lychat-widget.open .lychat-panel-cont { display: flex; animation: lychat-panel-in .22s ease-out both; }

.lychat-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  color: #f7dff1; margin-bottom: .5rem; font-weight: 700; font-size: .95rem;
}
.lychat-close { border: 0; background: transparent; color: #bfa8d6; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: .1rem .3rem; }

.lychat-messages {
  flex: 1; overflow-y: auto;
  min-height: 160px; max-height: 260px;
  display: flex; flex-direction: column; gap: .4rem;
  padding: .3rem .1rem;
}
.lychat-msg { background: rgba(255,255,255,.04); border-radius: 10px; padding: .45rem .6rem; font-size: .85rem; color: #f0eaff; word-break: break-word; }
.lychat-msg b { display: block; font-size: .72rem; color: #b388ff; margin-bottom: .15rem; font-weight: 700; }
.lychat-msg-admin { border: 1px solid rgba(255,117,151,.4); }
.lychat-admin-tag { color: #ff7597 !important; }
.lychat-system { text-align: center; color: #8b7aaa; font-size: .75rem; font-style: italic; background: transparent; }

.lychat-locked-note { color: #ff7597; font-size: .75rem; margin: .3rem 0 0; text-align: center; }

.lychat-input-row { display: flex; gap: .4rem; margin-top: .5rem; }
.lychat-input {
  flex: 1; min-width: 0;
  border: 1px solid rgba(179,136,255,.4); border-radius: 10px;
  background: #171321; color: #fff; padding: .55rem .65rem;
  outline: none; font-family: inherit; font-size: .88rem;
}
.lychat-input:focus { border-color: #ff75a5; }
.lychat-send-btn {
  border: 1px solid rgba(255,117,151,.65); color: #fff; border-radius: 10px;
  background: linear-gradient(135deg,rgba(255,103,164,.84),rgba(145,62,232,.88));
  cursor: pointer; padding: .5rem .85rem; font-weight: 700;
}
.lychat-input:disabled, .lychat-send-btn:disabled { opacity: .5; cursor: not-allowed; }

.lychat-messages::-webkit-scrollbar { width: 6px; }
.lychat-messages::-webkit-scrollbar-thumb { background: rgba(179,136,255,.35); border-radius: 3px; }

@keyframes lychat-panel-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .lychat-widget { left: calc(.75rem + 52px + .5rem); bottom: calc(.75rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .lychat-widget { bottom: calc(4.7rem + env(safe-area-inset-bottom)); }
  .lychat-panel-cont { width: min(290px, calc(100vw - 1.5rem)); }
}
