/* ==========================================================
   SPONSORMII AD DEMO · CHAT CSS
   Sidebar del chat simulado en vivo
   ========================================================== */
.chat {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  height: 0;
  min-height: 100%;
  overflow: hidden;
}

@media (max-width: 860px) {
  .chat {
    height: 340px;
    min-height: 0;
  }
}

.chat h2 {
  font: 700 12px/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.chat h2 span {
  color: var(--accent-color);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
}

.msgs::-webkit-scrollbar {
  width: 5px;
}

.msgs::-webkit-scrollbar-track {
  background: transparent;
}

.msgs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.msg {
  line-height: 1.35;
  word-break: break-word;
  animation: inMsg 0.18s ease-out;
}

.msg b {
  font-weight: 700;
}

.msg .t {
  background: var(--accent-color);
  color: var(--blue-deep);
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.msg.sys {
  color: var(--muted);
  font-style: italic;
  font-size: 12.5px;
}

@keyframes inMsg {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.compose {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.compose input {
  flex: 1;
  min-width: 0;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  font: inherit;
  padding: 9px 11px;
}

.compose input:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 1px;
}

.compose button {
  background: var(--panel-2);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: 700 13px var(--body);
  padding: 0 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.compose button:hover {
  background: var(--line);
}