:root {
  --background: #0f172a;
  --foreground: #cbd5e1;
  --card: #1e293b;
  --card-foreground: #e2e8f0;
  --popover: #1e293b;
  --popover-foreground: #e2e8f0;
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --secondary: #334155;
  --secondary-foreground: #e2e8f0;
  --muted: #334155;
  --muted-foreground: #94a3b8;
  --accent: #334155;
  --accent-foreground: #e2e8f0;
  --destructive: #f87171;
  --success: #4ade80;
  --warning: #fbbf24;
  --border: #334155;
  --input: #334155;
  --ring: #3b82f6;
  --chart-1: #3b82f6;
  --chart-2: #60a5fa;
  --chart-3: #4ade80;
  --chart-4: #fbbf24;
  --chart-5: #94a3b8;
  --radius: 0.5rem;
  --sidebar: #1e293b;
  --sidebar-foreground: #e2e8f0;
  --sidebar-primary: #3b82f6;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #334155;
  --sidebar-accent-foreground: #e2e8f0;
  --sidebar-border: #334155;
  --sidebar-ring: #3b82f6;
}

body {
  background-color: var(--background);
  color: var(--foreground);
}

.nav-btn.active {
  background-color: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-left: 3px solid #6366f1;
}

.nav-btn.active i {
  color: #a5b4fc;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ===== 环形清算倒计时进度条 ===== */
.countdown-ring {
  transform: rotate(-90deg);
}
.countdown-ring__track {
  stroke: rgba(51, 65, 85, 0.5);
}
.countdown-ring__progress {
  stroke: #3b82f6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}
.countdown-ring__progress--warning {
  stroke: #fbbf24;
}

/* ===== KYB Stepper 进度条 ===== */
.kyb-stepper {
  display: flex;
  align-items: center;
}
.kyb-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}
.kyb-step__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 2px solid #334155;
  color: #94a3b8;
  background-color: #0f172a;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.kyb-step--active .kyb-step__circle,
.kyb-step--done .kyb-step__circle {
  border-color: #3b82f6;
  background-color: #3b82f6;
  color: #ffffff;
}
.kyb-step__line {
  flex: 1;
  height: 2px;
  background-color: #334155;
  margin: 0 0.5rem;
  transition: background-color 0.3s ease;
}
.kyb-step--done .kyb-step__line {
  background-color: #3b82f6;
}

/* ===== 透明分账条 ===== */
.split-bar {
  height: 2.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
}
.split-bar__fee {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  transition: width 0.8s ease;
}
.split-bar__net {
  background: linear-gradient(90deg, #22c55e, #4ade80);
  transition: width 0.8s ease;
}

/* ===== 严格反欺诈模式高亮卡 ===== */
.strict-card {
  transition: all 0.3s ease;
  border: 1px solid #334155;
}
.strict-card--on {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3), 0 8px 24px -8px rgba(59, 130, 246, 0.4);
  background-color: rgba(59, 130, 246, 0.05);
}

/* ===== 自定义滚动条（暗色主题） ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: #475569;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #64748b;
}
