.mf-page #main-content > .mx-auto.max-w-4xl,
.mf-page .mf-wrap {
  max-width: 72rem;
}

.mf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 8px 0 20px;
}

.mf-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e3a8a;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.mf-chip span {
  color: #2563eb;
}

.mf-search {
  position: relative;
  flex: 1 1 240px;
  min-width: 200px;
}

.mf-search input {
  width: 100%;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px 12px 42px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
}

.mf-search input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.mf-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #64748b;
}

.mf-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.mf-letter {
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #fff;
  color: #2563eb;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.mf-letter.is-on,
.mf-letter:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.mf-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 12px !important;
}

@media (min-width: 640px) {
  .mf-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .mf-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.mf-card {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px !important;
  border: 1px solid #dbeafe !important;
  border-radius: 18px !important;
  background: #fff;
  box-shadow: 0 8px 24px -18px rgba(30, 58, 138, 0.45);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.mf-card:hover {
  transform: translateY(-2px);
  border-color: #2563eb !important;
  box-shadow: 0 14px 28px -16px rgba(37, 99, 235, 0.45);
}

.mf-card > div:first-child {
  width: 64px;
  min-width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #eff6ff;
  border-color: #dbeafe;
}

.mf-body {
  min-width: 0;
  flex: 1;
}

.mf-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
}

.mf-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.mf-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.mf-more {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
}

.mf-empty {
  display: none;
  grid-column: 1 / -1;
  padding: 28px 16px;
  border: 1px dashed #bfdbfe;
  border-radius: 16px;
  background: #eff6ff;
  color: #1e3a8a;
  text-align: center;
  font-weight: 600;
}

.mf-empty.is-on {
  display: block;
}

.mf-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
  color: #fff;
}

.mf-bottom p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.mf-bottom span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.mf-bottom a {
  display: inline-flex;
  border-radius: 999px;
  background: #f97316;
  color: #1e3a8a;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
