/* Lumina Chatting OS — isolated fullscreen chat environment */

:root {
  --lc-bg: #0e0e0e;
  --lc-surface: #151515;
  --lc-surface-hover: #1c1c1c;
  --lc-border: rgba(255, 255, 255, 0.06);
  --lc-border-strong: #222;
  --lc-grad: linear-gradient(135deg, #ff008a, #c600ff);
  --lc-grad-2: linear-gradient(135deg, #a855f7, #ec4899);
  --lc-text: #ffffff;
  --lc-muted: #9ca3af;
  --lc-in: #1a1a1a;
  --lc-nav-w: 220px;
  --lc-context-w: 272px;
  --lc-workspace-max: 1300px;
  --lc-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --lc-dur: 250ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Scoped to Lumina OS only — do not lock scroll on the main POXY site */
#luminaOsRoot {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--lc-bg);
  color: var(--lc-text);
  -webkit-font-smoothing: antialiased;
}

body.lumina-os-active {
  overflow: hidden;
}

.lc-hidden {
  display: none !important;
}

/* Boot / auth gate */
.lc-boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lc-bg);
  padding: 24px;
}
.lc-boot-card {
  max-width: 400px;
  text-align: center;
  padding: 40px 32px;
  background: var(--lc-surface);
  border: 1px solid var(--lc-border-strong);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.lc-boot-logo {
  font-family: 'Hanken Grotesk', Inter, sans-serif;
  font-size: 28px;
  font-weight: 800;
  background: var(--lc-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.lc-boot-sub {
  font-size: 14px;
  color: var(--lc-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.lc-boot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: var(--lc-grad);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--lc-dur) var(--lc-ease), filter var(--lc-dur);
}
.lc-boot-btn:hover {
  transform: scale(1.03);
  filter: brightness(1.06);
}

/* Shell — nav + centered workspace (chat | context inside max-width frame) */
#luminaOsRoot .lc-shell,
.lc-shell {
  display: grid;
  grid-template-columns: var(--lc-nav-w) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
  background: var(--lc-bg);
}
#luminaOsRoot .lc-shell {
  opacity: 1;
}
#luminaOsRoot .lc-nav,
#luminaOsRoot .lc-main,
#luminaOsRoot .lc-context {
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
.lc-shell.context-hidden .lc-workspace-inner {
  grid-template-columns: minmax(0, 1fr);
}
.lc-shell.context-hidden .lc-context {
  display: none;
}

@media (max-width: 1100px) {
  .lc-shell {
    grid-template-columns: var(--lc-nav-w) 1fr;
  }
  .lc-context {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(100%, 320px);
    z-index: 40;
    transform: translateX(100%);
    transition: transform var(--lc-dur) var(--lc-ease);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.5);
  }
  .lc-shell.context-open .lc-context {
    transform: translateX(0);
  }
}

/* LEFT — nav */
.lc-nav {
  display: flex;
  flex-direction: column;
  background: var(--lc-surface);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  min-height: 0;
}
.lc-nav-brand {
  padding: 16px 14px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lc-nav-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--lc-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 0, 138, 0.35);
}
.lc-nav-brand-icon .material-symbols-outlined {
  font-size: 20px;
  color: #fff;
}
.lc-nav-brand-text {
  font-family: 'Hanken Grotesk', Inter, sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  background: var(--lc-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lc-nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lc-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--lc-muted);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background var(--lc-dur), color var(--lc-dur), transform var(--lc-dur);
  position: relative;
}
.lc-nav-item:hover {
  background: var(--lc-surface-hover);
  color: var(--lc-text);
  transform: scale(1.02);
}
.lc-nav-item.is-active {
  background: rgba(198, 0, 255, 0.12);
  color: var(--lc-text);
}
.lc-nav-item.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--lc-grad);
}
.lc-nav-item .material-symbols-outlined {
  font-size: 22px;
}
.lc-nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--lc-grad);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lc-nav-user {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 10px;
}
.lc-nav-user-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #222;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--lc-border);
}
.lc-nav-user-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lc-nav-user-meta {
  min-width: 0;
  flex: 1;
}
.lc-nav-user-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CENTER */
.lc-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  flex: 1;
  background: var(--lc-bg);
}
.lc-main-head {
  display: grid;
  grid-template-columns: minmax(200px, 236px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  flex: 1;
  min-height: 0;
  min-width: 0;
}
@media (max-width: 900px) {
  .lc-main-head {
    grid-template-columns: 1fr;
  }
  .lc-conv-list {
    display: none;
  }
  .lc-shell.conv-open .lc-conv-list {
    display: flex;
    position: absolute;
    left: var(--lc-nav-w);
    top: 0;
    bottom: 0;
    width: 280px;
    z-index: 30;
    background: var(--lc-surface);
    border-right: 1px solid var(--lc-border-strong);
  }
  .lc-shell.conv-open .lc-thread {
    display: none;
  }
}

.lc-conv-list {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--lc-surface);
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.lc-conv-search {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.lc-conv-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid var(--lc-border-strong);
  background: var(--lc-bg);
  color: var(--lc-text);
  font-size: 13px;
  outline: none;
}
.lc-conv-search input:focus {
  border-color: rgba(255, 0, 138, 0.35);
}
.lc-conv-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}
.lc-conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--lc-dur), transform var(--lc-dur);
}
.lc-conv-item:hover {
  background: var(--lc-surface-hover);
  transform: scale(1.01);
}
.lc-conv-item.is-active {
  background: rgba(255, 0, 138, 0.1);
  border: 1px solid rgba(255, 0, 138, 0.15);
}
.lc-conv-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #222;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.lc-conv-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lc-conv-online {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--lc-surface);
  background: #22c55e;
}
.lc-conv-body {
  min-width: 0;
  flex: 1;
}
.lc-conv-name {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-conv-preview {
  font-size: 12px;
  color: var(--lc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.lc-conv-time {
  font-size: 11px;
  color: var(--lc-muted);
  flex-shrink: 0;
}

.lc-thread {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  flex: 1;
  isolation: isolate;
}
.lc-thread-ambient {
  position: absolute;
  inset: 8% 4% 12% 2%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(88, 28, 135, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 75% 70%, rgba(236, 72, 153, 0.06) 0%, transparent 60%);
  filter: blur(90px);
  opacity: 0.9;
}
.lc-thread-empty,
.lc-thread-header,
.lc-messages,
.lc-typing,
.lc-compose-wrap {
  position: relative;
  z-index: 1;
}
.lc-thread-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--lc-muted);
  padding: 32px;
  text-align: center;
}
.lc-thread-empty .material-symbols-outlined {
  font-size: 48px;
  opacity: 0.35;
}
.lc-thread-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(21, 21, 21, 0.72);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}
.lc-thread-back {
  display: none;
  border: none;
  background: var(--lc-surface-hover);
  color: var(--lc-text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}
@media (max-width: 900px) {
  .lc-thread-back {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.lc-thread-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #222;
  flex-shrink: 0;
}
.lc-thread-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lc-thread-ident {
  min-width: 0;
  flex: 1;
}
.lc-thread-display {
  font-family: 'Hanken Grotesk', Inter, sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  word-break: break-word;
}
.lc-thread-handle {
  font-size: 13px;
  color: var(--lc-muted);
  margin-top: 2px;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}
.lc-thread-handle .lc-at {
  color: #9ca3af;
}
.lc-thread-subtitle {
  font-size: 11px;
  color: var(--lc-muted);
  margin-top: 4px;
}
.lc-thread-actions {
  display: flex;
  gap: 6px;
}
.lc-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--lc-border-strong);
  background: var(--lc-surface);
  color: var(--lc-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--lc-dur), color var(--lc-dur), transform var(--lc-dur);
}
.lc-icon-btn:hover {
  background: var(--lc-surface-hover);
  color: var(--lc-text);
  transform: scale(1.03);
}

.lc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
}
.lc-date-divider {
  text-align: center;
  font-size: 12px;
  color: var(--lc-muted);
  margin: 16px 0 8px;
  font-weight: 500;
}
.lc-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 70%;
  animation: lcMsgIn var(--lc-dur) var(--lc-ease) both;
}
@keyframes lcMsgIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.lc-msg-row.is-mine {
  align-self: flex-end;
  align-items: flex-end;
}
.lc-msg-row.is-theirs {
  align-self: flex-start;
  align-items: flex-start;
}
.lc-bubble {
  word-break: break-word;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.lc-msg-row.is-mine .lc-bubble {
  background: var(--lc-grad);
  color: #fff;
}
.lc-bubble--voice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}
.lc-voice-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}
.lc-voice-wave {
  flex: 1;
  height: 28px;
  background: linear-gradient(
    90deg,
    rgba(255, 0, 138, 0.5) 2px,
    transparent 2px
  );
  background-size: 6px 100%;
  opacity: 0.7;
  border-radius: 4px;
}
.lc-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--lc-muted);
}
.lc-read {
  font-size: 14px;
  color: #60a5fa;
  font-variation-settings: 'FILL' 1;
}
.lc-typing {
  padding: 8px 20px;
  font-size: 12px;
  color: var(--lc-muted);
  font-style: italic;
  min-height: 28px;
  flex-shrink: 0;
}
.lc-typing:empty {
  display: none;
}

/* Composer */
.lc-compose-wrap {
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(14, 14, 14, 0.88);
  flex-shrink: 0;
}
.lc-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 8px 0 4px;
  border-radius: 28px;
  background: var(--lc-surface);
  border: 1px solid var(--lc-border-strong);
  transition: border-color var(--lc-dur), box-shadow var(--lc-dur);
}
.lc-compose:focus-within {
  border-color: rgba(255, 0, 138, 0.35);
  box-shadow: 0 0 0 1px rgba(198, 0, 255, 0.2);
}
.lc-compose-attach {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--lc-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: color var(--lc-dur);
}
.lc-compose-attach:hover {
  color: var(--lc-muted);
  transform: none;
}
.lc-compose input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--lc-text);
  font-size: 15px;
  outline: none;
}
.lc-compose input::placeholder {
  color: var(--lc-muted);
}
.lc-compose-tools {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.lc-compose-tool {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--lc-muted);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--lc-dur), background var(--lc-dur), transform var(--lc-dur);
}
.lc-compose-tool:hover {
  color: var(--lc-text);
  background: var(--lc-surface-hover);
  transform: scale(1.03);
}
.lc-compose-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--lc-grad);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--lc-dur), opacity var(--lc-dur);
}
.lc-compose-send:disabled {
  opacity: 0.4;
  cursor: default;
}
.lc-compose-send:not(:disabled):hover {
  transform: scale(1.03);
}

/* RIGHT — context */
.lc-context {
  background: var(--lc-surface);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}
.lc-context-profile {
  padding: 18px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.lc-context-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lc-context-title {
  font-size: 12px;
  color: var(--lc-muted);
  margin-top: 8px;
}
.lc-context-section {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.lc-context-section h4 {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lc-muted);
  margin-bottom: 12px;
}
.lc-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.lc-media-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--lc-bg);
  border: 1px solid var(--lc-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lc-muted);
  font-size: 20px;
}

.lc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--lc-surface);
  border: 1px solid var(--lc-border-strong);
  color: var(--lc-text);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--lc-dur), transform var(--lc-dur);
  z-index: 200;
}
.lc-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Premium right context panel ─────────────────────────────────────────── */

/* Avatar wrapper + presence ring */
.lc-context-av-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
}
.lc-context-av {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin: 0;
  overflow: hidden;
  background: #1e1e1e;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--lc-dur);
}
.lc-context-av-wrap:hover .lc-context-av {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 0, 138, 0.25);
}
.lc-context-presence-ring {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid var(--lc-surface);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.55);
  animation: lc-pulse-ring 2.5s ease-in-out infinite;
}
@keyframes lc-pulse-ring {
  0%, 100% { box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }
  50%       { box-shadow: 0 0 14px rgba(34, 197, 94, 0.8); }
}

/* Name / handle */
.lc-context-display {
  font-family: 'Hanken Grotesk', Inter, sans-serif;
  font-size: 17px;
  font-weight: 800;
  word-break: break-word;
  line-height: 1.2;
}
.lc-context-handle {
  font-size: 13px;
  color: var(--lc-muted);
  margin-top: 4px;
  word-break: break-word;
}

/* Role badge pill */
.lc-context-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 0, 138, 0.1);
  border: 1px solid rgba(255, 0, 138, 0.2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 0, 138, 0.9);
  font-family: 'JetBrains Mono', monospace;
}

/* Status row */
.lc-context-status-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--lc-muted);
}
.lc-context-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.lc-context-status-label {
  font-weight: 500;
}

/* Section title with icon */
.lc-ctx-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lc-muted);
  margin-bottom: 12px;
  font-weight: 600;
}
.lc-ctx-section-title .material-symbols-outlined {
  font-size: 14px;
  opacity: 0.7;
}

/* Vault section — special gradient card feel */
.lc-context-section--vault {
  background: linear-gradient(135deg, rgba(255, 0, 138, 0.04) 0%, rgba(198, 0, 255, 0.03) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.lc-vault-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lc-vault-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--lc-dur), border-color var(--lc-dur);
}
.lc-vault-stat:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 0, 138, 0.12);
}
.lc-vault-stat-icon {
  font-size: 16px !important;
  color: rgba(255, 0, 138, 0.7);
  flex-shrink: 0;
}
.lc-vault-stat-label {
  font-size: 11px;
  color: var(--lc-muted);
  line-height: 1.2;
}
.lc-vault-stat-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--lc-text);
  margin-top: 1px;
  line-height: 1.2;
}
.lc-vault-stat-val--ok {
  color: #22c55e;
}
.lc-vault-stat-val--warn {
  color: #f59e0b;
}

/* Relationship / activity list rows */
.lc-rel-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lc-rel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.lc-rel-row:last-child {
  border-bottom: none;
}
.lc-rel-icon {
  font-size: 15px !important;
  color: var(--lc-muted);
  flex-shrink: 0;
  opacity: 0.6;
}
.lc-rel-label {
  font-size: 12px;
  color: var(--lc-muted);
  flex: 1;
}
.lc-rel-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--lc-text);
  text-align: right;
}

/* Shared media empty thumbnails */
.lc-media-thumb--empty {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.18);
  font-size: 16px !important;
}
.lc-shared-links {
  margin-top: 10px;
}

/* Action buttons — updated to flex with icon */
.lc-context-action {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: var(--lc-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: color var(--lc-dur), background var(--lc-dur), padding var(--lc-dur);
  border-radius: 0;
}
.lc-context-action:last-child {
  border-bottom: none;
}
.lc-context-action:hover {
  color: rgba(255, 0, 138, 0.9);
  padding-left: 4px;
}
.lc-context-action .material-symbols-outlined {
  font-size: 17px;
  opacity: 0.65;
  flex-shrink: 0;
}
.lc-ctx-action-arr {
  margin-left: auto;
  font-size: 16px !important;
  opacity: 0.35 !important;
}
.lc-context-action--danger {
  color: rgba(248, 113, 113, 0.85);
}
.lc-context-action--danger:hover {
  color: #f87171;
}
.lc-context-section--actions {
  padding-bottom: 16px;
}

/* ── Premium empty state ──────────────────────────────────────────────────── */
.lc-thread-empty {
  gap: 14px;
}
.lc-empty-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lc-empty-icon {
  font-size: 40px !important;
  opacity: 0.45;
  position: relative;
  z-index: 1;
}
.lc-empty-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 0, 255, 0.18) 0%, transparent 70%);
  filter: blur(20px);
  animation: lc-glow-pulse 3s ease-in-out infinite;
}
@keyframes lc-glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.15); }
}
.lc-empty-title {
  font-family: 'Hanken Grotesk', Inter, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--lc-text);
  opacity: 0.75;
  margin: 0;
}
.lc-empty-sub {
  font-size: 13px;
  color: var(--lc-muted);
  max-width: 280px;
  line-height: 1.55;
  opacity: 0.8;
}
.lc-empty-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 0, 138, 0.25);
  border-radius: 999px;
  background: rgba(255, 0, 138, 0.07);
  color: rgba(255, 0, 138, 0.85);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--lc-dur), border-color var(--lc-dur), transform var(--lc-dur), box-shadow var(--lc-dur);
}
.lc-empty-action:hover {
  background: rgba(255, 0, 138, 0.14);
  border-color: rgba(255, 0, 138, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 0, 138, 0.18);
}
.lc-empty-action .material-symbols-outlined {
  font-size: 17px;
}

/* ── Premium sidebar improvements ────────────────────────────────────────── */
.lc-nav-item {
  position: relative;
  overflow: hidden;
}
.lc-nav-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  transition: opacity var(--lc-dur);
  pointer-events: none;
}
.lc-nav-item:hover::after {
  opacity: 1;
}
.lc-nav-item:active {
  transform: scale(0.98) !important;
}
.lc-nav-item.is-active {
  background: rgba(198, 0, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.lc-nav-item.is-active .material-symbols-outlined {
  color: rgba(255, 0, 138, 0.95);
  filter: drop-shadow(0 0 6px rgba(255, 0, 138, 0.4));
}
.lc-nav-item.is-active::before {
  width: 3px;
  box-shadow: 0 0 8px rgba(255, 0, 138, 0.6);
}

/* Brand icon pulse on hover */
.lc-nav-brand-icon {
  transition: transform var(--lc-dur), box-shadow var(--lc-dur);
}
.lc-nav:hover .lc-nav-brand-icon {
  box-shadow: 0 4px 28px rgba(255, 0, 138, 0.5);
}

/* Nav user section */
.lc-nav-user {
  transition: background var(--lc-dur);
}
.lc-nav-user:hover {
  background: var(--lc-surface-hover);
}

/* ── Conversation list improvements ──────────────────────────────────────── */
.lc-conv-item {
  position: relative;
}
.lc-conv-item.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--lc-grad);
  box-shadow: 0 0 8px rgba(255, 0, 138, 0.5);
}

/* ── Message bubble premium ───────────────────────────────────────────────── */
.lc-bubble {
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 18px;
  line-height: 1.5;
  position: relative;
}
.lc-msg-row.is-theirs .lc-bubble {
  border-radius: 4px 18px 18px 18px;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.lc-msg-row.is-mine .lc-bubble {
  border-radius: 18px 4px 18px 18px;
}
.lc-msg-row + .lc-msg-row {
  margin-top: 2px;
}

/* Group consecutive messages (no avatar gap) */
.lc-msg-row.is-grouped .lc-bubble {
  margin-top: 2px;
}
.lc-msg-row.is-mine.is-grouped .lc-bubble {
  border-radius: 18px 4px 4px 18px;
}
.lc-msg-row.is-theirs.is-grouped .lc-bubble {
  border-radius: 4px 18px 18px 4px;
}

/* ── Thread header improvements ─────────────────────────────────────────── */
.lc-thread-header {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(14, 14, 14, 0.85);
}
.lc-thread-av {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ── Compose bar improvements ────────────────────────────────────────────── */
.lc-compose {
  height: 52px;
  border-radius: 16px;
  background: rgba(21, 21, 21, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}
.lc-compose:focus-within {
  border-color: rgba(255, 0, 138, 0.3);
  box-shadow: 0 0 0 1px rgba(198, 0, 255, 0.15), 0 4px 24px rgba(0, 0, 0, 0.3);
}
.lc-compose-send {
  border-radius: 12px;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 12px rgba(255, 0, 138, 0.35);
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--lc-dur);
}
.lc-compose-send:not(:disabled):hover {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 4px 20px rgba(255, 0, 138, 0.55);
}
.lc-compose-send:not(:disabled):active {
  transform: scale(0.94);
}

/* ── Icon button premium ─────────────────────────────────────────────────── */
.lc-icon-btn {
  border-radius: 12px;
  width: 36px;
  height: 36px;
  border-color: rgba(255, 255, 255, 0.07);
  transition: background var(--lc-dur), color var(--lc-dur), transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--lc-dur);
}
.lc-icon-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.lc-icon-btn:active {
  transform: scale(0.93);
}

/* ── Scrollbar styling (webkit) ──────────────────────────────────────────── */
#luminaOsRoot ::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
#luminaOsRoot ::-webkit-scrollbar-track {
  background: transparent;
}
#luminaOsRoot ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
#luminaOsRoot ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Date divider premium ────────────────────────────────────────────────── */
.lc-date-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.22);
}
.lc-date-divider::before,
.lc-date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

/* ── Panel entrance animations ───────────────────────────────────────────── */
.lc-context-section {
  animation: lc-fade-up 280ms var(--lc-ease) both;
}
.lc-context-section:nth-child(2) { animation-delay: 30ms; }
.lc-context-section:nth-child(3) { animation-delay: 60ms; }
.lc-context-section:nth-child(4) { animation-delay: 90ms; }
.lc-context-section:nth-child(5) { animation-delay: 120ms; }
.lc-context-section:nth-child(6) { animation-delay: 150ms; }
@keyframes lc-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Boot card premium ───────────────────────────────────────────────────── */
.lc-boot-card {
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
}

/* ── Module pages (Friends, Activity, etc.) ─────────────────────────────── */
.lc-module-host {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  background: var(--lc-bg);
  position: relative;
}
.lc-module-host.lc-module-entering {
  animation: lc-module-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes lc-module-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.lc-module-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 56px 32px 48px;
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  gap: 0;
}
.lc-module-hero-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50vh;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% -10%, color-mix(in srgb, var(--accent, #a855f7) 18%, transparent) 0%, transparent 65%);
  filter: blur(60px);
  z-index: 0;
}
.lc-module-hero-icon-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: color-mix(in srgb, var(--accent, #a855f7) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #a855f7) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent, #a855f7) 22%, transparent);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lc-module-hero-icon-wrap:hover {
  transform: scale(1.06) rotate(-2deg);
}
.lc-module-hero-icon {
  font-size: 44px !important;
  color: var(--accent, #a855f7);
}
.lc-module-hero-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f59e0b;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid var(--lc-bg);
}
.lc-module-hero-title {
  font-family: 'Hanken Grotesk', Inter, sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--lc-text);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.lc-module-hero-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #a855f7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  font-family: 'JetBrains Mono', monospace;
}
.lc-module-hero-desc {
  font-size: 14px;
  color: var(--lc-muted);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 0 28px;
}
.lc-module-hero-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent, #a855f7) 35%, transparent);
  background: color-mix(in srgb, var(--accent, #a855f7) 10%, transparent);
  color: var(--accent, #a855f7);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--lc-dur), border-color var(--lc-dur), transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--lc-dur);
  margin-bottom: 40px;
}
.lc-module-hero-action:hover {
  background: color-mix(in srgb, var(--accent, #a855f7) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent, #a855f7) 55%, transparent);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--accent, #a855f7) 28%, transparent);
}

/* Friends grid */
.lc-module-friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 700px;
  padding-top: 8px;
}
.lc-module-friend-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background var(--lc-dur), border-color var(--lc-dur), transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--lc-dur);
}
.lc-module-friend-card:hover {
  background: rgba(255, 0, 138, 0.06);
  border-color: rgba(255, 0, 138, 0.18);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.lc-module-friend-av {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.lc-module-friend-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--lc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.lc-module-friend-handle {
  font-size: 11px;
  color: var(--lc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ── Typing indicator ────────────────────────────────────────────────────── */
.lc-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 16px 8px;
}
.lc-typing-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}
.lc-typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lc-muted);
  animation: lc-dot-bounce 1.2s ease-in-out infinite;
}
.lc-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.lc-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes lc-dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-5px); opacity: 1; }
}
