/* 统计卡、图表、数据表格 —— 由 index.html 拆分而来，加载顺序见 index.html */
/* ─── STAT CARDS ─── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  opacity: .12;
}
.stat-card.rose::before { background: var(--rose); }
.stat-card.green::before { background: var(--green); }
.stat-card.blue::before { background: var(--blue); }
.stat-card.gold::before { background: var(--gold); }

.stat-icon { font-size: 24px; margin-bottom: 12px; }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 12px; color: var(--text2); margin-top: 6px; }
.stat-change {
  font-size: 11px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }

/* ─── CHART AREA ─── */
.chart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.chart-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.chart-title { font-size: 14px; font-weight: 600; }
.chart-sub { font-size: 11px; color: var(--text2); margin-top: 2px; }
.chart-legend {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--text2);
}
.legend-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  padding-top: 10px;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
}
.bar-fill {
  border-radius: 4px 4px 0 0;
  width: 100%;
  transition: height .3s;
}
.bar-label { font-size: 9px; color: var(--text2); }

.donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
}
.donut {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: conic-gradient(
    var(--rose) 0% 38%,
    var(--gold) 38% 62%,
    var(--blue) 62% 80%,
    var(--text2) 80% 100%
  );
  position: relative;
}
.donut::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 62px; height: 62px;
  background: var(--card-bg);
  border-radius: 50%;
}
.donut-labels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 20px;
}
.donut-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.donut-item .pct { color: var(--text2); font-size: 11px; }

/* ─── TABLE ─── */
.table-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}
.table-toolbar-title { font-size: 14px; font-weight: 600; }
.toolbar-actions { display: flex; gap: 10px; align-items: center; }
.filter-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: all .15s;
}
.filter-btn:hover, .filter-btn.active { background: rgba(224,66,105,.15); border-color: var(--rose); color: var(--rose); }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  color: var(--text2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-thumb {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--card2-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform .15s;
}
.user-thumb:hover { transform: scale(1.08); }
.user-thumb img, .photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.user-info-name { font-size: 13px; font-weight: 600; }
.user-info-id { font-size: 11px; color: var(--text2); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge.active { background: rgba(45,216,122,.12); color: var(--green); }
.badge.pending { background: rgba(245,158,11,.12); color: var(--orange); }
.badge.banned { background: rgba(239,68,68,.12); color: var(--red); }
.badge.vip { background: rgba(240,160,48,.12); color: var(--gold); }
.badge.verified { background: rgba(59,130,246,.12); color: var(--blue); }
.badge.unverified { background: rgba(139,141,158,.12); color: var(--text2); }
.badge.divorced { background: rgba(139,92,246,.12); color: var(--purple); }

.action-btns { display: flex; gap: 6px; }
.action-btn {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  border: none;
  font-weight: 500;
  transition: all .15s;
}
.action-btn.view { background: rgba(59,130,246,.15); color: var(--blue); }
.action-btn.view:hover { background: rgba(59,130,246,.25); }
.action-btn.approve { background: rgba(45,216,122,.15); color: var(--green); }
.action-btn.approve:hover { background: rgba(45,216,122,.25); }
.action-btn.reject { background: rgba(239,68,68,.12); color: var(--red); }
.action-btn.reject:hover { background: rgba(239,68,68,.2); }
.action-btn.ban { background: rgba(239,68,68,.12); color: var(--red); }

.table-foot {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text2);
}
.pagination { display: flex; gap: 4px; }
.page-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all .15s;
}
.page-btn:hover, .page-btn.active { background: var(--rose); border-color: var(--rose); color: #fff; }
.page-btn.disabled { opacity: .35; cursor: not-allowed; }
.page-btn.disabled:hover { background: rgba(255,255,255,.05); border-color: var(--border); color: var(--text); }

