/* Singh Pages — global loading overlay */
.sp-loader {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.sp-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sp-loader__box {
  background: #fff;
  border-radius: 16px;
  padding: 28px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-width: 160px;
}

.sp-loader__spin {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: sp-spin 0.75s linear infinite;
}

.sp-loader__text {
  margin: 0;
  font: 500 14px/1.4 Inter, system-ui, sans-serif;
  color: #475569;
}

body.sp-loading {
  overflow: hidden;
}

@keyframes sp-spin {
  to { transform: rotate(360deg); }
}

/* Favorite heart button on cards */
.bcard__top-row,
.result-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.sp-fav-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #fff;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.sp-fav-btn:hover {
  border-color: #fca5a5;
  color: #ef4444;
}

.sp-fav-btn.is-saved {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #ef4444;
}

.sp-fav-btn svg {
  width: 18px;
  height: 18px;
}

