:root {
  --lc-bg: #0b0d12;
  --lc-surface: #13161e;
  --lc-surface-2: #181c26;
  --lc-line: rgba(255, 255, 255, .07);
  --lc-line-2: rgba(255, 255, 255, .13);
  --lc-text: #E8EAEF;
  --lc-muted: #868D9A;
  --lc-accent: #C8CAD0;
  --lc-accent-deep: #7E8AA3;
  --lc-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --lc-ui: 'Outfit', 'Space Grotesk', 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: 480px) { #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: 480px) {
  #lc-panel { right: .5rem; bottom: .5rem; width: calc(100vw - 1rem); height: calc(100vh - 1rem); max-height: none; border-radius: 14px; }
  #lc-launcher { right: 1rem; bottom: 1rem; }
  .floating-invites { bottom: 5rem !important; }
}
