/* ==========================================================================
   StreOps — Page-specific component styles (shared across dashboard screens)
   ========================================================================== */

/* ---------- Bot status banner ---------- */

.banner-card {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 12px;
}

.banner-card__left {
  display: flex;
  gap: 13px;
  align-items: center;
}

.banner-card__chip {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
}

.banner-card__title {
  font-weight: 600;
  font-size: 15px;
  line-height: 21px;
  color: var(--text-primary);
}

.banner-card__subtitle {
  font-weight: 400;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--text-muted);
}

.banner-card__right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.banner-card__switch {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-left: 14px;
}

.banner-card__switch span {
  font-weight: 500;
  font-size: 13.5px;
  line-height: 18px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ---------- Metric cards ---------- */

.metric-card {
  gap: 14px;
}

.metric-card__label {
  display: flex;
  gap: 9px;
  align-items: center;
}

.metric-card__chip {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
}

.metric-card__label > span:last-child {
  font-weight: 600;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.metric-card__value {
  font-weight: 700;
  font-size: 34px;
  line-height: 40px;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  white-space: nowrap;
}

.metric-card__caption {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Chart legend / axis ---------- */

.chart-legend {
  display: flex;
  gap: 18px;
  align-items: center;
}

.chart-legend__item {
  display: flex;
  gap: 7px;
  align-items: center;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.chart-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.axis-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-weight: 400;
  font-size: 11px;
  line-height: 14px;
  color: var(--text-muted);
}

/* ---------- Line chart (chat activity) ---------- */

.chat-chart {
  width: 100%;
  max-width: 704px;
}

.chat-chart__svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Bar chart (moderation actions) ---------- */

.barchart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  max-width: 704px;
  height: 150px;
}

.bargroup {
  display: flex;
  gap: 3px;
  align-items: flex-end;
}

.bar {
  width: 11px;
  border-radius: 3px;
}

.bar--purple { background: var(--accent-primary); }
.bar--orange { background: var(--status-warning); }
.bar--red { background: var(--status-danger); }

/* ---------- Side list card (activity feed / services) ---------- */

.side-card {
  width: 376px;
  flex: none;
  gap: 6px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.activity-row {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 9px 0;
  width: 100%;
}

.activity-row__chip {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
}

.service-row__chip {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
}

.activity-row__body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.activity-row__title {
  font-weight: 500;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-row__name {
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-primary);
}

.activity-row__subtitle {
  font-weight: 400;
  font-size: 11.5px;
  line-height: 15px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-row__time {
  font-weight: 400;
  font-size: 11px;
  line-height: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- Section heading used within a page (non-topbar) ---------- */

.section-title {
  font-weight: 600;
  font-size: 15px;
  line-height: 21px;
  color: var(--text-primary);
  margin: 0;
}

/* ---------- Tabs / segmented control ---------- */

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
}

.tabs button {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  padding: 7px 14px;
  border-radius: 7px;
}

.tabs button.is-active {
  background: var(--accent-primary);
  color: #fff;
}

/* ---------- Status header cards (3-up, Moderation page) ---------- */

.status-row {
  display: flex;
  width: 100%;
  gap: 16px;
}

.status-card {
  flex: 1 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.status-card__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.status-card__chip {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-2);
  flex-shrink: 0;
}

.status-card__title {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-primary);
  white-space: nowrap;
}

.status-card__subtitle {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Small toggle (rule rows) ---------- */

.toggle-sm {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  border: none;
  flex-shrink: 0;
  background: var(--bg-surface-3);
  box-shadow: inset 0 0 0 1px var(--border-default);
}

.toggle-sm::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #8b8ba6;
}

.toggle-sm.is-on {
  background: var(--accent-primary);
  box-shadow: none;
}

.toggle-sm.is-on::after {
  left: 23px;
  background: #fff;
}

/* ---------- Rule list (moderation rules) ---------- */

.rule-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  width: 100%;
}

.rule-row__body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rule-row__title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rule-row__title {
  font-weight: 600;
  font-size: 13.5px;
  line-height: 19px;
  color: var(--text-primary);
  white-space: nowrap;
}

.rule-row__desc {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.tag-pro {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--status-warning-soft);
  font-weight: 700;
  font-size: 10px;
  line-height: 14px;
  color: var(--status-warning-text);
  white-space: nowrap;
}

.tag-ai {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--wash-cyan-2);
  font-weight: 700;
  font-size: 10px;
  line-height: 14px;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.rule-row__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 31px;
  padding: 0 10px 0 12px;
  border-radius: 9px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.rule-row__action img { width: 14px; height: 14px; }

/* ---------- Escalation steps ---------- */

.escalation-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--bg-surface-2);
  width: 100%;
}

.escalation-row__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.escalation-row__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.escalation-row__title {
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-primary);
}

.escalation-row__desc {
  font-weight: 400;
  font-size: 11.5px;
  line-height: 15px;
  color: var(--text-muted);
}

.always-ban-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--status-danger-soft);
  width: 100%;
}

.always-ban-row span {
  font-weight: 400;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--text-secondary);
}

/* ---------- VIP / exception tags ---------- */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.vip-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-3);
  border: 1px solid var(--border-default);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-primary);
  white-space: nowrap;
}

.vip-tag img { width: 12px; height: 12px; }

.add-exception-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: 100%;
  height: 35px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-default);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 12.5px;
}

.add-exception-btn img { width: 14px; height: 14px; }

/* ---------- Filter bar (search + selects) ---------- */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.search-input {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  width: 280px;
  flex-shrink: 0;
}

.search-input img { width: 15px; height: 15px; flex-shrink: 0; }

.search-input span {
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-muted);
}

.select-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 11px 0 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  flex-shrink: 0;
}

.select-field .label {
  font-weight: 400;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--text-muted);
  white-space: nowrap;
}

.select-field .value {
  font-weight: 500;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--text-primary);
  white-space: nowrap;
}

.select-field img { width: 14px; height: 14px; }

/* ---------- Log table ---------- */

.log-table {
  width: 100%;
}

.log-table__head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  width: 100%;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.log-table__row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  width: 100%;
}

.log-table__row.is-tall { align-items: flex-start; padding: 11px 0; }

.col-time { width: 72px; flex-shrink: 0; font-size: 12px; color: var(--text-muted); }
.col-user { width: 150px; flex-shrink: 0; font-size: 12.5px; font-weight: 500; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-role { width: 96px; flex-shrink: 0; }
.col-event { width: 140px; flex-shrink: 0; }
.col-msg { flex: 1 0 0; min-width: 0; font-size: 12.5px; color: var(--text-secondary); overflow-wrap: break-word; }

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
}

/* ---------- Viewer profile card ---------- */

.viewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.viewer-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.viewer-head__name {
  font-weight: 600;
  font-size: 15px;
  line-height: 21px;
  color: var(--text-primary);
}

.viewer-head__meta {
  font-weight: 400;
  font-size: 12px;
  line-height: 15px;
  color: var(--text-muted);
}

.stat-trio {
  display: flex;
  width: 100%;
}

.stat-trio__item {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 0 0 12px;
}

.stat-trio__value {
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: var(--text-primary);
}

.stat-trio__label {
  font-weight: 400;
  font-size: 11px;
  line-height: 14px;
  color: var(--text-muted);
}

.action-trio {
  display: flex;
  gap: 0;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-default);
}

.action-trio button {
  flex: 1 0 0;
  height: 34px;
  background: var(--bg-surface-2);
  border: none;
  border-left: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 12.5px;
}

.action-trio button:first-child { border-left: none; }

.search-input--accent {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

/* ---------- Ban list ---------- */

.banlist-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  width: 100%;
}

.banlist-row__chip {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  background: var(--status-danger-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banlist-row__chip img { width: 15px; height: 15px; }

.banlist-row__body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.banlist-row__name {
  font-weight: 500;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--text-primary);
}

.banlist-row__reason {
  font-weight: 400;
  font-size: 11.5px;
  line-height: 15px;
  color: var(--text-muted);
}

.unban-btn {
  height: 27px;
  padding: 0 11px;
  border-radius: 8px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 11.5px;
  flex-shrink: 0;
}

/* ---------- Now playing (Music page) ---------- */

.nowplaying-card {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
}

.nowplaying-art {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  background: linear-gradient(126.87deg, #9146ff 0%, #22d3ee 71.429%);
}

.nowplaying-body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.nowplaying-title-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nowplaying-title {
  font-weight: 600;
  font-size: 17px;
  line-height: 23px;
  color: var(--text-primary);
  white-space: nowrap;
}

.nowplaying-sub {
  font-weight: 400;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--text-muted);
}

.nowplaying-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.nowplaying-progress time {
  font-weight: 400;
  font-size: 11.5px;
  line-height: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.nowplaying-progress__track {
  flex: 1 0 0;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-3);
  overflow: hidden;
}

.nowplaying-progress__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--accent-primary);
}

.nowplaying-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nowplaying-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
}

.nowplaying-controls .btn-side {
  width: 44px;
  height: 44px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
}

.nowplaying-controls .btn-side img { width: 17px; height: 17px; }

.nowplaying-controls .btn-main {
  width: 52px;
  height: 52px;
  background: var(--accent-primary);
}

.nowplaying-controls .btn-main img { width: 19px; height: 19px; }

/* ---------- Queue list ---------- */

.queue-tabs {
  display: flex;
  gap: 6px;
}

.queue-tab {
  padding: 7px 13px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  color: #8b8ba6;
  background: transparent;
  border: 1px solid transparent;
}

.queue-tab.is-active {
  background: var(--accent-primary-soft);
  border-color: var(--accent-primary-border);
  color: var(--text-primary);
}

.add-manual-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 13px;
  border-radius: 9px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 12.5px;
}

.add-manual-btn img { width: 14px; height: 14px; }

.queue-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 0;
  width: 100%;
}

.queue-row__index {
  width: 16px;
  flex-shrink: 0;
  font-weight: 400;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--text-muted);
}

.queue-row__art {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.queue-row__body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.queue-row__title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.queue-row__title {
  font-weight: 500;
  font-size: 13.5px;
  line-height: 19px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-row__meta {
  font-weight: 400;
  font-size: 11.5px;
  line-height: 15px;
  color: var(--text-muted);
  white-space: nowrap;
}

.queue-row__time {
  font-weight: 400;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.queue-row__remove {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-surface-2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.queue-row__remove img { width: 14px; height: 14px; }

.tag-playing {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--status-success-wash-2);
  color: var(--status-success);
  font-weight: 600;
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
}

/* ---------- Settings row (value chip / dropdown chip / toggle) ---------- */

.settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  width: 100%;
}

.settings-row__body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-row__title {
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-primary);
  white-space: nowrap;
}

.settings-row__desc {
  font-weight: 400;
  font-size: 11.5px;
  line-height: 15px;
  color: var(--text-muted);
}

.value-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.dropdown-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.dropdown-chip img { width: 13px; height: 13px; }

/* ---------- Widget link box ---------- */

.link-box {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 8px 8px 12px;
  border-radius: 9px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  width: 100%;
}

.link-box span {
  flex: 1 0 0;
  min-width: 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-box button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 10px;
  border-radius: 7px;
  background: var(--accent-primary);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 11.5px;
  flex-shrink: 0;
}

.link-box button img { width: 12px; height: 12px; }

.help-text {
  font-weight: 400;
  font-size: 11.5px;
  line-height: 16px;
  color: var(--text-muted);
}

/* ---------- Stat card (4-up, generic) ---------- */

.stat-card {
  gap: 13px;
}

.stat-card__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.stat-card__label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.stat-card__chip {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
}

.stat-card__label span {
  font-weight: 600;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.stat-card__value {
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.7px;
  color: var(--text-primary);
  white-space: nowrap;
}

.stat-card__caption {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Donation feed row ---------- */

.donation-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  width: 100%;
}

.donation-row__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.donation-row__body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.donation-row__title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  line-height: 19px;
}

.donation-row__name {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.donation-row__amount {
  font-weight: 700;
  color: #34d399;
  white-space: nowrap;
}

.donation-row__msg {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.donation-row__time {
  font-weight: 400;
  font-size: 11.5px;
  line-height: 15px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- Goal / progress card ---------- */

.goal-title {
  font-weight: 600;
  font-size: 17px;
  line-height: 23px;
  color: var(--text-primary);
}

.goal-amount-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

.goal-amount {
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  color: #34d399;
}

.goal-target {
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-muted);
}

.goal-track {
  width: 100%;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-3);
  overflow: hidden;
}

.goal-track__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: #34d399;
}

.goal-note {
  font-weight: 400;
  font-size: 11.5px;
  line-height: 16px;
  color: var(--text-muted);
}

/* ---------- Alert media library ---------- */

.media-grid {
  display: flex;
  gap: 12px;
  width: 100%;
}

.media-card {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 13px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
}

.media-card__thumb {
  width: 100%;
  height: 86px;
  border-radius: 10px;
}

.media-card__file {
  display: flex;
  align-items: center;
  gap: 8px;
}

.media-card__file img { width: 14px; height: 14px; }

.media-card__file span {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.media-upload {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 13px;
  border: 1.5px dashed #3d3d50;
}

.media-upload img { width: 22px; height: 22px; }

.media-upload__title {
  font-weight: 500;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--text-muted);
}

.media-upload__hint {
  font-weight: 400;
  font-size: 11px;
  line-height: 14px;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Alert widget preview ---------- */

.alert-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
}

.alert-preview__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 22px;
  border-radius: 14px;
  border: 1.5px solid rgba(145, 70, 255, 0.6);
  background: linear-gradient(135deg, #1f1a33 0%, #331a4d 100%);
  box-shadow: 0 6px 24px -6px rgba(145, 70, 255, 0.45);
}

.alert-preview__title {
  font-weight: 700;
  font-size: 15px;
  line-height: 21px;
  color: #fff;
  white-space: nowrap;
}

.alert-preview__msg {
  font-weight: 400;
  font-size: 12.5px;
  line-height: 17px;
  color: #c9b6ff;
  white-space: nowrap;
}

.swatch-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.swatch-row span {
  font-weight: 400;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--text-secondary);
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Widget page: top tabs ---------- */

.widget-tabs {
  display: flex;
  gap: 8px;
}

.widget-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #8b8ba6;
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}

.widget-tab img { width: 15px; height: 15px; }

.widget-tab.is-active {
  background: var(--accent-primary-soft);
  border-color: rgba(145, 70, 255, 0.4);
  color: var(--text-primary);
}

/* ---------- Color option row ---------- */

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.color-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 10px;
  border-radius: 9px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.color-option__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.color-option.is-selected {
  border: 1.5px solid var(--accent-primary);
  color: var(--text-primary);
}

/* ---------- Chat widget live preview ---------- */

.chat-preview {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: linear-gradient(145.87deg, #0f121f 0%, #1a0f29 71.429%);
  width: 100%;
}

.chat-preview__msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 15, 0.55);
  width: 100%;
}

.chat-preview__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 9.5px;
  line-height: 12px;
  flex-shrink: 0;
}

.chat-preview__name {
  font-weight: 700;
  font-size: 13.5px;
  line-height: 19px;
  white-space: nowrap;
  flex-shrink: 0;
}

.chat-preview__text {
  flex: 1 0 0;
  min-width: 0;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 19px;
  color: #ededf5;
}

/* ---------- Auction header banner ---------- */

.auction-banner {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-color: rgba(145, 70, 255, 0.4);
}

.auction-banner__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auction-banner__chip {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(145, 70, 255, 0.16);
}

.auction-banner__title-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.auction-banner__title {
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: var(--text-primary);
  white-space: nowrap;
}

.auction-banner__sub {
  font-weight: 400;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--text-muted);
}

.auction-banner__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auction-timer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.auction-timer__value {
  font-weight: 700;
  font-size: 26px;
  line-height: 32px;
  letter-spacing: -0.6px;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.auction-timer__label {
  font-weight: 400;
  font-size: 11px;
  line-height: 14px;
  color: var(--text-muted);
}

/* ---------- Auction option row ---------- */

.option-row {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 0;
  width: 100%;
}

.option-row__top {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.option-row__rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11.5px;
  flex-shrink: 0;
}

.option-row__name {
  flex: 1 0 0;
  min-width: 0;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 19px;
  color: var(--text-primary);
}

.option-row__amount {
  font-weight: 700;
  font-size: 13.5px;
  line-height: 19px;
  white-space: nowrap;
}

.option-row__pct {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
  white-space: nowrap;
  width: 40px;
  text-align: right;
}

.option-row__actions {
  display: flex;
  gap: 5px;
}

.option-row__actions button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-surface-2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-row__actions img { width: 13px; height: 13px; }

.option-row__track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-3);
  overflow: hidden;
}

.option-row__fill {
  height: 100%;
  border-radius: var(--radius-pill);
}

/* ---------- Roulette wheel card ---------- */

.wheel-wrap {
  position: relative;
  width: 240px;
  height: 240px;
}

.wheel-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.wheel-center__value {
  font-weight: 700;
  font-size: 22px;
  line-height: 28px;
  color: var(--text-primary);
}

.wheel-center__label {
  font-weight: 400;
  font-size: 11.5px;
  line-height: 15px;
  color: var(--text-muted);
}

/* ---------- Timer rows ---------- */

.timer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  width: 100%;
}

.timer-row__body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.timer-row__title-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.timer-row__title {
  font-weight: 600;
  font-size: 13.5px;
  line-height: 19px;
  color: var(--text-primary);
  white-space: nowrap;
}

.timer-row__desc {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.timer-row__time {
  font-weight: 400;
  font-size: 11.5px;
  line-height: 15px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.timer-row__actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.timer-row__actions button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-surface-2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-row__actions img { width: 14px; height: 14px; }

/* ---------- Form fields (timer editor) ---------- */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

.form-field__label {
  font-weight: 600;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field__input {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  font-weight: 400;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 19px;
  color: var(--text-primary);
}

textarea.form-field__input {
  resize: none;
  min-height: 62px;
}

.inline-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
  width: 100%;
}

.inline-toggle-row__title {
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-primary);
}

.inline-toggle-row__desc {
  font-weight: 400;
  font-size: 11.5px;
  line-height: 15px;
  color: var(--text-muted);
  width: 220px;
}

.form-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.form-actions button {
  flex: 1 0 0;
  height: 40px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 18px;
}

.form-actions .btn--primary { border: none; }
.form-actions .btn--secondary {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  color: #e4e4ee;
}

/* ---------- Info callout ---------- */

.info-callout {
  gap: 10px;
}

.info-callout__head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.info-callout__chip {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--wash-cyan-2);
}

.info-callout__title {
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-primary);
}

.info-callout p {
  margin: 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-secondary);
  width: 340px;
}

/* ---------- Analytics: range tabs + free-tier notice ---------- */

.range-tabs {
  display: flex;
  gap: 8px;
}

.range-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}

.range-tab img { width: 13px; height: 13px; }

.range-tab.is-active {
  background: var(--accent-primary-soft);
  border-color: rgba(145, 70, 255, 0.4);
  color: var(--text-primary);
}

.tier-notice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 13px;
  border-radius: var(--radius-sm);
  background: var(--status-warning-soft);
  border: 1px solid rgba(255, 176, 32, 0.35);
}

.tier-notice img { width: 15px; height: 15px; flex-shrink: 0; }

.tier-notice span {
  font-weight: 500;
  font-size: 12.5px;
  line-height: 17px;
  color: #ffcf6b;
  white-space: nowrap;
}

/* ---------- Analytics line chart ---------- */

.line-chart {
  width: 100%;
  max-width: 704px;
}

.line-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Peak hours bar chart ---------- */

.peakbars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 132px;
}

.peakbars .bar {
  width: 21px;
  border-radius: 3px;
  background: var(--accent-primary);
}

/* ---------- Donation-by-day rows ---------- */

.dayrow {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 0;
  width: 100%;
}

.dayrow__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  line-height: 17px;
}

.dayrow__name {
  font-weight: 500;
  color: var(--text-primary);
}

.dayrow__amount {
  font-weight: 600;
  color: #34d399;
}

.dayrow__track {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-3);
  overflow: hidden;
}

.dayrow__fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: #34d399;
}

/* ---------- Journal (log) page ---------- */

.log-filterbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.log-filterbar .search-input { width: auto; flex: 1 0 0; max-width: 524px; }

.clear-log-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px 0 16px;
  border-radius: var(--radius-sm);
  background: var(--status-danger-soft);
  border: 1px solid var(--status-danger-border);
  color: var(--status-danger);
  font-weight: 600;
  font-size: 13.5px;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.clear-log-btn img { width: 16px; height: 16px; }

.jlog-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  width: 100%;
  font-weight: 600;
  font-size: 11px;
  color: var(--text-muted);
}

.jlog-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  width: 100%;
}

.jlog-col-time { width: 66px; flex-shrink: 0; font-size: 12px; color: var(--text-muted); padding-top: 3px; }
.jlog-col-user { width: 132px; flex-shrink: 0; font-weight: 600; font-size: 13px; color: var(--text-primary); padding-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jlog-col-role { width: 78px; flex-shrink: 0; padding-top: 1px; }
.jlog-col-event { width: 150px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 12.5px; padding-top: 1px; }
.jlog-col-event img { width: 14px; height: 14px; flex-shrink: 0; }
.jlog-col-msg { flex: 1 0 0; min-width: 0; font-size: 12.5px; color: var(--text-secondary); padding-top: 1px; }
.jlog-col-action { width: 96px; flex-shrink: 0; display: flex; justify-content: flex-end; }

.role-badge-sm {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(145, 70, 255, 0.18);
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.4px;
}

.jlog-action-btn {
  height: 25px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 11.5px;
  white-space: nowrap;
}

.jlog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 12px;
}

.jlog-footer__count {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  gap: 6px;
}

.pagination button {
  width: 32px;
  height: 30px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 12.5px;
}

.pagination button.is-active {
  background: var(--accent-primary-soft);
  color: var(--text-primary);
}

/* ---------- Summary rows (Журнал sidebar) ---------- */

.summary-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11.5px 0;
  width: 100%;
}

.summary-row img { width: 16px; height: 16px; flex-shrink: 0; }

.summary-row__label {
  flex: 1 0 0;
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-primary);
}

.summary-row__value {
  font-weight: 700;
  font-size: 14px;
  line-height: 19px;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ---------- Empty state ---------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 0;
  width: 100%;
  color: var(--text-muted);
  text-align: center;
}
