:root{
  --page: #f6f8fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6eaf0;
  --accent: #2563eb;
  --accent-soft: rgba(37,99,235,.10);
}

.stats-wrap{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--page);
  padding: 18px;
  color: var(--ink);
}

/* ====== GRID TOP (2 BOX) ====== */
.stats-grid{
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ====== CARD ====== */
.stats-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(16,24,40,.04),
    0 8px 20px rgba(16,24,40,.06);
  overflow: hidden;
}

/* header card */
.stats-card__head{
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f9fbff 0%, #fff 100%);
  display: flex;
  align-items: center;
  gap: 10px;
}
.stats-card__dot{
  width: 9px;height: 9px;border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.stats-card__title{
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .2px;
}

/* body card */
.stats-card__body{
  padding: 12px 16px 10px;
}

/* list rows */
.stats-list{
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 6px;
}
.stats-list li{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.stats-list li:last-child{ border-bottom: none; }

.label{
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.value{
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
}
.small{ font-size: 13px; color: var(--muted); font-weight: 600; }

/* ====== SOFT HIGHLIGHTS ====== */
.badge{
  display: inline-block;
  padding: 2px 8px;
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 999px;
  vertical-align: middle;
}
.b-blue{ color:#1d4ed8; background:#eef2ff; }
.b-green{ color:#047857; background:#ecfdf3; }
.b-orange{ color:#b45309; background:#fff7ed; }
.b-red{ color:#b91c1c; background:#fef2f2; }
.b-gray{ color:#334155; background:#f1f5f9; }

/* ====== HOTKEY LIST (right box) ======
   như bullet nhưng gọn */
.hotkeys{
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 6px;
}
.hotkeys li{
  padding: 7px 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fbfdff;
  line-height: 1.6;
  font-size: 14.5px;
  font-weight: 600;
}
.hotkeys kbd{
  font-family: inherit;
  font-weight: 800;
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
  margin-right: 6px;
}

/* ====== BOTTOM TABLE ====== */
.table-card{
  max-width: 980px;
  margin: 14px auto 0;
}

.stats-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
  overflow: hidden;
}
.stats-table thead th{
  text-align: left;
  padding: 12px 12px;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.stats-table tbody td{
  padding: 11px 12px;
  border-bottom: 1px dashed var(--line);
  font-weight: 600;
}
.stats-table tbody tr:last-child td{ border-bottom: none; }

.stats-table tbody tr:hover td{
  background: #f9fbff;
}

/* trạng thái yes/no */
.yes{ color:#047857; font-weight: 800; }
.no{ color:#b91c1c; font-weight: 800; }

/* ====== RESPONSIVE ====== */
@media (max-width: 860px){
  .stats-grid{ grid-template-columns: 1fr; }
  .stats-list li{ grid-template-columns: 140px 1fr; }
}
@media (max-width: 420px){
  .stats-wrap{ padding: 12px; }
  .stats-list li{ grid-template-columns: 1fr; }
  .label{ color: var(--muted); font-size: 12.5px; }
}
/* nền page tách lớp nhẹ hơn */
.stats-wrap{
  background: #f2f5f9;   /* trước là #f6f8fb */
}

/* card nổi hơn */
.stats-card{
  border: 1px solid #dde3ea;   /* viền rõ hơn chút */
  box-shadow:
    0 2px 6px rgba(16,24,40,.06),
    0 14px 32px rgba(16,24,40,.12);  /* sâu hơn */
  transform: translateY(0);
  transition: box-shadow .2s ease, transform .2s ease;
}

/* hover nổi thêm (nếu muốn) */
.stats-card:hover{
  transform: translateY(-2px);
  box-shadow:
    0 4px 10px rgba(16,24,40,.08),
    0 18px 40px rgba(16,24,40,.16);
}

/* header tách rõ hơn */
.stats-card__head{
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  border-bottom: 1px solid #e1e7ef;
}

/* riêng box hotkey cho “nổi” trong card */
.hotkeys li{
  background: #ffffff;
  border: 1px solid #e6ebf2;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
