/* =========================================================================
   签到 / 积分 / 最新加入流动榜 —— 复用论坛既有科技感变量
   ========================================================================= */

/* ------------------------------ 最新加入：顶部横向流动榜 ------------------------------ */
.flow-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 9px 14px;
  border-radius: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
          backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.flow-label {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--tech-1);
  white-space: nowrap;
  padding-right: 10px;
  border-right: 1px solid var(--hairline);
}
.flow-viewport {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.flow-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: flowScroll 38s linear infinite;
  will-change: transform;
}
.flow-bar:hover .flow-track { animation-play-state: paused; }
.flow-item {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-2);
}
.flow-item .avatar { width: 26px; height: 26px; font-size: 12px; }
.flow-item .fi-name { color: var(--text); font-weight: 500; }
.flow-empty { font-size: 13px; color: var(--muted); padding: 2px 4px; }
@keyframes flowScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .flow-track { animation: none; }
}

/* ------------------------------ 每日签到卡片 ------------------------------ */
.signin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 16px;
  padding: 16px 18px;
}
.signin-left { min-width: 160px; }
.signin-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.signin-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.signin-right { display: flex; align-items: center; gap: 12px; }

.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tech-1), var(--tech-2));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: 0 4px 14px rgba(10, 132, 255, .35);
}
.signin-btn { min-width: 100px; }
.signin-btn[disabled] { opacity: .6; cursor: default; }

/* 签到排行榜 */
.signin-rank { flex-basis: 100%; margin-top: 6px; }
.signin-rank h4 {
  margin: 12px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.rank-list { display: flex; flex-direction: column; gap: 4px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background .2s ease;
}
.rank-item:hover { background: var(--surface-2); }
.rank-no {
  flex: 0 0 22px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.rank-no.top1 { color: #ffb340; }
.rank-no.top2 { color: #c7c7cc; }
.rank-no.top3 { color: #d7a06a; }
.rank-item .avatar { width: 30px; height: 30px; font-size: 13px; }
.rank-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.rank-streak { font-size: 12px; color: var(--tech-1); white-space: nowrap; margin-right: 8px; }
.rank-credit {
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  white-space: nowrap;
}

/* 后台积分流水小表格 */
.log-list { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.log-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--hairline);
}
.log-item .li-user { font-weight: 500; min-width: 90px; }
.log-item .li-delta { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; white-space: nowrap; }
.log-item .li-delta.plus { color: var(--ok-ink); }
.log-item .li-delta.minus { color: var(--danger-ink); }
.log-item .li-reason { color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-item .li-time { color: var(--muted); white-space: nowrap; font-family: ui-monospace, Menlo, Consolas, monospace; }
