

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.dash-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.dash-stat-icon { font-size:24px; margin-bottom: 6px; }
.dash-stat-value { font-size:28px; font-weight: 700; color: var(--text-primary); }
.dash-stat-label { font-size:14px; color: var(--text-muted); margin-top: 2px; }

.dash-activity-hint {
  font-size:14px;
  color: var(--text-faint);
  line-height: 1.5;
}

.dash-activity-list {
  display: flex;
  flex-direction: column;
}
.dash-activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  font-size:15px;
}
.dash-activity-row:last-child { border-bottom: none; }

.dash-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size:13px;
  font-weight: 700;
  white-space: nowrap;
}
.dash-badge-new { background: rgba(74, 144, 226, 0.18); color: #4a90e2; }
.dash-badge-follow { background: rgba(74, 144, 226, 0.18); color: #4a90e2; }
.dash-badge-raid { background: rgba(145, 70, 255, 0.18); color: var(--accent); }
.dash-badge-bits { background: rgba(242, 185, 12, 0.18); color: var(--warning); }
.dash-badge-subscribe,
.dash-badge-resub { background: rgba(119, 44, 232, 0.18); color: #9146ff; }
.dash-badge-giftsub { background: rgba(235, 4, 0, 0.18); color: #ff6666; }

.dash-activity-user {
  flex: 1;
  color: var(--text-primary);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-activity-time {
  color: var(--text-faint);
  font-size:14px;
  flex-shrink: 0;
}

.streamLoader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 0;
}
.streamLoader-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
}
.streamLoader-bars span {
  display: block;
  width: 5px;
  border-radius: 2px;
  background: var(--accent, #9146ff);
  animation: streamLoaderPulse 1s ease-in-out infinite;
}
.streamLoader-bars span:nth-child(1) { animation-delay: 0s; }
.streamLoader-bars span:nth-child(2) { animation-delay: 0.15s; }
.streamLoader-bars span:nth-child(3) { animation-delay: 0.3s; }
.streamLoader-bars span:nth-child(4) { animation-delay: 0.15s; }
.streamLoader-bars span:nth-child(5) { animation-delay: 0s; }
@keyframes streamLoaderPulse {
  0%, 100% { height: 6px; opacity: 0.5; }
  50% { height: 28px; opacity: 1; }
}
.streamLoader-label {
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.streamLoader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eb0400;
  animation: streamLoaderBlink 1.4s ease-in-out infinite;
}
@keyframes streamLoaderBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.dash-activity-row { position: relative; }
.dash-activity-delete {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.dash-activity-row:hover .dash-activity-delete { opacity: 1; }
.dash-activity-delete:hover { color: #ff6666; background: rgba(255,102,102,0.12); }

#dashboardRow { display: flex; gap: 20px; align-items: stretch; }

#chatCol { flex: 1; min-width: 0; }
.chatBox {
  background: #1c1c22; border: 1px solid #333; border-radius: 8px; overflow: hidden;
  height: 605px;
  display: flex; flex-direction: column;
}
.chatBox h3 {
  margin: 0; padding: 12px 16px; font-size: 13px; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 1px solid #2a2a30;
}
.chatIframePlaceholder {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: #555; font-size: 13px;
}

.chatIframeCropWrap {
  flex: 1; overflow: hidden; position: relative;
}
.chatIframeCropped {
  position: absolute; top: 0; left: 0;
  width: 100%; height: calc(100% + 92px);
  border: none;
}

.chatSendRow {
  display: flex; gap: 8px; margin-top: 8px; padding: 0px 10px;
}
.chatSendInput {
  flex: 1; background: #0e0e10; border: 1px solid #3a3a3a; border-radius: 6px;
  color: #efeff5; padding: 8px 10px; font-size: 13px;
}
.chatSendInput:focus { outline: none; border-color: #9146ff; }
.chatSendStatus { display: block; font-size: 11px; color: #ff8080; min-height: 10px; }

#dashRightCol { width: 380px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }

.streamInfoBox {
  background: #1c1c22; border: 1px solid #333; border-radius: 8px;
  padding: 10px; display: flex; flex-direction: column; gap: 12px;
}
.streamInfoBox h3 { margin: 0; font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.4px; }

.categoryPicker { position: relative; }
.categorySelectedChip {
  display: flex; align-items: center; gap: 10px; background: #26262e; border: 1px solid #3a3a40;
  border-radius: 6px; padding: 8px;
}
.categorySelectedChip img { width: 30px; height: 40px; border-radius: 4px; object-fit: cover; background: #333; }
.categorySelectedChip .name { font-size: 13px; font-weight: 600; color: #fff; }
.categorySelectedChip .changeBtn { margin-left: auto; font-size: 11px; color: #9146ff; cursor: pointer; background: none; border: none; }

.categoryDropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #1c1c22; border: 1px solid #3a3a40; border-radius: 8px;
  max-height: 220px; overflow-y: auto; z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.categoryOption { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; }
.categoryOption:hover { background: #26262e; }
.categoryOption img { width: 30px; height: 40px; border-radius: 3px; object-fit: cover; background: #333; }
.categoryOption span { font-size: 13px; color: #eee; }

#dashUpdateStreamBtn {
  background: #9146ff; color: #fff; border: none; border-radius: 6px;
  padding: 10px 16px; font-weight: 700; font-size: 13px; cursor: pointer;
}
#dashUpdateStreamBtn:hover { background: #7d2ff5; }
.dashUpdateStatus { font-size: 12px; color: #7ee787; }

.historyBox {
  background: #1c1c22; border: 1px solid #333; border-radius: 8px;
  padding: 10px; flex: 1; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
.historyBox h3 { margin: 0; font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.4px; }
.historyList { display: flex; flex-direction: column; gap: 3px; }
.historyEntry {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 10px; border-radius: 6px;
}
.historyEntry.odd { background: #1a1a1f; }
.historyEntry.even { background: #17171b; }
.historyEntry-info { min-width: 0; }
.historyEntry-wann { font-size: 10px; color: #888; line-height: 1.3; }
.historyEntry-titel { font-size: 12px; font-weight: 600; color: #efeff5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.historyEntry-kategorie { font-size: 11px; color: #7ee787; font-weight: 700; line-height: 1.3; }
.loadBtn {
  background: #26262e; border: 1px solid #3a3a40; border-radius: 5px; color: #ccc;
  font-size: 11px; padding: 3px 10px; cursor: pointer; flex-shrink: 0;
}
.loadBtn:hover { background: #333; color: #fff; border-color: #9146ff; }

@media (max-width: 900px) {
  #dashboardRow { flex-direction: column; }
  #dashRightCol { width: 100%; }
}

.timelineBox { background: #141418; border: 1px solid #2a2a30; border-radius: 8px; padding: 16px; margin-top: 16px; margin-bottom: 16px; }
.timelineBox label { display: block; color: #aaa; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 10px; }
.rangeQuickPicks { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.rangeChip {
  background: #1c1c22; border: 1px solid #3a3a40; border-radius: 20px; color: #ccc;
  padding: 6px 14px; font-size: 12px; cursor: pointer; font-weight: 600;
}
.rangeChip.active { background: #9146ff; border-color: #9146ff; color: #fff; }
.rangeChip:hover:not(.active) { border-color: #9146ff; color: #fff; }

.timelineBars { display: flex; align-items: flex-end; gap: 2px; height: 48px; }
.timelineBar { flex: 1; background: #3a3a40; border-radius: 2px 2px 0 0; min-height: 2px; cursor: pointer; transition: background 0.15s ease; }
.timelineBar:hover { background: #b388ff; }
.timelineBar.selected { background: #9146ff; }
.timelineLabels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; color: #666; }

.filterBox { background: #141418; border: 1px solid #2a2a30; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.filterBox label { display: block; color: #aaa; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 10px; }
.filterChips { display: flex; gap: 8px; flex-wrap: wrap; }
.filterChip {
  background: #1c1c22; border: 1px solid #3a3a40; border-radius: 20px; color: #ccc;
  padding: 7px 14px; font-size: 12px; cursor: pointer; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.filterChip.active { background: rgba(145,70,255,0.15); border-color: #9146ff; color: #fff; }
.filterChip .dot { width: 8px; height: 8px; border-radius: 50%; }
.filterChip.all.active { background: #9146ff; border-color: #9146ff; color: #fff; }

.listBox { background: #141418; border: 1px solid #2a2a30; border-radius: 8px; padding: 8px; }
.badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 10px; white-space: nowrap; }
.badge.follow { background: rgba(70,209,96,0.15); color: #46d160; }
.badge.raid { background: rgba(255,102,102,0.15); color: #ff6666; }
.badge.bits { background: rgba(242,185,12,0.15); color: #f2b90c; }
.badge.subscribe, .badge.resub { background: rgba(145,70,255,0.15); color: #b388ff; }
.badge.giftsub { background: rgba(0,200,255,0.15); color: #00c8ff; }

.paginationRow { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; padding: 8px 0 4px; }
.pageBtn {
  background: #1c1c22; border: 1px solid #3a3a40; border-radius: 6px; color: #ccc;
  padding: 7px 12px; font-size: 12px; cursor: pointer;
}
.pageBtn:hover:not(:disabled) { border-color: #9146ff; color: #fff; }
.pageBtn:disabled { opacity: 0.35; cursor: default; }
.pageInfo { font-size: 12px; color: #888; }

.activityColumns {
  column-width: 260px;
  column-count: 3;
  column-gap: 10px;
}
.activityColumnItem {
  display: flex; align-items: center; gap: 8px;
  background: #1c1c22; border-radius: 6px; padding: 7px 10px;
  margin-bottom: 8px;
  break-inside: avoid;
}
.followerName {
  flex: 1; display: block; font-size: 13px; color: #eee;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-decoration: none;
}
.followerName:hover { color: #9146ff; text-decoration: underline; }
.followerTime { font-size: 10px; color: #777; flex-shrink: 0; }
.followerDelete {
  background: none; border: none; color: #555; font-size: 13px; cursor: pointer;
  padding: 2px 4px; border-radius: 4px; flex-shrink: 0; line-height: 1;
}
.followerDelete:hover { color: #ff6666; background: rgba(255,102,102,0.12); }