/* ==========================================================================
   Canlı destek penceresi (assets/js/livechat.js) ve hesabım yazışma dökümü

   Düzen: üstte yuvarlak düğmeler (büyüt · menü · kapat), ortada yüzen kimlik
   kartı, sade mesaj akışı (yetkili metni favicon avatarıyla, kullanıcı balonu
   profil resmiyle), altta kapatılabilir bilgi notu ve hap biçimli yazma alanı
   (+ dosya · emoji · gönder). Renkler theme.css değişkenlerinden: açık temada
   açık gri zemin + beyaz kartlar, koyu temada aynısının koyu karşılığı.
   ========================================================================== */

.lc {
  --lc-ease: cubic-bezier(.2, .8, .2, 1);
  /* Koyu tema (varsayılan): kartlar panelden bir ton açık, "yüzer" */
  --lc-bg: var(--bg-elev);
  --lc-card: color-mix(in srgb, var(--text-strong) 7%, var(--bg-elev));
  --lc-soft: color-mix(in srgb, var(--text-strong) 7%, transparent);
  --lc-ink: var(--text-strong);

  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  width: 400px;
  height: min(680px, calc(100vh - 48px));
  pointer-events: none;
  transition: width .25s var(--lc-ease), height .25s var(--lc-ease);
}

/* Açık tema: açık gri panel + beyaz kartlar (theme.css ile aynı seçiciler) */
:root[data-theme="light"] .lc { --lc-bg: var(--surface-4); --lc-card: var(--bg-elev); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .lc { --lc-bg: var(--surface-4); --lc-card: var(--bg-elev); }
}

.lc[hidden] { display: none; }
.lc.is-wide { width: min(620px, calc(100vw - 48px)); height: calc(100vh - 48px); }

.lc__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  background: var(--lc-bg);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .45), 0 2px 10px rgba(0, 0, 0, .06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(.94);
  transform-origin: bottom right;
  clip-path: circle(28px at calc(100% - 32px) calc(100% - 32px));
  /* Kapanış: hızlı ve yumuşak */
  transition: opacity .2s ease .06s, transform .24s var(--lc-ease), clip-path .26s cubic-bezier(.5, 0, .75, 0);
}

/* Açılış: düğmenin durduğu köşeden dairesel açılır, hafifçe yaylanarak oturur */
.lc.is-open { pointer-events: auto; }
.lc.is-open .lc__panel {
  opacity: 1;
  transform: none;
  clip-path: circle(150% at calc(100% - 32px) calc(100% - 32px));
  transition: opacity .18s ease, transform .55s cubic-bezier(.2, 1.2, .3, 1), clip-path .6s cubic-bezier(.25, .9, .3, 1);
}

/* İçerik sırayla belirir */
.lc.is-open .lc__top,
.lc.is-open .lc__id,
.lc.is-open .lc__feed,
.lc.is-open .lc__bottom { animation: lc-rise .5s cubic-bezier(.2, .9, .3, 1) backwards; }
.lc.is-open .lc__top { animation-delay: .08s; }
.lc.is-open .lc__id { animation-delay: .14s; }
.lc.is-open .lc__feed { animation-delay: .2s; }
.lc.is-open .lc__bottom { animation-delay: .26s; }
@keyframes lc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Kimlik kartındaki avatar yaylanarak gelir, çevrimiçi noktası bir kez dalgalanır */
.lc.is-open .lc__idav .lc-av { animation: lc-avpop .6s .22s cubic-bezier(.3, 1.6, .4, 1) backwards; }
@keyframes lc-avpop { from { transform: scale(.3) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
.lc.is-open .lc__online.is-on { animation: lc-ping 1.4s .7s ease-out 2; }
@keyframes lc-ping { 0% { box-shadow: 0 0 0 0 rgba(34, 160, 107, .6); } 100% { box-shadow: 0 0 0 9px rgba(34, 160, 107, 0); } }

/* --- Yuvarlak düğmeler --- */
.lc__round {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--lc-soft);
  color: var(--lc-ink);
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}

.lc__round:hover { background: color-mix(in srgb, var(--text-strong) 13%, transparent); }
.lc__round:active { transform: scale(.94); }
.lc__round:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lc__round[hidden] { display: none; }
.lc__round--sm { width: 26px; height: 26px; background: transparent; }
.lc__round--ghost { background: transparent; border: 1.5px solid color-mix(in srgb, var(--text-strong) 20%, transparent); width: 34px; height: 34px; }

/* --- Üst çubuk + kimlik kartı --- */
.lc__top { display: flex; align-items: center; gap: 8px; padding: 12px 12px 0; }
.lc__spacer { flex: 1; }

.lc__id {
  position: relative;
  z-index: 2;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 40px);
  margin: 4px auto 6px;
  padding: 10px 20px 10px 10px;
  border-radius: 20px;
  background: var(--lc-card);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .25), 0 0 0 1px var(--line-soft);
}

.lc__idav { position: relative; flex: 0 0 auto; }
.lc__idav .lc-av { width: 42px; height: 42px; }
.lc__online {
  position: absolute;
  top: 0;
  right: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--lc-card);
  background: var(--muted-2);
}
.lc__online.is-on { background: #22A06B; }
.lc__online.is-wait { background: var(--warn); }

.lc__idtext { display: flex; flex-direction: column; min-width: 0; }
.lc__idname { font-size: 14.5px; font-weight: 800; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc__idsub { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Menü --- */
.lc__menu {
  position: absolute;
  top: 54px;
  right: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 230px;
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--lc-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
  animation: lc-pop .16s var(--lc-ease);
}
.lc__menu[hidden] { display: none; }
@keyframes lc-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

.lc__menuitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lc__menuitem:hover { background: var(--lc-soft); color: var(--text-strong); }
.lc__menuitem[hidden] { display: none; }

/* --- Bağlantı şeridi --- */
.lc__conn { margin: 0 14px 6px; padding: 7px 12px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 16%, var(--lc-card)); color: var(--warn); font-size: 12.5px; font-weight: 650; text-align: center; }
.lc__conn.is-ok { background: color-mix(in srgb, var(--ok) 14%, var(--lc-card)); color: var(--ok); }
.lc__conn[hidden] { display: none; }

/* --- Akış --- */
.lc__feed { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 18px 6px; scrollbar-width: thin; }
.lc__list { display: flex; flex-direction: column; gap: 4px; }

.lc__loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 0; color: var(--text-3); font-size: 13.5px; }
.lc__spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-mid); border-top-color: var(--accent); animation: lc-spin .7s linear infinite; }
@keyframes lc-spin { to { rotate: 360deg; } }

.lc__day { align-self: center; margin: 10px 0 4px; font-size: 11px; font-weight: 700; color: var(--muted-2); letter-spacing: .02em; }
.lc__sys { align-self: center; max-width: 88%; margin: 6px 0; font-size: 12px; line-height: 1.45; color: var(--text-3); text-align: center; }

/* Avatarlar */
.lc-av {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}
.lc-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-av--agent, .lc-av--brand { background: var(--lc-card); box-shadow: 0 0 0 1px var(--line-soft); color: var(--text-strong); }
.lc-av--agent img, .lc-av--brand img { width: 70%; height: 70%; object-fit: contain; }
.lc-av--user { background: linear-gradient(135deg, #5566E8, #7B5BD6); }

/* Mesaj satırı */
.lc__msg { display: flex; align-items: flex-end; gap: 10px; margin-top: 10px; animation: lc-in .22s var(--lc-ease); }
.lc__msg.is-cont { margin-top: 2px; }
.lc__msg.is-cont > .lc-av { visibility: hidden; height: 0; }
.lc__msg--them { align-items: flex-start; }
.lc__msg--me { flex-direction: row-reverse; }
@keyframes lc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.lc__col { display: flex; flex-direction: column; min-width: 0; max-width: 84%; }
.lc__msg--me .lc__col { align-items: flex-end; max-width: 78%; }
.lc__who { display: flex; margin-bottom: 4px; font-size: 12px; font-weight: 750; color: var(--text-strong); }

/* Yetkili adı + rol rozeti */
.lc__agent { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; vertical-align: middle; }
.lc__agentname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc__role {
  flex: 0 0 auto; display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
  font-size: 10.5px; font-weight: 750; letter-spacing: .02em; line-height: 1; white-space: nowrap;
}
.lc__idname .lc__role { height: 19px; font-size: 11px; }

/* Yetkili: balonsuz sade metin (görseldeki gibi) */
.lc__text { font-size: 14.5px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.lc__text strong { color: var(--text-strong); }
.lc__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Kullanıcı: koyu balon (temada ters renk) */
.lc__bubble {
  padding: 9px 14px;
  border-radius: 20px 20px 6px 20px;
  background: var(--text-strong);
  color: var(--bg-elev);
  font-size: 14.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.lc__body { white-space: pre-wrap; }
.lc__meta { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 10.5px; color: var(--muted-2); }

/* Tik: tek (gönderildi), çift (iletildi), renkli çift (okundu) */
.lc__tick { position: relative; width: 16px; height: 10px; }
.lc__tick::before, .lc__tick::after { content: ""; position: absolute; top: 1px; width: 4px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; rotate: 45deg; }
.lc__tick::before { left: 2px; }
.lc__tick::after { left: 7px; display: none; }
.lc__tick.is-delivered::after, .lc__tick.is-read::after { display: block; }
.lc__tick.is-read { color: #22A06B; }

.lc__msg.is-sending .lc__bubble, .lc__msg.is-sending .lc__files { opacity: .6; }
.lc__msg.is-failed .lc__bubble { opacity: .5; }
.lc__msg.is-deleted .lc__body { font-style: italic; opacity: .7; }

.lc__fail { margin-top: 4px; padding: 0; border: 0; background: transparent; font: inherit; font-size: 11.5px; font-weight: 650; color: var(--danger); cursor: pointer; text-align: right; }

.lc__progress { display: block; width: 140px; height: 4px; margin-top: 6px; border-radius: 999px; background: var(--lc-soft); overflow: hidden; }
.lc__progress i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .2s; }

/* Ekler */
.lc__files { display: flex; flex-direction: column; gap: 6px; }
.lc__files:empty { display: none; }
.lc__bubble .lc__body + .lc__files, .lc__text .lc__body + .lc__files { margin-top: 8px; }
.lc__img { display: block; max-width: 230px; border-radius: 14px; overflow: hidden; background: var(--lc-soft); }
.lc__img img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; transition: transform .25s; }
.lc__img:hover img { transform: scale(1.03); }

.lc__file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  max-width: 260px;
  padding: 8px 12px 8px 8px;
  border-radius: 14px;
  background: var(--lc-card);
  border: 1px solid var(--line-soft);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s;
}
.lc__bubble .lc__file { background: color-mix(in srgb, var(--bg-elev) 14%, transparent); border-color: transparent; color: inherit; }
.lc__file:hover { border-color: var(--accent); }
.lc__fileicon { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--lc-soft); }
.lc__filetext, .lc__pendtext { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lc__filename { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc__filesize { font-size: 11px; opacity: .7; }

/* Yazıyor */
.lc__typing { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.lc__typing[hidden] { display: none; }
.lc__dots { display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 16px; background: var(--lc-card); box-shadow: 0 0 0 1px var(--line-soft); }
.lc__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: lc-dot 1.2s infinite ease-in-out; }
.lc__dots i:nth-child(2) { animation-delay: .15s; }
.lc__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes lc-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Kuyruk ve kapanış kartları */
.lc__queue, .lc__closedcard, .lc__profile {
  display: flex;
  gap: 12px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--lc-card);
  box-shadow: 0 0 0 1px var(--line-soft);
}
.lc__queueicon { color: var(--warn); animation: lc-flip 2.4s ease-in-out infinite; }
@keyframes lc-flip { 0%, 40% { rotate: 0deg; } 50%, 90% { rotate: 180deg; } 100% { rotate: 360deg; } }
.lc__queuetext { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; color: var(--text-3); }
.lc__queuetext strong { font-size: 14px; color: var(--text-strong); }
.lc__queuehint { color: var(--muted-2); }
.lc__closedcard { flex-direction: column; gap: 2px; align-items: center; text-align: center; font-size: 12.5px; color: var(--text-3); }
.lc__closedcard strong { font-size: 14.5px; color: var(--text-strong); }

.lc__profile { flex-direction: column; gap: 6px; margin-left: 40px; }
.lc__profilehead { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.lc__profilerow { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; color: var(--text-2); }
.lc__profilerow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc__profilerow .icon { color: var(--icon-muted); flex: 0 0 auto; }
.lc__historylink { align-self: flex-start; margin: 8px 0 0 40px; font-size: 13px; font-weight: 650; }

/* --- Alt bölüm --- */
.lc__bottom { display: flex; flex-direction: column; gap: 8px; padding: 8px 14px 10px; }

.lc__notice {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 12px 10px 12px 16px;
  border-radius: 18px;
  background: var(--lc-card);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .18), 0 0 0 1px var(--line-soft);
}
.lc__notice[hidden] { display: none; }
.lc__notice p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-3); }
.lc__notice a { color: var(--text-strong); text-decoration: underline; text-underline-offset: 2px; }

.lc__chips, .lc__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.lc__chips[hidden], .lc__actions[hidden], .lc__pending[hidden], .lc__error[hidden] { display: none; }
.lc__actions { justify-content: center; }

.lc__chip {
  padding: 7px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--lc-card);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s;
}
.lc__chip:hover { border-color: var(--text-strong); color: var(--text-strong); transform: translateY(-1px); }

.lc__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border: 1.5px solid color-mix(in srgb, var(--text-strong) 22%, transparent);
  border-radius: 999px;
  background: var(--lc-card);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.lc__pill:hover { transform: translateY(-1px); border-color: var(--text-strong); color: var(--text-strong); }
.lc__pill--primary { border-color: transparent; background: var(--text-strong); color: var(--bg-elev); }
.lc__pill--primary:hover { color: var(--bg-elev); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6); }

.lc__error { margin: 0 6px; font-size: 12.5px; font-weight: 600; color: var(--danger); }

/* Bekleyen ekler */
.lc__pending { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.lc__pend {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 6px 4px 6px 6px;
  border-radius: 14px;
  background: var(--lc-card);
  box-shadow: 0 0 0 1px var(--line-soft);
}
.lc__pend img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }

/* Emoji seçici (assets/js/emoji-picker.js) — yazma alanının üstünde, akışın üzerine açılır */
.lc__bottom { position: relative; }
.lc__emoji { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 4px); z-index: 5; }

.emp {
  --emp-cell: 38px;
  display: flex;
  flex-direction: column;
  height: min(380px, 62vh);
  border-radius: 20px;
  background: var(--lc-card, var(--bg-elev));
  box-shadow: 0 22px 48px -18px rgba(0, 0, 0, .45), 0 0 0 1px var(--line-soft);
  overflow: hidden;
  font-family: inherit;
}
.emp[hidden] { display: none; }
/* Üst kısım, sekmeler ve alt satır hiç ezilmez; yer azsa yalnızca ızgara küçülür
   (yatay kaydırılan sekme satırının en küçük yüksekliği 0 sayılıyordu) */
.emp__top, .emp__tabs, .emp__foot { flex: 0 0 auto; }
.emp.is-in { animation: emp-in .18s cubic-bezier(.2, .8, .2, 1); transform-origin: 90% 100%; }
@keyframes emp-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

.emp__top { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 10px 6px; }
.emp__search {
  flex: 1 1 auto; display: flex; align-items: center; gap: 8px; min-width: 0; height: 38px; padding: 0 12px;
  border-radius: 999px; background: color-mix(in srgb, var(--text-strong) 7%, transparent); color: var(--muted);
  transition: box-shadow .2s, background-color .2s;
}
.emp__search:focus-within { background: transparent; box-shadow: 0 0 0 1.5px var(--accent); color: var(--text-strong); }
.emp__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--text-strong); }
.emp__input::placeholder { color: var(--muted-2); }
.emp__input::-webkit-search-cancel-button { cursor: pointer; }
.emp__tonebtn, .emp__tone, .emp__tab, .emp__e {
  border: 0; background: none; padding: 0; cursor: pointer; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif; line-height: 1;
}
.emp__tonebtn { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; font-size: 20px; transition: background-color .15s, transform .15s; }
.emp__tonebtn:hover { background: color-mix(in srgb, var(--text-strong) 8%, transparent); transform: scale(1.06); }
.emp__tones {
  position: absolute; top: 50px; right: 8px; z-index: 2; display: flex; gap: 2px; padding: 5px;
  border-radius: 999px; background: var(--bg-elev); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .45), 0 0 0 1px var(--line-soft);
  animation: emp-in .15s ease;
}
.emp__tones[hidden] { display: none; }
.emp__tone { width: 34px; height: 34px; border-radius: 50%; font-size: 19px; transition: background-color .15s, transform .15s; }
.emp__tone:hover { transform: scale(1.12); }
.emp__tone.is-active { background: color-mix(in srgb, var(--accent) 20%, transparent); }

.emp__tabs { display: flex; gap: 2px; padding: 0 8px 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line-soft); }
.emp__tabs::-webkit-scrollbar { display: none; }
.emp__tab {
  position: relative; flex: 1 1 0; min-width: 30px; height: 34px; border-radius: 10px; font-size: 18px;
  filter: grayscale(.9); opacity: .65; transition: filter .2s, opacity .2s, background-color .2s;
}
.emp__tab[hidden] { display: none; }
.emp__tab:hover { filter: none; opacity: 1; background: color-mix(in srgb, var(--text-strong) 6%, transparent); }
.emp__tab.is-active { filter: none; opacity: 1; }
.emp__tab.is-active::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: -6px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }

.emp__body { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 8px; scrollbar-width: thin; }
.emp__sec[hidden] { display: none; }
.emp__title {
  position: sticky; top: 0; z-index: 1; margin: 0; padding: 10px 4px 6px; font-size: 11.5px; font-weight: 750;
  letter-spacing: .02em; color: var(--muted); background: var(--lc-card, var(--bg-elev));
}
.emp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--emp-cell), 1fr)); }
.emp__e { display: grid; place-items: center; height: var(--emp-cell); border-radius: 10px; font-size: 24px; transition: background-color .12s, transform .12s; }
.emp__e:hover, .emp__e:focus-visible { background: color-mix(in srgb, var(--text-strong) 9%, transparent); transform: scale(1.14); outline: 0; }
.emp__e:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.emp__e:active { transform: scale(.94); }
.emp__state, .emp__empty { grid-column: 1 / -1; margin: 0; padding: 28px 10px; text-align: center; font-size: 13px; color: var(--muted); }
.emp__retry { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--accent); cursor: pointer; text-decoration: underline; }

.emp__foot { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px; border-top: 1px solid var(--line-soft); }
.emp__big { font-size: 26px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.emp__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; color: var(--text-strong); }
.emp__name::first-letter { text-transform: uppercase; }

/* Dokunmatik ve dar ekran: daha büyük hedefler, önizleme gizli */
@media (hover: none) { .emp__foot { display: none; } .emp { --emp-cell: 42px; } }
@media (max-width: 380px) { .emp { --emp-cell: 36px; } .emp__e { font-size: 22px; } }
@media (max-height: 560px) { .emp { height: min(300px, 70vh); } .emp__foot { display: none; } }

/* Yazma alanı: hap */
.lc__composer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1.5px solid color-mix(in srgb, var(--text-strong) 70%, transparent);
  border-radius: 999px;
  background: var(--lc-card);
  transition: border-color .2s, box-shadow .2s, border-radius .2s;
}
.lc__composer:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.lc__composer[hidden] { display: none; }
.lc__composer.is-multi { align-items: flex-end; border-radius: 22px; }

.lc__textarea {
  flex: 1 1 auto;
  box-sizing: border-box;
  min-width: 0;
  height: 36px;              /* tek satır: yuvarlak düğmelerle aynı yükseklik, dikeyde ortalı */
  max-height: 120px;
  padding: 8px 6px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14.5px;
  line-height: 20px;
  overflow-y: hidden;
  color: var(--text);
  resize: none;
  outline: none;
}
.lc__textarea::placeholder { color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc__composer.is-multi .lc__textarea { overflow-y: auto; }
/* + düğmesi yokken (konu adımı) metin kenara yapışmasın: sağdaki düğmelerle simetrik boşluk */
.lc__round--add[hidden] ~ .lc__textarea { padding-left: 14px; }
/* Yazma alanındaki yuvarlaklar aynı boyda */
.lc__composer .lc__round { width: 36px; height: 36px; }

.lc__send { color: var(--muted-2); }
.lc__send.is-ready { background: var(--text-strong); color: var(--bg-elev); }
.lc__send.is-ready:hover { background: var(--text-strong); transform: translateY(-1px); }
.lc__send:disabled { opacity: .6; }

.lc__footer { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 2px 0 0; font-size: 11.5px; color: var(--muted-2); }
.lc__footer img { width: 14px; height: 14px; object-fit: contain; }
.lc__footer strong { color: var(--text-2); font-weight: 700; }

/* Sürükle-bırak katmanı */
.lc__drop {
  position: absolute;
  inset: 8px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--accent);
  border-radius: 22px;
  background: color-mix(in srgb, var(--lc-card) 88%, transparent);
  color: var(--accent);
  font-weight: 700;
  pointer-events: none;
}
.lc__drop[hidden] { display: none; }

/* --- Açma düğmesi (masaüstü) --- */
.lc-launch {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 69;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 10px 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  color: var(--text-strong);
  font: inherit;
  text-align: left;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55), 0 2px 6px -2px rgba(0, 0, 0, .18);
  cursor: pointer;
  animation: lc-launch-in .5s .4s cubic-bezier(.2, .9, .25, 1.15) backwards;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s, opacity .2s;
}
@keyframes lc-launch-in { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
.lc-launch:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line-soft));
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .6), 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.lc-launch:active { transform: translateY(-1px) scale(.98); }
.lc-launch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lc-open .lc-launch { opacity: 0; pointer-events: none; transform: translateY(10px) scale(.85); transition-duration: .2s; }

/* Parlama: hover'da düğmenin üstünden bir ışık geçer (rozet taşabilsin diye ayrı katmanda) */
.lc-launch__shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.lc-launch__shine::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 35%;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--text-strong) 16%, transparent), transparent);
  transform: translateX(-120%) skewX(-18deg);
}
.lc-launch:hover .lc-launch__shine::before { animation: lc-shine .9s cubic-bezier(.3, .6, .3, 1); }
@keyframes lc-shine { to { transform: translateX(520%) skewX(-18deg); } }

/* Hover'da logo el sallar gibi döner, ikon balonu zıplar */
.lc-launch:hover .lc-launch__av { animation: lc-wave .7s ease-in-out; }
@keyframes lc-wave { 0%, 100% { rotate: 0deg; } 20% { rotate: -14deg; } 45% { rotate: 10deg; } 70% { rotate: -6deg; } }
.lc-launch:hover .lc-launch__icon i { animation: lc-hop .6s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes lc-hop { 0% { transform: none; } 35% { transform: translateY(-4px) scale(1.12); } 60% { transform: translateY(1px) scale(.96); } 100% { transform: none; } }

/* Sağdaki yuvarlaktan dışa yayılan halka (hover boyunca) */
.lc-launch__icon { position: relative; }
.lc-launch__icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); opacity: 0;
}
.lc-launch:hover .lc-launch__icon::after { animation: lc-ring 1.3s ease-out infinite; }
@keyframes lc-ring { 0% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { opacity: 0; box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent); } }

/* Alt yazı hover'da hafifçe kayar ve belirginleşir */
.lc-launch__sub { transition: transform .3s var(--lc-ease, ease), color .3s; }
.lc-launch:hover .lc-launch__sub { transform: translateX(2px); color: var(--text-2, var(--text-strong)); }

/* Sayfa açıldıktan sonra bir kez dikkat çeken dalga */
.lc-launch__icon::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  animation: lc-ring 1.4s 1.2s ease-out 2 backwards; opacity: 0;
}

/* Marka: yuvarlak içinde favicon */
.lc-launch__av {
  flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in srgb, var(--text-strong) 7%, var(--bg-elev)); box-shadow: 0 0 0 1px var(--line-soft);
}
.lc-launch__av img { width: 62%; height: 62%; object-fit: contain; }

.lc-launch__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 4px; }
.lc-launch__label { font-size: 14.5px; font-weight: 750; letter-spacing: -.01em; line-height: 1.15; color: var(--text-strong); }
.lc-launch__sub { font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--muted); white-space: nowrap; }

/* Sağda ters renkli yuvarlak: yazma alanındaki gönder düğmesiyle aynı dil */
.lc-launch__icon {
  flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--text-strong); color: var(--bg-elev);
  transition: transform .35s cubic-bezier(.2, .9, .25, 1.3), background-color .3s;
}
.lc-launch:hover .lc-launch__icon { transform: rotate(-10deg) scale(1.08); background: var(--accent); color: #fff; }

@media (max-width: 1100px) {
  .lc-launch__sub { display: none; }
  .lc-launch { height: 56px; gap: 10px; padding: 0 8px; }
  .lc-launch__av, .lc-launch__icon { width: 40px; height: 40px; }
}

.lc-badge {
  position: absolute;
  top: -5px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid var(--bg-elev);
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.lc-badge[hidden] { display: none; }
.mobilebar__item { position: relative; }
.lc-badge--bar { top: 0; right: 8px; }

/* --- Mobil: tam ekran --- */
@media (max-width: 719px) {
  .lc, .lc.is-wide { inset: 0; width: auto; height: auto; }
  .lc__panel { border: 0; border-radius: 0; transform: translateY(40px); clip-path: none; }
  .lc.is-open .lc__panel { clip-path: none; transition: opacity .2s ease, transform .45s cubic-bezier(.2, 1, .3, 1); }
  .lc__top { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .lc__round--wide { visibility: hidden; }
  .lc__bottom { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .lc__col { max-width: 88%; }
  .lc-launch { display: none; }
  .lc-open .mobilebar { display: none; }
  .lc-open body { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .lc, .lc__panel, .lc__msg, .lc__queueicon, .lc__dots i, .lc-launch, .lc__menu, .lc__emoji, .emp, .emp__tones { animation: none; transition: opacity .15s; }
  .lc__panel, .lc.is-open .lc__panel { transform: none; clip-path: none; transition: opacity .15s; }
  .lc.is-open .lc__top, .lc.is-open .lc__id, .lc.is-open .lc__feed, .lc.is-open .lc__bottom, .lc.is-open .lc__idav .lc-av, .lc.is-open .lc__online.is-on,
  .lc-launch *, .lc-launch *::before, .lc-launch *::after { animation: none !important; }
}

/* ==========================================================================
   Hesabım > Canlı destek yazışma dökümü
   ========================================================================== */
.lcx { --lc-card: var(--surface-4); --lc-soft: color-mix(in srgb, var(--text-strong) 7%, transparent); display: flex; flex-direction: column; gap: 10px; padding: clamp(14px, 2vw, 22px); }
.lcx__sys { align-self: center; margin: 4px 0; font-size: 12.5px; color: var(--text-3); text-align: center; }
.lcx__sys time { margin-left: 4px; color: var(--muted-2); }
.lcx__row { display: flex; align-items: flex-end; gap: 10px; }
.lcx__row--me { flex-direction: row-reverse; }
.lcx__msg { display: flex; flex-direction: column; max-width: 78%; min-width: 0; }
.lcx__row--me .lcx__msg { align-items: flex-end; }
.lcx__who { margin: 0 0 3px; font-size: 12px; font-weight: 750; color: var(--text-strong); }
.lcx__bubble { padding: 9px 13px; border-radius: 18px 18px 18px 6px; border: 1px solid var(--line-soft); background: var(--surface-4); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.lcx__row--me .lcx__bubble { border-radius: 18px 18px 6px 18px; border-color: transparent; background: var(--text-strong); color: var(--bg-elev); }
.lcx__bubble.is-deleted { font-style: italic; opacity: .7; }
.lcx__time { margin: 3px 6px 0; font-size: 11px; color: var(--muted-2); }
.lcx .lc__files { margin-top: 6px; }
