:root {
  --lc-bg: #1a1f29;
  --lc-surface: #232a37;
  --lc-surface-2: #2c3442;
  --lc-line: rgba(255, 255, 255, .10);
  --lc-line-2: rgba(255, 255, 255, .17);
  --lc-text: #E8EAEF;
  --lc-muted: #868D9A;
  --lc-accent: #C8CAD0;
  --lc-accent-deep: #7E8AA3;
  --lc-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --lc-ui: 'DM Sans', 'DM Sans', system-ui, sans-serif;
  --st-open: #E0B15E;
  --st-ans: #84C29A;
  --st-closed: #6A7080;
}

.floating-invites { bottom: 5.6rem !important; }

/* launcher — koyu, gumus hairline ring, ticket glyph (parlak blob degil) */
#lc-launcher {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 9998;
  width: 56px; height: 56px; display: grid; place-items: center;
  border: 1px solid var(--lc-line-2); border-radius: 16px;
  background: linear-gradient(160deg, #1b1f2a, #0e1016);
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8), 0 0 0 1px rgba(200, 202, 208, .05) inset;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), border-color .2s ease;
}
#lc-launcher:hover { transform: translateY(-3px); border-color: rgba(200, 202, 208, .45); }
#lc-launcher svg { width: 24px; height: 24px; fill: none; stroke: var(--lc-accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
#lc-launcher.lc-hide { transform: translateY(16px) scale(.92); opacity: 0; pointer-events: none; }

/* admin gold buton */
#lc-admin {
  position: fixed; right: 1.6rem; bottom: 5.9rem; z-index: 9998;
  width: 56px; height: 56px; display: grid; place-items: center;
  border: 1px solid rgba(216, 190, 124, .4); border-radius: 16px;
  background: linear-gradient(160deg, #1a1d26, #0f1218);
  text-decoration: none; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7);
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), border-color .2s ease;
}
#lc-admin:hover { transform: translateY(-3px); border-color: rgba(216, 190, 124, .7); }
#lc-admin svg { width: 24px; height: 24px; fill: #D8BE7C; }
#lc-admin .lc-admin-badge {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 7px; background: #D88592; color: #1a1117;
  font: 700 11px/20px var(--lc-mono); text-align: center; border: 2px solid var(--lc-bg);
}
@media (max-width: 600px) { #lc-admin { right: 1rem; bottom: 5.2rem; } }

/* panel */
#lc-panel {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 9999;
  width: 358px; max-width: calc(100vw - 2rem);
  height: 548px; max-height: calc(100vh - 3rem);
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(126, 138, 163, .08), transparent 60%),
    var(--lc-bg);
  border: 1px solid var(--lc-line-2); border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  opacity: 0; transform: translateY(14px) scale(.99); pointer-events: none;
  transition: opacity .2s ease, transform .26s cubic-bezier(.22, 1, .36, 1);
  font-family: var(--lc-ui); color: var(--lc-text);
}
#lc-panel.lc-open { opacity: 1; transform: none; pointer-events: auto; }

/* header */
.lc-head {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1rem; background: var(--lc-surface);
  border-bottom: 1px solid var(--lc-line);
}
.lc-head .lc-ti { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.lc-brand {
  font-family: var(--lc-mono); font-size: .6rem; letter-spacing: .34em; text-transform: uppercase; font-weight: 600;
  background: linear-gradient(120deg, #EDEFF3 0%, #AEB9D6 48%, #7E8AA3 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  width: max-content;
}
.lc-head b { font-size: .85rem; font-weight: 600; color: var(--lc-muted); }
.lc-back, .lc-x {
  flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center;
  background: none; border: 1px solid transparent; border-radius: 9px; cursor: pointer;
  color: var(--lc-muted); transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lc-back:hover, .lc-x:hover { background: var(--lc-surface-2); color: var(--lc-text); border-color: var(--lc-line); }
.lc-x { font-size: 1.4rem; line-height: 1; }
.lc-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* body */
.lc-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; }
.lc-body::-webkit-scrollbar { width: 6px; }
.lc-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 3px; }
.lc-note { margin: auto; padding: 2rem; color: var(--lc-muted); font-size: .85rem; text-align: center; }

/* status chip — dot + label, monosu */
.lc-chip {
  display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0;
  padding: .2rem .55rem; border-radius: 7px; font-family: var(--lc-mono);
  font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--lc-line-2);
}
.lc-chip i { width: 6px; height: 6px; border-radius: 50%; }
.lc-chip.open { color: var(--st-open); border-color: rgba(224, 177, 94, .3); }
.lc-chip.open i { background: var(--st-open); }
.lc-chip.answered { color: var(--st-ans); border-color: rgba(132, 194, 154, .3); }
.lc-chip.answered i { background: var(--st-ans); }
.lc-chip.closed { color: var(--st-closed); border-color: rgba(106, 112, 128, .35); }
.lc-chip.closed i { background: var(--st-closed); }

/* list */
.lc-list-top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem .7rem; }
.lc-list-lbl { font-family: var(--lc-mono); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--lc-muted); }
.lc-new {
  border: 1px solid var(--lc-line-2); background: transparent; color: var(--lc-accent);
  font-family: var(--lc-ui); font-size: .78rem; font-weight: 600; padding: .4rem .7rem; border-radius: 9px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.lc-new:hover { background: rgba(200, 202, 208, .08); border-color: var(--lc-accent); }
.lc-empty { padding: 1.5rem 1.4rem; color: var(--lc-muted); font-size: .86rem; line-height: 1.6; }

.lc-list { display: flex; flex-direction: column; }
.lc-ticket {
  display: block; text-decoration: none; color: inherit; padding: .85rem 1.1rem;
  border-top: 1px solid var(--lc-line); position: relative; cursor: pointer;
  transition: background .15s ease;
}
.lc-ticket::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .15s ease; }
.lc-ticket:hover { background: var(--lc-surface-2); }
.lc-ticket:hover::before { background: var(--lc-accent); }
.lc-tk-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.lc-tk-id { font-family: var(--lc-mono); font-size: .72rem; color: var(--lc-accent-deep); letter-spacing: .04em; }
.lc-tk-subj { font-size: .92rem; font-weight: 500; color: var(--lc-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-tk-meta { font-family: var(--lc-mono); font-size: .64rem; color: var(--lc-muted); margin-top: .2rem; }

/* compose */
.lc-compose { padding: 1.1rem 1.1rem 1.3rem; display: flex; flex-direction: column; }
.lc-lbl { font-family: var(--lc-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lc-muted); margin: .9rem 0 .35rem; }
.lc-lbl:first-child { margin-top: 0; }
.lc-input {
  width: 100%; padding: .65rem .8rem; background: var(--lc-surface); color: var(--lc-text);
  border: 1px solid var(--lc-line-2); border-radius: 10px; font-family: var(--lc-ui); font-size: .9rem;
  outline: none; resize: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.lc-input::placeholder { color: #5b626f; }
.lc-input:focus { border-color: var(--lc-accent-deep); box-shadow: 0 0 0 3px rgba(126, 138, 163, .12); }
.lc-btn {
  margin-top: 1.1rem; padding: .75rem 1rem; border: none; border-radius: 10px; cursor: pointer;
  background: var(--lc-accent); color: #14161c; font-family: var(--lc-ui); font-weight: 700; font-size: .9rem;
  transition: filter .15s ease, transform .1s ease;
}
.lc-btn:hover { filter: brightness(1.08); }
.lc-btn:active { transform: scale(.98); }
.lc-btn:disabled { opacity: .55; cursor: default; }
.lc-err { color: #E0707A; font-size: .78rem; margin-top: .6rem; min-height: 1em; }

/* detail */
.lc-tk-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--lc-line); background: var(--lc-surface); }
.lc-bar-subj { font-size: .9rem; font-weight: 500; color: var(--lc-text); }
.lc-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .9rem; }
.lc-m { max-width: 86%; display: flex; flex-direction: column; gap: .25rem; }
.lc-m-user { align-self: flex-end; align-items: flex-end; }
.lc-m-admin { align-self: flex-start; align-items: flex-start; }
.lc-m-meta { display: flex; align-items: center; gap: .5rem; font-family: var(--lc-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.lc-m-who { color: var(--lc-accent-deep); }
.lc-m-admin .lc-m-who { color: var(--st-ans); }
.lc-m-time { color: var(--lc-muted); }
.lc-m-txt {
  font-size: .9rem; line-height: 1.5; color: var(--lc-text); white-space: pre-wrap; word-wrap: break-word;
  padding: .55rem .75rem; border-radius: 11px; border: 1px solid var(--lc-line);
}
.lc-m-user .lc-m-txt { background: rgba(200, 202, 208, .1); border-color: rgba(200, 202, 208, .18); border-bottom-right-radius: 4px; }
.lc-m-admin .lc-m-txt { background: var(--lc-surface); border-left: 2px solid var(--st-ans); border-bottom-left-radius: 4px; }

.lc-closed { margin: auto 1.1rem; padding: .9rem 1rem; border: 1px dashed var(--lc-line-2); border-radius: 10px; color: var(--lc-muted); font-size: .82rem; text-align: center; }

.lc-foot { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--lc-line); background: var(--lc-surface); }
.lc-foot .lc-input { flex: 1; }
.lc-send {
  flex-shrink: 0; width: 44px; border: none; border-radius: 10px; cursor: pointer;
  background: var(--lc-accent); color: #14161c; display: grid; place-items: center; transition: filter .15s ease, transform .1s ease;
}
.lc-send:hover { filter: brightness(1.08); }
.lc-send:active { transform: scale(.94); }
.lc-send svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 600px) {
  /* near full-width panel that fits a 375px screen and stays scrollable */
  #lc-panel {
    right: .5rem; left: .5rem; bottom: .5rem;
    width: auto; max-width: none;
    height: calc(100vh - 1rem); max-height: none;
    border-radius: 14px;
  }
  #lc-launcher { right: 1rem; bottom: 1rem; }
  .floating-invites { bottom: 5rem !important; }

  /* 16px inputs to stop iOS zoom-on-focus; keep controls tappable */
  .lc-input { font-size: 16px; }
  .lc-btn { min-height: 44px; }
  .lc-send { min-height: 44px; }
  .lc-new { min-height: 36px; }

  /* let long subjects/messages wrap instead of forcing width */
  .lc-tk-subj, .lc-bar-subj { white-space: normal; }
  .lc-m { max-width: 90%; }
}

/* ==== AI support bot ==== */
.lc-bot{ display:flex; flex-direction:column; gap:.5rem; padding:1rem; overflow-y:auto; flex:1; min-height:0; }
/* dil secici EN/TR */
.lc-lang{ display:flex; gap:.25rem; align-self:flex-end; margin-bottom:.1rem; }
.lc-lang-b{ padding:.2rem .5rem; border-radius:7px; background:transparent; border:1px solid var(--lc-line); color:var(--lc-muted); font-family:var(--lc-mono); font-size:.66rem; font-weight:600; cursor:pointer; transition:.15s ease; }
.lc-lang-b:hover{ color:var(--lc-text); }
.lc-lang-b.act{ background:var(--lc-accent); color:#14161a; border-color:transparent; }
/* yetkiliyle konus — ince serit */
.lc-talk{ display:block; width:100%; padding:.55rem; background:transparent; border:none; border-top:1px solid var(--lc-line); color:var(--lc-muted); font-family:var(--lc-ui); font-size:.78rem; cursor:pointer; transition:color .15s ease; }
.lc-talk:hover{ color:var(--lc-text); }
.lc-talk.done,.lc-talk:disabled{ color:var(--lc-muted); opacity:.5; cursor:default; pointer-events:none; }
.lc-bot-row{ display:flex; align-items:flex-end; gap:.5rem; max-width:100%; }
.lc-bot-row.me{ justify-content:flex-end; }
.lc-bot-ava{ flex:0 0 auto; width:24px; height:24px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #EDEFF3, #9AA0AE 70%, #6A7080);
  box-shadow:0 0 10px -2px rgba(200,202,208,.4); }
.lc-bot-msg{ max-width:78%; padding:.6rem .8rem; border-radius:13px; font-size:.87rem; line-height:1.45; white-space:pre-wrap; word-break:break-word; }
.lc-bot-row:not(.me) .lc-bot-msg{ background:var(--lc-surface); border:1px solid var(--lc-line); color:var(--lc-text); border-bottom-left-radius:4px; }
.lc-bot-row.me .lc-bot-msg{ background:var(--lc-accent); color:#14161a; font-weight:500; border-bottom-right-radius:4px; }
.lc-typing .lc-bot-msg{ color:var(--lc-muted); letter-spacing:3px; }

.lc-chips{ display:flex; flex-direction:column; gap:.4rem; margin:.5rem 0 .2rem 2rem; }
.lc-chip-btn{ text-align:left; padding:.6rem .85rem; border-radius:11px; cursor:pointer;
  background:var(--lc-surface-2); border:1px solid var(--lc-line); color:var(--lc-text);
  font-family:var(--lc-ui); font-size:.86rem; font-weight:500; transition:border-color .15s ease, transform .15s ease, background .15s ease; }
.lc-chip-btn:hover{ border-color:var(--lc-accent); transform:translateY(-1px); background:#1d2230; }

.lc-bot-form{ display:flex; flex-direction:column; gap:.5rem; margin:.5rem 0 .2rem 2rem; }
.lc-bot-link{ align-self:flex-start; margin:.3rem 0 .2rem 2rem; background:none; border:none; cursor:pointer;
  color:var(--lc-muted); font-family:var(--lc-ui); font-size:.78rem; padding:.2rem 0; transition:color .15s ease; }
.lc-bot-link:hover{ color:var(--lc-text); }

/* dil secici (EN/TR) — bot ust kosesi */
.lc-lang{ align-self:flex-end; display:inline-flex; gap:2px; padding:2px; border-radius:9px; background:var(--lc-surface); border:1px solid var(--lc-line); margin-bottom:.15rem; }
.lc-lang-b{ padding:.22rem .55rem; border-radius:7px; background:none; border:none; cursor:pointer; color:var(--lc-muted); font:600 .72rem/1 var(--lc-ui); letter-spacing:.05em; transition:color .14s ease, background .14s ease; }
.lc-lang-b:hover{ color:var(--lc-text); }
.lc-lang-b.act{ background:var(--lc-accent); color:#14161a; }

/* ==== scroll ayirma: chat kaydirinca arka plan (site) kaymasin ==== */
.lc-body, .lc-bot, .lc-msgs { overscroll-behavior: contain; }

/* ==== header dil butonu (globe) — gizli, sabit toggle degil ==== */
.lc-lang-btn {
  flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center;
  background: none; border: 1px solid transparent; border-radius: 9px; cursor: pointer;
  color: var(--lc-muted); transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lc-lang-btn:hover { background: var(--lc-surface-2); color: var(--lc-text); border-color: var(--lc-line); }
.lc-lang-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* ==== dil secim ekrani (chat acilmadan) ==== */
.lc-langpick { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1.5rem; text-align: center; }
.lc-lp-title { color: var(--lc-text); font-family: var(--lc-ui); font-weight: 600; font-size: 1.05rem; }
.lc-lp-sub { color: var(--lc-muted); font-size: .85rem; margin-bottom: 1rem; }
.lc-lp-opts { display: flex; flex-direction: column; gap: .6rem; width: 100%; max-width: 240px; }
.lc-lp-btn {
  padding: .85rem 1rem; border-radius: 12px; cursor: pointer;
  background: var(--lc-surface-2); border: 1px solid var(--lc-line); color: var(--lc-text);
  font-family: var(--lc-ui); font-size: .95rem; font-weight: 600;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.lc-lp-btn:hover { border-color: var(--lc-accent); transform: translateY(-1px); background: #1d2230; }

/* AI mesaji (my-tickets detay gorunumu) */
.lc-m-ai { align-self: flex-start; align-items: flex-start; }
.lc-m-ai .lc-m-who { color: var(--lc-accent); }
.lc-m-ai .lc-m-txt { background: var(--lc-surface); border-left: 2px solid var(--lc-accent-deep); border-bottom-left-radius: 4px; }

/* Yetkili (staff) mesaji — bot gorunumunde, kurumsal altin vurgu */
.lc-bot-ava.staff { background: linear-gradient(135deg, #E2CD9E, #C79C5E); box-shadow: 0 0 10px -2px rgba(212,167,106,.5); }
.lc-bot-row.staff .lc-bot-msg { background: rgba(212,167,106,.12); border-color: rgba(212,167,106,.34) !important; color: var(--lc-text); }
.lc-staff-tag { font-size: .6rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #E2CD9E; margin-bottom: .18rem; }

/* ---- Lunar Bot "yazıyor" animasyonu + ayrac + kullanıcı PP ---- */
.lc-typing-dots{ display:inline-flex; gap:3px; margin-left:3px; vertical-align:middle; }
.lc-typing-dots i{ width:5px; height:5px; border-radius:50%; background:currentColor; opacity:.5; animation:lcTdot 1.1s infinite ease-in-out; }
.lc-typing-dots i:nth-child(2){ animation-delay:.15s; }
.lc-typing-dots i:nth-child(3){ animation-delay:.3s; }
@keyframes lcTdot{ 0%,60%,100%{ transform:translateY(0); opacity:.4; } 30%{ transform:translateY(-3px); opacity:1; } }
.lc-bot-div{ display:flex; align-items:center; justify-content:center; margin:12px 2px 8px; }
.lc-bot-div span{ font-size:.66rem; letter-spacing:.02em; color:var(--lc-muted,#868d9a); background:var(--lc-surface,#232a37);
    padding:3px 12px; border:1px solid var(--lc-line,rgba(255,255,255,.1)); border-radius:20px; }
.lc-ava-img{ object-fit:cover; }

/* ---- AI Steam ID kartı (dil widgeti gibi, sohbet içinde) ---- */
.lc-steamask{ margin:10px 0 6px; padding:14px; border:1px solid var(--lc-line-2,rgba(255,255,255,.17)); border-radius:14px;
    background:var(--lc-surface,#232a37); display:flex; flex-direction:column; gap:9px; }
.lc-sa-title{ font-weight:600; font-size:.9rem; color:var(--lc-text,#E8EAEF); }
.lc-sa-sub{ font-size:.74rem; color:var(--lc-muted,#868d9a); margin-top:-5px; }
.lc-sa-btn{ padding:.6rem; border-radius:10px; border:1px solid var(--lc-accent,#C8CAD0); background:rgba(200,202,208,.1);
    color:var(--lc-text,#E8EAEF); font-family:var(--lc-ui,system-ui,sans-serif); font-weight:600; font-size:.82rem; cursor:pointer; transition:background .15s ease; }
.lc-sa-btn:hover{ background:rgba(200,202,208,.2); }

/* karsi taraf yazıyor gostergesi */
.lc-peer-typing{ display:flex; align-items:center; gap:2px; padding:4px 8px 8px; font-size:.72rem; color:var(--lc-muted,#868d9a); }
