/* Presence + DM + Telegram signals */
.presence-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5a6a7a;
  margin-right: 5px;
  vertical-align: middle;
}
.presence-dot.online {
  background: #3dce8e;
  box-shadow: 0 0 0 2px rgba(61, 206, 142, 0.2);
}
.dm-view { padding: 12px 16px; }
.dm-toolbar { margin-bottom: 10px; }
.dm-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  min-height: 420px;
}
.dm-side {
  border: 0.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(12, 20, 34, 0.55);
}
.dm-thread-list {
  display: flex;
  flex-direction: column;
  max-height: 70vh;
  overflow: auto;
}
.dm-thread {
  text-align: left;
  border: 0;
  border-bottom: 0.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 12px;
  cursor: pointer;
}
.dm-thread.act,
.dm-thread:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.dm-thread-nick {
  display: block;
  font-weight: 600;
  font-size: 12px;
}
.dm-thread-prev {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.dm-compose-head input,
.dm-compose-row input {
  width: 100%;
  background: var(--bg-hover);
  border: 0.5px solid var(--border-accent);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
}
.dm-compose-row {
  display: flex;
  gap: 8px;
}
.dm-compose-row input { flex: 1; }
.dm-messages {
  flex: 1;
  min-height: 260px;
  max-height: 55vh;
  overflow: auto;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: rgba(8, 14, 24, 0.45);
}
.dm-msg {
  max-width: 80%;
  padding: 7px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 13px;
  white-space: pre-wrap;
}
.dm-msg.mine {
  margin-left: auto;
  background: rgba(74, 159, 216, 0.22);
}
.dm-msg.peer { background: rgba(120, 140, 170, 0.16); }
.dm-empty,
.dm-error {
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px;
}
.signals-telegram-box {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  background: rgba(12, 22, 38, 0.55);
}
.signals-telegram-title { font-weight: 600; margin-bottom: 4px; }
.signals-telegram-status,
.signals-telegram-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 4px 0;
}
.signals-telegram-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}
.signals-telegram-actions .pricing-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}
.signal-tg-miniapp-link {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #9ad0f5;
  border-top: 0.5px solid var(--border);
  text-decoration: none;
}
.signal-tg-miniapp-link:hover { color: #c5e4ff; }
@media (max-width: 768px) {
  .dm-layout { grid-template-columns: 1fr; }
}
