/* =====================================================================
   NCSIMUL-Site —— 科幻暗色主题
   主色：霓虹青 #00e5ff / 切削绿 #39ff14 / 品红 #ff2bd6
   背景：深空蓝黑 #05070d
   ===================================================================== */

:root {
  --bg: #05070d;
  --bg-soft: #0a0f1a;
  --panel: rgba(13, 22, 38, 0.72);
  --panel-border: rgba(0, 229, 255, 0.28);
  --cyan: #00e5ff;
  --green: #39ff14;
  --magenta: #ff2bd6;
  --text: #cfe9ff;
  --text-dim: #7f9bb5;
  --grid: rgba(0, 229, 255, 0.06);
  --glow-cyan: 0 0 12px rgba(0, 229, 255, 0.55);
  --glow-green: 0 0 12px rgba(57, 255, 20, 0.5);
  --mono: "JetBrains Mono", "Cascadia Code", "Consolas", "SFMono-Regular",
    ui-monospace, Menlo, monospace;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(
    180deg,
    rgba(5, 7, 13, 0.92),
    rgba(5, 7, 13, 0.35)
  );
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-border);
}

.nav .brand {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 24px;
  color: var(--green);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.55);
}

.nav .brand span {
  color: var(--green);
  font-size: 26px;
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.7);
}

.nav-links {
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 19.5px; /* 原 13px 放大 150%（×1.5） */
  letter-spacing: 1px;
}

.nav-links a {
  color: var(--text-dim);
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

/* ---------------- 首页 HERO + Canvas ---------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gcode-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  pointer-events: none;
}

.hero-overlay .tag {
  font-family: var(--mono);
  color: var(--green);
  letter-spacing: 4px;
  font-size: 13px;
  text-shadow: var(--glow-green);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--mono);
  font-size: clamp(48px, 11vw, 132px);
  font-weight: 800;
  letter-spacing: 10px;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.7),
    0 0 40px rgba(0, 229, 255, 0.35);
  animation: flicker 4s infinite;
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  94% {
    opacity: 0.78;
  }
  96% {
    opacity: 1;
  }
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(15px, 2.4vw, 22px);
  color: var(--text);
  letter-spacing: 2px;
}

.hero-sub b {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.hero-cta {
  margin-top: 40px;
  pointer-events: auto;
  display: inline-flex;
  gap: 16px;
}

.btn {
  font-family: var(--mono);
  letter-spacing: 1.5px;
  padding: 13px 26px;
  border-radius: 4px;
  border: 1px solid var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  cursor: pointer;
  transition: all 0.2s;
  text-shadow: var(--glow-cyan);
}

.btn:hover {
  background: rgba(0, 229, 255, 0.2);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--cyan);
  color: #02141a;
  font-weight: 700;
  text-shadow: none;
}

.btn.green {
  border-color: var(--green);
  color: var(--green);
  background: rgba(57, 255, 20, 0.08);
  text-shadow: var(--glow-green);
}

.btn.green:hover {
  background: rgba(57, 255, 20, 0.2);
  box-shadow: var(--glow-green);
}

.btn.ghost {
  border-color: var(--panel-border);
  background: transparent;
  color: var(--text-dim);
  text-shadow: none;
  padding: 10px 18px;
  height: 38px;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  transform: none;
  color: var(--text);
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 2px;
  animation: floaty 2s ease-in-out infinite;
}


@keyframes floaty {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

/* ---------------- 通用区块 ---------------- */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 28px;
}

.section-title {
  font-family: var(--mono);
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: 3px;
  color: #fff;
  margin: 0 0 10px;
  text-shadow: var(--glow-cyan);
}

.section-title::before {
  content: ">";
  color: var(--green);
  margin-right: 12px;
  text-shadow: var(--glow-green);
}

.section-desc {
  color: var(--text-dim);
  max-width: 760px;
  line-height: 1.8;
  margin: 0 0 44px;
  font-size: 15px;
}

/* 网格背景 */
.grid-bg {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ---------------- 产品介绍卡片 ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 28px 24px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.8;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.18);
}

.card .icon {
  font-family: var(--mono);
  font-size: 26px;
  color: var(--green);
  text-shadow: var(--glow-green);
  margin-bottom: 14px;
}

.card h3 {
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 1px;
  margin: 0 0 12px;
  color: #fff;
}

.card p {
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 14px;
  margin: 0;
}

/* ---------------- 资源页 ---------------- */
.res-wrap {
  padding-top: 92px;
}

.res-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.res-actions {
  display: flex;
  gap: 12px;
}

/* Tab */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 14px;
}

.tab {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 1px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
}

.tab:hover {
  color: var(--cyan);
}

.tab.active {
  color: var(--cyan);
  border-color: var(--panel-border);
  background: rgba(0, 229, 255, 0.08);
  text-shadow: var(--glow-cyan);
}

.tab .count {
  margin-left: 8px;
  color: var(--green);
  font-size: 12px;
}

/* DEMO 机床筛选条 */
.filter-bar {
  display: none; /* 默认隐藏，仅 DEMO 机床分类下由 JS 设为 flex */
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.04);
}

.filter-bar .filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.filter-bar label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.filter-bar select,
.filter-bar input {
  height: 38px;
  padding: 0 10px;
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
}

/* 展开的下拉面板也统一为网站主题深底浅字（避免浏览器默认白底浅字看不清） */
.filter-bar select option {
  background: var(--bg-soft);
  color: var(--text);
}

.filter-bar select:focus,
.filter-bar input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.15);
}

/* 资源卡片网格 */
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.res-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.res-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 8px 26px rgba(0, 229, 255, 0.16);
}

.res-card .cat-tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--green);
  color: var(--green);
  text-shadow: var(--glow-green);
}

/* 卡片顶部：品类标签 + 手动排序控件 */
.res-card .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.res-card .ord {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
}
.res-card .ord-no {
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 1px;
  min-width: 26px;
  text-align: right;
}
.res-card .ord-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--panel-border);
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.res-card .ord-btn:hover:not(:disabled) {
  background: rgba(0, 229, 255, 0.28);
  border-color: var(--cyan);
}
.res-card .ord-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.res-card h4 {
  font-family: var(--mono);
  font-size: 17px;
  margin: 0;
  color: #fff;
  letter-spacing: 0.5px;
}

.res-card .desc {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
  flex: 1;
  word-break: break-word;
}

.res-card .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.res-card .meta .code {
  color: var(--magenta);
}

.res-card .meta .dim-tag {
  color: var(--cyan);
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  padding: 1px 7px;
}

.res-card .row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.res-card .dl-btn {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  padding: 11px;
  border-radius: 4px;
  background: var(--cyan);
  color: #02141a;
  font-weight: 700;
  transition: box-shadow 0.2s;
}

.res-card .dl-btn:hover {
  box-shadow: var(--glow-cyan);
}

.res-card .del-btn {
  font-family: var(--mono);
  font-size: 12px;
  padding: 11px 14px;
  border-radius: 4px;
  border: 1px solid var(--magenta);
  color: var(--magenta);
  background: rgba(255, 43, 214, 0.08);
  cursor: pointer;
  transition: background 0.2s;
}

.res-card .del-btn:hover {
  background: rgba(255, 43, 214, 0.22);
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--mono);
  padding: 60px 0;
  letter-spacing: 1px;
}

/* ---------------- 弹窗 / Modal ---------------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 4, 9, 0.78);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-mask.show {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.2);
  padding: 30px;
}

.modal h3 {
  font-family: var(--mono);
  letter-spacing: 2px;
  margin: 0 0 22px;
  color: #fff;
  text-shadow: var(--glow-cyan);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 7px;
}

/* ---------------- 图形验证码 ---------------- */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.captcha-img {
  width: 132px;
  height: 46px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: #0a0f1a;
  cursor: pointer;
  display: block;
}
.captcha-refresh {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 6px;
  border: 1px solid var(--panel-border);
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  transition: background 0.2s;
}
.captcha-refresh:hover {
  background: rgba(0, 229, 255, 0.28);
}
.captcha-input {
  margin-top: 8px;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-size: 16px !important;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* 选择框展开面板统一主题深色，避免白底浅字看不清 */
.field select option {
  background: var(--bg-soft);
  color: var(--text);
}

.field textarea {
  resize: vertical;
  min-height: 64px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.modal .err {
  color: var(--magenta);
  font-family: var(--mono);
  font-size: 12.5px;
  min-height: 16px;
  margin: 4px 0 12px;
}

/* ---------------- 页脚 ---------------- */
.footer {
  border-top: 1px solid var(--panel-border);
  padding: 36px 28px;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  background: var(--bg-soft);
}

.footer b {
  color: var(--cyan);
}

/* 解锁状态徽标 */
.unlock-badge {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  text-shadow: var(--glow-green);
  display: none;
  align-items: center;
  gap: 6px;
}

.unlock-badge.show {
  display: inline-flex;
}

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  background: var(--bg-soft);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 22px;
  border-radius: 6px;
  box-shadow: var(--glow-cyan);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.err {
  border-color: var(--magenta);
  color: var(--magenta);
  box-shadow: 0 0 12px rgba(255, 43, 214, 0.5);
}

@media (max-width: 640px) {
  .nav {
    padding: 12px 16px;
  }
  .nav-links {
    gap: 14px;
    font-size: 18px; /* 原 12px 放大 150%（×1.5） */
  }
  .section {
    padding: 56px 18px;
  }
}

/* ---------------- 首页新增板块 ---------------- */
.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  padding: 4px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  color: var(--cyan);
  margin-bottom: 16px;
  text-shadow: var(--glow-cyan);
}

/* 概述两栏 */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.overview-text p {
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 15px;
}
.overview-text strong {
  color: var(--text);
}
.overview-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.overview-list li {
  padding: 10px 0 10px 24px;
  position: relative;
  color: var(--text-dim);
  font-size: 14.5px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
}
.overview-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: var(--glow-green);
}
.overview-list li b {
  color: var(--cyan);
}
.overview-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 30px;
}
.overview-panel h4 {
  font-family: var(--mono);
  color: var(--cyan);
  letter-spacing: 1px;
  margin: 0 0 18px;
  text-shadow: var(--glow-cyan);
}
.overview-panel .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
  font-size: 14px;
  color: var(--text-dim);
}
.overview-panel .row span:last-child {
  color: var(--text);
  text-align: right;
}

/* 工作原理 6 步流 */
.flow {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.step {
  flex: 1;
  min-width: 150px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 22px 20px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.16);
}
.step .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  text-shadow: var(--glow-green);
  margin-bottom: 10px;
}
.step h4 {
  font-family: var(--mono);
  color: #fff;
  font-size: 15px;
  margin: 0 0 8px;
}
.step p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* 技术亮点 metric 网格 */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.metric {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.metric:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.16);
}
.metric-num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 6px;
  line-height: 1.2;
}
.metric-title {
  font-family: var(--mono);
  font-size: 16px;
  color: #fff;
  margin-bottom: 10px;
}
.metric-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------------- 访问统计弹窗 ---------------- */
.stats-summary {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 4px 0 18px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-dim);
}
.stats-summary b {
  color: var(--cyan);
  font-size: 18px;
  margin-left: 6px;
}
.stats-section {
  margin-bottom: 18px;
}
.stats-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 8px;
  border-left: 2px solid var(--cyan);
  padding-left: 8px;
}
.stats-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
}
.stats-row {
  display: flex;
  gap: 12px;
  padding: 7px 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
}
.stats-row:last-child {
  border-bottom: none;
}
.stats-row .num {
  margin-left: auto;
  color: var(--green);
}
.empty-sm {
  padding: 12px;
  color: var(--text-dim);
  font-size: 13px;
}

/* 最近访问表格 */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12.5px;
}
.stats-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0a1220;
  color: var(--text-dim);
  text-align: left;
  padding: 8px 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--panel-border);
}
.stats-table td {
  padding: 7px 12px;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
  white-space: nowrap;
}
.stats-table tbody tr:hover {
  background: rgba(0, 229, 255, 0.05);
}
.stats-table td:first-child {
  color: var(--cyan);
}


