/* Community Live Chat — global member lounge (faq.php?tab=chat) */

.lc-room,
.lc-room * {
  box-sizing: border-box;
}

html.live-chat-root,
html.live-chat-root body.live-chat-page {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.live-chat-page {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
}

.live-chat-page .lc-page-shell.container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100% !important;
  margin-top: 0;
  padding: 10px 14px 12px;
  background: #000;
}

.live-chat-page #supportTabsContent,
.live-chat-page #chat-pane,
.live-chat-page .lc-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.live-chat-page .lc-layout {
  width: 100%;
}

.lc-room {
  --lc-main: #000;
  --lc-parent: #101010;
  --lc-border: #222;
  --lc-gold: #ffd700;
  --lc-gold-soft: rgba(255, 215, 0, 0.12);
  --lc-text: #e5e7eb;
  --lc-muted: #9aa3af;
  --lc-bubble-theirs: #141414;
  --lc-bubble-mine: rgba(255, 215, 0, 0.1);
  --lc-bubble-mine-border: rgba(255, 215, 0, 0.28);
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: 100%;
  background: var(--lc-parent);
  border: 1px solid var(--lc-border);
  border-radius: 14px;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.lc-room.is-drag-over::after {
  content: 'Drop images or files to attach';
  position: absolute;
  inset: 10px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  border-radius: 14px;
  border: 2px dashed rgba(212, 175, 55, 0.85);
  background: rgba(10, 10, 10, 0.82);
  color: #f3f4f6;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.lc-room-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.12);
  background: var(--lc-parent);
  flex-shrink: 0;
}

.lc-room-head-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.lc-room-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.lc-room-title i {
  color: var(--lc-gold);
}

.lc-room-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #86efac;
  font-size: 0.68rem;
  font-weight: 600;
}

.lc-room-badge.is-muted {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.22);
  color: #94a3b8;
}

.lc-room-badge i {
  font-size: 0.55rem;
}

.lc-mod-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--lc-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--lc-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lc-mod-btn:hover {
  background: var(--lc-gold-soft);
  border-color: rgba(255, 215, 0, 0.35);
  color: var(--lc-gold);
}

.lc-messages-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#chatBox.lc-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--lc-main);
  color: var(--lc-text);
}

.lc-jump-latest {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: rgba(12, 12, 14, 0.94);
  color: var(--lc-gold);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.lc-jump-latest:hover {
  border-color: rgba(255, 215, 0, 0.55);
  background: rgba(18, 18, 20, 0.98);
}

.lc-jump-latest.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

.lc-jump-latest i {
  font-size: 0.95rem;
  line-height: 1;
}

.lc-jump-latest-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--lc-gold);
  color: #111;
  font-size: 0.68rem;
  font-weight: 700;
}

.lc-jump-latest-count[hidden] {
  display: none !important;
}

.lc-date-separator,
.chat-date-separator {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 6px 0 2px;
}

.lc-date-separator span,
.chat-date-separator span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--lc-muted);
  font-size: 0.72rem;
  font-weight: 500;
  user-select: none;
}

.lc-msg-row {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: min(560px, 85%);
}

.lc-msg-row.is-theirs {
  align-self: flex-start;
  align-items: flex-start;
}

.lc-msg-row.is-mine {
  align-self: flex-end;
  align-items: flex-end;
}

.lc-msg-body {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.lc-msg-row.is-mine .lc-msg-body {
  flex-direction: row-reverse;
}

.lc-msg-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: min(520px, calc(100vw - 120px));
}

.lc-msg-row.is-mine .lc-msg-content {
  align-items: flex-end;
}

.lc-room img.lc-msg-avatar,
.lc-msg-avatar {
  display: block;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  max-width: 32px;
  min-height: 32px;
  max-height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 32px;
  flex-shrink: 0;
  background: #222;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lc-msg-row.is-mine .lc-msg-avatar {
  border-color: rgba(255, 215, 0, 0.35);
}

.lc-bubble-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.lc-msg-sender {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.lc-msg-row.is-theirs .lc-msg-sender {
  color: #111;
}

.lc-msg-row.is-mine .lc-msg-sender {
  color: #111;
}

.lc-bubble-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
}

.lc-msg-time {
  font-size: 0.65rem;
  color: rgba(0, 0, 0, 0.45);
  margin: 0;
  padding: 0;
  line-height: 1;
}

.lc-msg-ticks {
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0.45;
  color: #111;
}

.lc-msg-ticks.is-read {
  opacity: 0.85;
}

.chat-bubble.lc-bubble.deleted .lc-msg-time,
.chat-bubble.lc-bubble.deleted .lc-msg-ticks {
  color: rgba(255, 255, 255, 0.4);
}

.chat-bubble.lc-bubble {
  position: relative;
  width: fit-content;
  max-width: min(520px, calc(100vw - 120px));
  margin: 0;
  padding: 10px 14px 8px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  word-wrap: break-word;
  text-align: left;
  cursor: pointer;
  display: block;
  box-shadow: none;
  transition: box-shadow 0.2s ease;
}

.lc-msg-row.is-theirs .chat-bubble.lc-bubble {
  background: #fff;
  color: #111;
  border: none;
  border-bottom-left-radius: 6px;
}

.lc-msg-row.is-mine .chat-bubble.lc-bubble {
  background: var(--lc-gold);
  color: #111;
  border: none;
  border-bottom-right-radius: 6px;
}

.chat-bubble.lc-bubble.deleted {
  font-style: italic;
  color: #6b7280;
  background: #1a1a1a;
  border: 1px dashed #3a3a3a;
}

.lc-msg-row.is-mine .chat-bubble.lc-bubble.deleted,
.lc-msg-row.is-theirs .chat-bubble.lc-bubble.deleted {
  background: #1a1a1a;
  color: #6b7280;
}

.chat-bubble.lc-bubble.is-hidden-mod {
  opacity: 0.55;
  outline: 1px dashed #64748b;
}

.chat-bubble.lc-bubble.highlight-target {
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.65);
}

.chat-bubble.lc-bubble::before,
.chat-bubble.lc-bubble::after {
  display: none;
}

.chat-reply-preview {
  display: block;
  margin: -2px -2px 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
  cursor: pointer;
  user-select: none;
}

.lc-msg-row.is-mine .chat-reply-preview {
  background: rgba(0, 0, 0, 0.08);
}

.chat-reply-preview-name {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #92700a;
}

.lc-msg-row.is-mine .chat-reply-preview-name {
  color: #111;
}

.chat-reply-preview-text {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-msg-row.is-mine .chat-reply-preview-text {
  color: #374151;
}

.chat-message {
  white-space: pre-line;
  word-break: break-word;
  text-align: left;
  margin: 0;
  padding: 0;
}

.lc-bubble-img-btn {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  width: 100%;
  line-height: 0;
}

.lc-bubble-img {
  display: block;
  max-width: min(180px, 100%);
  max-height: 200px;
  width: auto;
  height: auto;
  margin-top: 2px;
  border-radius: 10px;
  object-fit: cover;
}

/* Image bubbles: keep a framed look, but give the sender name breathing room */
.chat-bubble.lc-bubble:has(.lc-bubble-img) {
  padding: 8px 8px 6px;
  overflow: hidden;
  max-width: min(200px, 100%);
}

.chat-bubble.lc-bubble:has(.lc-bubble-img) .lc-bubble-img {
  width: 100%;
  max-width: 100%;
  max-height: min(200px, 36vh);
  margin-top: 0;
  border-radius: 10px 10px 4px 4px;
  object-fit: cover;
}

.chat-bubble.lc-bubble:has(.lc-bubble-img):not(:has(.chat-message)) .lc-bubble-img {
  border-radius: 10px 10px 4px 4px;
}

.chat-bubble.lc-bubble:has(.lc-bubble-img) .lc-bubble-head {
  margin: 0 0 6px;
  padding: 0 2px;
}

.chat-bubble.lc-bubble:has(.lc-bubble-img) .chat-message {
  margin-top: 6px;
  padding: 0 2px;
  font-size: 0.86rem;
  line-height: 1.3;
}

.chat-bubble.lc-bubble:has(.lc-bubble-img) .lc-bubble-meta {
  margin-top: 4px;
  padding: 0 2px;
}

body.lc-viewer-open {
  overflow: hidden;
}

.lc-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
}

.lc-image-viewer.is-open {
  display: block;
}

.lc-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lc-viewer-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lc-viewer-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lc-viewer-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lc-viewer-spacer {
  flex: 1;
}

.lc-viewer-counter {
  flex: 1;
  text-align: center;
  font-size: 0.84rem;
  color: #d1d5db;
  font-weight: 600;
}

.lc-viewer-counter[hidden] {
  display: none !important;
}

.lc-viewer-zoom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lc-viewer-zoom-btn {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 8px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.lc-viewer-zoom-reset {
  min-width: 52px;
}

.lc-viewer-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  position: relative;
}

.lc-viewer-canvas {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  padding: 12px;
}

.lc-viewer-canvas:active {
  cursor: grabbing;
}

.lc-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lc-viewer-nav:disabled,
.lc-viewer-nav[hidden] {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.lc-viewer-nav[hidden] {
  display: none !important;
}

.lc-viewer-prev {
  left: 12px;
}

.lc-viewer-next {
  right: 12px;
}

.lc-viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.lc-viewer-hint {
  padding: 8px 16px 14px;
  font-size: 0.72rem;
  color: #6b7280;
  text-align: center;
}

.lc-bubble-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  word-break: break-all;
}

.lc-msg-row.is-mine .lc-bubble-file {
  background: rgba(0, 0, 0, 0.08);
  color: #111;
}

.chat-bubble.lc-bubble .chat-message + .lc-bubble-img,
.chat-bubble.lc-bubble .lc-bubble-img + .chat-message,
.chat-bubble.lc-bubble .lc-bubble-file + .chat-message,
.chat-bubble.lc-bubble .chat-message + .lc-bubble-file {
  margin-top: 8px;
}

.hidden-badge {
  color: #f87171;
  font-size: 0.72rem;
  font-weight: 600;
}

.mod-on .mod-toggle {
  display: inline-flex !important;
}

.mod-toggle {
  display: none;
  position: absolute;
  bottom: -18px;
  right: 0;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  color: #fca5a5 !important;
  z-index: 2;
}


.lc-composer-wrap {
  flex-shrink: 0;
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255, 215, 0, 0.12);
  background: var(--lc-parent);
}

#replyPreview.lc-reply-bar {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--lc-gold-soft);
  border: 1px solid rgba(255, 215, 0, 0.22);
  color: var(--lc-text);
  font-size: 0.82rem;
}

#replyPreview.lc-reply-bar strong {
  color: var(--lc-gold);
}

#replyPreview #cancelReply {
  margin-left: auto;
  color: #94a3b8;
  text-decoration: none;
}

.lc-access-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 215, 0, 0.18);
}

.lc-access-banner-text {
  margin: 0;
  font-size: 0.8125rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.lc-access-banner-text strong {
  color: var(--lc-gold);
}

.lc-access-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lc-access-banner .lc-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.lc-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd700;
}

.lc-access-banner.is-trial {
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.08);
}

.lc-composer-wrap > form,
.lc-composer-form,
#chatForm.lc-composer-form,
#chatForm.lc-composer {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}

.lc-composer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.lc-composer-attach {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.lc-composer-attach:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transform: rotate(-12deg) scale(1.06);
}

.lc-composer-attach:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.lc-composer-file {
  display: none;
}

.lc-attach-preview {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 215, 0, 0.14);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.2s ease, opacity 0.2s ease, margin 0.2s ease, padding 0.2s ease;
}

.lc-attach-preview.is-visible {
  display: flex;
  max-height: 96px;
  opacity: 1;
  margin-bottom: 10px;
  padding: 8px;
  pointer-events: auto;
}

.lc-attach-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.lc-attach-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.lc-attach-thumb.is-image {
  cursor: pointer;
}

.lc-attach-thumb.is-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.lc-attach-thumb.is-image:hover::after {
  opacity: 1;
}

.lc-attach-thumb-crop {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffd700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.15s ease;
}

.lc-attach-thumb.is-image:hover .lc-attach-thumb-crop {
  opacity: 1;
}

.lc-attach-thumb-caption-dot {
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffd700;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

@media (hover: none) {
  .lc-attach-thumb.is-image .lc-attach-thumb-crop {
    opacity: 0.9;
  }
}

.lc-attach-thumb.is-file {
  width: auto;
  min-width: 96px;
  max-width: 180px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
}

.lc-attach-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lc-attach-thumb-name {
  font-size: 0.72rem;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-attach-thumb-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0;
}

.lc-attach-add {
  width: 56px;
  height: 56px;
  border: 1px dashed rgba(255, 215, 0, 0.45);
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.06);
  color: #ffd700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.lc-attach-add:hover {
  background: rgba(255, 215, 0, 0.12);
}

.lc-attach-preview-clear {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  align-self: flex-start;
}

.lc-attach-preview-clear:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.lc-composer-input,
#chatInput.lc-composer-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #222;
  background: #000;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lc-composer-input:focus,
#chatInput.lc-composer-input:focus {
  outline: none;
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.08);
}

.lc-composer-input:disabled,
#chatInput.lc-composer-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lc-send-btn,
#sendBtn.lc-send-btn {
  height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 12px;
  background: var(--lc-gold);
  color: #0d0e14;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.lc-send-btn:hover:not(:disabled),
#sendBtn.lc-send-btn:hover:not(:disabled) {
  background: #f5c400;
}

.lc-send-btn:disabled,
#sendBtn.lc-send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--lc-gold);
  color: #0d0e14;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.lc-btn:hover {
  background: #f5c400;
  color: #0d0e14;
}

.lc-btn-ghost {
  background: transparent;
  border: 1px solid var(--lc-border);
  color: var(--lc-text);
}

.lc-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.chat-empty.lc-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 200px;
  color: var(--lc-muted);
  font-size: 0.92rem;
  text-align: center;
  font-style: normal;
}

.lc-empty i {
  font-size: 1.75rem;
  color: rgba(255, 215, 0, 0.35);
}

.live-chat-page.custom-container,
.live-chat-page .custom-container {
  max-width: none;
}

.custom-container {
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 991.98px) {
  body.live-chat-page {
    padding-bottom: 0 !important;
  }

  /* Kill the global 82px bottom-nav gutter — guests/marketing often have no visible nav */
  body.live-chat-page {
    --lc-bottom-nav-h: 0px;
    --mobile-bottom-nav-total: 0px;
  }

  body.live-chat-page:has(.mobile-bottom-nav:not([hidden])) {
    --lc-bottom-nav-h: calc(64px + env(safe-area-inset-bottom, 0px));
    --mobile-bottom-nav-total: var(--lc-bottom-nav-h);
  }

  .live-chat-page .lc-page-shell.container {
    padding: 0 !important;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100% !important;
    flex: 1;
    min-height: 0;
    height: calc(100dvh - var(--mobile-header-row1-h, 60px) - var(--mobile-bottom-nav-total, 0px));
    max-height: calc(100dvh - var(--mobile-header-row1-h, 60px) - var(--mobile-bottom-nav-total, 0px));
  }

  .live-chat-page .lc-layout,
  .live-chat-page #chat-pane {
    width: 100%;
  }

  .live-chat-page .lc-room {
    border: none;
    border-radius: 0;
    height: 100%;
    max-height: 100%;
    width: 100%;
  }

  .live-chat-page .lc-room-head {
    padding: 10px 14px;
    margin: 0;
    width: 100%;
    border-radius: 0;
  }

  .live-chat-page .lc-messages-wrap {
    flex: 1;
    min-height: 0;
  }

  .live-chat-page #chatBox.lc-messages {
    padding: 12px 12px calc(12px + var(--lc-composer-offset, 76px));
  }

  .live-chat-page .lc-composer-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035;
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 215, 0, 0.12);
    border-bottom: none;
    background: #101010;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
  }

  /* Sit flush above the real bottom nav when it is visible */
  body.live-chat-page:has(.mobile-bottom-nav:not([hidden])) .lc-composer-wrap {
    bottom: var(--mobile-bottom-nav-total, var(--lc-bottom-nav-h, 64px));
    padding-bottom: 10px;
  }

  /* Guest / read-only banner: fill the dock, no floating empty strip */
  .live-chat-page .lc-composer-wrap:has(> .lc-access-banner):not(:has(.lc-composer-form)) {
    padding-top: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .live-chat-page .lc-composer-input,
  .live-chat-page #chatInput.lc-composer-input,
  .live-chat-page .lc-send-btn,
  .live-chat-page #sendBtn.lc-send-btn {
    height: 40px;
  }

  .live-chat-page .lc-send-btn span,
  .live-chat-page #sendBtn.lc-send-btn span {
    display: none;
  }

  .live-chat-page .lc-send-btn,
  .live-chat-page #sendBtn.lc-send-btn {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .live-chat-page .lc-jump-latest {
    bottom: calc(10px + var(--lc-composer-offset, 76px));
  }

  .live-chat-page .lc-access-banner {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 10px 12px;
  }

  .live-chat-page .lc-access-banner-actions {
    width: 100%;
    flex-direction: column;
  }

  .live-chat-page .lc-access-banner .lc-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  #chatBox.lc-messages,
  .live-chat-page #chatBox.lc-messages {
    gap: 18px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .lc-msg-row {
    max-width: min(520px, 90%);
  }

  .lc-msg-body {
    gap: 10px;
    align-items: flex-start;
  }

  .lc-room img.lc-msg-avatar,
  .lc-msg-avatar {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    max-width: 28px;
    min-height: 28px;
    max-height: 28px;
    flex: 0 0 28px;
    margin-top: 2px;
  }

  .lc-msg-sender {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .lc-bubble-head {
    margin-bottom: 6px;
    gap: 4px;
  }

  .chat-bubble.lc-bubble {
    max-width: calc(100vw - 88px);
    padding: 10px 12px 8px;
    font-size: 0.86rem;
    line-height: 1.45;
    border-radius: 16px;
  }

  /* Keep the same framed image-bubble spacing as desktop (not crushed padding) */
  .chat-bubble.lc-bubble:has(.lc-bubble-img) {
    padding: 8px 8px 6px;
    max-width: min(220px, calc(100vw - 88px));
    overflow: hidden;
  }

  .chat-bubble.lc-bubble:has(.lc-bubble-img) .lc-bubble-head {
    margin: 0 0 6px;
    padding: 0 2px;
  }

  .chat-bubble.lc-bubble:has(.lc-bubble-img) .lc-bubble-img {
    max-height: min(200px, 36vh);
    border-radius: 10px 10px 4px 4px;
  }

  .chat-bubble.lc-bubble:has(.lc-bubble-img) .chat-message {
    margin-top: 6px;
    padding: 0 2px;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .chat-bubble.lc-bubble:has(.lc-bubble-img) .lc-bubble-meta {
    margin-top: 4px;
    padding: 0 2px;
  }

  .lc-msg-ticks {
    font-size: 0.75rem;
  }

  .lc-room-head-main {
    gap: 6px;
  }

  .lc-room-title {
    font-size: 0.95rem;
  }
}

@media (min-width: 1600px) {
  .custom-container {
    max-width: 1500px;
  }
}

body.lc-crop-open {
  overflow: hidden;
}

.lc-crop-editor {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: none;
  background: #0a0a0a;
}

.lc-crop-editor.is-open {
  display: block;
}

.lc-crop-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lc-crop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.lc-crop-title {
  color: #f3f4f6;
  font-size: 0.95rem;
  font-weight: 700;
}

.lc-crop-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.lc-crop-btn.lc-crop-done {
  background: #ffd700;
  color: #111;
}

.lc-crop-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lc-crop-stage {
  flex: 1;
  min-height: 0;
  background: #000;
}

.lc-crop-stage .cropper-container,
.lc-crop-stage .cropper-wrap-box,
.lc-crop-stage .cropper-canvas {
  background: #000;
}

.lc-crop-image {
  display: block;
  max-width: 100%;
}

.lc-crop-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px 4px;
  flex-shrink: 0;
}

.lc-crop-action {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f3f4f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
}

.lc-crop-action:hover {
  background: rgba(255, 215, 0, 0.16);
  color: #ffd700;
}

.lc-crop-caption-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 14px 10px;
  flex-shrink: 0;
}

.lc-crop-caption {
  width: min(100%, 340px);
  min-height: 40px;
  max-height: 88px;
  resize: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #161616;
  color: #f3f4f6;
  padding: 10px 12px;
  font-size: 0.88rem;
  line-height: 1.35;
  outline: none;
  box-sizing: border-box;
}

.lc-crop-caption:focus {
  border-color: rgba(255, 215, 0, 0.55);
}

.lc-crop-caption::placeholder {
  color: #6b7280;
}

.lc-crop-filmstrip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px 10px;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
}

.lc-crop-filmstrip[hidden] {
  display: none !important;
}

.lc-crop-film-thumb,
.lc-crop-film-add {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #1a1a1a;
}

.lc-crop-film-thumb {
  border: 2px solid transparent;
}

.lc-crop-film-thumb.is-active {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.lc-crop-film-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lc-crop-film-caption-dot {
  position: absolute;
  left: 5px;
  bottom: 5px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ffd700;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45);
}

.lc-crop-film-add {
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: transparent;
}

.lc-crop-film-add:hover {
  border-color: rgba(255, 215, 0, 0.7);
  color: #ffd700;
}

.lc-crop-hint {
  margin: 0;
  padding: 0 16px 14px;
  text-align: center;
  color: #6b7280;
  font-size: 0.72rem;
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .lc-crop-caption {
    width: min(100%, 280px);
  }

  .lc-crop-film-thumb,
  .lc-crop-film-add {
    width: 50px;
    height: 50px;
  }
}

.lc-view-once-toggle {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: transparent;
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
  padding: 0;
}

.lc-view-once-toggle-badge {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  border-right-style: dashed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.lc-view-once-toggle.is-active {
  border-color: #ffd700;
  color: #111;
  background: #ffd700;
}

.lc-crop-view-once {
  width: 40px;
  height: 40px;
  align-self: center;
}

.lc-bubble:has(.lc-view-once-card) {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  padding: 5px 8px 2px;
}

.lc-bubble:has(.lc-view-once-card) .lc-bubble-meta {
  margin-top: 0;
  padding: 0;
}

.lc-view-once-card {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: default;
  line-height: 1;
}

.lc-msg-row.is-mine .lc-view-once-card,
.lc-msg-row.is-theirs .lc-view-once-card {
  color: #111;
}

button.lc-view-once-card {
  cursor: pointer;
  font: inherit;
  text-align: left;
}

button.lc-view-once-card:hover .lc-view-once-label {
  opacity: 0.85;
}

.lc-view-once-badge {
  position: relative;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
  z-index: 0;
}

.lc-view-once-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -90deg,
    currentColor 0deg 10deg,
    transparent 10deg 20deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  z-index: -1;
}

.lc-msg-row.is-mine .lc-view-once-badge {
  color: #111;
}

.lc-msg-row.is-theirs .lc-view-once-badge {
  color: #b8860b;
}

.lc-view-once-label {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: inherit;
}

.lc-view-once-card.is-opened {
  opacity: 1;
}

.lc-view-once-card.is-opened .lc-view-once-label {
  font-weight: 500;
  color: #4b5563;
}

.lc-view-once-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: none;
}

.lc-view-once-modal.is-open {
  display: block;
}

.lc-view-once-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.lc-view-once-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  margin: 18vh auto 0;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 22px 20px 18px;
  color: #f3f4f6;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.lc-view-once-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  margin: 0 auto 14px;
  background: rgba(255, 215, 0, 0.12);
  border: 2px solid #ffd700;
  border-right-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  font-size: 1.35rem;
  font-weight: 800;
}

.lc-view-once-modal-card h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  text-align: center;
  line-height: 1.35;
}

.lc-view-once-modal-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.lc-view-once-modal-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #d1d5db;
  font-size: 0.88rem;
  line-height: 1.4;
}

.lc-view-once-modal-list i {
  color: #ffd700;
  margin-top: 2px;
}

.lc-view-once-modal-ok {
  display: block;
  width: 100%;
  border: none;
  border-radius: 999px;
  background: #ffd700;
  color: #111;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}
