/* ---------- Notifications (NotifyBell) ---------- */

.nb {
  position: relative;
}

.nb-layer {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 26, 20, 0.42);
  backdrop-filter: blur(6px);
}

.nb-modal {
  width: min(560px, 100%);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-floating);
  overflow: hidden;
  animation: nb-in 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nb-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 16px;
}

.nb-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.nb-sub {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.nb-x {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}

.nb-x:hover {
  background: var(--bg-main);
  color: var(--text-primary);
}

.nb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px 18px;
}

.nb-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 112px;
  padding: 16px 10px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-main);
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: default;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.nb-card:disabled {
  opacity: 1;
}

.nb-card.clickable {
  cursor: pointer;
}

.nb-card.clickable:hover {
  background: var(--bg-surface);
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgb(128 173 1 / 12%);
  transform: translateY(-2px);
}

.nb-card.clickable:active {
  transform: translateY(0);
}

.nb-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.nb-label {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-primary);
}

.nb-hint {
  font-size: 11.5px;
  color: var(--text-muted);
}

.nb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 36px 24px 40px;
  text-align: center;
}

.nb-empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: linear-gradient(
    160deg,
    var(--color-primary-light),
    color-mix(in srgb, var(--color-primary) 6%, white)
  );
  color: var(--color-primary);
  box-shadow: 0 8px 20px rgb(128 173 1 / 12%);
  animation: nb-pop 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nb-empty strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.nb-empty p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

@keyframes nb-pop {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes nb-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 420px) {
  .nb-grid {
    grid-template-columns: 1fr;
  }
}
